| /Linux-v5.10/drivers/parisc/ |
| D | iommu-helpers.h | 47 BUG_ON(pdirp && (dma_len != sg_dma_len(dma_sg))); in iommu_fill_pdir() 51 dma_len = sg_dma_len(startsg); in iommu_fill_pdir() 52 sg_dma_len(startsg) = 0; in iommu_fill_pdir() 71 sg_dma_len(dma_sg) += startsg->length; in iommu_fill_pdir() 125 sg_dma_len(startsg) = 0; in iommu_coalesce_chunks() 142 sg_dma_len(startsg) = 0; in iommu_coalesce_chunks() 171 sg_dma_len(contig_sg) = dma_len; in iommu_coalesce_chunks()
|
| /Linux-v5.10/drivers/media/pci/tw68/ |
| D | tw68-risc.c | 57 while (offset && offset >= sg_dma_len(sg)) { in tw68_risc_field() 58 offset -= sg_dma_len(sg); in tw68_risc_field() 61 if (bpl <= sg_dma_len(sg) - offset) { in tw68_risc_field() 76 done = (sg_dma_len(sg) - offset); in tw68_risc_field() 84 while (todo > sg_dma_len(sg)) { in tw68_risc_field() 87 sg_dma_len(sg)); in tw68_risc_field() 89 todo -= sg_dma_len(sg); in tw68_risc_field() 91 done += sg_dma_len(sg); in tw68_risc_field()
|
| /Linux-v5.10/lib/ |
| D | sg_split.c | 36 sglen = mapped ? sg_dma_len(sg) : sg->length; in sg_calculate_split() 95 sg_dma_len(out_sg) = 0; in sg_split_phys() 114 sg_dma_len(out_sg) = sg_dma_len(in_sg); in sg_split_mapped() 117 sg_dma_len(out_sg) -= split->skip_sg0; in sg_split_mapped() 121 sg_dma_len(--out_sg) = split->length_last_sg; in sg_split_mapped()
|
| /Linux-v5.10/net/rds/ |
| D | ib_frmr.c | 205 ibmr->sg_dma_len = 0; in rds_ib_map_frmr() 207 WARN_ON(ibmr->sg_dma_len); in rds_ib_map_frmr() 208 ibmr->sg_dma_len = ib_dma_map_sg(dev, ibmr->sg, ibmr->sg_len, in rds_ib_map_frmr() 210 if (unlikely(!ibmr->sg_dma_len)) { in rds_ib_map_frmr() 220 for (i = 0; i < ibmr->sg_dma_len; ++i) { in rds_ib_map_frmr() 221 unsigned int dma_len = sg_dma_len(&ibmr->sg[i]); in rds_ib_map_frmr() 233 if (i < ibmr->sg_dma_len - 1) in rds_ib_map_frmr() 262 ibmr->sg_dma_len = 0; in rds_ib_map_frmr() 367 if (ibmr->sg_dma_len) { in rds_ib_unreg_frmr()
|
| D | ib.h | 335 unsigned int sg_dma_len, in rds_ib_dma_sync_sg_for_cpu() argument 341 for_each_sg(sglist, sg, sg_dma_len, i) { in rds_ib_dma_sync_sg_for_cpu() 343 sg_dma_len(sg), direction); in rds_ib_dma_sync_sg_for_cpu() 350 unsigned int sg_dma_len, in rds_ib_dma_sync_sg_for_device() argument 356 for_each_sg(sglist, sg, sg_dma_len, i) { in rds_ib_dma_sync_sg_for_device() 358 sg_dma_len(sg), direction); in rds_ib_dma_sync_sg_for_device()
|
| /Linux-v5.10/arch/arm/mm/ |
| D | dma-mapping-nommu.c | 127 sg_dma_len(sg) = sg->length; in arm_nommu_dma_map_sg() 128 __dma_page_cpu_to_dev(sg_dma_address(sg), sg_dma_len(sg), dir); in arm_nommu_dma_map_sg() 142 __dma_page_dev_to_cpu(sg_dma_address(sg), sg_dma_len(sg), dir); in arm_nommu_dma_unmap_sg() 164 __dma_page_cpu_to_dev(sg_dma_address(sg), sg_dma_len(sg), dir); in arm_nommu_dma_sync_sg_for_device() 174 __dma_page_dev_to_cpu(sg_dma_address(sg), sg_dma_len(sg), dir); in arm_nommu_dma_sync_sg_for_cpu()
|
| /Linux-v5.10/drivers/media/pci/bt8xx/ |
| D | bttv-risc.c | 73 while (offset && offset >= sg_dma_len(sg)) { in bttv_risc_packed() 74 offset -= sg_dma_len(sg); in bttv_risc_packed() 77 if (bpl <= sg_dma_len(sg)-offset) { in bttv_risc_packed() 87 (sg_dma_len(sg)-offset)); in bttv_risc_packed() 89 todo -= (sg_dma_len(sg)-offset); in bttv_risc_packed() 92 while (todo > sg_dma_len(sg)) { in bttv_risc_packed() 94 sg_dma_len(sg)); in bttv_risc_packed() 96 todo -= sg_dma_len(sg); in bttv_risc_packed() 176 while (yoffset && yoffset >= sg_dma_len(ysg)) { in bttv_risc_planar() 177 yoffset -= sg_dma_len(ysg); in bttv_risc_planar() [all …]
|
| /Linux-v5.10/drivers/scsi/qla2xxx/ |
| D | qla_dsd.h | 15 put_unaligned_le32(sg_dma_len(sg), &(*dsd)->length); in append_dsd32() 28 put_unaligned_le32(sg_dma_len(sg), &(*dsd)->length); in append_dsd64()
|
| /Linux-v5.10/drivers/gpu/drm/i915/ |
| D | i915_scatterlist.c | 25 sg_dma_len(new_sg) = sg_dma_len(sg); in i915_sg_trim()
|
| /Linux-v5.10/drivers/media/pci/cx25821/ |
| D | cx25821-core.c | 1014 while (offset && offset >= sg_dma_len(sg)) { in cx25821_risc_field() 1015 offset -= sg_dma_len(sg); in cx25821_risc_field() 1018 if (bpl <= sg_dma_len(sg) - offset) { in cx25821_risc_field() 1029 (sg_dma_len(sg) - offset)); in cx25821_risc_field() 1032 todo -= (sg_dma_len(sg) - offset); in cx25821_risc_field() 1035 while (todo > sg_dma_len(sg)) { in cx25821_risc_field() 1037 sg_dma_len(sg)); in cx25821_risc_field() 1040 todo -= sg_dma_len(sg); in cx25821_risc_field() 1119 while (offset && offset >= sg_dma_len(sg)) { in cx25821_risc_field_audio() 1120 offset -= sg_dma_len(sg); in cx25821_risc_field_audio() [all …]
|
| /Linux-v5.10/drivers/spi/ |
| D | spi-bcm2835.c | 483 bs->tx_prologue = sg_dma_len(&tfr->tx_sg.sgl[0]) & 3; in bcm2835_spi_transfer_prologue() 486 bs->rx_prologue = sg_dma_len(&tfr->rx_sg.sgl[0]) & 3; in bcm2835_spi_transfer_prologue() 494 !(sg_dma_len(&tfr->tx_sg.sgl[0]) & ~3); in bcm2835_spi_transfer_prologue() 520 sg_dma_len(&tfr->rx_sg.sgl[0]) -= bs->rx_prologue; in bcm2835_spi_transfer_prologue() 543 sg_dma_len(&tfr->tx_sg.sgl[0]) -= bs->tx_prologue; in bcm2835_spi_transfer_prologue() 545 sg_dma_len(&tfr->tx_sg.sgl[0]) = 0; in bcm2835_spi_transfer_prologue() 547 sg_dma_len(&tfr->tx_sg.sgl[1]) -= 4; in bcm2835_spi_transfer_prologue() 568 sg_dma_len(&tfr->rx_sg.sgl[0]) += bs->rx_prologue; in bcm2835_spi_undo_prologue() 576 sg_dma_len(&tfr->tx_sg.sgl[0]) += bs->tx_prologue; in bcm2835_spi_undo_prologue() 578 sg_dma_len(&tfr->tx_sg.sgl[0]) = bs->tx_prologue - 4; in bcm2835_spi_undo_prologue() [all …]
|
| D | spi-dw-dma.c | 530 tx_len = sg_dma_len(tx_sg); in dw_spi_dma_transfer_one() 537 rx_len = sg_dma_len(rx_sg); in dw_spi_dma_transfer_one() 542 sg_dma_len(&tx_tmp) = len; in dw_spi_dma_transfer_one() 543 sg_dma_len(&rx_tmp) = len; in dw_spi_dma_transfer_one()
|
| /Linux-v5.10/drivers/crypto/allwinner/sun8i-ss/ |
| D | sun8i-ss-cipher.c | 38 if ((sg_dma_len(sg) % 16) != 0) in sun8i_ss_need_fallback() 48 if ((sg_dma_len(sg) % 16) != 0) in sun8i_ss_need_fallback() 191 if (sg_dma_len(sg) == 0) in sun8i_ss_cipher() 194 todo = min(len, sg_dma_len(sg)); in sun8i_ss_cipher() 213 if (sg_dma_len(sg) == 0) in sun8i_ss_cipher() 216 todo = min(len, sg_dma_len(sg)); in sun8i_ss_cipher()
|
| /Linux-v5.10/drivers/media/pci/ivtv/ |
| D | ivtv-udma.c | 68 dma->SGarray[i].size = cpu_to_le32(sg_dma_len(sg)); in ivtv_udma_fill_sg_array() 71 buffer_offset += sg_dma_len(sg); in ivtv_udma_fill_sg_array() 73 split -= sg_dma_len(sg); in ivtv_udma_fill_sg_array()
|
| /Linux-v5.10/drivers/media/pci/cx88/ |
| D | cx88-core.c | 90 while (offset && offset >= sg_dma_len(sg)) { in cx88_risc_field() 91 offset -= sg_dma_len(sg); in cx88_risc_field() 98 if (bpl <= sg_dma_len(sg) - offset) { in cx88_risc_field() 108 (sg_dma_len(sg) - offset)); in cx88_risc_field() 110 todo -= (sg_dma_len(sg) - offset); in cx88_risc_field() 113 while (todo > sg_dma_len(sg)) { in cx88_risc_field() 115 sg_dma_len(sg)); in cx88_risc_field() 117 todo -= sg_dma_len(sg); in cx88_risc_field()
|
| /Linux-v5.10/drivers/crypto/ccp/ |
| D | ccp-dmaengine.c | 385 src_len = sg_dma_len(src_sg); in ccp_create_desc() 388 dst_len = sg_dma_len(dst_sg); in ccp_create_desc() 401 src_len = sg_dma_len(src_sg); in ccp_create_desc() 415 dst_len = sg_dma_len(dst_sg); in ccp_create_desc() 494 sg_dma_len(&dst_sg) = len; in ccp_prep_dma_memcpy() 498 sg_dma_len(&src_sg) = len; in ccp_prep_dma_memcpy()
|
| /Linux-v5.10/drivers/dma/ |
| D | ste_dma40_ll.c | 286 unsigned int len = sg_dma_len(current_sg); in d40_phy_sg_to_lli() 289 total_size += sg_dma_len(current_sg); in d40_phy_sg_to_lli() 435 unsigned int len = sg_dma_len(current_sg); in d40_log_sg_to_lli() 438 total_size += sg_dma_len(current_sg); in d40_log_sg_to_lli()
|
| D | timb_dma.c | 148 if (sg_dma_len(sg) > USHRT_MAX) { in td_fill_desc() 154 if (sg_dma_len(sg) % sizeof(u32)) { in td_fill_desc() 156 sg_dma_len(sg)); in td_fill_desc() 168 dma_desc[3] = (sg_dma_len(sg) >> 8) & 0xff; in td_fill_desc() 169 dma_desc[2] = (sg_dma_len(sg) >> 0) & 0xff; in td_fill_desc()
|
| D | altera-msgdma.c | 404 desc_cnt += DIV_ROUND_UP(sg_dma_len(sg), MSGDMA_MAX_TRANS_LEN); in msgdma_prep_slave_sg() 415 avail = sg_dma_len(sgl); in msgdma_prep_slave_sg() 426 dma_src = sg_dma_address(sgl) + sg_dma_len(sgl) - avail; in msgdma_prep_slave_sg() 431 dma_dst = sg_dma_address(sgl) + sg_dma_len(sgl) - avail; in msgdma_prep_slave_sg() 450 avail = sg_dma_len(sgl); in msgdma_prep_slave_sg()
|
| /Linux-v5.10/drivers/media/pci/cobalt/ |
| D | cobalt-omnitek.c | 193 bytes = min(sg_dma_len(scatter_list) - offset, in descriptor_list_create() 236 bytes = min(sg_dma_len(scatter_list) - offset, in descriptor_list_create() 241 if (sg_dma_len(scatter_list) == offset) { in descriptor_list_create()
|
| /Linux-v5.10/drivers/gpu/drm/i915/gem/ |
| D | i915_gem_region.c | 77 sg_dma_len(sg) = block_size; in i915_gem_object_get_pages_buddy() 84 sg_dma_len(sg) += block_size; in i915_gem_object_get_pages_buddy()
|
| /Linux-v5.10/drivers/iommu/ |
| D | dma-iommu.c | 767 unsigned int s_length = sg_dma_len(s); in __finalise_sg() 773 sg_dma_len(s) = 0; in __finalise_sg() 796 sg_dma_len(cur) = cur_len; in __finalise_sg() 817 if (sg_dma_len(s)) in __invalidate_sg() 818 s->length = sg_dma_len(s); in __invalidate_sg() 820 sg_dma_len(s) = 0; in __invalidate_sg() 862 sg_dma_len(s) = s_length; in iommu_dma_map_sg() 925 if (sg_dma_len(tmp) == 0) in iommu_dma_unmap_sg() 929 end = sg_dma_address(sg) + sg_dma_len(sg); in iommu_dma_unmap_sg()
|
| /Linux-v5.10/drivers/scsi/aic94xx/ |
| D | aic94xx_task.c | 83 sg->size = cpu_to_le32((u32)sg_dma_len(sc)); in asd_map_scatterlist() 91 sg_arr[i].size = cpu_to_le32((u32)sg_dma_len(sc)); in asd_map_scatterlist() 103 sg_arr[i].size = cpu_to_le32((u32)sg_dma_len(sc)); in asd_map_scatterlist() 435 cpu_to_le32((u32)sg_dma_len(&task->smp_task.smp_req)-4); in asd_build_smp_ascb() 440 cpu_to_le32((u32)sg_dma_len(&task->smp_task.smp_resp)-4); in asd_build_smp_ascb()
|
| /Linux-v5.10/drivers/crypto/caam/ |
| D | sg_sw_qm2.h | 34 ent_len = min_t(int, sg_dma_len(sg), len); in sg_to_qm_sg()
|
| /Linux-v5.10/drivers/rapidio/devices/ |
| D | tsi721_dma.c | 457 (unsigned long long)sg_dma_address(sg), sg_dma_len(sg)); in tsi721_submit_sg() 459 if (sg_dma_len(sg) > TSI721_BDMA_MAX_BCOUNT) { in tsi721_submit_sg() 471 bcount + sg_dma_len(sg) <= TSI721_BDMA_MAX_BCOUNT) { in tsi721_submit_sg() 473 bcount += sg_dma_len(sg); in tsi721_submit_sg() 504 bcount = sg_dma_len(sg); in tsi721_submit_sg() 521 rio_addr += sg_dma_len(sg); in tsi721_submit_sg() 522 next_addr += sg_dma_len(sg); in tsi721_submit_sg()
|