Lines Matching refs:device

18 	void* (*alloc)(struct device *dev, size_t size,
21 void (*free)(struct device *dev, size_t size,
24 int (*mmap)(struct device *, struct vm_area_struct *,
27 int (*get_sgtable)(struct device *dev, struct sg_table *sgt, void *,
30 dma_addr_t (*map_page)(struct device *dev, struct page *page,
34 void (*unmap_page)(struct device *dev, dma_addr_t dma_handle,
41 int (*map_sg)(struct device *dev, struct scatterlist *sg,
44 void (*unmap_sg)(struct device *dev,
48 void (*sync_single_for_cpu)(struct device *dev,
51 void (*sync_single_for_device)(struct device *dev,
54 void (*sync_sg_for_cpu)(struct device *dev,
57 void (*sync_sg_for_device)(struct device *dev,
60 int (*mapping_error)(struct device *dev, dma_addr_t dma_addr);
61 int (*dma_supported)(struct device *dev, u64 mask);
62 int (*set_dma_mask)(struct device *dev, u64 mask);
64 u64 (*get_required_mask)(struct device *dev);
80 static inline int is_device_dma_capable(struct device *dev) in is_device_dma_capable()
91 static inline u64 dma_get_mask(struct device *dev) in dma_get_mask()
99 int dma_set_coherent_mask(struct device *dev, u64 mask);
101 static inline int dma_set_coherent_mask(struct device *dev, u64 mask) in dma_set_coherent_mask()
116 static inline int dma_set_mask_and_coherent(struct device *dev, u64 mask) in dma_set_mask_and_coherent()
128 static inline int dma_coerce_mask_and_coherent(struct device *dev, u64 mask) in dma_coerce_mask_and_coherent()
134 extern u64 dma_get_required_mask(struct device *dev);
137 static inline void arch_setup_dma_ops(struct device *dev, u64 dma_base, in arch_setup_dma_ops()
143 static inline void arch_teardown_dma_ops(struct device *dev) { } in arch_teardown_dma_ops()
146 static inline unsigned int dma_get_max_seg_size(struct device *dev) in dma_get_max_seg_size()
151 static inline unsigned int dma_set_max_seg_size(struct device *dev, in dma_set_max_seg_size()
161 static inline unsigned long dma_get_seg_boundary(struct device *dev) in dma_get_seg_boundary()
167 static inline int dma_set_seg_boundary(struct device *dev, unsigned long mask) in dma_set_seg_boundary()
177 static inline unsigned long dma_max_pfn(struct device *dev) in dma_max_pfn()
183 static inline void *dma_zalloc_coherent(struct device *dev, size_t size, in dma_zalloc_coherent()
209 dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, in dma_declare_coherent_memory()
216 dma_release_declared_memory(struct device *dev) in dma_release_declared_memory()
221 dma_mark_declared_memory_occupied(struct device *dev, in dma_mark_declared_memory_occupied()
231 extern void *dmam_alloc_coherent(struct device *dev, size_t size,
233 extern void dmam_free_coherent(struct device *dev, size_t size, void *vaddr,
235 extern void *dmam_alloc_noncoherent(struct device *dev, size_t size,
237 extern void dmam_free_noncoherent(struct device *dev, size_t size, void *vaddr,
240 extern int dmam_declare_coherent_memory(struct device *dev,
244 extern void dmam_release_declared_memory(struct device *dev);
246 static inline int dmam_declare_coherent_memory(struct device *dev, in dmam_declare_coherent_memory()
253 static inline void dmam_release_declared_memory(struct device *dev) in dmam_release_declared_memory()
274 static inline void *dma_alloc_writecombine(struct device *dev, size_t size, in dma_alloc_writecombine()
282 static inline void dma_free_writecombine(struct device *dev, size_t size, in dma_free_writecombine()
290 static inline int dma_mmap_writecombine(struct device *dev, in dma_mmap_writecombine()