Home
last modified time | relevance | path

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

1234567

/kernel/linux/linux-5.10/kernel/dma/
Dmapping.c25 dma_addr_t dma_handle; member
33 dma_free_attrs(dev, this->size, this->vaddr, this->dma_handle, in dmam_release()
43 this->dma_handle != match->dma_handle); in dmam_match()
59 dma_addr_t dma_handle) in dmam_free_coherent() argument
61 struct dma_devres match_data = { size, vaddr, dma_handle }; in dmam_free_coherent()
63 dma_free_coherent(dev, size, vaddr, dma_handle); in dmam_free_coherent()
82 void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dmam_alloc_attrs() argument
92 vaddr = dma_alloc_attrs(dev, size, dma_handle, gfp, attrs); in dmam_alloc_attrs()
99 dr->dma_handle = *dma_handle; in dmam_alloc_attrs()
421 void *dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_attrs() argument
[all …]
Dops_helpers.c62 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) in dma_common_alloc_pages() argument
73 *dma_handle = ops->map_page(dev, page, 0, size, dir, in dma_common_alloc_pages()
75 if (*dma_handle == DMA_MAPPING_ERROR) { in dma_common_alloc_pages()
85 dma_addr_t dma_handle, enum dma_data_direction dir) in dma_common_free_pages() argument
90 ops->unmap_page(dev, dma_handle, size, dir, in dma_common_free_pages()
Ddebug.h39 dma_addr_t dma_handle, size_t size,
43 dma_addr_t dma_handle,
99 dma_addr_t dma_handle, in debug_dma_sync_single_for_cpu() argument
105 dma_addr_t dma_handle, in debug_dma_sync_single_for_device() argument
Ddirect.c118 dma_addr_t *dma_handle, gfp_t gfp) in dma_direct_alloc_from_pool() argument
129 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc_from_pool()
134 dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) in dma_direct_alloc() argument
152 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc()
160 return arch_dma_alloc(dev, size, dma_handle, gfp, attrs); in dma_direct_alloc()
170 return dma_direct_alloc_from_pool(dev, size, dma_handle, gfp); in dma_direct_alloc()
228 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc()
278 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) in dma_direct_alloc_pages() argument
285 return dma_direct_alloc_from_pool(dev, size, dma_handle, gfp); in dma_direct_alloc_pages()
307 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc_pages()
Dcoherent.c145 ssize_t size, dma_addr_t *dma_handle) in __dma_alloc_from_coherent() argument
164 *dma_handle = dma_get_device_base(dev, mem) + in __dma_alloc_from_coherent()
190 dma_addr_t *dma_handle, void **ret) in dma_alloc_from_dev_coherent() argument
197 *ret = __dma_alloc_from_coherent(dev, mem, size, dma_handle); in dma_alloc_from_dev_coherent()
202 dma_addr_t *dma_handle) in dma_alloc_from_global_coherent() argument
208 dma_handle); in dma_alloc_from_global_coherent()
Dvirt.c11 dma_addr_t *dma_handle, gfp_t gfp, in dma_virt_alloc() argument
18 *dma_handle = (uintptr_t)ret; in dma_virt_alloc()
/kernel/linux/linux-5.10/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_alloc_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-map-ops.h16 dma_addr_t *dma_handle, gfp_t gfp,
19 dma_addr_t dma_handle, unsigned long attrs);
21 dma_addr_t *dma_handle, enum dma_data_direction dir,
24 dma_addr_t dma_handle, enum dma_data_direction dir);
26 dma_addr_t *dma_handle, enum dma_data_direction dir,
29 dma_addr_t dma_handle, enum dma_data_direction dir);
40 void (*unmap_page)(struct device *dev, dma_addr_t dma_handle,
54 void (*unmap_resource)(struct device *dev, dma_addr_t dma_handle,
57 void (*sync_single_for_cpu)(struct device *dev, dma_addr_t dma_handle,
60 dma_addr_t dma_handle, size_t size,
[all …]
Ddma-mapping.h125 void *dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle,
128 dma_addr_t dma_handle, unsigned long attrs);
129 void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle,
132 dma_addr_t dma_handle);
199 dma_addr_t *dma_handle, gfp_t flag, unsigned long attrs) in dma_alloc_attrs() argument
204 dma_addr_t dma_handle, unsigned long attrs) in dma_free_attrs() argument
208 dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) in dmam_alloc_attrs() argument
213 void *vaddr, dma_addr_t dma_handle) in dmam_free_coherent() argument
263 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp);
265 dma_addr_t dma_handle, enum dma_data_direction dir);
[all …]
/kernel/linux/linux-5.10/include/xen/arm/
Dpage-coherent.h9 dma_addr_t *dma_handle, gfp_t flags, unsigned long attrs) in xen_alloc_coherent_pages() argument
11 return dma_direct_alloc(hwdev, size, dma_handle, flags, attrs); in xen_alloc_coherent_pages()
15 void *cpu_addr, dma_addr_t dma_handle, unsigned long attrs) in xen_free_coherent_pages() argument
17 dma_direct_free(hwdev, size, cpu_addr, dma_handle, attrs); in xen_free_coherent_pages()
/kernel/linux/linux-5.10/sound/pci/asihpi/
Dhpios.c40 dma_alloc_coherent(&pdev->dev, size, &p_mem_area->dma_handle, in hpios_locked_mem_alloc()
45 size, (unsigned int)p_mem_area->dma_handle, in hpios_locked_mem_alloc()
62 p_mem_area->vaddr, p_mem_area->dma_handle); in hpios_locked_mem_free()
65 (unsigned int)p_mem_area->dma_handle, in hpios_locked_mem_free()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Ddma-iommu.c22 dma_addr_t *dma_handle, gfp_t flag, in dma_iommu_alloc_coherent() argument
26 dma_handle, dev->coherent_dma_mask, flag, in dma_iommu_alloc_coherent()
31 void *vaddr, dma_addr_t dma_handle, in dma_iommu_free_coherent() argument
34 iommu_free_coherent(get_iommu_table_base(dev), size, vaddr, dma_handle); in dma_iommu_free_coherent()
52 static void dma_iommu_unmap_page(struct device *dev, dma_addr_t dma_handle, in dma_iommu_unmap_page() argument
56 iommu_unmap_page(get_iommu_table_base(dev), dma_handle, size, direction, in dma_iommu_unmap_page()
Diommu.c581 dma_addr_t dma_handle = sg->dma_address; in ppc_iommu_unmap_sg() local
585 npages = iommu_num_pages(dma_handle, sg->dma_length, in ppc_iommu_unmap_sg()
587 __iommu_free(tbl, dma_handle, npages); in ppc_iommu_unmap_sg()
803 dma_addr_t dma_handle = DMA_MAPPING_ERROR; in iommu_map_page() local
820 dma_handle = iommu_alloc(dev, tbl, vaddr, npages, direction, in iommu_map_page()
823 if (dma_handle == DMA_MAPPING_ERROR) { in iommu_map_page()
831 dma_handle |= (uaddr & ~IOMMU_PAGE_MASK(tbl)); in iommu_map_page()
834 return dma_handle; in iommu_map_page()
837 void iommu_unmap_page(struct iommu_table *tbl, dma_addr_t dma_handle, in iommu_unmap_page() argument
846 npages = iommu_num_pages(dma_handle, size, in iommu_unmap_page()
[all …]
/kernel/linux/linux-5.10/arch/x86/include/asm/xen/
Dpage-coherent.h9 dma_addr_t *dma_handle, gfp_t flags, in xen_alloc_coherent_pages() argument
13 *dma_handle = virt_to_phys(vstart); in xen_alloc_coherent_pages()
18 void *cpu_addr, dma_addr_t dma_handle, in xen_free_coherent_pages() argument
/kernel/linux/linux-5.10/drivers/char/xillybus/
Dxillybus_of.c36 dma_addr_t dma_handle, in xilly_dma_sync_single_for_cpu_of() argument
40 dma_sync_single_for_cpu(ep->dev, dma_handle, size, direction); in xilly_dma_sync_single_for_cpu_of()
44 dma_addr_t dma_handle, in xilly_dma_sync_single_for_device_of() argument
48 dma_sync_single_for_device(ep->dev, dma_handle, size, direction); in xilly_dma_sync_single_for_device_of()
52 dma_addr_t dma_handle, in xilly_dma_sync_single_nop() argument
Dxillybus_pcie.c49 dma_addr_t dma_handle, in xilly_dma_sync_single_for_cpu_pci() argument
54 dma_handle, in xilly_dma_sync_single_for_cpu_pci()
60 dma_addr_t dma_handle, in xilly_dma_sync_single_for_device_pci() argument
65 dma_handle, in xilly_dma_sync_single_for_device_pci()
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
Dvideobuf-dma-contig.c26 dma_addr_t dma_handle; member
42 mem->vaddr = dma_alloc_coherent(dev, mem->size, &mem->dma_handle, in __videobuf_dc_alloc()
57 dma_free_coherent(dev, mem->size, mem->vaddr, mem->dma_handle); in __videobuf_dc_free()
142 mem->dma_handle = 0; in videobuf_dma_contig_user_put()
190 mem->dma_handle = (this_pfn << PAGE_SHIFT) + offset; in videobuf_dma_contig_user_get()
306 retval = dma_mmap_coherent(q->dev, vma, mem->vaddr, mem->dma_handle, in __videobuf_mmap_mapper()
312 mem->vaddr, mem->dma_handle); in __videobuf_mmap_mapper()
363 return mem->dma_handle; in videobuf_to_dma_contig()
/kernel/linux/linux-5.10/arch/sh/mm/
Dconsistent.c41 dma_addr_t dma_handle; in platform_resource_setup_memory() local
54 buf = dma_alloc_coherent(&pdev->dev, memsize, &dma_handle, GFP_KERNEL); in platform_resource_setup_memory()
61 r->start = dma_handle; in platform_resource_setup_memory()
/kernel/linux/linux-5.10/arch/m68k/kernel/
Ddma.c40 void *arch_dma_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle, in arch_dma_alloc() argument
51 *dma_handle = virt_to_phys(ret); in arch_dma_alloc()
57 dma_addr_t dma_handle, unsigned long attrs) in arch_dma_free() argument
/kernel/linux/linux-5.10/drivers/xen/
Dswiotlb-xen.c126 dma_addr_t dma_handle; in xen_swiotlb_fixup() local
139 dma_bits, &dma_handle); in xen_swiotlb_fixup()
278 dma_addr_t *dma_handle, gfp_t flags, in xen_swiotlb_alloc_coherent() argument
303 ret = xen_alloc_coherent_pages(hwdev, size, dma_handle, flags, attrs); in xen_swiotlb_alloc_coherent()
315 phys = dma_to_phys(hwdev, *dma_handle); in xen_swiotlb_alloc_coherent()
319 *dma_handle = dev_addr; in xen_swiotlb_alloc_coherent()
322 fls64(dma_mask), dma_handle) != 0) { in xen_swiotlb_alloc_coherent()
326 *dma_handle = phys_to_dma(hwdev, *dma_handle); in xen_swiotlb_alloc_coherent()
/kernel/linux/linux-5.10/drivers/crypto/marvell/cesa/
Dtdma.c195 dma_addr_t dma_handle; in mv_cesa_dma_add_desc() local
198 &dma_handle); in mv_cesa_dma_add_desc()
202 new_tdma->cur_dma = dma_handle; in mv_cesa_dma_add_desc()
204 chain->last->next_dma = cpu_to_le32(dma_handle); in mv_cesa_dma_add_desc()
256 dma_addr_t dma_handle; in mv_cesa_dma_add_op() local
263 op = dma_pool_alloc(cesa_dev->dma->op_pool, flags, &dma_handle); in mv_cesa_dma_add_op()
274 tdma->src = cpu_to_le32(dma_handle); in mv_cesa_dma_add_op()
/kernel/linux/linux-5.10/drivers/media/common/saa7146/
Dsaa7146_core.c416 &dev->d_rps0.dma_handle); in saa7146_init_one()
421 &dev->d_rps1.dma_handle); in saa7146_init_one()
426 &dev->d_i2c.dma_handle); in saa7146_init_one()
475 dev->d_i2c.dma_handle); in saa7146_init_one()
478 dev->d_rps1.dma_handle); in saa7146_init_one()
481 dev->d_rps0.dma_handle); in saa7146_init_one()
503 { dev->d_i2c.cpu_addr, dev->d_i2c.dma_handle }, in saa7146_remove_one()
504 { dev->d_rps1.cpu_addr, dev->d_rps1.dma_handle }, in saa7146_remove_one()
505 { dev->d_rps0.cpu_addr, dev->d_rps0.dma_handle }, in saa7146_remove_one()
/kernel/linux/linux-5.10/drivers/scsi/aic94xx/
Daic94xx_hwi.c224 &seq->next_scb.dma_handle); in asd_init_scbs()
357 eb->bus_addr = cpu_to_le64(((u64) edb->dma_handle)); in asd_assign_edbs2escbs()
504 dma_addr_t dma_handle; in asd_extend_devctx() local
526 dma_handle = asd_ha->hw_prof.ddb_ext->dma_handle; in asd_extend_devctx()
527 dma_addr = ALIGN((unsigned long) dma_handle, ASD_DDB_SIZE); in asd_extend_devctx()
529 dma_handle = (dma_addr_t) dma_addr; in asd_extend_devctx()
530 asd_write_reg_addr(asd_ha, DEVCTXBASE, dma_handle); in asd_extend_devctx()
542 dma_addr_t dma_handle; in asd_extend_cmdctx() local
562 dma_handle = asd_ha->hw_prof.scb_ext->dma_handle; in asd_extend_cmdctx()
563 dma_addr = ALIGN((unsigned long) dma_handle, ASD_SCB_SIZE); in asd_extend_cmdctx()
[all …]
/kernel/linux/linux-5.10/drivers/s390/net/
Dism_drv.c90 dma_addr_t dma_handle; in register_sba() local
93 sba = dma_alloc_coherent(&ism->pdev->dev, PAGE_SIZE, &dma_handle, in register_sba()
101 cmd.request.sba = dma_handle; in register_sba()
104 dma_free_coherent(&ism->pdev->dev, PAGE_SIZE, sba, dma_handle); in register_sba()
109 ism->sba_dma_addr = dma_handle; in register_sba()
117 dma_addr_t dma_handle; in register_ieq() local
120 ieq = dma_alloc_coherent(&ism->pdev->dev, PAGE_SIZE, &dma_handle, in register_ieq()
128 cmd.request.ieq = dma_handle; in register_ieq()
132 dma_free_coherent(&ism->pdev->dev, PAGE_SIZE, ieq, dma_handle); in register_ieq()
138 ism->ieq_dma_addr = dma_handle; in register_ieq()
/kernel/linux/linux-5.10/drivers/net/ethernet/rocker/
Drocker_main.c158 dma_addr_t dma_handle, const unsigned char *buf, in rocker_dma_test_one() argument
192 dma_addr_t dma_handle; in rocker_dma_test_offset() local
203 dma_handle = dma_map_single(&pdev->dev, buf, ROCKER_TEST_DMA_BUF_SIZE, in rocker_dma_test_offset()
205 if (dma_mapping_error(&pdev->dev, dma_handle)) { in rocker_dma_test_offset()
210 rocker_write64(rocker, TEST_DMA_ADDR, dma_handle); in rocker_dma_test_offset()
215 dma_handle, buf, expect, in rocker_dma_test_offset()
222 dma_handle, buf, expect, in rocker_dma_test_offset()
231 dma_handle, buf, expect, in rocker_dma_test_offset()
237 dma_unmap_single(&pdev->dev, dma_handle, ROCKER_TEST_DMA_BUF_SIZE, in rocker_dma_test_offset()
500 dma_addr_t dma_handle; in rocker_dma_ring_bufs_alloc() local
[all …]

1234567