From patchwork Sat Sep 16 10:52:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 112783 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1614369qgf; Sat, 16 Sep 2017 03:53:21 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCPhw2sTgIYpVQ/kqX1W3N9BrRBlsF+JiNynpUkoQ2QEpekbGzvmwi5muEAfubofUnYGbHz X-Received: by 10.28.238.140 with SMTP id j12mr4736575wmi.103.1505559201117; Sat, 16 Sep 2017 03:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505559201; cv=none; d=google.com; s=arc-20160816; b=TIYojuN42AnG8Gl+csfxPTNgHc67qw3HWoyNFaNnZStzJTgygdps/lB6hBhq1hQr21 9c+TJBK5oj4W/WO2NB4vgFHUD44FVn8VKjdvii2HncPP05juON14+wG/WXCTuCixBYWa mkWpwQnOQ/OQsZ0ZxLm80k93EIydrX+krgoemlWoDPC0AXyAzVrLJ6jwwFXONbyY7fOf oCSZ6N/cvR9NXjJr9YUhuC75xP4jmc7E78ruanbRSaj9MSieVTbSIUqqfnZcbEhGE7Z6 D9OtV9PTA/Exn88Dsdnm9Jf5NnGtHgRADPmxWAAb6I7rYNXs03e31fFhEJY8gTQcES7T 0JGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=357ExG+m4oWFZHVwZdfoFD1fCksMLzZK77z+doiiRZ4=; b=zgjbTPoIFfmUTaQDDICXTDrz9d554VLYmhdLR9Z37nW30myWq1CECwwvTOBn4i5axA IsebtCrCyXHMYOGNNpwiTCI24ZmM6DFBu50pDHlVPOEzExJBvfgeoL2R6oUyfnKSGw9U cGZoRKUT7fIQ8ioqLQBMWEgtdpAhzlKrkX1IucnfAm/eBFzNek/F889wX63WHjRk1YRa tX14TOrDpsR+Dcr6QxFXXa2KIE0kLGpylRENDwsJjX/amnubVSGhgj0URGzXZ62BCg+Q ZYrxlXlRZn1JcJ8Dh4Lcrti+Mwju9JrKm66rVyPQ244wTX8QaBwi2TFb9cDWdquN35Ep RmLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id v16si2431679wmv.244.2017.09.16.03.53.20; Sat, 16 Sep 2017 03:53:21 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9579D199B5; Sat, 16 Sep 2017 12:53:16 +0200 (CEST) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0067.outbound.protection.outlook.com [104.47.32.67]) by dpdk.org (Postfix) with ESMTP id D661E199B5 for ; Sat, 16 Sep 2017 12:53:12 +0200 (CEST) Received: from BN6PR03CA0094.namprd03.prod.outlook.com (10.164.122.160) by BN6PR03MB2692.namprd03.prod.outlook.com (10.173.144.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Sat, 16 Sep 2017 10:53:11 +0000 Received: from BY2FFO11FD029.protection.gbl (2a01:111:f400:7c0c::115) by BN6PR03CA0094.outlook.office365.com (2603:10b6:405:6f::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.56.11 via Frontend Transport; Sat, 16 Sep 2017 10:53:11 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD029.mail.protection.outlook.com (10.1.14.212) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.13.11 via Frontend Transport; Sat, 16 Sep 2017 10:53:10 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v8GAr6um028328; Sat, 16 Sep 2017 03:53:08 -0700 From: Hemant Agrawal To: CC: , Date: Sat, 16 Sep 2017 16:22:15 +0530 Message-ID: <1505559161-29222-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505559161-29222-1-git-send-email-hemant.agrawal@nxp.com> References: <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> <1505559161-29222-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131500327909558752; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(376002)(346002)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(76176999)(8656003)(50986999)(86362001)(36756003)(47776003)(105606002)(50466002)(53936002)(54906002)(33646002)(48376002)(104016004)(106466001)(97736004)(4326008)(2351001)(2906002)(110136004)(5003940100001)(68736007)(8676002)(50226002)(81166006)(16586007)(81156014)(6666003)(85426001)(8936002)(6916009)(2950100002)(77096006)(5660300001)(498600001)(316002)(356003)(189998001)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2692; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD029; 1:o+OjzQdM+oukgacrfNBI9yZCwgVd40VAGIukwxPusjADTQHEzotYBtt7s2eb8R1QT1s2i+Kv2eHDi4Z1AVh7YXIaJhzyI8Z8RnUdO9i6PrzciyF0Qnm8v1/5hbja6Rnn MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eca6ac9e-e443-42bf-89e0-08d4fcf11f5c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN6PR03MB2692; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2692; 3:WgfC2EPYrHs8OqV2TQpZtGNgvZzEI6DWqDVrTiWN6Yi9TFtbTgMujS7WHmuCKBOcP7ZL44Ti7vfc8pSfVUMMqZaIzJdJ5rlYyflLOaZ0ddRYcUpuYQyrdFhOm1BRVr7Ljigvj46WBzp9axfcP+JYh8MK9bwEIeUQoVSK0gXjpQWUHdGlKZyN/r8t3NF9kE7WqGHLOU6cSWjj21UDdBDOcuvldB2QPDE2v4+BgUb1QYHTLSorY9kQCL3EtR1vVT6ghN7uh57cCtSl1ptFrTI2XLF78AnY0jj1tuJjV4frggwuqokfB9X+QD7V0QtdXPsf//FPlfLAQqzMa8GJQYOuEXSsi5M5BwK81mO4B6Fs1oY=; 25:7DGw3kKOGX5hWinY4DkG1uTkahHVp6DJlDTvym3kW5C6Web5b0SCENh3gs/8JwsdcyE8G3gn/72Ixyn4NTHYB4+lGRgYmHHV+Gd0ZdLFonAaIttSghgPMn7HdNlFgdFHG4NQlF1akyzUwefY+oI58/SvDxGWMhPml9bTwES05L4vG+XSg7Niwp8/cEW8oW3r4H1t7cuG8Q2zalHeTVBQWyHw/CRHPVVlNqr+5jVi0LRnHZLWJGGpbLub1uiMMhXTfUo/D5aEdo4H+ogy6+LsMR73fGmhNXZVhCZP+ylWJcGqDwvppaq+MgPad3RMuI3NjanQZlhDOxL0APXc+yx86A== X-MS-TrafficTypeDiagnostic: BN6PR03MB2692: X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2692; 31:DH43SKqO+bFTM2Mg48UunHDjZeW69YjIp+OsOnPnJxFYX4LhHus1A4n/cpvSgD3BZBlUzRj4pWjQJhXn7KvBksxmawL8tzjrxC8MKVD9WRnui0ATFO3ppbd9qVoSWsYZxz/noXDcuYdUQiBLaIQWBA5/ZiioBsGkWt2fXPXae3JnsuZwktePguER4na3GHGnqTGCNdzsJDAecJykCJfq1QiY9X5+J1M7F0J7hgFfZCc=; 4:LNALmQ+N8HUHBxbyPARS6uNOBqyyNKe/8a8Pocemitzl2TVb13jNr8SXmTldEnblsonAfquPp+xzS7TSWSlCgrQNsgVhnB7/GxH61oSGhy7LMHDBTnJGGi/lrYqB+aIVZbv4iGDnuhj+ShHt+FoFC9qSJrDJsJEqavg7fWbVqZog4iC0xmXJPmtBs3+WZ0P3KkcndAj7BR5HSHa/PQyfyJmbYEhOpnXOF9QUvuAce1sbJgAHu9mmmxoS7qv2nR0ttpdXmq6JwSHW75fEZWtCL/H4phj2xpUpgREJup1oCvFKi2H9ihXLBSpR8w90XhU1/yIyLVQFqDxxo9eIbPzvFg== X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(788757137089); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(100000703101)(100105400095)(3002001)(10201501046)(6055026)(6096035)(20161123565025)(20161123561025)(20161123563025)(20161123559100)(20161123556025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR03MB2692; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR03MB2692; X-Forefront-PRVS: 0432A04947 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2692; 23:KpYw0ULv9P21ZeCSNbFJNUDnuU7BirA8qthPVfLcw?= FEc4jhLY+268WqD2LxlV52AM0BAVL9DC5uJt66QW7wIE+FSsQfIi9TwaIP6uA8Hq+QUIgTaM0mdOU5emS2elp1X9DqaiXYxmAnpgy9Hf1aMlC+5wcJyLNoVyeUWx38sXTN4+jS4NmIvuRQS7XZaBId1QP19HqKYT1IDGbxrxmQwM+9Z7wT+n7oPrEzs4M+rtXYj4UvR/uvFP7c3QiScwBnE4lWsVa7cxrsAFE9ybPi3CAE8rAG1UGAKwcMfRJ2xl3XUtUH+gf60wiTe7PoWfdz9Pl4NvwqEj6JoEOCtyCvOmM6VlWYKcbQN6d1D0IEQ+IDUEvBD1iM+mSkL7l678o7mavk8j7E3sTXHEbryMBj3YTFh8JBkm1RpqTtB9evM/wOCxT9GMyQqr/ynQ8MYOUxPVgYEU6mAvrGDuYMX0Rxl7qRe5mH3KUn0MGQHxhcMwjKKuTAbV/RmZGjzx+lBI0CnqJBQ45cAJlHL/7yiGg7uynlwqsDABLMzF0DMUicRB/e2StXwS1uaSKih8MBHx8xGq6P+FPiqI205jzkeygNjbieKaLMGisl4SOJdc0wbmrYsTHGC1mQUKRX8LB6iFOwjgkITmz7hNzIPxHuBgKtV8ZJKTl4iChOmVvXunwccVGFBasuCH8ohkYUaJQJoU6g4Zc0VQ2XN/xudqwPop5K2DN5SYeoeBILfxkW7lWFLaro9TYV4OlUlT68RIU8COWvHUgOqGt351Ns+J3G/C2Nlhwkwm7aoaWEORKLwoJaLcM2M/DmKy6ANlJCy5Up6fWcASQwuA0mtDFcfqO0gCehZBL74UKuCH9XgSr2hFhwg/J5XGpxQOdarZQd7VOSWPvVomPMnYk0jqvYGN2I0DlSeH1xoksMXcp7rQ18rVF9NN7w9lsYCR538cro6wTLzQBCjjVjh/DdWsOYkVArcRxPhntUS3+3RSKQXFNC3hVF0JfsAtBzFzMG8tpkx1p7M92KvzvG6ZftgacGiHCBZEKVAcPBpqk/mXULGDH+LdgdKd53FeCZ+GvJZrt8Abq/q7EpOPRhMY2ONfqAHWEZdcdOYIRLtL2qz1YI3bawMVaQvGgDd6k5Nx9bRQNDPI7mML6R9Qah4roIMx5X54HfH5kxdGkfv2T9OGKK9CSGUAy6NG+Y= X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2692; 6:dGM1aFUhksPap9YZiT7XSBTih+KDKqXbUNfohuNdxY0+eZRCLl1vyf+1KwSxR9yf2kNPIKB1A7EqIXuBH3UVfhkh6d5Rw3T+AsfTw9PONIEbkgFjA3Qele+z5mCCSVRmkuw3lv/NuOxS56dfXFKDdYG1NidgA5aW+6TCUHWkKwSGK7sJSAMu9agH4S5GB79YOE1ct6tPfW4WlNqcSWhIiX+i0Ms0M28ENk/othYso/MffJPlZ3W4pic33S1GJB/gC7YuoTNMc1sZcZNChNs4baKOoukxtudB9GxYoJuC1UmpFo78Q71hvVD8e+SmkPSCGcMtTiyQ2Ugue9ChW06C2w==; 5:z4N85rOHZnp8ZDUFuNOj5IL2J047l2CjofZsC1SRfjmL28cRN11me+JJvIRD/nxRxA5Oi6U0kRr+BjpgmfxrDmLH7uMIX6VaEAQEymdjtgEFcVE96mA7Qd5HqMnmdp+mT2s7/8vp9vg60BH2c0RvWnsIITte9A06jRoRUKx3fHs=; 24:kNoIZMmejTjPSJhIA+Y4sGwyECZ9PAcjNpIM+QwFnf/Zg/u4mm6VmyQJK4lsz4BIjbYFMoz/JIAZRDLxBY1BmKTU4QNbCg/Eyz0KKfayaK8=; 7:oOSSLqA8BWIvWP+OaEXFUUh0r4DV7m3UeGXu3di35AgqB7IKByiXp0+xvIDFrjISylthIYI2N9xO0TlPyYOK9mp8eRU8gmGA608zC2FBG4AjcGkTVWRQxdIMNfbMsWiDDLxG3TzEpljTO88sLOI/9ISqVbLcw2r9xJ2kMfVC1zhAIGEaV5kpdsz7llMgH59uYvelS9odzuRFTDVhdnUf6WMQV7bl5sKwayfImSNrSOg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2017 10:53:10.7686 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2692 Subject: [dpdk-dev] [PATCH v3 01/27] bus/fslmc: qbman replace word copy with memcpy X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Haiying Wang The word_copy is not as efficient as expected, so remove it from this driver. Signed-off-by: Haiying Wang Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/compat.h | 42 -------------------------------- drivers/bus/fslmc/qbman/qbman_portal.c | 12 ++++----- drivers/bus/fslmc/qbman/qbman_sys.h | 9 ------- 3 files changed, 5 insertions(+), 58 deletions(-) -- 2.7.4 diff --git a/drivers/bus/fslmc/qbman/include/compat.h b/drivers/bus/fslmc/qbman/include/compat.h index 529f1ea..7b69fd1 100644 --- a/drivers/bus/fslmc/qbman/include/compat.h +++ b/drivers/bus/fslmc/qbman/include/compat.h @@ -229,48 +229,6 @@ typedef uint32_t phandle; #define __raw_readl(p) (*(const volatile unsigned int *)(p)) #define __raw_writel(v, p) {*(volatile unsigned int *)(p) = (v); } -/* memcpy() stuff - when you know alignments in advance */ -#ifdef CONFIG_TRY_BETTER_MEMCPY -static inline void copy_words(void *dest, const void *src, size_t sz) -{ - u32 *__dest = dest; - const u32 *__src = src; - size_t __sz = sz >> 2; - - QBMAN_BUG_ON((unsigned long)dest & 0x3); - QBMAN_BUG_ON((unsigned long)src & 0x3); - QBMAN_BUG_ON(sz & 0x3); - while (__sz--) - *(__dest++) = *(__src++); -} - -static inline void copy_shorts(void *dest, const void *src, size_t sz) -{ - u16 *__dest = dest; - const u16 *__src = src; - size_t __sz = sz >> 1; - - QBMAN_BUG_ON((unsigned long)dest & 0x1); - QBMAN_BUG_ON((unsigned long)src & 0x1); - QBMAN_BUG_ON(sz & 0x1); - while (__sz--) - *(__dest++) = *(__src++); -} - -static inline void copy_bytes(void *dest, const void *src, size_t sz) -{ - u8 *__dest = dest; - const u8 *__src = src; - - while (sz--) - *(__dest++) = *(__src++); -} -#else -#define copy_words memcpy -#define copy_shorts memcpy -#define copy_bytes memcpy -#endif - /* Completion stuff */ #define DECLARE_COMPLETION(n) int n = 0 #define complete(n) { *n = 1; } diff --git a/drivers/bus/fslmc/qbman/qbman_portal.c b/drivers/bus/fslmc/qbman/qbman_portal.c index dd62e9a..f360760 100644 --- a/drivers/bus/fslmc/qbman/qbman_portal.c +++ b/drivers/bus/fslmc/qbman/qbman_portal.c @@ -480,8 +480,8 @@ static int qbman_swp_enqueue_array_mode(struct qbman_swp *s, return -EBUSY; p = qbman_cena_write_start_wo_shadow(&s->sys, QBMAN_CENA_SWP_EQCR(EQAR_IDX(eqar))); - word_copy(&p[1], &cl[1], 7); - word_copy(&p[8], fd, sizeof(*fd) >> 2); + memcpy(&p[1], &cl[1], 28); + memcpy(&p[8], fd, sizeof(*fd)); /* Set the verb byte, have to substitute in the valid-bit */ lwsync(); p[0] = cl[0] | EQAR_VB(eqar); @@ -512,8 +512,8 @@ static int qbman_swp_enqueue_ring_mode(struct qbman_swp *s, p = qbman_cena_write_start_wo_shadow(&s->sys, QBMAN_CENA_SWP_EQCR(s->eqcr.pi & 7)); - word_copy(&p[1], &cl[1], 7); - word_copy(&p[8], fd, sizeof(*fd) >> 2); + memcpy(&p[1], &cl[1], 28); + memcpy(&p[8], fd, sizeof(*fd)); lwsync(); /* Set the verb byte, have to substitute in the valid-bit */ p[0] = cl[0] | s->eqcr.pi_vb; @@ -549,9 +549,7 @@ int qbman_swp_fill_ring(struct qbman_swp *s, } p = qbman_cena_write_start_wo_shadow(&s->sys, QBMAN_CENA_SWP_EQCR((s->eqcr.pi/* +burst_index */) & 7)); - /* word_copy(&p[1], &cl[1], 7); */ memcpy(&p[1], &cl[1], 7 * 4); - /* word_copy(&p[8], fd, sizeof(*fd) >> 2); */ memcpy(&p[8], fd, sizeof(struct qbman_fd)); /* lwsync(); */ @@ -799,7 +797,7 @@ int qbman_swp_pull(struct qbman_swp *s, struct qbman_pull_desc *d) */ qb_attr_code_encode(&code_pull_token, cl, s->desc.idx + 1); p = qbman_cena_write_start_wo_shadow(&s->sys, QBMAN_CENA_SWP_VDQCR); - word_copy(&p[1], &cl[1], 3); + memcpy(&p[1], &cl[1], 12); /* Set the verb byte, have to substitute in the valid-bit */ lwsync(); p[0] = cl[0] | s->vdq.valid_bit; diff --git a/drivers/bus/fslmc/qbman/qbman_sys.h b/drivers/bus/fslmc/qbman/qbman_sys.h index 5dbcaa5..9ea55de 100644 --- a/drivers/bus/fslmc/qbman/qbman_sys.h +++ b/drivers/bus/fslmc/qbman/qbman_sys.h @@ -47,15 +47,6 @@ #undef QBMAN_CINH_TRACE #undef QBMAN_CENA_TRACE -static inline void word_copy(void *d, const void *s, unsigned int cnt) -{ - uint32_t *dd = d; - const uint32_t *ss = s; - - while (cnt--) - *(dd++) = *(ss++); -} - /* Currently, the CENA support code expects each 32-bit word to be written in * host order, and these are converted to hardware (little-endian) order on * command submission. However, 64-bit quantities are must be written (and read)