Lines Matching refs:device

24 extern void *dma_direct_alloc_coherent(struct device *dev, size_t size,
27 extern void dma_direct_free_coherent(struct device *dev, size_t size,
30 extern int dma_direct_mmap_coherent(struct device *dev,
43 struct device;
44 extern void *__dma_alloc_coherent(struct device *dev, size_t size,
64 static inline unsigned long device_to_mask(struct device *dev) in device_to_mask()
80 static inline struct dma_map_ops *get_dma_ops(struct device *dev) in get_dma_ops()
93 static inline void set_dma_ops(struct device *dev, struct dma_map_ops *ops) in set_dma_ops()
106 static inline dma_addr_t get_dma_offset(struct device *dev) in get_dma_offset()
114 static inline void set_dma_offset(struct device *dev, dma_addr_t off) in set_dma_offset()
125 static inline int dma_supported(struct device *dev, u64 mask) in dma_supported()
136 extern int dma_set_mask(struct device *dev, u64 dma_mask);
137 extern int __dma_set_mask(struct device *dev, u64 dma_mask);
138 extern u64 __dma_get_required_mask(struct device *dev);
142 static inline void *dma_alloc_attrs(struct device *dev, size_t size, in dma_alloc_attrs()
160 static inline void dma_free_attrs(struct device *dev, size_t size, in dma_free_attrs()
173 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error()
188 static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) in dma_capable()
203 static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) in phys_to_dma()
208 static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr) in dma_to_phys()
218 static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size, in dma_cache_sync()