Lines Matching refs:device

58 void *dma_alloc_coherent(struct device *dev, size_t size,
61 void dma_free_coherent(struct device *dev, size_t size,
64 static inline dma_addr_t dma_map_single(struct device *dev, void *ptr, in dma_map_single()
73 static inline void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, in dma_unmap_single()
78 extern int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
80 extern dma_addr_t dma_map_page(struct device *dev, struct page *page,
82 extern void dma_unmap_page(struct device *dev, dma_addr_t dma_address,
84 extern void dma_unmap_sg(struct device *dev, struct scatterlist *sg,
86 extern void dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle,
88 extern void dma_sync_single_for_device(struct device *dev,
90 extern void dma_sync_single_range_for_cpu(struct device *dev,
93 extern void dma_sync_single_range_for_device(struct device *dev,
96 extern void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg,
98 extern void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg,
101 static inline int dma_supported(struct device *dev, u64 mask) in dma_supported()
106 static inline int dma_set_mask(struct device *dev, u64 mask) in dma_set_mask()
116 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error()
125 static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size, in dma_cache_sync()
131 extern int dma_common_mmap(struct device *dev, struct vm_area_struct *vma,
133 extern int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,