Lines Matching defs:dev
143 static inline int is_device_dma_capable(struct device *dev) in is_device_dma_capable()
160 #define dma_alloc_from_coherent(dev, size, handle, ret) (0) argument
161 #define dma_release_from_coherent(dev, order, vaddr) (0) argument
162 #define dma_mmap_from_coherent(dev, vma, vaddr, order, ret) (0) argument
174 static inline struct dma_map_ops *get_dma_ops(struct device *dev) in get_dma_ops()
180 static inline dma_addr_t dma_map_single_attrs(struct device *dev, void *ptr, in dma_map_single_attrs()
199 static inline void dma_unmap_single_attrs(struct device *dev, dma_addr_t addr, in dma_unmap_single_attrs()
216 static inline int dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, in dma_map_sg_attrs()
234 static inline void dma_unmap_sg_attrs(struct device *dev, struct scatterlist *sg, in dma_unmap_sg_attrs()
246 static inline dma_addr_t dma_map_page(struct device *dev, struct page *page, in dma_map_page()
261 static inline void dma_unmap_page(struct device *dev, dma_addr_t addr, in dma_unmap_page()
272 static inline dma_addr_t dma_map_resource(struct device *dev, in dma_map_resource()
295 static inline void dma_unmap_resource(struct device *dev, dma_addr_t addr, in dma_unmap_resource()
307 static inline void dma_sync_single_for_cpu(struct device *dev, dma_addr_t addr, in dma_sync_single_for_cpu()
319 static inline void dma_sync_single_for_device(struct device *dev, in dma_sync_single_for_device()
331 static inline void dma_sync_single_range_for_cpu(struct device *dev, in dma_sync_single_range_for_cpu()
345 static inline void dma_sync_single_range_for_device(struct device *dev, in dma_sync_single_range_for_device()
360 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, in dma_sync_sg_for_cpu()
372 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, in dma_sync_sg_for_device()
415 dma_mmap_attrs(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, in dma_mmap_attrs()
432 dma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt, void *cpu_addr, in dma_get_sgtable_attrs()
447 #define arch_dma_alloc_attrs(dev, flag) (true) argument
450 static inline void *dma_alloc_attrs(struct device *dev, size_t size, in dma_alloc_attrs()
472 static inline void dma_free_attrs(struct device *dev, size_t size, in dma_free_attrs()
491 static inline void *dma_alloc_coherent(struct device *dev, size_t size, in dma_alloc_coherent()
497 static inline void dma_free_coherent(struct device *dev, size_t size, in dma_free_coherent()
503 static inline void *dma_alloc_noncoherent(struct device *dev, size_t size, in dma_alloc_noncoherent()
510 static inline void dma_free_noncoherent(struct device *dev, size_t size, in dma_free_noncoherent()
517 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error()
532 static inline int dma_supported(struct device *dev, u64 mask) in dma_supported()
545 static inline int dma_set_mask(struct device *dev, u64 mask) in dma_set_mask()
559 static inline u64 dma_get_mask(struct device *dev) in dma_get_mask()
569 static inline int dma_set_coherent_mask(struct device *dev, u64 mask) in dma_set_coherent_mask()
584 static inline int dma_set_mask_and_coherent(struct device *dev, u64 mask) in dma_set_mask_and_coherent()
596 static inline int dma_coerce_mask_and_coherent(struct device *dev, u64 mask) in dma_coerce_mask_and_coherent()
605 static inline void arch_setup_dma_ops(struct device *dev, u64 dma_base, in arch_setup_dma_ops()
611 static inline void arch_teardown_dma_ops(struct device *dev) { } in arch_teardown_dma_ops()
614 static inline unsigned int dma_get_max_seg_size(struct device *dev) in dma_get_max_seg_size()
621 static inline unsigned int dma_set_max_seg_size(struct device *dev, in dma_set_max_seg_size()
631 static inline unsigned long dma_get_seg_boundary(struct device *dev) in dma_get_seg_boundary()
638 static inline int dma_set_seg_boundary(struct device *dev, unsigned long mask) in dma_set_seg_boundary()
648 static inline unsigned long dma_max_pfn(struct device *dev) in dma_max_pfn()
654 static inline void *dma_zalloc_coherent(struct device *dev, size_t size, in dma_zalloc_coherent()
684 dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, in dma_declare_coherent_memory()
691 dma_release_declared_memory(struct device *dev) in dma_release_declared_memory()
696 dma_mark_declared_memory_occupied(struct device *dev, in dma_mark_declared_memory_occupied()
721 static inline int dmam_declare_coherent_memory(struct device *dev, in dmam_declare_coherent_memory()
728 static inline void dmam_release_declared_memory(struct device *dev) in dmam_release_declared_memory()
733 static inline void *dma_alloc_wc(struct device *dev, size_t size, in dma_alloc_wc()
743 static inline void dma_free_wc(struct device *dev, size_t size, in dma_free_wc()
753 static inline int dma_mmap_wc(struct device *dev, in dma_mmap_wc()