/arch/arm/include/asm/ |
D | dma-mapping.h | 18 static inline dma_addr_t page_to_dma(struct device *dev, struct page *page) in page_to_dma() 20 return (dma_addr_t)__virt_to_bus((unsigned long)page_address(page)); in page_to_dma() 23 static inline void *dma_to_virt(struct device *dev, dma_addr_t addr) in dma_to_virt() 28 static inline dma_addr_t virt_to_dma(struct device *dev, void *addr) in virt_to_dma() 30 return (dma_addr_t)__virt_to_bus((unsigned long)(addr)); in virt_to_dma() 33 static inline dma_addr_t page_to_dma(struct device *dev, struct page *page) in page_to_dma() 38 static inline void *dma_to_virt(struct device *dev, dma_addr_t addr) in dma_to_virt() 43 static inline dma_addr_t virt_to_dma(struct device *dev, void *addr) in virt_to_dma() 92 static inline int dma_is_consistent(struct device *dev, dma_addr_t handle) in dma_is_consistent() 100 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error() [all …]
|
/arch/mips/include/asm/ |
D | dma-mapping.h | 8 dma_addr_t *dma_handle, gfp_t flag); 11 void *vaddr, dma_addr_t dma_handle); 14 dma_addr_t *dma_handle, gfp_t flag); 17 void *vaddr, dma_addr_t dma_handle); 19 extern dma_addr_t dma_map_single(struct device *dev, void *ptr, size_t size, 21 extern void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, 25 extern dma_addr_t dma_map_page(struct device *dev, struct page *page, 27 extern void dma_unmap_page(struct device *dev, dma_addr_t dma_address, 31 extern void dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, 34 dma_addr_t dma_handle, size_t size, enum dma_data_direction direction); [all …]
|
/arch/m68k/include/asm/ |
D | dma-mapping_mm.h | 24 static inline int dma_is_consistent(struct device *dev, dma_addr_t dma_addr) in dma_is_consistent() 30 dma_addr_t *, gfp_t); 32 void *, dma_addr_t); 35 dma_addr_t *handle, gfp_t flag) in dma_alloc_noncoherent() 40 void *addr, dma_addr_t handle) in dma_free_noncoherent() 50 extern dma_addr_t dma_map_single(struct device *, void *, size_t, 52 static inline void dma_unmap_single(struct device *dev, dma_addr_t addr, in dma_unmap_single() 57 extern dma_addr_t dma_map_page(struct device *, struct page *, 60 static inline void dma_unmap_page(struct device *dev, dma_addr_t address, in dma_unmap_page() 72 extern void dma_sync_single_for_device(struct device *, dma_addr_t, size_t, [all …]
|
/arch/alpha/kernel/ |
D | proto.h | 24 extern void apecs_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); 33 extern void cia_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); 46 extern void lca_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); 53 extern void marvel_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); 68 extern void mcpcia_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); 83 extern void t2_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); 90 extern void titan_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); 98 extern void tsunami_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); 105 extern void wildfire_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
|
/arch/sparc/include/asm/ |
D | dma-mapping_32.h | 10 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) 15 dma_addr_t *dma_handle, gfp_t flag); 17 void *cpu_addr, dma_addr_t dma_handle); 18 extern dma_addr_t dma_map_single(struct device *dev, void *cpu_addr, 21 extern void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, 24 extern dma_addr_t dma_map_page(struct device *dev, struct page *page, 27 extern void dma_unmap_page(struct device *dev, dma_addr_t dma_address, 33 extern void dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, 37 dma_addr_t dma_handle, 41 dma_addr_t dma_handle, [all …]
|
D | dma-mapping_64.h | 7 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) 11 dma_addr_t *dma_handle, gfp_t flag); 13 void *cpu_addr, dma_addr_t dma_handle); 14 dma_addr_t (*map_single)(struct device *dev, void *cpu_addr, 17 void (*unmap_single)(struct device *dev, dma_addr_t dma_addr, 26 dma_addr_t dma_handle, size_t size, 38 dma_addr_t *dma_handle, gfp_t flag) in dma_alloc_coherent() 44 void *cpu_addr, dma_addr_t dma_handle) in dma_free_coherent() 49 static inline dma_addr_t dma_map_single(struct device *dev, void *cpu_addr, in dma_map_single() 56 static inline void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, in dma_unmap_single() [all …]
|
D | pci_32.h | 41 extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size, dma_addr_t *dma_handle); 51 extern void pci_free_consistent(struct pci_dev *hwdev, size_t size, void *vaddr, dma_addr_t dma_han… 59 extern dma_addr_t pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size, int direction); 68 extern void pci_unmap_single(struct pci_dev *hwdev, dma_addr_t dma_addr, size_t size, int direction… 72 dma_addr_t ADDR_NAME; 87 extern dma_addr_t pci_map_page(struct pci_dev *hwdev, struct page *page, 90 dma_addr_t dma_address, size_t size, int direction); 125 extern void pci_dma_sync_single_for_cpu(struct pci_dev *hwdev, dma_addr_t dma_handle, size_t size, … 126 extern void pci_dma_sync_single_for_device(struct pci_dev *hwdev, dma_addr_t dma_handle, size_t siz… 157 #define PCI_DMA_ERROR_CODE (~(dma_addr_t)0x0) [all …]
|
/arch/cris/include/asm/ |
D | dma-mapping.h | 20 dma_addr_t *dma_handle, gfp_t flag); 23 void *vaddr, dma_addr_t dma_handle); 26 dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_coherent() 35 dma_addr_t dma_handle) in dma_free_coherent() 40 static inline dma_addr_t 49 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_single() 63 static inline dma_addr_t 72 dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, in dma_unmap_page() 87 dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single_for_cpu() 93 dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single_for_device() [all …]
|
/arch/mips/include/asm/mach-cavium-octeon/ |
D | dma-coherence.h | 18 dma_addr_t octeon_map_dma_mem(struct device *, void *, size_t); 19 void octeon_unmap_dma_mem(struct device *, dma_addr_t); 21 static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, in plat_map_dma_mem() 27 static inline dma_addr_t plat_map_dma_mem_page(struct device *dev, in plat_map_dma_mem_page() 33 static inline unsigned long plat_dma_addr_to_phys(dma_addr_t dma_addr) in plat_dma_addr_to_phys() 38 static inline void plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr) in plat_unmap_dma_mem() 59 dma_addr_t dma_addr) in plat_dma_mapping_error()
|
/arch/mips/include/asm/mach-ip32/ |
D | dma-coherence.h | 29 static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, in plat_map_dma_mem() 32 dma_addr_t pa = virt_to_phys(addr) & RAM_OFFSET_MASK; in plat_map_dma_mem() 40 static dma_addr_t plat_map_dma_mem_page(struct device *dev, struct page *page) in plat_map_dma_mem_page() 42 dma_addr_t pa; in plat_map_dma_mem_page() 53 static unsigned long plat_dma_addr_to_phys(dma_addr_t dma_addr) in plat_dma_addr_to_phys() 63 static inline void plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr) in plat_unmap_dma_mem() 86 dma_addr_t dma_addr) in plat_dma_mapping_error()
|
/arch/blackfin/include/asm/ |
D | dma-mapping.h | 8 dma_addr_t *dma_handle, gfp_t gfp); 10 dma_addr_t dma_handle); 19 int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error() 31 extern dma_addr_t dma_map_single(struct device *dev, void *ptr, size_t size, 34 static inline dma_addr_t 50 extern void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, 54 dma_unmap_page(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_page() 88 dma_addr_t handle, size_t size, in dma_sync_single_for_cpu() 94 dma_addr_t handle, size_t size, in dma_sync_single_for_device()
|
/arch/mips/include/asm/mach-ip27/ |
D | dma-coherence.h | 21 static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, in plat_map_dma_mem() 24 dma_addr_t pa = dev_to_baddr(dev, virt_to_phys(addr)); in plat_map_dma_mem() 29 static dma_addr_t plat_map_dma_mem_page(struct device *dev, struct page *page) in plat_map_dma_mem_page() 31 dma_addr_t pa = dev_to_baddr(dev, page_to_phys(page)); in plat_map_dma_mem_page() 36 static unsigned long plat_dma_addr_to_phys(dma_addr_t dma_addr) in plat_dma_addr_to_phys() 41 static inline void plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr) in plat_unmap_dma_mem() 64 dma_addr_t dma_addr) in plat_dma_mapping_error()
|
/arch/xtensa/include/asm/ |
D | dma-mapping.h | 23 extern void *consistent_alloc(int, size_t, dma_addr_t, unsigned long); 24 extern void consistent_free(void*, size_t, dma_addr_t); 31 dma_addr_t *dma_handle, gfp_t flag); 34 void *vaddr, dma_addr_t dma_handle); 36 static inline dma_addr_t 46 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_single() 70 static inline dma_addr_t 75 return (dma_addr_t)(page_to_pfn(page)) * PAGE_SIZE + offset; in dma_map_page() 79 dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, in dma_unmap_page() 94 dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single_for_cpu() [all …]
|
/arch/avr32/include/asm/ |
D | dma-mapping.h | 38 static inline int dma_mapping_error(struct device *dev, dma_addr_t addr) in dma_mapping_error() 55 dma_addr_t *handle, gfp_t gfp); 71 void *cpu_addr, dma_addr_t handle); 85 dma_addr_t *handle, gfp_t gfp); 101 void *cpu_addr, dma_addr_t handle); 116 static inline dma_addr_t 139 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_single() 159 static inline dma_addr_t 183 dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, in dma_unmap_page() 264 dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_cpu() [all …]
|
/arch/parisc/include/asm/ |
D | dma-mapping.h | 11 void *(*alloc_consistent)(struct device *dev, size_t size, dma_addr_t *iova, gfp_t flag); 12 void *(*alloc_noncoherent)(struct device *dev, size_t size, dma_addr_t *iova, gfp_t flag); 13 void (*free_consistent)(struct device *dev, size_t size, void *vaddr, dma_addr_t iova); 14 …dma_addr_t (*map_single)(struct device *dev, void *addr, size_t size, enum dma_data_direction dire… 15 …void (*unmap_single)(struct device *dev, dma_addr_t iova, size_t size, enum dma_data_direction dir… 18 …void (*dma_sync_single_for_cpu)(struct device *dev, dma_addr_t iova, unsigned long offset, size_t … 19 …void (*dma_sync_single_for_device)(struct device *dev, dma_addr_t iova, unsigned long offset, size… 50 dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_coherent() 57 dma_alloc_noncoherent(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_noncoherent() 65 void *vaddr, dma_addr_t dma_handle) in dma_free_coherent() [all …]
|
/arch/x86/include/asm/ |
D | dma-mapping.h | 14 extern dma_addr_t bad_dma_address; 21 dma_addr_t dma_addr); 23 dma_addr_t *dma_handle, gfp_t gfp); 25 void *vaddr, dma_addr_t dma_handle); 26 dma_addr_t (*map_single)(struct device *hwdev, phys_addr_t ptr, 28 void (*unmap_single)(struct device *dev, dma_addr_t addr, 31 dma_addr_t dma_handle, size_t size, 34 dma_addr_t dma_handle, size_t size, 37 dma_addr_t dma_handle, unsigned long offset, 40 dma_addr_t dma_handle, unsigned long offset, [all …]
|
/arch/um/include/asm/ |
D | dma-mapping.h | 21 dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_coherent() 30 dma_addr_t dma_handle) in dma_free_coherent() 35 static inline dma_addr_t 44 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_single() 50 static inline dma_addr_t 60 dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, in dma_unmap_page() 82 dma_sync_single(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single() 107 dma_sync_single_range(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range() 122 dma_mapping_error(struct device *dev, dma_addr_t dma_handle) in dma_mapping_error()
|
/arch/ia64/include/asm/ |
D | dma-mapping.h | 16 dma_addr_t dma_addr); 18 dma_addr_t *dma_handle, gfp_t gfp); 20 void *vaddr, dma_addr_t dma_handle); 21 dma_addr_t (*map_single)(struct device *hwdev, unsigned long ptr, 23 void (*unmap_single)(struct device *dev, dma_addr_t addr, 26 dma_addr_t dma_handle, size_t size, 29 dma_addr_t dma_handle, size_t size, 32 dma_addr_t dma_handle, unsigned long offset, 35 dma_addr_t dma_handle, unsigned long offset, 61 dma_alloc_noncoherent(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_noncoherent() [all …]
|
/arch/sh/include/asm/ |
D | dma-mapping.h | 25 dma_addr_t *dma_handle, gfp_t flag); 28 void *vaddr, dma_addr_t dma_handle); 37 static inline dma_addr_t dma_map_single(struct device *dev, in dma_map_single() 69 static inline dma_addr_t dma_map_page(struct device *dev, struct page *page, in dma_map_page() 76 static inline void dma_unmap_page(struct device *dev, dma_addr_t dma_address, in dma_unmap_page() 82 static inline void dma_sync_single(struct device *dev, dma_addr_t dma_handle, in dma_sync_single() 93 dma_addr_t dma_handle, in dma_sync_single_range() 118 dma_addr_t dma_handle, size_t size, in dma_sync_single_for_cpu() 125 dma_addr_t dma_handle, in dma_sync_single_for_device() 133 dma_addr_t dma_handle, in dma_sync_single_range_for_cpu() [all …]
|
/arch/powerpc/include/asm/ |
D | dma-mapping.h | 19 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) 29 extern void *__dma_alloc_coherent(size_t size, dma_addr_t *handle, gfp_t gfp); 60 dma_addr_t *dma_handle, gfp_t flag); 62 void *vaddr, dma_addr_t dma_handle); 71 dma_addr_t (*map_page)(struct device *dev, struct page *page, 76 dma_addr_t dma_address, size_t size, 81 dma_addr_t dma_handle, unsigned long offset, 85 dma_addr_t dma_handle, unsigned long offset, 166 static inline dma_addr_t dma_map_single_attrs(struct device *dev, in dma_map_single_attrs() 182 dma_addr_t dma_addr, in dma_unmap_single_attrs() [all …]
|
/arch/alpha/include/asm/ |
D | pci.h | 80 dma_addr_t *, gfp_t); 82 pci_alloc_consistent(struct pci_dev *dev, size_t size, dma_addr_t *dma) in pci_alloc_consistent() 93 extern void pci_free_consistent(struct pci_dev *, size_t, void *, dma_addr_t); 100 extern dma_addr_t pci_map_single(struct pci_dev *, void *, size_t, int); 103 extern dma_addr_t pci_map_page(struct pci_dev *, struct page *, 109 pci_dma_mapping_error(struct pci_dev *pdev, dma_addr_t dma_addr) in pci_dma_mapping_error() 120 extern void pci_unmap_single(struct pci_dev *, dma_addr_t, size_t, int); 121 extern void pci_unmap_page(struct pci_dev *, dma_addr_t, size_t, int); 125 dma_addr_t ADDR_NAME; 171 pci_dma_sync_single_for_cpu(struct pci_dev *dev, dma_addr_t dma_addr, in pci_dma_sync_single_for_cpu() [all …]
|
/arch/mips/include/asm/mach-lemote/ |
D | dma-coherence.h | 16 static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, in plat_map_dma_mem() 22 static inline dma_addr_t plat_map_dma_mem_page(struct device *dev, in plat_map_dma_mem_page() 28 static inline unsigned long plat_dma_addr_to_phys(dma_addr_t dma_addr) in plat_dma_addr_to_phys() 33 static inline void plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr) in plat_unmap_dma_mem() 56 dma_addr_t dma_addr) in plat_dma_mapping_error()
|
/arch/mips/include/asm/mach-generic/ |
D | dma-coherence.h | 14 static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, in plat_map_dma_mem() 20 static inline dma_addr_t plat_map_dma_mem_page(struct device *dev, in plat_map_dma_mem_page() 26 static inline unsigned long plat_dma_addr_to_phys(dma_addr_t dma_addr) in plat_dma_addr_to_phys() 31 static inline void plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr) in plat_unmap_dma_mem() 54 dma_addr_t dma_addr) in plat_dma_mapping_error()
|
/arch/mips/include/asm/mach-jazz/ |
D | dma-coherence.h | 15 static dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, size_t size) in plat_map_dma_mem() 20 static dma_addr_t plat_map_dma_mem_page(struct device *dev, struct page *page) in plat_map_dma_mem_page() 25 static unsigned long plat_dma_addr_to_phys(dma_addr_t dma_addr) in plat_dma_addr_to_phys() 30 static void plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr) in plat_unmap_dma_mem() 54 dma_addr_t dma_addr) in plat_dma_mapping_error()
|
/arch/mips/mm/ |
D | dma-default.c | 23 static inline unsigned long dma_addr_to_virt(dma_addr_t dma_addr) in dma_addr_to_virt() 69 dma_addr_t * dma_handle, gfp_t gfp) in dma_alloc_noncoherent() 88 dma_addr_t * dma_handle, gfp_t gfp) in dma_alloc_coherent() 112 dma_addr_t dma_handle) in dma_free_noncoherent() 121 dma_addr_t dma_handle) in dma_free_coherent() 156 dma_addr_t dma_map_single(struct device *dev, void *ptr, size_t size, in dma_map_single() 169 void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_single() 203 dma_addr_t dma_map_page(struct device *dev, struct page *page, in dma_map_page() 220 void dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, in dma_unmap_page() 258 void dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_cpu() [all …]
|