From patchwork Thu Jan 12 19:07:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9514019 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 56CF1601E5 for ; Thu, 12 Jan 2017 19:10:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4815F286DB for ; Thu, 12 Jan 2017 19:10:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CC912870C; Thu, 12 Jan 2017 19:10:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,URIBL_BLACK autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91598286DB for ; Thu, 12 Jan 2017 19:10:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751121AbdALTId (ORCPT ); Thu, 12 Jan 2017 14:08:33 -0500 Received: from mail-by2nam03on0086.outbound.protection.outlook.com ([104.47.42.86]:42144 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750746AbdALTIL (ORCPT ); Thu, 12 Jan 2017 14:08:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=1XUY3n4EwXxKG1DVho8dTIsZvE9rm9ZNg7h7dGXyZHs=; b=TeFUiN3wsxgNfeub0HOp3VLAcI/R9ARfG3iDm/yPqgetwEAjqPmm+DJ0Ho2H9S/4nNm4LWdehPBIeUCm1CIfowgp9ouJZFyk6JY/c1zb1pQH0kOf0Ykz66AMNFxjpOf3GGlyp8CrktJM4w50hKKhx8RJc1Tz41WSgr77oPo9R2g= Received: from MWHPR02CA0021.namprd02.prod.outlook.com (10.168.209.159) by BLUPR02MB034.namprd02.prod.outlook.com (10.242.191.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Thu, 12 Jan 2017 19:08:08 +0000 Received: from BY2FFO11OLC013.protection.gbl (2a01:111:f400:7c0c::180) by MWHPR02CA0021.outlook.office365.com (2603:10b6:300:4b::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12 via Frontend Transport; Thu, 12 Jan 2017 19:08:08 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BY2FFO11OLC013.mail.protection.outlook.com (10.1.15.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Thu, 12 Jan 2017 19:08:07 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 64.A0.65426.B61D7785; Thu, 12 Jan 2017 10:56:43 -0800 (PST) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Thu, 12 Jan 2017 11:07:59 -0800 X-AuditID: 0ac94369-b62949800001ff92-f1-5877d16b3e29 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id E1.EF.09762.F04D7785; Thu, 12 Jan 2017 11:07:59 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , , "Greg Kroah-Hartman" , Bart Van Assche Subject: [PATCH v2 26/26] IB/core: Remove ib_dma_map_*() functions Date: Thu, 12 Jan 2017 11:07:18 -0800 Message-ID: <20170112190718.6728-27-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170112190718.6728-1-bart.vanassche@sandisk.com> References: <20170112190718.6728-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrILMWRmVeSWpSXmKPExsXCddJ5kW72xfIIgx/HlCxenv/AatG8eD2b xeVdc9gsnh3qZXFg8dg/dw27x/t9V9k8Pm+SC2CO4rJJSc3JLEst0rdL4Mpo2reAqeC1fcWs Lw3sDYzHjLoYOTgkBEwk7v0I7WLk4hASWMok8eLGD0YIZxujxIsHs9i6GDnBip58ucUOkdjI KLHs9VqwBJuAkcS39zNZQGwRATWJTa8WgRUxCyxmlGg/vYwZJCEs4CTx5n4bC8g6FgFVicbv +iBhXgF7iTOfWlkhFshL7Gq7CGZzAsW//b/ECGILCdhJ7DrwnwVkpoRAE6tE96nV7BDNghIn Zz4BW8wsICFx8MULZogGdYmTS+YzTWAUmoWkbBaSsgWMTKsYxXIzc4pz01MLDE31ihPzUjKL s/WS83M3MUICOnMH490n3ocYBTgYlXh4d9iURQixJpYVV+YeYpTgYFYS4Z11vjxCiDclsbIq tSg/vqg0J7X4EKM0B4uSOK/bvS9hQgLpiSWp2ampBalFMFkmDk6pBsagviafFQ+Yj8+Wf/Cw TupA/B9Vy6TsvdVi+ydwzwx4y/+Oxaw2s1Yshvehn0WsnvbPqwez9RbfWCYlVfvPZabP2fK3 tkv5jH99Ef4S7qa6Q+yalZyI6EOev3s/3go32PteZJ9xnYNyhzjjiTmnV3j+a7DWvG7q5ZvA t7xpgc+vj7JyTV8SbiixFGckGmoxFxUnAgC4PQ7IZAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAJMWRmVeSWpSXmKPExsXCtZGTTZf/SnmEwd+LghYHf7YxWrw8/4HV onnxejaLy7vmsFk8O9TL4sDqsX/uGnaP9/uusnlMW3OeyePzJrkAligum5TUnMyy1CJ9uwSu jKZ9C5gKXttXzPrSwN7AeMyoi5GTQ0LAROLJl1vsXYxcHEIC6xkllh1cyAaSYBMwkvj2fiYL iC0ioCax6dUidhCbWWAho8TEX1IgtrCAk8Sb+21ANRwcLAKqEo3f9UHCvAL2EhefPWGHmC8v savtIiuIzQkU//b/EiOILSRgJ7HrwH+WCYzcCxgZVjGK5WbmFOemZxYYGukVJ+alZBZn6yXn 525ihIRB1A7G6xPNDzEycXBKNTDysrxMld1eu3LGnc+SzEe5g9uXbaz/9mHaXvPs9uc+52LX ZDhF3HmxrkvZkb+mxSl5VuV0mR+HV7I4XNu+cCn72nbLL5MEFzonqWVuVxdkeltSVnVy45Qd bUqXjzhrJ1SmTWCd8Tt/9uGJX103XXxz8mj7tlb2+0z1qd471UtUpvn/u3vo9CIHJZbijERD Leai4kQAhzERyLMBAAA= MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39840400002)(39450400003)(39860400002)(39850400002)(39410400002)(2980300002)(438002)(189002)(199003)(5660300001)(36756003)(4001430100002)(92566002)(106466001)(1076002)(38730400001)(97736004)(2906002)(76176999)(48376002)(6666003)(68736007)(33646002)(107886002)(110136003)(50986999)(6916009)(189998001)(50466002)(2950100002)(4326007)(626004)(5003940100001)(81166006)(77096006)(81156014)(8936002)(54906002)(8676002)(69596002)(2270400002)(305945005)(47776003)(356003)(86362001)(50226002)(50929005); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR02MB034; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC013; 1:MImtIxq0EdFLLqZBGOhxphIbdw0Gq3BT9dA9MxGQhYLBORktpEsnZ/uFAOyrqcpSElieHnqFzigltgFluTOvlLad/ZAOZnDpmegSD5XJvyyUPo+P5MIBPw7ATmhJLLaxlCO9ilL1v7SKcnY6oZTB6yMKO55Rv+WGmb1k3g7qLNoQ0aXjJKm+05oH76qFviA8ikjvOvgUpzz26A+L196BtuCUW0QLMprmLe8KLa2LiMTmqAj6BWs77Ce+InQxqgccK4B2KOU5aOadY2CTQK38gh/H08fsXf9nv5bGDSggXOJAromADLUSKDaWmFTekq55gUPqMCTb/hU9LKJnDGP5Cv3maC5U+TyY1QMN02P9eHwBMiXNSeZGbtTv/FVxaWZuNyeHXn4TsTQ9BTtW024+5cMAXTPBHa7QxJb76GM0P7N3GdmdxXLsmHNOEYAorIvOjwtfvBJeMLlvZiQ6Qyqqx3aIkR6lKQIhRBwtKoM99NnRm16LGY7BroLzKlUO5/fr X-MS-Office365-Filtering-Correlation-Id: e872d1e4-66c8-49d0-955c-08d43b1e580a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BLUPR02MB034; X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB034; 3:+Pt7d+BwE1Mm0xMFw5qRAGrRSJyKDasqkf/ibYrBielleUnkOUMS1KRPX/+q75dAnRp8lzg6heoo75I0LCltn6hi9EB7P9CtpaOUgw3Yb8hMgAZbkldqRccBCM7F/2CqW+cfVe1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3x5RUQ==; 20:P+Wqw+4n0jEnHQaSqP/ZyM/ZDGnxolRUG8bQbSZFmAIi5AOYwclTJB/fIDyRYD+/FbhvO54Io6CfcI00ijTzhjGurYHcU48jAW2OwYFDmLStBlWDfBJT9ms0IPhZgbc0Jaird4p4Xxj8LQCgzNbpUyyuliosF+i/T4VRhNXJPIN8j1uZL3lBN1AOFqCWREr+SW2Wu0TjuTxzFT2hsXj9GjDFczZg24BWgLmo+52YChxK8n5h2kyOjV7QF5ZLBjwPSBUz8oq+icHpQU8oJaaSc2ZK4eVMJSVAXTlM2wkl1j+/65WStDIzPOJjJiUZCR49HoiG62D1TvCGEOv8LwcJZ83TZ/NnH8UeVQScrhXmuxirL3qLYrMkEWjcMGaz5XfFoxEW4ElsJ5OEGdP466PAbqbGUyoqlLd59FNZlx+Ea53lW5ZwUSGjMbj28IiZ9eQqTgklC/xaRtRLo3QqtbsK7te0kw9DnGG4bWnATO3Apt6RcRAIPOr3TB3O/FVC/lCt X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569)(235219596079481); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(13016025)(13018025)(10201501046)(3002001)(6055026)(2002001)(6041248)(20161123562025)(20161123564025)(20161123555025)(20161123560025)(20161123558021)(6072148); SRVR:BLUPR02MB034; BCL:0; PCL:0; RULEID:; SRVR:BLUPR02MB034; X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB034; 4:UBION8HCgUGPTzy56Be7x0Wv1bv9Ma0DvYhkxfnizG5mYDwshd4q8Khr3QReSTeFKaOa0WEBhjdhNVm4fZa1k1IxVN0iEVIxL0GXx36z1t1ic5Hzw51+fX8dTnhXfXBaQO8A7IcqeaW0belK6gWYRiwy9EP6eV4BU6BKK+IBiG4b4ymFrLv8fHDKdV4wKQno6Nb53c/SvFC0KU9d0z7vUfJrtE7xo5XeJQ7V5Wv8mfjwwTnL8cowDa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=?us-ascii?Q?oFnuxfK2rbbHtVbQPApW1l0k8cHC23lZYCrgfGy6VRDPOd0Ga7GHQvtKxti5?= =?us-ascii?Q?j3NiK8zr+fmT/Gv6EE7M26hk46TIBd+segAZKblee0mLmiomUTUg+OsFzyW1?= =?us-ascii?Q?bS3a4aC+yV8dGLBmeNU29q7DQl6zQF2iDe+JkV4wlnDHNlyVHT0U0KTJcsrR?= =?us-ascii?Q?Pds8iIjg0KG2w9T95y1iMl/psbuNExKlu2OgI/xfKQZRCsfAGP5fBo1EPaBs?= =?us-ascii?Q?dtJlUYI4+H+0aL6G3W/8xvEMzjBAIb0cDSwqrKJKaY85HzCtKhIRbPsk+yaZ?= =?us-ascii?Q?DL+1YvO0tYRaw7frEExP2D8jkD4RLgjxwfkqS2LHOeZ95tOZJLSpN19jH2Wt?= =?us-ascii?Q?Td9aLHk6fURvHWn7et9x4B98+FrA3hqlomidB0l/7YUGpshFJHn7v8hwid0z?= =?us-ascii?Q?PZbM+SeWy3Uh19lREZ9iu6gkluCo73M1bD3Wx/KNznB2y6N6jd0lhR48xcrr?= =?us-ascii?Q?BA5f9htgguTA6+Np2nEpnIlUGv7y7Br44VgjPdyq8MFQsBV88VrawSTOM/u+?= =?us-ascii?Q?oMkfDncu4BssQZhthaUdum7XHTr4x+FWD1zlUjNiPqzR0N4tqFoih41dHDze?= =?us-ascii?Q?YNNw+aPaFC7IPyzzcwfZJBjYa62ruI7gszOZZVgA0+VTuAapycPdiqpdDx+s?= =?us-ascii?Q?9NMWCfNTOuNhCMwf0T+rDGPOpcw3O5OEN01RoUI7Bi0T7ttDRuywFpx1Wzvg?= =?us-ascii?Q?dS/PlztXAtTIn/7n+u9/n5xJ2734BTu5W4+mQfvunl7VcxuZhmNsfcx0iNuD?= =?us-ascii?Q?fm7o6jpe7MQQVDU/B7Bw+DXiv7Xp+sIgBG?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB034; 6:069R7JfjJCXzFeplxnP31hXpAj6UsVnBe9jUOb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AgO15x38wh9YFOg3tHdh8WbxILhX6lrc74QB1oiFSpk9z2/LWdI+4AZ8U3/iSlPRe20GOXRF3eUcnW2COsH23iMSKUSI7YdES9RZEXmRdM1iAJTJVcfVomNIi6MK3Kmb/3IdRGpFrxeh0WHI/6+rJz1zUmf2HlKEDXXSif7w== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2017 19:08:07.5264 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR02MB034 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the ib_dma_map_*() functions because due to previous patches these are no longer used. Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Reviewed-by: Sagi Grimberg --- include/rdma/ib_verbs.h | 218 ------------------------------------------------ 1 file changed, 218 deletions(-) diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index de8dfb61d2b6..b4b83603b5df 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -2912,224 +2912,6 @@ static inline int ib_req_ncomp_notif(struct ib_cq *cq, int wc_cnt) } /** - * ib_dma_mapping_error - check a DMA addr for error - * @dev: The device for which the dma_addr was created - * @dma_addr: The DMA address to check - */ -static inline int ib_dma_mapping_error(struct ib_device *dev, u64 dma_addr) -{ - return dma_mapping_error(dev->dma_device, dma_addr); -} - -/** - * ib_dma_map_single - Map a kernel virtual address to DMA address - * @dev: The device for which the dma_addr is to be created - * @cpu_addr: The kernel virtual address - * @size: The size of the region in bytes - * @direction: The direction of the DMA - */ -static inline u64 ib_dma_map_single(struct ib_device *dev, - void *cpu_addr, size_t size, - enum dma_data_direction direction) -{ - return dma_map_single(dev->dma_device, cpu_addr, size, direction); -} - -/** - * ib_dma_unmap_single - Destroy a mapping created by ib_dma_map_single() - * @dev: The device for which the DMA address was created - * @addr: The DMA address - * @size: The size of the region in bytes - * @direction: The direction of the DMA - */ -static inline void ib_dma_unmap_single(struct ib_device *dev, - u64 addr, size_t size, - enum dma_data_direction direction) -{ - dma_unmap_single(dev->dma_device, addr, size, direction); -} - -static inline u64 ib_dma_map_single_attrs(struct ib_device *dev, - void *cpu_addr, size_t size, - enum dma_data_direction direction, - unsigned long dma_attrs) -{ - return dma_map_single_attrs(dev->dma_device, cpu_addr, size, - direction, dma_attrs); -} - -static inline void ib_dma_unmap_single_attrs(struct ib_device *dev, - u64 addr, size_t size, - enum dma_data_direction direction, - unsigned long dma_attrs) -{ - return dma_unmap_single_attrs(dev->dma_device, addr, size, - direction, dma_attrs); -} - -/** - * ib_dma_map_page - Map a physical page to DMA address - * @dev: The device for which the dma_addr is to be created - * @page: The page to be mapped - * @offset: The offset within the page - * @size: The size of the region in bytes - * @direction: The direction of the DMA - */ -static inline u64 ib_dma_map_page(struct ib_device *dev, - struct page *page, - unsigned long offset, - size_t size, - enum dma_data_direction direction) -{ - return dma_map_page(dev->dma_device, page, offset, size, direction); -} - -/** - * ib_dma_unmap_page - Destroy a mapping created by ib_dma_map_page() - * @dev: The device for which the DMA address was created - * @addr: The DMA address - * @size: The size of the region in bytes - * @direction: The direction of the DMA - */ -static inline void ib_dma_unmap_page(struct ib_device *dev, - u64 addr, size_t size, - enum dma_data_direction direction) -{ - dma_unmap_page(dev->dma_device, addr, size, direction); -} - -/** - * ib_dma_map_sg - Map a scatter/gather list to DMA addresses - * @dev: The device for which the DMA addresses are to be created - * @sg: The array of scatter/gather entries - * @nents: The number of scatter/gather entries - * @direction: The direction of the DMA - */ -static inline int ib_dma_map_sg(struct ib_device *dev, - struct scatterlist *sg, int nents, - enum dma_data_direction direction) -{ - return dma_map_sg(dev->dma_device, sg, nents, direction); -} - -/** - * ib_dma_unmap_sg - Unmap a scatter/gather list of DMA addresses - * @dev: The device for which the DMA addresses were created - * @sg: The array of scatter/gather entries - * @nents: The number of scatter/gather entries - * @direction: The direction of the DMA - */ -static inline void ib_dma_unmap_sg(struct ib_device *dev, - struct scatterlist *sg, int nents, - enum dma_data_direction direction) -{ - dma_unmap_sg(dev->dma_device, sg, nents, direction); -} - -static inline int ib_dma_map_sg_attrs(struct ib_device *dev, - struct scatterlist *sg, int nents, - enum dma_data_direction direction, - unsigned long dma_attrs) -{ - return dma_map_sg_attrs(dev->dma_device, sg, nents, direction, - dma_attrs); -} - -static inline void ib_dma_unmap_sg_attrs(struct ib_device *dev, - struct scatterlist *sg, int nents, - enum dma_data_direction direction, - unsigned long dma_attrs) -{ - dma_unmap_sg_attrs(dev->dma_device, sg, nents, direction, dma_attrs); -} -/** - * ib_sg_dma_address - Return the DMA address from a scatter/gather entry - * @dev: The device for which the DMA addresses were created - * @sg: The scatter/gather entry - * - * Note: this function is obsolete. To do: change all occurrences of - * ib_sg_dma_address() into sg_dma_address(). - */ -static inline u64 ib_sg_dma_address(struct ib_device *dev, - struct scatterlist *sg) -{ - return sg_dma_address(sg); -} - -/** - * ib_sg_dma_len - Return the DMA length from a scatter/gather entry - * @dev: The device for which the DMA addresses were created - * @sg: The scatter/gather entry - * - * Note: this function is obsolete. To do: change all occurrences of - * ib_sg_dma_len() into sg_dma_len(). - */ -static inline unsigned int ib_sg_dma_len(struct ib_device *dev, - struct scatterlist *sg) -{ - return sg_dma_len(sg); -} - -/** - * ib_dma_sync_single_for_cpu - Prepare DMA region to be accessed by CPU - * @dev: The device for which the DMA address was created - * @addr: The DMA address - * @size: The size of the region in bytes - * @dir: The direction of the DMA - */ -static inline void ib_dma_sync_single_for_cpu(struct ib_device *dev, - u64 addr, - size_t size, - enum dma_data_direction dir) -{ - dma_sync_single_for_cpu(dev->dma_device, addr, size, dir); -} - -/** - * ib_dma_sync_single_for_device - Prepare DMA region to be accessed by device - * @dev: The device for which the DMA address was created - * @addr: The DMA address - * @size: The size of the region in bytes - * @dir: The direction of the DMA - */ -static inline void ib_dma_sync_single_for_device(struct ib_device *dev, - u64 addr, - size_t size, - enum dma_data_direction dir) -{ - dma_sync_single_for_device(dev->dma_device, addr, size, dir); -} - -/** - * ib_dma_alloc_coherent - Allocate memory and map it for DMA - * @dev: The device for which the DMA address is requested - * @size: The size of the region to allocate in bytes - * @dma_handle: A pointer for returning the DMA address of the region - * @flag: memory allocator flags - */ -static inline void *ib_dma_alloc_coherent(struct ib_device *dev, - size_t size, - dma_addr_t *dma_handle, - gfp_t flag) -{ - return dma_alloc_coherent(dev->dma_device, size, dma_handle, flag); -} - -/** - * ib_dma_free_coherent - Free memory allocated by ib_dma_alloc_coherent() - * @dev: The device for which the DMA addresses were allocated - * @size: The size of the region - * @cpu_addr: the address returned by ib_dma_alloc_coherent() - * @dma_handle: the DMA address returned by ib_dma_alloc_coherent() - */ -static inline void ib_dma_free_coherent(struct ib_device *dev, - size_t size, void *cpu_addr, - dma_addr_t dma_handle) -{ - dma_free_coherent(dev->dma_device, size, cpu_addr, dma_handle); -} - -/** * ib_dereg_mr - Deregisters a memory region and removes it from the * HCA translation table. * @mr: The memory region to deregister.