Lines Matching refs:device
27 extern struct device x86_dma_fallback_dev;
32 static inline struct dma_map_ops *get_dma_ops(struct device *dev) in get_dma_ops()
47 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error()
60 extern int dma_supported(struct device *hwdev, u64 mask);
61 extern int dma_set_mask(struct device *dev, u64 mask);
63 extern void *dma_generic_alloc_coherent(struct device *dev, size_t size,
67 extern void dma_generic_free_coherent(struct device *dev, size_t size,
72 extern bool dma_capable(struct device *dev, dma_addr_t addr, size_t size);
73 extern dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr);
74 extern phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr);
77 static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) in dma_capable()
85 static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) in phys_to_dma()
90 static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr) in dma_to_phys()
97 dma_cache_sync(struct device *dev, void *vaddr, size_t size, in dma_cache_sync()
103 static inline unsigned long dma_alloc_coherent_mask(struct device *dev, in dma_alloc_coherent_mask()
115 static inline gfp_t dma_alloc_coherent_gfp_flags(struct device *dev, gfp_t gfp) in dma_alloc_coherent_gfp_flags()
131 dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_attrs()
160 static inline void dma_free_attrs(struct device *dev, size_t size, in dma_free_attrs()