Home
last modified time | relevance | path

Searched refs:dma_handle (Results 1 – 25 of 39) sorted by relevance

12

/linux-4.19.296/drivers/misc/mic/scif/
Dscif_map.h24 scif_alloc_coherent(dma_addr_t *dma_handle, in scif_alloc_coherent() argument
33 *dma_handle = virt_to_phys(va); in scif_alloc_coherent()
36 size, dma_handle, gfp); in scif_alloc_coherent()
38 *dma_handle = *dma_handle + scifdev->base_addr; in scif_alloc_coherent()
58 scif_map_single(dma_addr_t *dma_handle, in scif_map_single() argument
64 *dma_handle = virt_to_phys((local)); in scif_map_single()
66 *dma_handle = dma_map_single(&scifdev->sdev->dev, in scif_map_single()
68 if (dma_mapping_error(&scifdev->sdev->dev, *dma_handle)) in scif_map_single()
71 *dma_handle = *dma_handle + scifdev->base_addr; in scif_map_single()
74 *dma_handle = 0; in scif_map_single()
[all …]
/linux-4.19.296/include/linux/
Dpci-dma-compat.h18 dma_addr_t *dma_handle) in pci_alloc_consistent() argument
20 return dma_alloc_coherent(&hwdev->dev, size, dma_handle, GFP_ATOMIC); in pci_alloc_consistent()
25 dma_addr_t *dma_handle) in pci_zalloc_consistent() argument
27 return dma_zalloc_coherent(&hwdev->dev, size, dma_handle, GFP_ATOMIC); in pci_zalloc_consistent()
32 void *vaddr, dma_addr_t dma_handle) in pci_free_consistent() argument
34 dma_free_coherent(&hwdev->dev, size, vaddr, dma_handle); in pci_free_consistent()
79 pci_dma_sync_single_for_cpu(struct pci_dev *hwdev, dma_addr_t dma_handle, in pci_dma_sync_single_for_cpu() argument
82 dma_sync_single_for_cpu(&hwdev->dev, dma_handle, size, (enum dma_data_direction)direction); in pci_dma_sync_single_for_cpu()
86 pci_dma_sync_single_for_device(struct pci_dev *hwdev, dma_addr_t dma_handle, in pci_dma_sync_single_for_device() argument
89 dma_sync_single_for_device(&hwdev->dev, dma_handle, size, (enum dma_data_direction)direction); in pci_dma_sync_single_for_device()
Ddma-debug.h65 dma_addr_t dma_handle, size_t size,
69 dma_addr_t dma_handle,
73 dma_addr_t dma_handle,
79 dma_addr_t dma_handle,
158 dma_addr_t dma_handle, in debug_dma_sync_single_for_cpu() argument
164 dma_addr_t dma_handle, in debug_dma_sync_single_for_device() argument
170 dma_addr_t dma_handle, in debug_dma_sync_single_range_for_cpu() argument
178 dma_addr_t dma_handle, in debug_dma_sync_single_range_for_device() argument
Ddma-mapping.h81 dma_addr_t *dma_handle, gfp_t gfp,
84 void *vaddr, dma_addr_t dma_handle,
97 void (*unmap_page)(struct device *dev, dma_addr_t dma_handle,
114 void (*unmap_resource)(struct device *dev, dma_addr_t dma_handle,
118 dma_addr_t dma_handle, size_t size,
121 dma_addr_t dma_handle, size_t size,
164 dma_addr_t *dma_handle, void **ret);
170 void *dma_alloc_from_global_coherent(ssize_t size, dma_addr_t *dma_handle);
181 dma_addr_t *dma_handle) in dma_alloc_from_global_coherent() argument
509 dma_addr_t *dma_handle, gfp_t flag, in dma_alloc_attrs() argument
[all …]
Ddma-noncoherent.h7 void *arch_dma_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle,
Ddma-direct.h58 void *dma_direct_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle,
Dswiotlb.h70 void *swiotlb_alloc(struct device *hwdev, size_t size, dma_addr_t *dma_handle,
/linux-4.19.296/drivers/char/xillybus/
Dxillybus_of.c39 dma_addr_t dma_handle, in xilly_dma_sync_single_for_cpu_of() argument
43 dma_sync_single_for_cpu(ep->dev, dma_handle, size, direction); in xilly_dma_sync_single_for_cpu_of()
47 dma_addr_t dma_handle, in xilly_dma_sync_single_for_device_of() argument
51 dma_sync_single_for_device(ep->dev, dma_handle, size, direction); in xilly_dma_sync_single_for_device_of()
55 dma_addr_t dma_handle, in xilly_dma_sync_single_nop() argument
Dxillybus_pcie.c53 dma_addr_t dma_handle, in xilly_dma_sync_single_for_cpu_pci() argument
58 dma_handle, in xilly_dma_sync_single_for_cpu_pci()
64 dma_addr_t dma_handle, in xilly_dma_sync_single_for_device_pci() argument
69 dma_handle, in xilly_dma_sync_single_for_device_pci()
/linux-4.19.296/drivers/media/v4l2-core/
Dvideobuf-dma-contig.c29 dma_addr_t dma_handle; member
46 &mem->dma_handle, flags); in __videobuf_dc_alloc()
61 dma_free_coherent(dev, mem->size, mem->vaddr, mem->dma_handle); in __videobuf_dc_free()
146 mem->dma_handle = 0; in videobuf_dma_contig_user_put()
193 mem->dma_handle = (this_pfn << PAGE_SHIFT) + offset; in videobuf_dma_contig_user_get()
317 retval = vm_iomap_memory(vma, mem->dma_handle, size); in __videobuf_mmap_mapper()
322 mem->vaddr, mem->dma_handle); in __videobuf_mmap_mapper()
373 return mem->dma_handle; in videobuf_to_dma_contig()
/linux-4.19.296/include/xen/arm/
Dpage-coherent.h29 dma_addr_t *dma_handle, gfp_t flags, unsigned long attrs) in xen_alloc_coherent_pages() argument
31 return xen_get_dma_ops(hwdev)->alloc(hwdev, size, dma_handle, flags, attrs); in xen_alloc_coherent_pages()
35 void *cpu_addr, dma_addr_t dma_handle, unsigned long attrs) in xen_free_coherent_pages() argument
37 xen_get_dma_ops(hwdev)->free(hwdev, size, cpu_addr, dma_handle, attrs); in xen_free_coherent_pages()
/linux-4.19.296/drivers/media/common/saa7146/
Dsaa7146_core.c428 &dev->d_rps0.dma_handle); in saa7146_init_one()
433 &dev->d_rps1.dma_handle); in saa7146_init_one()
438 &dev->d_i2c.dma_handle); in saa7146_init_one()
487 dev->d_i2c.dma_handle); in saa7146_init_one()
490 dev->d_rps1.dma_handle); in saa7146_init_one()
493 dev->d_rps0.dma_handle); in saa7146_init_one()
515 { dev->d_i2c.cpu_addr, dev->d_i2c.dma_handle }, in saa7146_remove_one()
516 { dev->d_rps1.cpu_addr, dev->d_rps1.dma_handle }, in saa7146_remove_one()
517 { dev->d_rps0.cpu_addr, dev->d_rps0.dma_handle }, in saa7146_remove_one()
/linux-4.19.296/drivers/isdn/hardware/eicon/
Ddivasmain.c338 dma_addr_t *dma_handle, in diva_pci_alloc_consistent() argument
341 void *addr = pci_alloc_consistent(hwdev, size, dma_handle); in diva_pci_alloc_consistent()
357 dma_addr_t dma_handle; in diva_init_dma_map() local
364 &dma_handle, in diva_init_dma_map()
370 (dword) dma_handle, in diva_init_dma_map()
374 (dword) dma_handle, in diva_init_dma_map()
391 dma_addr_t dma_handle; in diva_free_dma_map() local
400 dma_handle = (dma_addr_t) phys_addr; in diva_free_dma_map()
402 dma_handle); in diva_free_dma_map()
404 (unsigned long) cpu_addr, (dword) dma_handle, in diva_free_dma_map()
Ddebug.c52 int dma_handle; member
928 clients[id].dma_handle = -1; in diva_mnt_add_xdi_adapter()
1052 if (clients[i].dma_handle >= 0) { in diva_mnt_remove_xdi_adapter()
1056 diva_free_dma_descriptor(clients[i].request, clients[i].dma_handle); in diva_mnt_remove_xdi_adapter()
1057 clients[i].dma_handle = -1; in diva_mnt_remove_xdi_adapter()
1188 if ((pC->dma_handle = diva_get_dma_descriptor(pC->request, &rx_dma_magic)) >= 0) { in SuperTraceASSIGN()
1192 pC->xbuffer[3] = (byte)pC->dma_handle; in SuperTraceASSIGN()
1204 pC->dma_handle = -1; in SuperTraceASSIGN()
1368 if ((e->complete == 255) || (pC->dma_handle < 0)) { in diva_maint_xdi_cb()
1945 if (clients[i].dma_handle >= 0) { in diva_mnt_shutdown_xdi_adapters()
[all …]
/linux-4.19.296/drivers/s390/net/
Dism_drv.c89 dma_addr_t dma_handle; in register_sba() local
93 &dma_handle, GFP_KERNEL); in register_sba()
100 cmd.request.sba = dma_handle; in register_sba()
103 dma_free_coherent(&ism->pdev->dev, PAGE_SIZE, sba, dma_handle); in register_sba()
108 ism->sba_dma_addr = dma_handle; in register_sba()
116 dma_addr_t dma_handle; in register_ieq() local
120 &dma_handle, GFP_KERNEL); in register_ieq()
127 cmd.request.ieq = dma_handle; in register_ieq()
131 dma_free_coherent(&ism->pdev->dev, PAGE_SIZE, ieq, dma_handle); in register_ieq()
137 ism->ieq_dma_addr = dma_handle; in register_ieq()
/linux-4.19.296/drivers/xen/
Dswiotlb-xen.c151 dma_addr_t dma_handle; in xen_swiotlb_fixup() local
164 dma_bits, &dma_handle); in xen_swiotlb_fixup()
289 dma_addr_t *dma_handle, gfp_t flags, in xen_swiotlb_alloc_coherent() argument
314 ret = xen_alloc_coherent_pages(hwdev, size, dma_handle, flags, attrs); in xen_swiotlb_alloc_coherent()
326 phys = *dma_handle; in xen_swiotlb_alloc_coherent()
330 *dma_handle = dev_addr; in xen_swiotlb_alloc_coherent()
333 fls64(dma_mask), dma_handle) != 0) { in xen_swiotlb_alloc_coherent()
/linux-4.19.296/include/xen/
Dxen-ops.h47 dma_addr_t *dma_handle);
54 dma_addr_t *dma_handle) in xen_create_contiguous_region() argument
/linux-4.19.296/drivers/message/fusion/
Dmptsas.c656 dma_addr_t dma_handle; in mptsas_add_device_component_starget_ir() local
678 &dma_handle); in mptsas_add_device_component_starget_ir()
683 cfg.physAddr = dma_handle; in mptsas_add_device_component_starget_ir()
745 dma_handle); in mptsas_add_device_component_starget_ir()
1349 dma_addr_t dma_handle; in mptsas_sas_enclosure_pg0() local
1375 &dma_handle); in mptsas_sas_enclosure_pg0()
1381 cfg.physAddr = dma_handle; in mptsas_sas_enclosure_pg0()
1402 buffer, dma_handle); in mptsas_sas_enclosure_pg0()
2006 dma_addr_t dma_handle; in mptsas_get_linkerrors() local
2035 &dma_handle); in mptsas_get_linkerrors()
[all …]
/linux-4.19.296/drivers/misc/mic/host/
Dmic_boot.c146 dma_addr_t *dma_handle, gfp_t gfp, in __mic_dma_alloc() argument
160 *dma_handle = tmp; in __mic_dma_alloc()
167 dma_addr_t dma_handle, unsigned long attrs) in __mic_dma_free() argument
172 mic_unmap_single(mdev, dma_handle, size); in __mic_dma_free()
/linux-4.19.296/drivers/misc/genwqe/
Dcard_base.h542 dma_addr_t *dma_handle);
544 void *vaddr, dma_addr_t dma_handle);
Dcard_utils.c218 dma_addr_t *dma_handle) in __genwqe_alloc_consistent() argument
223 return dma_zalloc_coherent(&cd->pci_dev->dev, size, dma_handle, in __genwqe_alloc_consistent()
228 void *vaddr, dma_addr_t dma_handle) in __genwqe_free_consistent() argument
233 dma_free_coherent(&cd->pci_dev->dev, size, vaddr, dma_handle); in __genwqe_free_consistent()
/linux-4.19.296/drivers/virtio/
Dvirtio_ring.c1020 dma_addr_t *dma_handle, gfp_t flag) in vring_alloc_queue() argument
1024 dma_handle, flag); in vring_alloc_queue()
1029 *dma_handle = (dma_addr_t)phys_addr; in vring_alloc_queue()
1042 if (WARN_ON_ONCE(*dma_handle != phys_addr)) { in vring_alloc_queue()
1052 void *queue, dma_addr_t dma_handle) in vring_free_queue() argument
1055 dma_free_coherent(vdev->dev.parent, size, queue, dma_handle); in vring_free_queue()
/linux-4.19.296/drivers/parport/
Dparport_gsc.c260 priv->dma_handle = 0; in parport_gsc_probe_port()
398 priv->dma_handle); in parport_remove_chip()
Dparport_pc.c576 dma_addr_t dma_addr, dma_handle; in parport_pc_fifo_write_block_dma() local
587 dma_addr = dma_handle = dma_map_single(dev, (void *)buf, length, in parport_pc_fifo_write_block_dma()
593 dma_addr = priv->dma_handle; in parport_pc_fifo_write_block_dma()
594 dma_handle = 0; in parport_pc_fifo_write_block_dma()
615 if (!dma_handle) /* bounce buffer ! */ in parport_pc_fifo_write_block_dma()
637 if (dma_handle) in parport_pc_fifo_write_block_dma()
675 if (dma_handle) in parport_pc_fifo_write_block_dma()
689 if (dma_handle) in parport_pc_fifo_write_block_dma()
690 dma_unmap_single(dev, dma_handle, length, DMA_TO_DEVICE); in parport_pc_fifo_write_block_dma()
2078 priv->dma_handle = 0; in parport_pc_probe_port()
[all …]
/linux-4.19.296/drivers/parisc/
Dccio-dma.c852 ccio_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag, in ccio_alloc() argument
862 *dma_handle = 0; in ccio_alloc()
870 *dma_handle = ccio_map_single(dev, ret, size, PCI_DMA_BIDIRECTIONAL); in ccio_alloc()
887 dma_addr_t dma_handle, unsigned long attrs) in ccio_free() argument
889 ccio_unmap_page(dev, dma_handle, size, 0, 0); in ccio_free()

12