Lines Matching refs:device

8 static inline int dma_supported(struct device *dev, u64 mask)  in dma_supported()
13 static inline int dma_set_mask(struct device *dev, u64 mask) in dma_set_mask()
18 extern void *dma_alloc_coherent(struct device *, size_t,
20 extern void dma_free_coherent(struct device *, size_t,
23 static inline void *dma_alloc_attrs(struct device *dev, size_t size, in dma_alloc_attrs()
31 static inline void dma_free_attrs(struct device *dev, size_t size, in dma_free_attrs()
39 static inline void *dma_alloc_noncoherent(struct device *dev, size_t size, in dma_alloc_noncoherent()
44 static inline void dma_free_noncoherent(struct device *dev, size_t size, in dma_free_noncoherent()
49 static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size, in dma_cache_sync()
55 extern dma_addr_t dma_map_single(struct device *, void *, size_t,
57 static inline void dma_unmap_single(struct device *dev, dma_addr_t addr, in dma_unmap_single()
62 extern dma_addr_t dma_map_page(struct device *, struct page *,
65 static inline void dma_unmap_page(struct device *dev, dma_addr_t address, in dma_unmap_page()
70 extern int dma_map_sg(struct device *, struct scatterlist *, int,
72 static inline void dma_unmap_sg(struct device *dev, struct scatterlist *sg, in dma_unmap_sg()
77 extern void dma_sync_single_for_device(struct device *, dma_addr_t, size_t,
79 extern void dma_sync_sg_for_device(struct device *, struct scatterlist *, int,
82 static inline void dma_sync_single_range_for_device(struct device *dev, in dma_sync_single_range_for_device()
90 static inline void dma_sync_single_for_cpu(struct device *dev, dma_addr_t handle, in dma_sync_single_for_cpu()
95 static inline void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, in dma_sync_sg_for_cpu()
100 static inline void dma_sync_single_range_for_cpu(struct device *dev, in dma_sync_single_range_for_cpu()
108 static inline int dma_mapping_error(struct device *dev, dma_addr_t handle) in dma_mapping_error()
114 extern int dma_common_mmap(struct device *dev, struct vm_area_struct *vma,
116 extern int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,