Home
last modified time | relevance | path

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

1234567

/linux-6.12.1/kernel/dma/
Dmapping.c36 dma_addr_t dma_handle; member
44 dma_free_attrs(dev, this->size, this->vaddr, this->dma_handle, in dmam_release()
54 this->dma_handle != match->dma_handle); in dmam_match()
70 dma_addr_t dma_handle) in dmam_free_coherent() argument
72 struct dma_devres match_data = { size, vaddr, dma_handle }; in dmam_free_coherent()
75 dma_free_coherent(dev, size, vaddr, dma_handle); in dmam_free_coherent()
93 void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dmam_alloc_attrs() argument
103 vaddr = dma_alloc_attrs(dev, size, dma_handle, gfp, attrs); in dmam_alloc_attrs()
110 dr->dma_handle = *dma_handle; in dmam_alloc_attrs()
591 void *dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_attrs() argument
[all …]
Dops_helpers.c63 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) in dma_common_alloc_pages() argument
75 *dma_handle = iommu_dma_map_page(dev, page, 0, size, dir, in dma_common_alloc_pages()
78 *dma_handle = ops->map_page(dev, page, 0, size, dir, in dma_common_alloc_pages()
80 if (*dma_handle == DMA_MAPPING_ERROR) { in dma_common_alloc_pages()
90 dma_addr_t dma_handle, enum dma_data_direction dir) in dma_common_free_pages() argument
95 iommu_dma_unmap_page(dev, dma_handle, size, dir, in dma_common_free_pages()
98 ops->unmap_page(dev, dma_handle, size, dir, in dma_common_free_pages()
Ddirect.c172 dma_addr_t *dma_handle, gfp_t gfp) in dma_direct_alloc_from_pool() argument
185 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc_from_pool()
190 dma_addr_t *dma_handle, gfp_t gfp) in dma_direct_alloc_no_mapping() argument
203 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc_no_mapping()
208 dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) in dma_direct_alloc() argument
220 return dma_direct_alloc_no_mapping(dev, size, dma_handle, gfp); in dma_direct_alloc()
225 return arch_dma_alloc(dev, size, dma_handle, gfp, in dma_direct_alloc()
234 dma_handle); in dma_direct_alloc()
255 return dma_direct_alloc_from_pool(dev, size, dma_handle, gfp); in dma_direct_alloc()
301 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc()
[all …]
Ddebug.h43 dma_addr_t dma_handle, size_t size,
47 dma_addr_t dma_handle,
107 dma_addr_t dma_handle, in debug_dma_sync_single_for_cpu() argument
113 dma_addr_t dma_handle, in debug_dma_sync_single_for_device() argument
Dcoherent.c143 ssize_t size, dma_addr_t *dma_handle) in __dma_alloc_from_coherent() argument
162 *dma_handle = dma_get_device_base(dev, mem) + in __dma_alloc_from_coherent()
188 dma_addr_t *dma_handle, void **ret) in dma_alloc_from_dev_coherent() argument
195 *ret = __dma_alloc_from_coherent(dev, mem, size, dma_handle); in dma_alloc_from_dev_coherent()
283 dma_addr_t *dma_handle) in dma_alloc_from_global_coherent() argument
289 dma_handle); in dma_alloc_from_global_coherent()
/linux-6.12.1/drivers/xen/
Dgrant-dma-ops.c79 dma_addr_t *dma_handle, gfp_t gfp, in xen_grant_dma_alloc() argument
111 *dma_handle = grant_to_dma(grant); in xen_grant_dma_alloc()
117 dma_addr_t dma_handle, unsigned long attrs) in xen_grant_dma_free() argument
130 grant = dma_to_grant(dma_handle); in xen_grant_dma_free()
146 dma_addr_t *dma_handle, in xen_grant_dma_alloc_pages() argument
152 vaddr = xen_grant_dma_alloc(dev, size, dma_handle, gfp, 0); in xen_grant_dma_alloc_pages()
160 struct page *vaddr, dma_addr_t dma_handle, in xen_grant_dma_free_pages() argument
163 xen_grant_dma_free(dev, size, page_to_virt(vaddr), dma_handle, 0); in xen_grant_dma_free_pages()
176 dma_addr_t dma_handle; in xen_grant_dma_map_page() local
197 dma_handle = grant_to_dma(grant) + dma_offset; in xen_grant_dma_map_page()
[all …]
Dswiotlb-xen.c119 dma_addr_t dma_handle; in xen_swiotlb_fixup() local
130 dma_bits, &dma_handle); in xen_swiotlb_fixup()
142 dma_addr_t *dma_handle, gfp_t flags, unsigned long attrs) in xen_swiotlb_alloc_coherent() argument
157 *dma_handle = xen_phys_to_dma(dev, phys); in xen_swiotlb_alloc_coherent()
158 if (*dma_handle + size - 1 > dma_mask || in xen_swiotlb_alloc_coherent()
161 dma_handle) != 0) in xen_swiotlb_alloc_coherent()
176 dma_addr_t dma_handle, unsigned long attrs) in xen_swiotlb_free_coherent() argument
184 if (WARN_ON_ONCE(dma_handle + size - 1 > dev->coherent_dma_mask) || in xen_swiotlb_free_coherent()
/linux-6.12.1/include/linux/
Ddma-map-ops.h18 dma_addr_t *dma_handle, gfp_t gfp,
21 dma_addr_t dma_handle, unsigned long attrs);
23 dma_addr_t *dma_handle, enum dma_data_direction dir,
26 dma_addr_t dma_handle, enum dma_data_direction dir);
37 void (*unmap_page)(struct device *dev, dma_addr_t dma_handle,
52 void (*unmap_resource)(struct device *dev, dma_addr_t dma_handle,
55 void (*sync_single_for_cpu)(struct device *dev, dma_addr_t dma_handle,
58 dma_addr_t dma_handle, size_t size,
163 dma_addr_t *dma_handle, void **ret);
182 dma_addr_t *dma_handle);
[all …]
Ddma-mapping.h120 void *dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle,
123 dma_addr_t dma_handle, unsigned long attrs);
124 void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle,
127 dma_addr_t dma_handle);
194 dma_addr_t *dma_handle, gfp_t flag, unsigned long attrs) in dma_alloc_attrs() argument
199 dma_addr_t dma_handle, unsigned long attrs) in dma_free_attrs() argument
203 dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) in dmam_alloc_attrs() argument
208 void *vaddr, dma_addr_t dma_handle) in dmam_free_coherent() argument
361 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp);
363 dma_addr_t dma_handle, enum dma_data_direction dir);
[all …]
Diommu-dma.h27 void iommu_dma_unmap_page(struct device *dev, dma_addr_t dma_handle,
60 void iommu_dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle,
62 void iommu_dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle,
/linux-6.12.1/arch/powerpc/kernel/
Ddma-iommu.c27 bool arch_dma_unmap_page_direct(struct device *dev, dma_addr_t dma_handle) in arch_dma_unmap_page_direct() argument
32 return is_direct_handle(dev, dma_handle); in arch_dma_unmap_page_direct()
79 dma_addr_t *dma_handle, gfp_t flag, in dma_iommu_alloc_coherent() argument
83 dma_handle, dev->coherent_dma_mask, flag, in dma_iommu_alloc_coherent()
88 void *vaddr, dma_addr_t dma_handle, in dma_iommu_free_coherent() argument
91 iommu_free_coherent(get_iommu_table_base(dev), size, vaddr, dma_handle); in dma_iommu_free_coherent()
109 static void dma_iommu_unmap_page(struct device *dev, dma_addr_t dma_handle, in dma_iommu_unmap_page() argument
113 iommu_unmap_page(get_iommu_table_base(dev), dma_handle, size, direction, in dma_iommu_unmap_page()
Diommu.c628 dma_addr_t dma_handle = sg->dma_address; in ppc_iommu_unmap_sg() local
632 npages = iommu_num_pages(dma_handle, sg->dma_length, in ppc_iommu_unmap_sg()
634 __iommu_free(tbl, dma_handle, npages); in ppc_iommu_unmap_sg()
858 dma_addr_t dma_handle = DMA_MAPPING_ERROR; in iommu_map_page() local
875 dma_handle = iommu_alloc(dev, tbl, vaddr, npages, direction, in iommu_map_page()
878 if (dma_handle == DMA_MAPPING_ERROR) { in iommu_map_page()
886 dma_handle |= (uaddr & ~IOMMU_PAGE_MASK(tbl)); in iommu_map_page()
889 return dma_handle; in iommu_map_page()
892 void iommu_unmap_page(struct iommu_table *tbl, dma_addr_t dma_handle, in iommu_unmap_page() argument
901 npages = iommu_num_pages(dma_handle, size, in iommu_unmap_page()
[all …]
/linux-6.12.1/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()
/linux-6.12.1/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_hwrm.c64 dma_addr_t dma_handle; in __hwrm_req_init() local
71 &dma_handle); in __hwrm_req_init()
81 ctx->dma_handle = dma_handle; in __hwrm_req_init()
90 ctx->req->resp_addr = cpu_to_le64(dma_handle + BNXT_HWRM_RESP_OFFSET); in __hwrm_req_init()
221 ctx->req->resp_addr = cpu_to_le64(ctx->dma_handle + in hwrm_req_replace()
301 dma_addr_t dma_handle = ctx->dma_handle; /* save before invalidate */ in __hwrm_ctx_drop() local
312 if (dma_handle) in __hwrm_ctx_drop()
313 dma_pool_free(bp->hwrm_dma_pool, addr, dma_handle); in __hwrm_ctx_drop()
519 short_input.req_addr = cpu_to_le64(ctx->dma_handle); in __hwrm_send()
778 hwrm_req_dma_slice(struct bnxt *bp, void *req, u32 size, dma_addr_t *dma_handle) in hwrm_req_dma_slice() argument
[all …]
/linux-6.12.1/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()
/linux-6.12.1/drivers/scsi/aic94xx/
Daic94xx_hwi.c222 &seq->next_scb.dma_handle); in asd_init_scbs()
355 eb->bus_addr = cpu_to_le64(((u64) edb->dma_handle)); in asd_assign_edbs2escbs()
502 dma_addr_t dma_handle; in asd_extend_devctx() local
524 dma_handle = asd_ha->hw_prof.ddb_ext->dma_handle; in asd_extend_devctx()
525 dma_addr = ALIGN((unsigned long) dma_handle, ASD_DDB_SIZE); in asd_extend_devctx()
527 dma_handle = (dma_addr_t) dma_addr; in asd_extend_devctx()
528 asd_write_reg_addr(asd_ha, DEVCTXBASE, dma_handle); in asd_extend_devctx()
540 dma_addr_t dma_handle; in asd_extend_cmdctx() local
560 dma_handle = asd_ha->hw_prof.scb_ext->dma_handle; in asd_extend_cmdctx()
561 dma_addr = ALIGN((unsigned long) dma_handle, ASD_SCB_SIZE); in asd_extend_cmdctx()
[all …]
/linux-6.12.1/drivers/media/common/saa7146/
Dsaa7146_core.c404 &dev->d_rps0.dma_handle, in saa7146_init_one()
410 &dev->d_rps1.dma_handle, in saa7146_init_one()
416 &dev->d_i2c.dma_handle, GFP_KERNEL); in saa7146_init_one()
465 dev->d_i2c.dma_handle); in saa7146_init_one()
468 dev->d_rps1.dma_handle); in saa7146_init_one()
471 dev->d_rps0.dma_handle); in saa7146_init_one()
493 { dev->d_i2c.cpu_addr, dev->d_i2c.dma_handle }, in saa7146_remove_one()
494 { dev->d_rps1.cpu_addr, dev->d_rps1.dma_handle }, in saa7146_remove_one()
495 { dev->d_rps0.cpu_addr, dev->d_rps0.dma_handle }, in saa7146_remove_one()
/linux-6.12.1/drivers/media/pci/intel/ipu6/
Dipu6-dma.c118 dma_addr_t dma_handle, in ipu6_dma_sync_single_for_cpu() argument
127 info = get_vm_info(mmu, dma_handle); in ipu6_dma_sync_single_for_cpu()
131 offset = dma_handle - info->ipu6_iova; in ipu6_dma_sync_single_for_cpu()
151 dma_addr_t *dma_handle, gfp_t gfp, in ipu6_dma_alloc() argument
210 *dma_handle = PFN_PHYS(iova->pfn_lo); in ipu6_dma_alloc()
213 info->ipu6_iova = *dma_handle; in ipu6_dma_alloc()
241 dma_addr_t dma_handle, in ipu6_dma_free() argument
246 struct iova *iova = find_iova(&mmu->dmap->iovad, PHYS_PFN(dma_handle)); in ipu6_dma_free()
255 info = get_vm_info(mmu, dma_handle); in ipu6_dma_free()
/linux-6.12.1/drivers/scsi/
Da3000.c71 scsi_pointer->dma_handle = addr; in dma_setup()
84 dma_unmap_single(hdata->dev, scsi_pointer->dma_handle, in dma_setup()
95 scsi_pointer->dma_handle = (dma_addr_t) NULL; in dma_setup()
113 scsi_pointer->dma_handle = addr; in dma_setup()
179 dma_unmap_single(hdata->dev, scsi_pointer->dma_handle, in dma_stop()
Da2091.c66 scsi_pointer->dma_handle = addr; in dma_setup()
71 dma_unmap_single(hdata->dev, scsi_pointer->dma_handle, in dma_setup()
74 scsi_pointer->dma_handle = (dma_addr_t) NULL; in dma_setup()
111 scsi_pointer->dma_handle = addr; in dma_setup()
168 dma_unmap_single(hdata->dev, scsi_pointer->dma_handle, in dma_stop()
Dgvp11.c73 scsi_pointer->dma_handle = addr; in dma_setup()
78 dma_unmap_single(hdata->dev, scsi_pointer->dma_handle, in dma_setup()
81 scsi_pointer->dma_handle = (dma_addr_t) NULL; in dma_setup()
128 dma_unmap_single(hdata->dev, scsi_pointer->dma_handle, in dma_setup()
159 scsi_pointer->dma_handle = addr; in dma_setup()
200 dma_unmap_single(hdata->dev, scsi_pointer->dma_handle, in dma_stop()
/linux-6.12.1/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()
/linux-6.12.1/drivers/net/ethernet/rocker/
Drocker_main.c157 dma_addr_t dma_handle, const unsigned char *buf, in rocker_dma_test_one() argument
191 dma_addr_t dma_handle; in rocker_dma_test_offset() local
202 dma_handle = dma_map_single(&pdev->dev, buf, ROCKER_TEST_DMA_BUF_SIZE, in rocker_dma_test_offset()
204 if (dma_mapping_error(&pdev->dev, dma_handle)) { in rocker_dma_test_offset()
209 rocker_write64(rocker, TEST_DMA_ADDR, dma_handle); in rocker_dma_test_offset()
214 dma_handle, buf, expect, in rocker_dma_test_offset()
221 dma_handle, buf, expect, in rocker_dma_test_offset()
230 dma_handle, buf, expect, in rocker_dma_test_offset()
236 dma_unmap_single(&pdev->dev, dma_handle, ROCKER_TEST_DMA_BUF_SIZE, in rocker_dma_test_offset()
499 dma_addr_t dma_handle; in rocker_dma_ring_bufs_alloc() local
[all …]
/linux-6.12.1/drivers/s390/net/
Dism_drv.c181 dma_addr_t dma_handle; in register_sba() local
184 sba = dma_alloc_coherent(&ism->pdev->dev, PAGE_SIZE, &dma_handle, in register_sba()
192 cmd.request.sba = dma_handle; in register_sba()
195 dma_free_coherent(&ism->pdev->dev, PAGE_SIZE, sba, dma_handle); in register_sba()
200 ism->sba_dma_addr = dma_handle; in register_sba()
208 dma_addr_t dma_handle; in register_ieq() local
211 ieq = dma_alloc_coherent(&ism->pdev->dev, PAGE_SIZE, &dma_handle, in register_ieq()
219 cmd.request.ieq = dma_handle; in register_ieq()
223 dma_free_coherent(&ism->pdev->dev, PAGE_SIZE, ieq, dma_handle); in register_ieq()
229 ism->ieq_dma_addr = dma_handle; in register_ieq()
/linux-6.12.1/drivers/tty/
Dgoldfish.c77 dma_addr_t dma_handle; in goldfish_tty_rw() local
98 dma_handle = dma_map_single(qtty->dev, (void *)addr, in goldfish_tty_rw()
101 if (dma_mapping_error(qtty->dev, dma_handle)) { in goldfish_tty_rw()
105 do_rw_io(qtty, dma_handle, avail, is_write); in goldfish_tty_rw()
111 dma_unmap_single(qtty->dev, dma_handle, avail, dma_dir); in goldfish_tty_rw()

1234567