/linux-5.19.10/drivers/parisc/ |
D | iommu-helpers.h | 35 (unsigned long)sg_dma_address(startsg), cnt, 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-5.19.10/drivers/gpu/drm/i915/ |
D | i915_scatterlist.c | 30 sg_dma_address(new_sg) = sg_dma_address(sg); in i915_sg_trim() 118 sg_dma_address(sg) = region_start + offset; in i915_rsgt_from_mm_node() 119 GEM_BUG_ON(!IS_ALIGNED(sg_dma_address(sg), in i915_rsgt_from_mm_node() 202 sg_dma_address(sg) = region_start + offset; in i915_rsgt_from_buddy_resource() 203 GEM_BUG_ON(!IS_ALIGNED(sg_dma_address(sg), in i915_rsgt_from_buddy_resource()
|
/linux-5.19.10/drivers/net/ethernet/micrel/ |
D | ks8842.c | 444 sg_dma_address(&ctl->sg), 0, sg_dma_len(&ctl->sg), in ks8842_tx_frame_dma() 552 sg_dma_address(sg) = dma_map_single(adapter->dev, in __ks8842_start_new_rx_dma() 554 if (dma_mapping_error(adapter->dev, sg_dma_address(sg))) { 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() 582 dma_unmap_single(adapter->dev, 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() [all …]
|
/linux-5.19.10/drivers/media/pci/tw68/ |
D | tw68-risc.c | 65 *(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-5.19.10/drivers/scsi/qla2xxx/ |
D | qla_dsd.h | 14 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-5.19.10/lib/ |
D | sg_split.c | 94 sg_dma_address(out_sg) = 0; in sg_split_phys() 113 sg_dma_address(out_sg) = sg_dma_address(in_sg); in sg_split_mapped() 116 sg_dma_address(out_sg) += split->skip_sg0; in sg_split_mapped()
|
/linux-5.19.10/drivers/hwtracing/intel_th/ |
D | msu-sink.c | 72 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-5.19.10/drivers/spi/ |
D | spi-dw-dma.c | 530 sg_dma_address(&tx_tmp) = sg_dma_address(tx_sg); in dw_spi_dma_transfer_one() 537 sg_dma_address(&rx_tmp) = sg_dma_address(rx_sg); in dw_spi_dma_transfer_one() 573 sg_dma_address(&tx_tmp) += len; in dw_spi_dma_transfer_one() 574 sg_dma_address(&rx_tmp) += len; in dw_spi_dma_transfer_one()
|
D | spi-bcm2835.c | 523 sg_dma_address(&tfr->rx_sg.sgl[0]), in bcm2835_spi_transfer_prologue() 526 sg_dma_address(&tfr->rx_sg.sgl[0]) += bs->rx_prologue; in bcm2835_spi_transfer_prologue() 549 sg_dma_address(&tfr->tx_sg.sgl[0]) += bs->tx_prologue; in bcm2835_spi_transfer_prologue() 553 sg_dma_address(&tfr->tx_sg.sgl[1]) += 4; in bcm2835_spi_transfer_prologue() 574 sg_dma_address(&tfr->rx_sg.sgl[0]) -= bs->rx_prologue; in bcm2835_spi_undo_prologue() 582 sg_dma_address(&tfr->tx_sg.sgl[0]) -= bs->tx_prologue; in bcm2835_spi_undo_prologue() 586 sg_dma_address(&tfr->tx_sg.sgl[1]) -= 4; in bcm2835_spi_undo_prologue()
|
/linux-5.19.10/drivers/iommu/ |
D | dma-iommu.c | 942 iommu_dma_sync_single_for_cpu(dev, sg_dma_address(sg), in iommu_dma_sync_sg_for_cpu() 959 sg_dma_address(sg), in iommu_dma_sync_sg_for_device() 1056 unsigned int s_iova_off = sg_dma_address(s); in __finalise_sg() 1062 sg_dma_address(s) = DMA_MAPPING_ERROR; in __finalise_sg() 1083 sg_dma_address(cur) = dma_addr + s_iova_off; in __finalise_sg() 1105 if (sg_dma_address(s) != DMA_MAPPING_ERROR) in __invalidate_sg() 1106 s->offset += sg_dma_address(s); in __invalidate_sg() 1109 sg_dma_address(s) = DMA_MAPPING_ERROR; in __invalidate_sg() 1121 iommu_dma_unmap_page(dev, sg_dma_address(s), in iommu_dma_unmap_sg_swiotlb() 1132 sg_dma_address(s) = iommu_dma_map_page(dev, sg_page(s), in iommu_dma_map_sg_swiotlb() [all …]
|
/linux-5.19.10/drivers/i2c/busses/ |
D | i2c-at91-master.c | 147 dma_unmap_single(dev->dev, sg_dma_address(&dma->sg[0]), in at91_twi_dma_cleanup() 179 dma_unmap_single(dev->dev, sg_dma_address(&dev->dma.sg[0]), in at91_twi_write_data_dma_callback() 228 sg_dma_address(sg) = dma_addr; in at91_twi_write_data_dma() 235 sg_dma_address(sg) = dma_addr + part1_len; in at91_twi_write_data_dma() 248 sg_dma_address(&dma->sg[0]) = dma_addr; in at91_twi_write_data_dma() 321 dma_unmap_single(dev->dev, sg_dma_address(&dev->dma.sg[0]), in at91_twi_read_data_dma_callback() 368 sg_dma_address(&dma->sg[0]) = dma_addr; in at91_twi_read_data_dma()
|
/linux-5.19.10/drivers/crypto/rockchip/ |
D | rk3288_crypto.c | 103 dev->addr_in = sg_dma_address(sg_src); in rk_load_data() 114 dev->addr_out = sg_dma_address(sg_dst); in rk_load_data() 134 dev->addr_in = sg_dma_address(&dev->sg_tmp); in rk_load_data() 146 dev->addr_out = sg_dma_address(&dev->sg_tmp); in rk_load_data()
|
/linux-5.19.10/arch/powerpc/platforms/512x/ |
D | mpc512x_lpbfifo.c | 250 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-5.19.10/include/rdma/ |
D | ib_umem.h | 58 return (sg_dma_address(umem->sgt_append.sgt.sgl) + ib_umem_offset(umem)) & in ib_umem_dma_offset() 134 dma_addr = sg_dma_address(sg) + (umem->address & ~PAGE_MASK); in ib_umem_find_best_pgoff()
|
/linux-5.19.10/drivers/target/iscsi/cxgbit/ |
D | cxgbit_ddp.c | 22 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-5.19.10/drivers/mtd/nand/ |
D | ecc-mxic.c | 582 writel(sg_dma_address(&ctx->sg[0]) + (step * ctx->data_step_sz), in mxic_ecc_prepare_io_req_external() 584 writel(sg_dma_address(&ctx->sg[1]) + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_prepare_io_req_external() 639 writel(sg_dma_address(&ctx->sg[0]) + (step * ctx->data_step_sz), in mxic_ecc_finish_io_req_external() 641 writel(sg_dma_address(&ctx->sg[1]) + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_finish_io_req_external() 693 writel(sg_dma_address(&ctx->sg[0]), mxic->regs + SDMA_MAIN_ADDR); in mxic_ecc_prepare_io_req_pipelined() 694 writel(sg_dma_address(&ctx->sg[1]), mxic->regs + SDMA_SPARE_ADDR); in mxic_ecc_prepare_io_req_pipelined()
|
/linux-5.19.10/drivers/media/common/videobuf2/ |
D | videobuf2-dma-contig.c | 56 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() 666 buf->dma_addr = sg_dma_address(sgt->sgl); in vb2_dc_get_userptr() 729 buf->dma_addr = sg_dma_address(sgt->sgl); in vb2_dc_map_dmabuf()
|
/linux-5.19.10/drivers/scsi/aic94xx/ |
D | aic94xx_task.c | 82 sg->bus_addr = cpu_to_le64((u64)sg_dma_address(sc)); in asd_map_scatterlist() 90 cpu_to_le64((u64)sg_dma_address(sc)); in asd_map_scatterlist() 102 cpu_to_le64((u64)sg_dma_address(sc)); in asd_map_scatterlist() 432 cpu_to_le64((u64)sg_dma_address(&task->smp_task.smp_req)); in asd_build_smp_ascb() 437 cpu_to_le64((u64)sg_dma_address(&task->smp_task.smp_resp)); in asd_build_smp_ascb()
|
/linux-5.19.10/drivers/dma/ |
D | timb_dma.c | 161 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-5.19.10/drivers/media/platform/nvidia/tegra-vde/ |
D | dmabuf-cache.c | 93 *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-5.19.10/drivers/crypto/caam/ |
D | caampkc.c | 426 pdb->f_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_pub_pdb() 434 pdb->g_dma = sg_dma_address(req->dst); in set_rsa_pub_pdb() 474 pdb->g_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_priv_f1_pdb() 482 pdb->f_dma = sg_dma_address(req->dst); in set_rsa_priv_f1_pdb() 539 pdb->g_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_priv_f2_pdb() 547 pdb->f_dma = sg_dma_address(req->dst); in set_rsa_priv_f2_pdb() 628 pdb->g_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_priv_f3_pdb() 636 pdb->f_dma = sg_dma_address(req->dst); in set_rsa_priv_f3_pdb()
|
D | sg_sw_qm2.h | 36 dma_to_qm_sg_one(qm_sg_ptr, sg_dma_address(sg), ent_len, in sg_to_qm_sg()
|
/linux-5.19.10/drivers/media/pci/cx25821/ |
D | cx25821-core.c | 1017 *(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-5.19.10/drivers/infiniband/core/ |
D | umem_dmabuf.c | 46 sg_dma_address(sg) += offset; in ib_umem_dmabuf_map_pages() 91 sg_dma_address(umem_dmabuf->first_sg) -= in ib_umem_dmabuf_unmap_pages()
|
/linux-5.19.10/drivers/gpu/drm/i915/gem/ |
D | i915_gem_phys.c | 57 sg_dma_address(sg) = dma; in i915_gem_object_get_pages_phys() 99 dma_addr_t dma = sg_dma_address(pages->sgl); in i915_gem_object_put_pages_phys()
|