Home
last modified time | relevance | path

Searched refs:dma_ops (Results 1 – 25 of 59) sorted by relevance

123

/arch/ia64/kernel/
Dpci-dma.c91 dma_ops = &intel_dma_ops; in pci_iommu_alloc()
93 dma_ops->sync_single_for_cpu = machvec_dma_sync_single; in pci_iommu_alloc()
94 dma_ops->sync_sg_for_cpu = machvec_dma_sync_sg; in pci_iommu_alloc()
95 dma_ops->sync_single_for_device = machvec_dma_sync_single; in pci_iommu_alloc()
96 dma_ops->sync_sg_for_device = machvec_dma_sync_sg; in pci_iommu_alloc()
97 dma_ops->dma_supported = iommu_dma_supported; in pci_iommu_alloc()
Ddma-mapping.c7 struct dma_map_ops *dma_ops; variable
8 EXPORT_SYMBOL(dma_ops);
22 return dma_ops; in dma_get_ops()
Dpci-swiotlb.c50 dma_ops = &swiotlb_dma_ops; in swiotlb_dma_init()
62 dma_ops = &swiotlb_dma_ops; in pci_swiotlb_init()
/arch/unicore32/include/asm/
Ddma-mapping.h35 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_supported() local
37 if (unlikely(dma_ops == NULL)) in dma_supported()
40 return dma_ops->dma_supported(dev, mask); in dma_supported()
45 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_mapping_error() local
47 if (dma_ops->mapping_error) in dma_mapping_error()
48 return dma_ops->mapping_error(dev, dma_addr); in dma_mapping_error()
91 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_alloc_attrs() local
93 return dma_ops->alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
102 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_free_attrs() local
104 dma_ops->free(dev, size, cpu_addr, dma_handle, attrs); in dma_free_attrs()
/arch/tile/include/asm/
Ddma-mapping.h34 if (dev && dev->archdata.dma_ops) in get_dma_ops()
35 return dev->archdata.dma_ops; in get_dma_ops()
66 dev->archdata.dma_ops = ops; in set_dma_ops()
93 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_set_mask() local
101 if (dma_ops == gx_pci_dma_map_ops || in dma_set_mask()
102 dma_ops == gx_hybrid_pci_dma_map_ops || in dma_set_mask()
103 dma_ops == gx_legacy_pci_dma_map_ops) { in dma_set_mask()
105 dma_ops == gx_legacy_pci_dma_map_ops) in dma_set_mask()
123 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_alloc_attrs() local
126 cpu_addr = dma_ops->alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
[all …]
Ddevice.h21 struct dma_map_ops *dma_ops; member
/arch/powerpc/include/asm/
Ddma-mapping.h90 return dev->archdata.dma_ops; in get_dma_ops()
95 dev->archdata.dma_ops = ops; in set_dma_ops()
127 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_supported() local
129 if (unlikely(dma_ops == NULL)) in dma_supported()
131 if (dma_ops->dma_supported == NULL) in dma_supported()
133 return dma_ops->dma_supported(dev, mask); in dma_supported()
146 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_alloc_attrs() local
149 BUG_ON(!dma_ops); in dma_alloc_attrs()
151 cpu_addr = dma_ops->alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
164 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_free_attrs() local
[all …]
Ddevice.h20 struct dma_map_ops *dma_ops; member
/arch/hexagon/include/asm/
Ddma-mapping.h35 extern struct dma_map_ops *dma_ops;
45 return dma_ops; in get_dma_ops()
65 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_mapping_error() local
67 if (dma_ops->mapping_error) in dma_mapping_error()
68 return dma_ops->mapping_error(dev, dma_addr); in dma_mapping_error()
82 BUG_ON(!dma_ops); in dma_alloc_attrs()
97 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_free_attrs() local
99 BUG_ON(!dma_ops); in dma_free_attrs()
101 dma_ops->free(dev, size, cpu_addr, dma_handle, attrs); in dma_free_attrs()
/arch/s390/include/asm/
Ddma-mapping.h35 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_supported() local
37 if (dma_ops->dma_supported == NULL) in dma_supported()
39 return dma_ops->dma_supported(dev, mask); in dma_supported()
51 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_mapping_error() local
54 if (dma_ops->mapping_error) in dma_mapping_error()
55 return dma_ops->mapping_error(dev, dma_addr); in dma_mapping_error()
/arch/powerpc/kernel/
Ddma.c35 if (sd->max_direct_dma_addr && sd->dma_ops == &swiotlb_dma_ops) in get_pfn_limit()
237 struct dma_map_ops *dma_ops = get_dma_ops(dev); in __dma_set_mask() local
239 if ((dma_ops != NULL) && (dma_ops->set_dma_mask != NULL)) in __dma_set_mask()
240 return dma_ops->set_dma_mask(dev, dma_mask); in __dma_set_mask()
257 struct dma_map_ops *dma_ops = get_dma_ops(dev); in __dma_get_required_mask() local
259 if (unlikely(dma_ops == NULL)) in __dma_get_required_mask()
262 if (dma_ops->get_required_mask) in __dma_get_required_mask()
263 return dma_ops->get_required_mask(dev); in __dma_get_required_mask()
/arch/arm64/include/asm/
Ddma-mapping.h30 extern struct dma_map_ops *dma_ops;
36 if (unlikely(!dev) || !dev->archdata.dma_ops) in __generic_dma_ops()
37 return dma_ops; in __generic_dma_ops()
39 return dev->archdata.dma_ops; in __generic_dma_ops()
52 dev->archdata.dma_ops = ops; in set_dma_ops()
Ddevice.h20 struct dma_map_ops *dma_ops; member
/arch/arm/include/asm/mach/
Ddma.h17 struct dma_ops { struct
43 const struct dma_ops *d_ops; argument
/arch/x86/include/asm/
Ddma-mapping.h30 extern struct dma_map_ops *dma_ops;
35 return dma_ops; in get_dma_ops()
37 if (unlikely(!dev) || !dev->archdata.dma_ops) in get_dma_ops()
38 return dma_ops; in get_dma_ops()
40 return dev->archdata.dma_ops; in get_dma_ops()
Ddevice.h6 struct dma_map_ops *dma_ops; member
/arch/x86/xen/
Dpci-swiotlb-xen.c76 dma_ops = &xen_swiotlb_dma_ops; in pci_xen_swiotlb_init()
96 dma_ops = &xen_swiotlb_dma_ops; in pci_xen_swiotlb_init_late()
/arch/hexagon/kernel/
Ddma.c28 struct dma_map_ops *dma_ops; variable
29 EXPORT_SYMBOL(dma_ops);
225 if (dma_ops) in hexagon_dma_init()
228 dma_ops = &hexagon_dma_ops; in hexagon_dma_init()
/arch/mips/include/asm/
Ddevice.h13 struct dma_map_ops *dma_ops; member
/arch/alpha/include/asm/
Ddma-mapping.h6 extern struct dma_map_ops *dma_ops;
10 return dma_ops; in get_dma_ops()
/arch/sh/kernel/
Ddma-nommu.c79 if (dma_ops) in no_iommu_init()
81 dma_ops = &nommu_dma_ops; in no_iommu_init()
/arch/sh/include/asm/
Ddma.h56 struct dma_ops { struct
96 struct dma_ops *ops;
/arch/sparc/include/asm/
Ddma-mapping.h23 extern struct dma_map_ops *dma_ops;
39 return dma_ops; in get_dma_ops()
/arch/arm/include/asm/
Ddevice.h10 struct dma_map_ops *dma_ops; member
/arch/arm/mach-footbridge/
Ddma.c37 static struct dma_ops fb_dma_ops = {

123