Home
last modified time | relevance | path

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

/linux-4.4.14/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()
64 dev->archdata.dma_ops = ops; in set_dma_ops()
82 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_set_mask() local
90 if (dma_ops == gx_pci_dma_map_ops || in dma_set_mask()
91 dma_ops == gx_hybrid_pci_dma_map_ops || in dma_set_mask()
92 dma_ops == gx_legacy_pci_dma_map_ops) { in dma_set_mask()
94 dma_ops == gx_legacy_pci_dma_map_ops) in dma_set_mask()
Ddevice.h21 struct dma_map_ops *dma_ops; member
/linux-4.4.14/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()
/linux-4.4.14/drivers/ide/
Dide-dma.c98 dma_stat = hwif->dma_ops->dma_end(drive); in ide_dma_intr()
185 drive->hwif->dma_ops->dma_host_set(drive, 0); in ide_dma_off_quietly()
216 drive->hwif->dma_ops->dma_host_set(drive, 1); in ide_dma_on()
451 const struct ide_dma_ops *dma_ops = hwif->dma_ops; in ide_dma_timeout_retry() local
462 (void)dma_ops->dma_end(drive); in ide_dma_timeout_retry()
468 if (dma_ops->dma_clear) in ide_dma_timeout_retry()
469 dma_ops->dma_clear(drive); in ide_dma_timeout_retry()
471 if (dma_ops->dma_test_irq(drive) == 0) { in ide_dma_timeout_retry()
475 (void)dma_ops->dma_end(drive); in ide_dma_timeout_retry()
535 const struct ide_dma_ops *dma_ops = drive->hwif->dma_ops; in ide_dma_prepare() local
[all …]
Dide-dma-sff.c86 u8 dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); in ide_dma_host_set()
214 dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); in ide_dma_setup()
240 u8 dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); in ide_dma_sff_timer_expiry()
301 dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); in ide_dma_end()
319 u8 dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); in ide_dma_test_irq()
Dide-iops.c352 if (hwif->dma_ops) /* check if host supports DMA */ in ide_config_drive_speed()
353 hwif->dma_ops->dma_host_set(drive, 0); in ide_config_drive_speed()
407 hwif->dma_ops->dma_host_set(drive, 1); in ide_config_drive_speed()
408 else if (hwif->dma_ops) /* check if host supports DMA */ in ide_config_drive_speed()
Dsc1200.c218 hwif->dma_ops->dma_host_set(drive, 1); in sc1200_set_pio_mode()
297 .dma_ops = &sc1200_dma_ops,
Dsl82c105.c307 .dma_ops = &sl82c105_dma_ops,
328 d.dma_ops = NULL; in sl82c105_init_one()
Dns87415.c189 dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); in ns87415_dma_end()
300 .dma_ops = &ns87415_dma_ops,
Dsetup-pci.c134 dma_stat = hwif->dma_ops->dma_sff_read_status(hwif); in ide_pci_check_simplex()
378 if (hwif->dma_ops == NULL) in ide_hwif_setup_dma()
379 hwif->dma_ops = &sff_dma_ops; in ide_hwif_setup_dma()
Dide-taskfile.c85 const struct ide_dma_ops *dma_ops = hwif->dma_ops; in do_rw_taskfile() local
139 hwif->expiry = dma_ops->dma_timer_expiry; in do_rw_taskfile()
141 dma_ops->dma_start(drive); in do_rw_taskfile()
Dpdc202xx_old.c264 .dma_ops = &pdc2026x_dma_ops, \
277 .dma_ops = &sff_dma_ops,
Dalim15x3.c520 .dma_ops = &sff_dma_ops,
557 d.dma_ops = &ali_dma_ops; in alim15x3_init_one()
Dide-atapi.c413 rc = hwif->dma_ops->dma_end(drive); in ide_pc_intr()
658 hwif->dma_ops->dma_start(drive); in ide_transfer_pc()
662 hwif->dma_ops->dma_start(drive); in ide_transfer_pc()
Dide-devsets.c51 if (drive->hwif->dma_ops == NULL) in set_using_dma()
Dtc86c001.c199 .dma_ops = &tc86c001_dma_ops,
Dicside.c522 d.dma_ops = &icside_v6_dma_ops; in icside_register_v6()
533 if (d.dma_ops) in icside_register_v6()
Dtrm290.c331 .dma_ops = &trm290_dma_ops,
Dide-probe.c739 if (hwif->dma_ops) in ide_port_tune_devices()
1075 hwif->dma_ops = d->dma_ops; in ide_init_port()
1085 hwif->dma_ops = NULL; in ide_init_port()
Dcs5536.c254 .dma_ops = &cs5536_dma_ops,
Dhpt366.c1378 .dma_ops = &hpt36x_dma_ops,
1390 .dma_ops = &hpt37x_dma_ops,
1458 d.dma_ops = &hpt370_dma_ops; in hpt366_init_one()
Dide-pm.c183 if (drive->hwif->dma_ops == NULL) in ide_start_power_step()
Dide-io.c582 return hwif->dma_ops->dma_test_irq(drive); in drive_is_ready()
667 hwif->dma_ops->dma_lost_irq(drive); in ide_timer_expiry()
Dpalm_bk3710.c306 .dma_ops = &sff_dma_ops,
Dcmd64x.c407 d.dma_ops = &cmd646_rev1_dma_ops; in cmd64x_init_one()
Dsgiioc4.c528 .dma_ops = &sgiioc4_dma_ops,
Dau1xxx-ide.c489 .dma_ops = &au1xxx_dma_ops,
Dit821x.c574 hwif->dma_ops = &it821x_pass_through_dma_ops; in init_hwif_it821x()
Dtx4939ide.c529 .dma_ops = &tx4939ide_dma_ops,
Dsiimage.c716 .dma_ops = &sil_dma_ops, \
Dpmac.c1008 .dma_ops = &pmac_dma_ops,
Dide-cd.c541 dma_error = hwif->dma_ops->dma_end(drive); in cdrom_newpc_intr()
/linux-4.4.14/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.h6 struct dma_map_ops *dma_ops; member
Dpci.h100 #define PCI_DMA_BUS_IS_PHYS (dma_ops->is_phys)
/linux-4.4.14/arch/powerpc/kernel/
Ddma.c36 if (sd->max_direct_dma_addr && sd->dma_ops == &swiotlb_dma_ops) in get_pfn_limit()
312 struct dma_map_ops *dma_ops = get_dma_ops(dev); in __dma_set_mask() local
314 if ((dma_ops != NULL) && (dma_ops->set_dma_mask != NULL)) in __dma_set_mask()
315 return dma_ops->set_dma_mask(dev, dma_mask); in __dma_set_mask()
340 struct dma_map_ops *dma_ops = get_dma_ops(dev); in __dma_get_required_mask() local
342 if (unlikely(dma_ops == NULL)) in __dma_get_required_mask()
345 if (dma_ops->get_required_mask) in __dma_get_required_mask()
346 return dma_ops->get_required_mask(dev); in __dma_get_required_mask()
Dpci-common.c56 void set_pci_dma_ops(struct dma_map_ops *dma_ops) in set_pci_dma_ops() argument
58 pci_dma_ops = dma_ops; in set_pci_dma_ops()
Dibmebus.c172 dev->dev.archdata.dma_ops = &ibmebus_dma_ops; in ibmebus_create_device()
/linux-4.4.14/drivers/spi/
Dspi-dw.c355 ret = dws->dma_ops->dma_setup(dws, transfer); in dw_spi_transfer_one()
375 ret = dws->dma_ops->dma_transfer(dws, transfer); in dw_spi_transfer_one()
392 dws->dma_ops->dma_stop(dws); in dw_spi_handle_err()
510 if (dws->dma_ops && dws->dma_ops->dma_init) { in dw_spi_add_host()
511 ret = dws->dma_ops->dma_init(dws); in dw_spi_add_host()
516 master->can_dma = dws->dma_ops->can_dma; in dw_spi_add_host()
531 if (dws->dma_ops && dws->dma_ops->dma_exit) in dw_spi_add_host()
532 dws->dma_ops->dma_exit(dws); in dw_spi_add_host()
545 if (dws->dma_ops && dws->dma_ops->dma_exit) in dw_spi_remove_host()
546 dws->dma_ops->dma_exit(dws); in dw_spi_remove_host()
Dspi-dw.h133 struct dw_spi_dma_ops *dma_ops; member
Dspi-dw-mid.c327 dws->dma_ops = &mid_dma_ops; in dw_spi_mid_init()
/linux-4.4.14/arch/alpha/include/asm/
Ddma-mapping.h6 extern struct dma_map_ops *dma_ops;
10 return dma_ops; in get_dma_ops()
/linux-4.4.14/arch/hexagon/kernel/
Ddma.c28 struct dma_map_ops *dma_ops; variable
29 EXPORT_SYMBOL(dma_ops);
214 if (dma_ops) in hexagon_dma_init()
217 dma_ops = &hexagon_dma_ops; in hexagon_dma_init()
/linux-4.4.14/arch/arm/include/asm/mach/
Ddma.h17 struct dma_ops { struct
43 const struct dma_ops *d_ops; argument
/linux-4.4.14/arch/sh/include/asm/
Ddma-mapping.h4 extern struct dma_map_ops *dma_ops;
9 return dma_ops; in get_dma_ops()
Ddma.h56 struct dma_ops { struct
96 struct dma_ops *ops;
Dpci.h81 #define PCI_DMA_BUS_IS_PHYS (dma_ops->is_phys)
/linux-4.4.14/arch/mips/include/asm/
Ddma-mapping.h16 if (dev && dev->archdata.dma_ops) in get_dma_ops()
17 return dev->archdata.dma_ops; in get_dma_ops()
Ddevice.h13 struct dma_map_ops *dma_ops; member
/linux-4.4.14/arch/xtensa/include/asm/
Ddma-mapping.h27 if (dev && dev->archdata.dma_ops) in get_dma_ops()
28 return dev->archdata.dma_ops; in get_dma_ops()
Ddevice.h13 struct dma_map_ops *dma_ops; member
/linux-4.4.14/arch/hexagon/include/asm/
Ddma-mapping.h36 extern struct dma_map_ops *dma_ops;
43 return dma_ops; in get_dma_ops()
/linux-4.4.14/arch/sparc/include/asm/
Ddma-mapping.h21 extern struct dma_map_ops *dma_ops;
37 return dma_ops; in get_dma_ops()
/linux-4.4.14/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()
/linux-4.4.14/arch/arm64/include/asm/
Ddma-mapping.h32 if (dev && dev->archdata.dma_ops) in __generic_dma_ops()
33 return dev->archdata.dma_ops; in __generic_dma_ops()
Ddevice.h20 struct dma_map_ops *dma_ops; member
/linux-4.4.14/include/rdma/
Dib_verbs.h1803 struct ib_dma_mapping_ops *dma_ops; member
2596 if (dev->dma_ops) in ib_dma_mapping_error()
2597 return dev->dma_ops->mapping_error(dev, dma_addr); in ib_dma_mapping_error()
2612 if (dev->dma_ops) in ib_dma_map_single()
2613 return dev->dma_ops->map_single(dev, cpu_addr, size, direction); in ib_dma_map_single()
2628 if (dev->dma_ops) in ib_dma_unmap_single()
2629 dev->dma_ops->unmap_single(dev, addr, size, direction); in ib_dma_unmap_single()
2666 if (dev->dma_ops) in ib_dma_map_page()
2667 return dev->dma_ops->map_page(dev, page, offset, size, direction); in ib_dma_map_page()
2682 if (dev->dma_ops) in ib_dma_unmap_page()
[all …]
/linux-4.4.14/arch/arm/include/asm/
Ddma-mapping.h22 if (dev && dev->archdata.dma_ops) in __generic_dma_ops()
23 return dev->archdata.dma_ops; in __generic_dma_ops()
38 dev->archdata.dma_ops = ops; in set_dma_ops()
Ddevice.h10 struct dma_map_ops *dma_ops; member
/linux-4.4.14/arch/sh/kernel/
Ddma-nommu.c79 if (dma_ops) in no_iommu_init()
81 dma_ops = &nommu_dma_ops; in no_iommu_init()
/linux-4.4.14/arch/x86/pci/
Dsta2x11-fixup.c206 pdev->dev.archdata.dma_ops = &sta2x11_dma_ops; in sta2x11_setup_pdev()
226 if (dev->archdata.dma_ops != &sta2x11_dma_ops) { in dma_capable()
250 if (dev->archdata.dma_ops != &sta2x11_dma_ops) in phys_to_dma()
262 if (dev->archdata.dma_ops != &sta2x11_dma_ops) in dma_to_phys()
/linux-4.4.14/drivers/misc/mic/bus/
Dmic_bus.c146 mbus_register_device(struct device *pdev, int id, struct dma_map_ops *dma_ops, in mbus_register_device() argument
161 mbdev->dev.archdata.dma_ops = dma_ops; in mbus_register_device()
Dscif_bus.c141 scif_register_device(struct device *pdev, int id, struct dma_map_ops *dma_ops, in scif_register_device() argument
157 sdev->dev.archdata.dma_ops = dma_ops; in scif_register_device()
Dscif_bus.h116 struct dma_map_ops *dma_ops,
/linux-4.4.14/include/linux/mmc/
Ddw_mmc.h168 const struct dw_mci_dma_ops *dma_ops; member
279 struct dw_mci_dma_ops *dma_ops; member
/linux-4.4.14/arch/powerpc/include/asm/
Ddma-mapping.h92 return dev->archdata.dma_ops; in get_dma_ops()
97 dev->archdata.dma_ops = ops; in set_dma_ops()
Ddevice.h24 struct dma_map_ops *dma_ops; member
Dpci.h58 extern void set_pci_dma_ops(struct dma_map_ops *dma_ops);
/linux-4.4.14/arch/sh/mm/
Dconsistent.c25 struct dma_map_ops *dma_ops; variable
26 EXPORT_SYMBOL(dma_ops);
/linux-4.4.14/arch/alpha/kernel/
Dpci-noop.c178 struct dma_map_ops *dma_ops = &alpha_noop_ops; variable
179 EXPORT_SYMBOL(dma_ops);
Dpci_iommu.c953 struct dma_map_ops *dma_ops = &alpha_pci_ops; variable
954 EXPORT_SYMBOL(dma_ops);
/linux-4.4.14/drivers/mmc/host/
Ddw_mmc.c392 host->dma_ops->stop(host); in dw_mci_stop_dma()
393 host->dma_ops->cleanup(host); in dw_mci_stop_dma()
460 host->dma_ops->cleanup(host); in dw_mci_dmac_complete_dma()
957 host->dma_ops->stop(host); in dw_mci_submit_data_dma()
990 if (host->dma_ops->start(host, sg_len)) { in dw_mci_submit_data_dma()
2468 host->dma_ops->complete((void *)host); in dw_mci_interrupt()
2476 host->dma_ops->complete((void *)host); in dw_mci_interrupt()
2698 host->dma_ops = &dw_mci_idmac_ops; in dw_mci_init_dma()
2706 host->dma_ops = &dw_mci_edmac_ops; in dw_mci_init_dma()
2710 if (host->dma_ops->init && host->dma_ops->start && in dw_mci_init_dma()
[all …]
/linux-4.4.14/arch/arm/mach-footbridge/
Ddma.c37 static struct dma_ops fb_dma_ops = {
/linux-4.4.14/arch/ia64/include/asm/
Ddma-mapping.h17 extern struct dma_map_ops *dma_ops;
/linux-4.4.14/arch/x86/kernel/
Dpci-dma.c20 struct dma_map_ops *dma_ops = &nommu_dma_ops; variable
21 EXPORT_SYMBOL(dma_ops);
Dpci-swiotlb.c105 dma_ops = &swiotlb_dma_ops; in pci_swiotlb_init()
Dpci-calgary_64.c1180 dev->dev.archdata.dma_ops = &calgary_dma_ops; in calgary_init()
1204 dev->dev.archdata.dma_ops = NULL; in calgary_init()
Damd_gart_64.c852 dma_ops = &gart_dma_ops; in gart_iommu_init()
/linux-4.4.14/arch/arm/mach-rpc/
Ddma.c243 static struct dma_ops iomd_dma_ops = {
309 static struct dma_ops floppy_dma_ops = {
323 static struct dma_ops sound_dma_ops = {
/linux-4.4.14/arch/tile/kernel/
Dpci-dma.c589 struct dma_map_ops *dma_ops = get_dma_ops(dev); in dma_set_coherent_mask() local
597 if (dma_ops == gx_pci_dma_map_ops || in dma_set_coherent_mask()
598 dma_ops == gx_hybrid_pci_dma_map_ops || in dma_set_coherent_mask()
599 dma_ops == gx_legacy_pci_dma_map_ops) { in dma_set_coherent_mask()
/linux-4.4.14/include/linux/
Dmic_bus.h93 mbus_register_device(struct device *pdev, int id, struct dma_map_ops *dma_ops,
Dide.h714 const struct ide_dma_ops *dma_ops; member
1312 const struct ide_dma_ops *dma_ops; member
/linux-4.4.14/arch/sh/drivers/dma/
Ddma-pvr2.c75 static struct dma_ops pvr2_dma_ops = {
Ddma-g2.c157 static struct dma_ops g2_dma_ops = {
Ddma-sh.c366 static struct dma_ops sh_dmac_ops = {
/linux-4.4.14/arch/powerpc/platforms/cell/
Diommu.c695 dev->archdata.dma_ops = get_pci_dma_ops(); in cell_of_bus_notify()
1175 struct dma_map_ops *dma_ops; in cell_dma_get_required_mask() local
1184 dma_ops = get_dma_ops(dev); in cell_dma_get_required_mask()
1185 if (dma_ops->get_required_mask) in cell_dma_get_required_mask()
1186 return dma_ops->get_required_mask(dev); in cell_dma_get_required_mask()
1188 WARN_ONCE(1, "no get_required_mask in %p ops", dma_ops); in cell_dma_get_required_mask()
/linux-4.4.14/arch/arm/kernel/
Ddma-isa.c127 static struct dma_ops isa_dma_ops = {
/linux-4.4.14/arch/arm64/mm/
Ddma-mapping.c846 dev->archdata.dma_ops = &iommu_dma_ops; in do_iommu_attach()
976 dev->archdata.dma_ops = NULL; in arch_teardown_dma_ops()
990 if (!dev->archdata.dma_ops) in arch_setup_dma_ops()
991 dev->archdata.dma_ops = &swiotlb_dma_ops; in arch_setup_dma_ops()
/linux-4.4.14/arch/powerpc/platforms/pasemi/
Diommu.c189 dev->dev.archdata.dma_ops = &dma_direct_ops; in pci_dma_dev_setup_pasemi()
Dsetup.c371 dev->archdata.dma_ops = &dma_direct_ops; in pcmcia_notify()
/linux-4.4.14/arch/sparc/kernel/
Dioport.c658 struct dma_map_ops *dma_ops = &sbus_dma_ops; variable
659 EXPORT_SYMBOL(dma_ops);
Diommu.c755 struct dma_map_ops *dma_ops = &sun4u_dma_ops; variable
756 EXPORT_SYMBOL(dma_ops);
Dpci_sun4v.c927 dma_ops = &sun4v_dma_ops; in pci_sun4v_probe()
/linux-4.4.14/arch/powerpc/platforms/ps3/
Dsystem-bus.c759 dev->core.archdata.dma_ops = &ps3_ioc0_dma_ops; in ps3_system_bus_device_register()
763 dev->core.archdata.dma_ops = &ps3_sb_dma_ops; in ps3_system_bus_device_register()
/linux-4.4.14/arch/ia64/sn/pci/
Dpci_dma.c486 dma_ops = &sn_dma_ops; in sn_dma_init()
/linux-4.4.14/arch/arm/mm/
Ddma-mapping.c2133 struct dma_map_ops *dma_ops; in arch_setup_dma_ops() local
2137 dma_ops = arm_get_iommu_dma_map_ops(coherent); in arch_setup_dma_ops()
2139 dma_ops = arm_get_dma_map_ops(coherent); in arch_setup_dma_ops()
2141 set_dma_ops(dev, dma_ops); in arch_setup_dma_ops()
/linux-4.4.14/arch/mips/pci/
Dpci-octeon.c170 dev->dev.archdata.dma_ops = octeon_pci_dma_map_ops; in pcibios_plat_dev_init()
/linux-4.4.14/arch/ia64/hp/common/
Dsba_iommu.c2114 dma_ops = &swiotlb_dma_ops; in sba_init()
2136 dma_ops = &swiotlb_dma_ops; in sba_init()
2236 dma_ops = &sba_dma_ops; in sba_dma_init()
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
Dvmwgfx_drv.c531 const struct dma_map_ops *dma_ops = get_dma_ops(dev_priv->dev->dev); in vmw_dma_select_mode() local
548 if (dma_ops->sync_single_for_cpu) in vmw_dma_select_mode()
/linux-4.4.14/drivers/iommu/
Damd_iommu.c418 dev->archdata.dma_ops = NULL; in iommu_uninit_device()
2249 dev->archdata.dma_ops = &nommu_dma_ops; in amd_iommu_add_device()
2266 dev->archdata.dma_ops = &amd_iommu_dma_ops; in amd_iommu_add_device()
2841 dma_ops = &nommu_dma_ops; in amd_iommu_init_dma_ops()
Dintel-iommu.c4638 dma_ops = &intel_dma_ops; in intel_iommu_init()
/linux-4.4.14/drivers/staging/rdma/ehca/
Dehca_main.c531 shca->ib_device.dma_ops = &ehca_dma_mapping_ops; in ehca_init_device()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dverbs.c2078 ibdev->dma_ops = &hfi1_dma_mapping_ops; in hfi1_register_ib_device()
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_verbs.c2272 ibdev->dma_ops = &qib_dma_mapping_ops; in qib_register_ib_device()
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_verbs.c2215 dev->dma_ops = &ipath_dma_mapping_ops; in ipath_register_ib_device()
/linux-4.4.14/drivers/infiniband/ulp/srpt/
Dib_srpt.c3138 device->dma_ops); in srpt_add_one()