Lines Matching refs:device

19 	void* (*alloc)(struct device *dev, size_t size,
22 void (*free)(struct device *dev, size_t size,
25 int (*mmap)(struct device *, struct vm_area_struct *,
28 int (*get_sgtable)(struct device *dev, struct sg_table *sgt, void *,
31 dma_addr_t (*map_page)(struct device *dev, struct page *page,
35 void (*unmap_page)(struct device *dev, dma_addr_t dma_handle,
42 int (*map_sg)(struct device *dev, struct scatterlist *sg,
45 void (*unmap_sg)(struct device *dev,
49 void (*sync_single_for_cpu)(struct device *dev,
52 void (*sync_single_for_device)(struct device *dev,
55 void (*sync_sg_for_cpu)(struct device *dev,
58 void (*sync_sg_for_device)(struct device *dev,
61 int (*mapping_error)(struct device *dev, dma_addr_t dma_addr);
62 int (*dma_supported)(struct device *dev, u64 mask);
63 int (*set_dma_mask)(struct device *dev, u64 mask);
65 u64 (*get_required_mask)(struct device *dev);
81 static inline int is_device_dma_capable(struct device *dev) in is_device_dma_capable()
92 static inline u64 dma_get_mask(struct device *dev) in dma_get_mask()
100 int dma_set_coherent_mask(struct device *dev, u64 mask);
102 static inline int dma_set_coherent_mask(struct device *dev, u64 mask) in dma_set_coherent_mask()
117 static inline int dma_set_mask_and_coherent(struct device *dev, u64 mask) in dma_set_mask_and_coherent()
129 static inline int dma_coerce_mask_and_coherent(struct device *dev, u64 mask) in dma_coerce_mask_and_coherent()
135 extern u64 dma_get_required_mask(struct device *dev);
138 static inline void arch_setup_dma_ops(struct device *dev, u64 dma_base, in arch_setup_dma_ops()
144 static inline void arch_teardown_dma_ops(struct device *dev) { } in arch_teardown_dma_ops()
147 static inline unsigned int dma_get_max_seg_size(struct device *dev) in dma_get_max_seg_size()
154 static inline unsigned int dma_set_max_seg_size(struct device *dev, in dma_set_max_seg_size()
164 static inline unsigned long dma_get_seg_boundary(struct device *dev) in dma_get_seg_boundary()
171 static inline int dma_set_seg_boundary(struct device *dev, unsigned long mask) in dma_set_seg_boundary()
181 static inline unsigned long dma_max_pfn(struct device *dev) in dma_max_pfn()
187 static inline void *dma_zalloc_coherent(struct device *dev, size_t size, in dma_zalloc_coherent()
213 dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, in dma_declare_coherent_memory()
220 dma_release_declared_memory(struct device *dev) in dma_release_declared_memory()
225 dma_mark_declared_memory_occupied(struct device *dev, in dma_mark_declared_memory_occupied()
235 extern void *dmam_alloc_coherent(struct device *dev, size_t size,
237 extern void dmam_free_coherent(struct device *dev, size_t size, void *vaddr,
239 extern void *dmam_alloc_noncoherent(struct device *dev, size_t size,
241 extern void dmam_free_noncoherent(struct device *dev, size_t size, void *vaddr,
244 extern int dmam_declare_coherent_memory(struct device *dev,
248 extern void dmam_release_declared_memory(struct device *dev);
250 static inline int dmam_declare_coherent_memory(struct device *dev, in dmam_declare_coherent_memory()
257 static inline void dmam_release_declared_memory(struct device *dev) in dmam_release_declared_memory()
278 static inline void *dma_alloc_writecombine(struct device *dev, size_t size, in dma_alloc_writecombine()
286 static inline void dma_free_writecombine(struct device *dev, size_t size, in dma_free_writecombine()
294 static inline int dma_mmap_writecombine(struct device *dev, in dma_mmap_writecombine()