Home
last modified time | relevance | path

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

123

/arch/powerpc/include/asm/
Ddma-mapping.h87 return dev->archdata.dma_ops; in get_dma_ops()
92 dev->archdata.dma_ops = ops; in set_dma_ops()
124 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_supported() local
126 if (unlikely(dma_ops == NULL)) in dma_supported()
128 if (dma_ops->dma_supported == NULL) in dma_supported()
130 return dma_ops->dma_supported(dev, mask); in dma_supported()
141 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_alloc_attrs() local
144 BUG_ON(!dma_ops); in dma_alloc_attrs()
146 cpu_addr = dma_ops->alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
159 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/ia64/kernel/
Dpci-dma.c101 dma_ops = &intel_dma_ops; in pci_iommu_alloc()
103 dma_ops->sync_single_for_cpu = machvec_dma_sync_single; in pci_iommu_alloc()
104 dma_ops->sync_sg_for_cpu = machvec_dma_sync_sg; in pci_iommu_alloc()
105 dma_ops->sync_single_for_device = machvec_dma_sync_single; in pci_iommu_alloc()
106 dma_ops->sync_sg_for_device = machvec_dma_sync_sg; in pci_iommu_alloc()
107 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/hexagon/include/asm/
Ddma-mapping.h36 extern struct dma_map_ops *dma_ops;
46 return dma_ops; in get_dma_ops()
66 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_mapping_error() local
68 if (dma_ops->mapping_error) in dma_mapping_error()
69 return dma_ops->mapping_error(dev, dma_addr); in dma_mapping_error()
83 BUG_ON(!dma_ops); in dma_alloc_attrs()
98 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_free_attrs() local
100 BUG_ON(!dma_ops); in dma_free_attrs()
102 dma_ops->free(dev, size, cpu_addr, dma_handle, attrs); in dma_free_attrs()
/arch/powerpc/kernel/
Ddma.c176 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_set_mask() local
180 if ((dma_ops != NULL) && (dma_ops->set_dma_mask != NULL)) in dma_set_mask()
181 return dma_ops->set_dma_mask(dev, dma_mask); in dma_set_mask()
191 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_get_required_mask() local
196 if (unlikely(dma_ops == NULL)) in dma_get_required_mask()
199 if (dma_ops->get_required_mask) in dma_get_required_mask()
200 return dma_ops->get_required_mask(dev); in dma_get_required_mask()
/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.h29 extern struct dma_map_ops *dma_ops;
34 return dma_ops; in get_dma_ops()
36 if (unlikely(!dev) || !dev->archdata.dma_ops) in get_dma_ops()
37 return dma_ops; in get_dma_ops()
39 return dev->archdata.dma_ops; in get_dma_ops()
Ddevice.h9 struct dma_map_ops *dma_ops; member
/arch/microblaze/include/asm/
Ddma-mapping.h46 extern struct dma_map_ops *dma_ops;
60 if (unlikely(!dev) || !dev->archdata.dma_ops) in get_dma_ops()
63 return dev->archdata.dma_ops; in get_dma_ops()
68 dev->archdata.dma_ops = ops; in set_dma_ops()
Ddevice.h16 struct dma_map_ops *dma_ops; member
/arch/hexagon/kernel/
Ddma.c27 struct dma_map_ops *dma_ops; variable
28 EXPORT_SYMBOL(dma_ops);
218 if (dma_ops) in hexagon_dma_init()
221 dma_ops = &hexagon_dma_ops; in hexagon_dma_init()
/arch/mips/include/asm/
Ddevice.h13 struct dma_map_ops *dma_ops; member
Ddma-mapping.h16 if (dev && dev->archdata.dma_ops) in get_dma_ops()
17 return dev->archdata.dma_ops; in get_dma_ops()
/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/sparc/include/asm/
Ddma-mapping.h15 extern struct dma_map_ops *dma_ops, pci32_dma_ops;
24 return dma_ops; in get_dma_ops()
/arch/sh/include/asm/
Ddma.h65 struct dma_ops { struct
105 struct dma_ops *ops;
Ddma-mapping.h4 extern struct dma_map_ops *dma_ops;
9 return dma_ops; in get_dma_ops()
/arch/arm/mach-footbridge/
Ddma.c37 static struct dma_ops fb_dma_ops = {
/arch/x86/xen/
Dpci-swiotlb-xen.c58 dma_ops = &xen_swiotlb_dma_ops; in pci_xen_swiotlb_init()
/arch/sh/mm/
Dconsistent.c25 struct dma_map_ops *dma_ops; variable
26 EXPORT_SYMBOL(dma_ops);
/arch/alpha/kernel/
Dpci-noop.c188 struct dma_map_ops *dma_ops = &alpha_noop_ops; variable
189 EXPORT_SYMBOL(dma_ops);

123