Lines Matching defs:dev
171 #define dma_alloc_from_dev_coherent(dev, size, handle, ret) (0) argument
172 #define dma_release_from_dev_coherent(dev, order, vaddr) (0) argument
173 #define dma_mmap_from_dev_coherent(dev, vma, vaddr, order, ret) (0) argument
175 static inline void *dma_alloc_from_global_coherent(struct device *dev, ssize_t size, in dma_alloc_from_global_coherent()
218 static inline void dma_direct_sync_single_for_device(struct device *dev, in dma_direct_sync_single_for_device()
222 static inline void dma_direct_sync_sg_for_device(struct device *dev, in dma_direct_sync_sg_for_device()
240 static inline void dma_direct_unmap_page(struct device *dev, dma_addr_t addr, in dma_direct_unmap_page()
244 static inline void dma_direct_unmap_sg(struct device *dev, in dma_direct_unmap_sg()
249 static inline void dma_direct_sync_single_for_cpu(struct device *dev, in dma_direct_sync_single_for_cpu()
253 static inline void dma_direct_sync_sg_for_cpu(struct device *dev, in dma_direct_sync_sg_for_cpu()
264 static inline const struct dma_map_ops *get_dma_ops(struct device *dev) in get_dma_ops()
271 static inline void set_dma_ops(struct device *dev, in set_dma_ops()
277 static inline dma_addr_t dma_map_page_attrs(struct device *dev, in dma_map_page_attrs()
294 static inline void dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, in dma_unmap_page_attrs()
311 static inline int dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, in dma_map_sg_attrs()
329 static inline void dma_unmap_sg_attrs(struct device *dev, struct scatterlist *sg, in dma_unmap_sg_attrs()
343 static inline dma_addr_t dma_map_resource(struct device *dev, in dma_map_resource()
367 static inline void dma_unmap_resource(struct device *dev, dma_addr_t addr, in dma_unmap_resource()
379 static inline void dma_sync_single_for_cpu(struct device *dev, dma_addr_t addr, in dma_sync_single_for_cpu()
393 static inline void dma_sync_single_for_device(struct device *dev, in dma_sync_single_for_device()
408 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, in dma_sync_sg_for_cpu()
422 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, in dma_sync_sg_for_device()
436 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error()
469 static inline dma_addr_t dma_map_page_attrs(struct device *dev, in dma_map_page_attrs()
475 static inline void dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, in dma_unmap_page_attrs()
479 static inline int dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, in dma_map_sg_attrs()
484 static inline void dma_unmap_sg_attrs(struct device *dev, in dma_unmap_sg_attrs()
489 static inline dma_addr_t dma_map_resource(struct device *dev, in dma_map_resource()
495 static inline void dma_unmap_resource(struct device *dev, dma_addr_t addr, in dma_unmap_resource()
499 static inline void dma_sync_single_for_cpu(struct device *dev, dma_addr_t addr, in dma_sync_single_for_cpu()
503 static inline void dma_sync_single_for_device(struct device *dev, in dma_sync_single_for_device()
507 static inline void dma_sync_sg_for_cpu(struct device *dev, in dma_sync_sg_for_cpu()
511 static inline void dma_sync_sg_for_device(struct device *dev, in dma_sync_sg_for_device()
515 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error()
519 static inline void *dma_alloc_attrs(struct device *dev, size_t size, in dma_alloc_attrs()
524 static void dma_free_attrs(struct device *dev, size_t size, void *cpu_addr, in dma_free_attrs()
528 static inline void *dmam_alloc_attrs(struct device *dev, size_t size, in dmam_alloc_attrs()
533 static inline void dmam_free_coherent(struct device *dev, size_t size, in dmam_free_coherent()
537 static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size, in dma_cache_sync()
541 static inline int dma_get_sgtable_attrs(struct device *dev, in dma_get_sgtable_attrs()
547 static inline int dma_mmap_attrs(struct device *dev, struct vm_area_struct *vma, in dma_mmap_attrs()
553 static inline bool dma_can_mmap(struct device *dev) in dma_can_mmap()
557 static inline int dma_supported(struct device *dev, u64 mask) in dma_supported()
561 static inline int dma_set_mask(struct device *dev, u64 mask) in dma_set_mask()
565 static inline int dma_set_coherent_mask(struct device *dev, u64 mask) in dma_set_coherent_mask()
569 static inline u64 dma_get_required_mask(struct device *dev) in dma_get_required_mask()
573 static inline size_t dma_max_mapping_size(struct device *dev) in dma_max_mapping_size()
577 static inline unsigned long dma_get_merge_boundary(struct device *dev) in dma_get_merge_boundary()
583 static inline dma_addr_t dma_map_single_attrs(struct device *dev, void *ptr, in dma_map_single_attrs()
595 static inline void dma_unmap_single_attrs(struct device *dev, dma_addr_t addr, in dma_unmap_single_attrs()
601 static inline void dma_sync_single_range_for_cpu(struct device *dev, in dma_sync_single_range_for_cpu()
608 static inline void dma_sync_single_range_for_device(struct device *dev, in dma_sync_single_range_for_device()
644 static inline void *dma_alloc_coherent(struct device *dev, size_t size, in dma_alloc_coherent()
652 static inline void dma_free_coherent(struct device *dev, size_t size, in dma_free_coherent()
659 static inline u64 dma_get_mask(struct device *dev) in dma_get_mask()
672 static inline int dma_set_mask_and_coherent(struct device *dev, u64 mask) in dma_set_mask_and_coherent()
684 static inline int dma_coerce_mask_and_coherent(struct device *dev, u64 mask) in dma_coerce_mask_and_coherent()
698 static inline bool dma_addressing_limited(struct device *dev) in dma_addressing_limited()
708 static inline void arch_setup_dma_ops(struct device *dev, u64 dma_base, in arch_setup_dma_ops()
717 static inline void arch_teardown_dma_ops(struct device *dev) in arch_teardown_dma_ops()
722 static inline unsigned int dma_get_max_seg_size(struct device *dev) in dma_get_max_seg_size()
729 static inline int dma_set_max_seg_size(struct device *dev, unsigned int size) in dma_set_max_seg_size()
738 static inline unsigned long dma_get_seg_boundary(struct device *dev) in dma_get_seg_boundary()
745 static inline int dma_set_seg_boundary(struct device *dev, unsigned long mask) in dma_set_seg_boundary()
767 dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, in dma_declare_coherent_memory()
774 static inline void *dmam_alloc_coherent(struct device *dev, size_t size, in dmam_alloc_coherent()
781 static inline void *dma_alloc_wc(struct device *dev, size_t size, in dma_alloc_wc()
792 static inline void dma_free_wc(struct device *dev, size_t size, in dma_free_wc()
799 static inline int dma_mmap_wc(struct device *dev, in dma_mmap_wc()