Lines Matching defs:dma_addr
4040 * ib_virt_dma_to_ptr - Convert a dma_addr to a kernel pointer
4041 * @dma_addr: The DMA address
4044 * going through the dma_addr marshalling.
4046 static inline void *ib_virt_dma_to_ptr(u64 dma_addr)
4049 return (void *)(uintptr_t)dma_addr;
4053 * ib_virt_dma_to_page - Convert a dma_addr to a struct page
4054 * @dma_addr: The DMA address
4057 * through the dma_addr marshalling.
4059 static inline struct page *ib_virt_dma_to_page(u64 dma_addr)
4061 return virt_to_page(ib_virt_dma_to_ptr(dma_addr));
4066 * @dev: The device for which the dma_addr was created
4067 * @dma_addr: The DMA address to check
4069 static inline int ib_dma_mapping_error(struct ib_device *dev, u64 dma_addr)
4073 return dma_mapping_error(dev->dma_device, dma_addr);
4078 * @dev: The device for which the dma_addr is to be created
4109 * @dev: The device for which the dma_addr is to be created