Home
last modified time | relevance | path

Searched refs:sg_dma_address (Results 1 – 25 of 413) sorted by relevance

12345678910>>...17

/linux-6.15/drivers/parisc/
H A Diommu-helpers.h35 (unsigned long)sg_dma_address(startsg), in iommu_fill_pdir()
44 if (sg_dma_address(startsg) & PIDE_FLAG) { in iommu_fill_pdir()
45 u32 pide = sg_dma_address(startsg) & ~PIDE_FLAG; in iommu_fill_pdir()
57 sg_dma_address(dma_sg) = pide | ioc->ibase; in iommu_fill_pdir()
62 sg_dma_address(dma_sg) = pide; in iommu_fill_pdir()
124 sg_dma_address(startsg) = 0; in iommu_coalesce_chunks()
141 sg_dma_address(startsg) = 0; in iommu_coalesce_chunks()
173 sg_dma_address(contig_sg) = in iommu_coalesce_chunks()
/linux-6.15/drivers/gpu/drm/i915/
H A Di915_scatterlist.c30 sg_dma_address(new_sg) = sg_dma_address(sg); in i915_sg_trim()
125 sg_dma_address(sg) = region_start + offset; in i915_rsgt_from_mm_node()
126 GEM_BUG_ON(!IS_ALIGNED(sg_dma_address(sg), in i915_rsgt_from_mm_node()
215 sg_dma_address(sg) = region_start + offset; in i915_rsgt_from_buddy_resource()
216 GEM_BUG_ON(!IS_ALIGNED(sg_dma_address(sg), in i915_rsgt_from_buddy_resource()
/linux-6.15/drivers/net/ethernet/micrel/
H A Dks8842.c552 sg_dma_address(sg) = dma_map_single(adapter->dev, in __ks8842_start_new_rx_dma()
556 sg_dma_address(sg) = 0; in __ks8842_start_new_rx_dma()
575 sg_dma_address(sg) = 0; in __ks8842_start_new_rx_dma()
581 if (sg_dma_address(sg)) in __ks8842_start_new_rx_dma()
584 sg_dma_address(sg) = 0; in __ks8842_start_new_rx_dma()
598 dma_addr_t addr = sg_dma_address(&ctl->sg); in ks8842_rx_frame_dma_tasklet()
874 if (sg_dma_address(&rx_ctl->sg)) in ks8842_stop_dma()
877 sg_dma_address(&rx_ctl->sg) = 0; in ks8842_stop_dma()
900 if (sg_dma_address(&tx_ctl->sg)) in ks8842_dealloc_dma_bufs()
903 sg_dma_address(&tx_ctl->sg) = 0; in ks8842_dealloc_dma_bufs()
[all …]
/linux-6.15/drivers/media/pci/tw68/
H A Dtw68-risc.c65 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in tw68_risc_field()
80 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in tw68_risc_field()
88 *(rp++) = cpu_to_le32(sg_dma_address(sg)); in tw68_risc_field()
98 *(rp++) = cpu_to_le32(sg_dma_address(sg)); in tw68_risc_field()
/linux-6.15/lib/
H A Dsg_split.c92 sg_dma_address(out_sg) = 0; in sg_split_phys()
111 sg_dma_address(out_sg) = sg_dma_address(in_sg); in sg_split_mapped()
114 sg_dma_address(out_sg) += split->skip_sg0; in sg_split_mapped()
/linux-6.15/drivers/scsi/qla2xxx/
H A Dqla_dsd.h14 put_unaligned_le32(sg_dma_address(sg), &(*dsd)->address); in append_dsd32()
27 put_unaligned_le64(sg_dma_address(sg), &(*dsd)->address); in append_dsd64()
/linux-6.15/drivers/media/pci/intel/ipu6/
H A Dipu6-dma.c337 PHYS_PFN(sg_dma_address(sglist))); in ipu6_dma_unmap_sg()
356 &sg_dma_address(sg), sg_dma_len(sg)); in ipu6_dma_unmap_sg()
358 sg_dma_address(sg)); in ipu6_dma_unmap_sg()
361 sg_dma_address(sg) = pci_dma_addr; in ipu6_dma_unmap_sg()
415 i, &iova_pa, &sg_dma_address(sg), sg_dma_len(sg)); in ipu6_dma_map_sg()
418 sg_dma_address(sg), in ipu6_dma_map_sg()
423 sg_dma_address(sg) = PFN_PHYS(iova_addr); in ipu6_dma_map_sg()
/linux-6.15/drivers/hwtracing/intel_th/
H A Dmsu-sink.c72 PAGE_SIZE, &sg_dma_address(sg_ptr), in msu_sink_alloc_window()
92 sg_virt(sg_ptr), sg_dma_address(sg_ptr)); in msu_sink_free_window()
/linux-6.15/drivers/iommu/
H A Ddma-iommu.c1133 sg_dma_address(sg), in iommu_dma_sync_sg_for_device()
1235 dma_addr_t s_dma_addr = sg_dma_address(s); in __finalise_sg()
1236 unsigned int s_iova_off = sg_dma_address(s); in __finalise_sg()
1240 sg_dma_address(s) = DMA_MAPPING_ERROR; in __finalise_sg()
1248 sg_dma_address(cur) = s_dma_addr; in __finalise_sg()
1302 if (sg_dma_address(s) != DMA_MAPPING_ERROR) in __invalidate_sg()
1303 s->offset += sg_dma_address(s); in __invalidate_sg()
1307 sg_dma_address(s) = DMA_MAPPING_ERROR; in __invalidate_sg()
1334 if (sg_dma_address(s) == DMA_MAPPING_ERROR) in iommu_dma_map_sg_swiotlb()
1416 sg_dma_address(s) = s_iova_off; in iommu_dma_map_sg()
[all …]
/linux-6.15/drivers/spi/
H A Dspi-dw-dma.c584 sg_dma_address(&tx_tmp) = sg_dma_address(tx_sg); in dw_spi_dma_transfer_one()
591 sg_dma_address(&rx_tmp) = sg_dma_address(rx_sg); in dw_spi_dma_transfer_one()
627 sg_dma_address(&tx_tmp) += len; in dw_spi_dma_transfer_one()
628 sg_dma_address(&rx_tmp) += len; in dw_spi_dma_transfer_one()
H A Dspi-bcm2835.c531 sg_dma_address(&tfr->rx_sg.sgl[0]), in bcm2835_spi_transfer_prologue()
534 sg_dma_address(&tfr->rx_sg.sgl[0]) += bs->rx_prologue; in bcm2835_spi_transfer_prologue()
557 sg_dma_address(&tfr->tx_sg.sgl[0]) += bs->tx_prologue; in bcm2835_spi_transfer_prologue()
561 sg_dma_address(&tfr->tx_sg.sgl[1]) += 4; in bcm2835_spi_transfer_prologue()
582 sg_dma_address(&tfr->rx_sg.sgl[0]) -= bs->rx_prologue; in bcm2835_spi_undo_prologue()
590 sg_dma_address(&tfr->tx_sg.sgl[0]) -= bs->tx_prologue; in bcm2835_spi_undo_prologue()
594 sg_dma_address(&tfr->tx_sg.sgl[1]) -= 4; in bcm2835_spi_undo_prologue()
/linux-6.15/drivers/i2c/busses/
H A Di2c-at91-master.c146 dma_unmap_single(dev->dev, sg_dma_address(&dma->sg[0]), in at91_twi_dma_cleanup()
178 dma_unmap_single(dev->dev, sg_dma_address(&dev->dma.sg[0]), in at91_twi_write_data_dma_callback()
227 sg_dma_address(sg) = dma_addr; in at91_twi_write_data_dma()
234 sg_dma_address(sg) = dma_addr + part1_len; in at91_twi_write_data_dma()
247 sg_dma_address(&dma->sg[0]) = dma_addr; in at91_twi_write_data_dma()
320 dma_unmap_single(dev->dev, sg_dma_address(&dev->dma.sg[0]), in at91_twi_read_data_dma_callback()
367 sg_dma_address(&dma->sg[0]) = dma_addr; in at91_twi_read_data_dma()
/linux-6.15/arch/powerpc/platforms/512x/
H A Dmpc512x_lpbfifo.c250 sg_dma_address(&sg) = dma_map_single(dma_dev->dev, in mpc512x_lpbfifo_kick()
252 if (dma_mapping_error(dma_dev->dev, sg_dma_address(&sg))) in mpc512x_lpbfifo_kick()
255 lpbfifo.ram_bus_addr = sg_dma_address(&sg); /* For freeing later */ in mpc512x_lpbfifo_kick()
327 dma_unmap_single(dma_dev->dev, sg_dma_address(&sg), in mpc512x_lpbfifo_kick()
/linux-6.15/include/rdma/
H A Dib_umem.h58 return (sg_dma_address(umem->sgt_append.sgt.sgl) + ib_umem_offset(umem)) & in ib_umem_dma_offset()
141 dma_addr = sg_dma_address(sg) + (umem->address & ~PAGE_MASK); in ib_umem_find_best_pgoff()
/linux-6.15/drivers/media/pci/bt8xx/
H A Dbttv-risc.c81 *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset); in bttv_risc_packed()
88 *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset); in bttv_risc_packed()
95 *(rp++)=cpu_to_le32(sg_dma_address(sg)); in bttv_risc_packed()
101 *(rp++)=cpu_to_le32(sg_dma_address(sg)); in bttv_risc_packed()
212 *(rp++)=cpu_to_le32(sg_dma_address(ysg)+yoffset); in bttv_risc_planar()
215 *(rp++)=cpu_to_le32(sg_dma_address(usg)+uoffset); in bttv_risc_planar()
217 *(rp++)=cpu_to_le32(sg_dma_address(vsg)+voffset); in bttv_risc_planar()
/linux-6.15/drivers/target/iscsi/cxgbit/
H A Dcxgbit_ddp.c22 addr = sg_dma_address(sg); in cxgbit_set_one_ppod()
34 addr = sg_dma_address(sg); in cxgbit_set_one_ppod()
57 addr = sg_dma_address(sg); in cxgbit_set_one_ppod()
/linux-6.15/drivers/mtd/nand/
H A Decc-mxic.c583 writel(sg_dma_address(&ctx->sg[0]) + (step * ctx->data_step_sz), in mxic_ecc_prepare_io_req_external()
585 writel(sg_dma_address(&ctx->sg[1]) + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_prepare_io_req_external()
640 writel(sg_dma_address(&ctx->sg[0]) + (step * ctx->data_step_sz), in mxic_ecc_finish_io_req_external()
642 writel(sg_dma_address(&ctx->sg[1]) + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_finish_io_req_external()
694 writel(sg_dma_address(&ctx->sg[0]), mxic->regs + SDMA_MAIN_ADDR); in mxic_ecc_prepare_io_req_pipelined()
695 writel(sg_dma_address(&ctx->sg[1]), mxic->regs + SDMA_SPARE_ADDR); in mxic_ecc_prepare_io_req_pipelined()
/linux-6.15/drivers/scsi/aic94xx/
H A Daic94xx_task.c85 sg->bus_addr = cpu_to_le64((u64)sg_dma_address(sc)); in asd_map_scatterlist()
93 cpu_to_le64((u64)sg_dma_address(sc)); in asd_map_scatterlist()
105 cpu_to_le64((u64)sg_dma_address(sc)); in asd_map_scatterlist()
430 cpu_to_le64((u64)sg_dma_address(&task->smp_task.smp_req)); in asd_build_smp_ascb()
435 cpu_to_le64((u64)sg_dma_address(&task->smp_task.smp_resp)); in asd_build_smp_ascb()
/linux-6.15/drivers/media/common/videobuf2/
H A Dvideobuf2-dma-contig.c56 dma_addr_t expected = sg_dma_address(sgt->sgl); in vb2_dc_get_contiguous_size()
61 if (sg_dma_address(s) != expected) in vb2_dc_get_contiguous_size()
222 buf->dma_addr = sg_dma_address(buf->dma_sgt->sgl); in vb2_dc_alloc_non_coherent()
659 buf->dma_addr = sg_dma_address(sgt->sgl); in vb2_dc_get_userptr()
723 buf->dma_addr = sg_dma_address(sgt->sgl); in vb2_dc_map_dmabuf()
/linux-6.15/drivers/dma/
H A Dtimb_dma.c161 dma_desc, (unsigned long long)sg_dma_address(sg)); in td_fill_desc()
163 dma_desc[7] = (sg_dma_address(sg) >> 24) & 0xff; in td_fill_desc()
164 dma_desc[6] = (sg_dma_address(sg) >> 16) & 0xff; in td_fill_desc()
165 dma_desc[5] = (sg_dma_address(sg) >> 8) & 0xff; in td_fill_desc()
166 dma_desc[4] = (sg_dma_address(sg) >> 0) & 0xff; in td_fill_desc()
/linux-6.15/drivers/media/platform/nvidia/tegra-vde/
H A Ddmabuf-cache.c93 *addrp = sg_dma_address(entry->sgt->sgl); in tegra_vde_dmabuf_cache_map()
131 *addrp = sg_dma_address(sgt->sgl); in tegra_vde_dmabuf_cache_map()
/linux-6.15/drivers/media/pci/cx25821/
H A Dcx25821-core.c1017 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in cx25821_risc_field()
1025 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in cx25821_risc_field()
1033 *(rp++) = cpu_to_le32(sg_dma_address(sg)); in cx25821_risc_field()
1039 *(rp++) = cpu_to_le32(sg_dma_address(sg)); in cx25821_risc_field()
1128 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in cx25821_risc_field_audio()
1136 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in cx25821_risc_field_audio()
1144 *(rp++) = cpu_to_le32(sg_dma_address(sg)); in cx25821_risc_field_audio()
1150 *(rp++) = cpu_to_le32(sg_dma_address(sg)); in cx25821_risc_field_audio()
/linux-6.15/drivers/crypto/caam/
H A Dcaampkc.c433 pdb->f_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_pub_pdb()
441 pdb->g_dma = sg_dma_address(req->dst); in set_rsa_pub_pdb()
481 pdb->g_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_priv_f1_pdb()
489 pdb->f_dma = sg_dma_address(req->dst); in set_rsa_priv_f1_pdb()
546 pdb->g_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_priv_f2_pdb()
554 pdb->f_dma = sg_dma_address(req->dst); in set_rsa_priv_f2_pdb()
635 pdb->g_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_priv_f3_pdb()
643 pdb->f_dma = sg_dma_address(req->dst); in set_rsa_priv_f3_pdb()
H A Dsg_sw_qm2.h36 dma_to_qm_sg_one(qm_sg_ptr, sg_dma_address(sg), ent_len, in sg_to_qm_sg()
/linux-6.15/drivers/infiniband/core/
H A Dumem.c117 end != sg_dma_address(sg)) { in ib_umem_find_best_pgsz()
119 curr_base = sg_dma_address(sg); in ib_umem_find_best_pgsz()

12345678910>>...17