aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/rdma/ib_verbs.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 6793f32ccb58..57777167dea7 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -1266,10 +1266,6 @@ struct ib_dma_mapping_ops {
1266 void (*unmap_sg)(struct ib_device *dev, 1266 void (*unmap_sg)(struct ib_device *dev,
1267 struct scatterlist *sg, int nents, 1267 struct scatterlist *sg, int nents,
1268 enum dma_data_direction direction); 1268 enum dma_data_direction direction);
1269 u64 (*dma_address)(struct ib_device *dev,
1270 struct scatterlist *sg);
1271 unsigned int (*dma_len)(struct ib_device *dev,
1272 struct scatterlist *sg);
1273 void (*sync_single_for_cpu)(struct ib_device *dev, 1269 void (*sync_single_for_cpu)(struct ib_device *dev,
1274 u64 dma_handle, 1270 u64 dma_handle,
1275 size_t size, 1271 size_t size,
@@ -2089,12 +2085,13 @@ static inline void ib_dma_unmap_sg_attrs(struct ib_device *dev,
2089 * ib_sg_dma_address - Return the DMA address from a scatter/gather entry 2085 * ib_sg_dma_address - Return the DMA address from a scatter/gather entry
2090 * @dev: The device for which the DMA addresses were created 2086 * @dev: The device for which the DMA addresses were created
2091 * @sg: The scatter/gather entry 2087 * @sg: The scatter/gather entry
2088 *
2089 * Note: this function is obsolete. To do: change all occurrences of
2090 * ib_sg_dma_address() into sg_dma_address().
2092 */ 2091 */
2093static inline u64 ib_sg_dma_address(struct ib_device *dev, 2092static inline u64 ib_sg_dma_address(struct ib_device *dev,
2094 struct scatterlist *sg) 2093 struct scatterlist *sg)
2095{ 2094{
2096 if (dev->dma_ops)
2097 return dev->dma_ops->dma_address(dev, sg);
2098 return sg_dma_address(sg); 2095 return sg_dma_address(sg);
2099} 2096}
2100 2097
@@ -2102,12 +2099,13 @@ static inline u64 ib_sg_dma_address(struct ib_device *dev,
2102 * ib_sg_dma_len - Return the DMA length from a scatter/gather entry 2099 * ib_sg_dma_len - Return the DMA length from a scatter/gather entry
2103 * @dev: The device for which the DMA addresses were created 2100 * @dev: The device for which the DMA addresses were created
2104 * @sg: The scatter/gather entry 2101 * @sg: The scatter/gather entry
2102 *
2103 * Note: this function is obsolete. To do: change all occurrences of
2104 * ib_sg_dma_len() into sg_dma_len().
2105 */ 2105 */
2106static inline unsigned int ib_sg_dma_len(struct ib_device *dev, 2106static inline unsigned int ib_sg_dma_len(struct ib_device *dev,
2107 struct scatterlist *sg) 2107 struct scatterlist *sg)
2108{ 2108{
2109 if (dev->dma_ops)
2110 return dev->dma_ops->dma_len(dev, sg);
2111 return sg_dma_len(sg); 2109 return sg_dma_len(sg);
2112} 2110}
2113 2111