/linux-6.3-rc2/arch/sparc/kernel/ |
A D | iommu.c | 472 outs->dma_length = 0; in dma_4u_map_sg() 522 (outs->dma_length + s->length > max_seg_size) || in dma_4u_map_sg() 530 outs->dma_length += s->length; in dma_4u_map_sg() 537 outs->dma_length = slen; in dma_4u_map_sg() 549 outs->dma_length = 0; in dma_4u_map_sg() 556 if (s->dma_length != 0) { in dma_4u_map_sg() 561 npages = iommu_num_pages(s->dma_address, s->dma_length, in dma_4u_map_sg() 574 s->dma_length = 0; in dma_4u_map_sg() 626 unsigned int len = sg->dma_length; in dma_4u_unmap_sg() 729 if (sg->dma_length == 0) in dma_4u_sync_sg_for_cpu() [all …]
|
A D | pci_sun4v.c | 505 outs->dma_length = 0; in dma_4v_map_sg() 565 (outs->dma_length + s->length > max_seg_size) || in dma_4v_map_sg() 573 outs->dma_length += s->length; in dma_4v_map_sg() 580 outs->dma_length = slen; in dma_4v_map_sg() 597 outs->dma_length = 0; in dma_4v_map_sg() 604 if (s->dma_length != 0) { in dma_4v_map_sg() 608 npages = iommu_num_pages(s->dma_address, s->dma_length, in dma_4v_map_sg() 613 s->dma_length = 0; in dma_4v_map_sg() 647 unsigned int len = sg->dma_length; in dma_4v_unmap_sg()
|
A D | iommu_common.h | 45 int nr = iommu_num_pages(paddr, outs->dma_length + sg->length, in is_span_boundary()
|
/linux-6.3-rc2/arch/x86/kernel/ |
A D | amd_gart_64.c | 283 if (!s->dma_length || !s->length) in gart_unmap_sg() 285 gart_unmap_page(dev, s->dma_address, s->dma_length, dir, 0); in gart_unmap_sg() 309 sg[0].dma_length = 0; in dma_map_sg_nonforce() 314 s->dma_length = s->length; in dma_map_sg_nonforce() 342 sout->dma_length = s->length; in __dma_map_cont() 344 sout->dma_length += s->length; in __dma_map_cont() 367 sout->dma_length = start->length; in dma_map_cont() 441 sgmap->dma_length = 0; in gart_map_sg()
|
/linux-6.3-rc2/arch/alpha/kernel/ |
A D | pci_iommu.c | 518 leader->dma_length = leader_length; in sg_classify() 528 leader->dma_length = leader_length; in sg_classify() 540 long size = leader->dma_length; in sg_fill() 552 out->dma_length = size; in sg_fill() 564 out->dma_length = size; in sg_fill() 590 out->dma_length = size; in sg_fill() 650 sg->dma_length = sg->length; in alpha_pci_map_sg() 690 out->dma_length = 0; in alpha_pci_map_sg() 749 size = sg->dma_length; in alpha_pci_unmap_sg()
|
/linux-6.3-rc2/arch/powerpc/kernel/ |
A D | iommu.c | 481 outs->dma_length = 0; in ppc_iommu_map_sg() 539 (outs->dma_length + s->length > max_seg_size)) { in ppc_iommu_map_sg() 546 outs->dma_length += s->length; in ppc_iommu_map_sg() 547 DBG(" merged, new len: %ux\n", outs->dma_length); in ppc_iommu_map_sg() 555 outs->dma_length = slen; in ppc_iommu_map_sg() 575 outs->dma_length = 0; in ppc_iommu_map_sg() 585 if (s->dma_length != 0) { in ppc_iommu_map_sg() 589 npages = iommu_num_pages(s->dma_address, s->dma_length, in ppc_iommu_map_sg() 592 s->dma_length = 0; in ppc_iommu_map_sg() 617 if (sg->dma_length == 0) in ppc_iommu_unmap_sg() [all …]
|
/linux-6.3-rc2/arch/ia64/hp/common/ |
A D | sba_iommu.c | 391 startsg->dma_address, startsg->dma_length, in sba_dump_sg() 1208 int cnt = startsg->dma_length; in sba_fill_pdir() 1209 startsg->dma_length = 0; in sba_fill_pdir() 1245 dma_sg->dma_length += cnt; in sba_fill_pdir() 1318 startsg->dma_address = startsg->dma_length = 0; in sba_coalesce_chunks() 1376 vcontig_sg->dma_length = vcontig_len; in sba_coalesce_chunks() 1400 vcontig_sg->dma_length = vcontig_len; in sba_coalesce_chunks() 1405 dma_sg->dma_length = 0; in sba_coalesce_chunks() 1450 sg->dma_length = sg->length; in sba_map_sg_attrs() 1458 sglist->dma_length = sglist->length; in sba_map_sg_attrs() [all …]
|
/linux-6.3-rc2/arch/s390/pci/ |
A D | pci_dma.c | 517 s->dma_length = 0; in s390_dma_map_sg() 527 dma->dma_length = size - offset; in s390_dma_map_sg() 541 dma->dma_length = size - offset; in s390_dma_map_sg() 560 if (s->dma_length) in s390_dma_unmap_sg() 561 s390_dma_unmap_pages(dev, s->dma_address, s->dma_length, in s390_dma_unmap_sg() 564 s->dma_length = 0; in s390_dma_unmap_sg()
|
/linux-6.3-rc2/drivers/infiniband/hw/qib/ |
A D | qib_user_sdma.c | 91 u16 dma_length; /* for dma_unmap_page() */ member 259 dma_addr_t dma_addr, u16 dma_length) in qib_user_sdma_init_frag() argument 270 pkt->addr[i].dma_length = dma_length; in qib_user_sdma_init_frag() 386 pkt->addr[pkt->index].dma_length, in qib_user_sdma_page_to_frags() 477 pkt->addr[pkt->index].dma_length, in qib_user_sdma_page_to_frags() 627 pkt->addr[i].dma_length, in qib_user_sdma_free_pkt_frag() 643 pkt->addr[i].dma_length, in qib_user_sdma_free_pkt_frag() 747 pkt->addr[0].dma_length, in qib_user_sdma_pin_pkt()
|
/linux-6.3-rc2/drivers/net/wireless/ath/ath12k/ |
A D | dp_mon.h | 63 u16 dma_length; member
|
/linux-6.3-rc2/include/linux/ |
A D | scatterlist.h | 17 unsigned int dma_length; member 34 #define sg_dma_len(sg) ((sg)->dma_length)
|
/linux-6.3-rc2/drivers/dma/sh/ |
A D | rz-dmac.c | 505 int dma_length = 0; in rz_dmac_prep_slave_sg() local 514 dma_length += sg_dma_len(sg); in rz_dmac_prep_slave_sg() 520 desc->len = dma_length; in rz_dmac_prep_slave_sg()
|
/linux-6.3-rc2/arch/sparc/mm/ |
A D | io-unit.c | 174 sg->dma_length = sg->length; in iounit_map_sg()
|
A D | iommu.c | 260 sg->dma_length = sg->length; in __sbus_iommu_map_sg()
|
/linux-6.3-rc2/drivers/dma/ |
A D | imx-dma.c | 802 int i, dma_length = 0; in imxdma_prep_slave_sg() local 812 dma_length += sg_dma_len(sg); in imxdma_prep_slave_sg() 835 desc->len = dma_length; in imxdma_prep_slave_sg()
|
/linux-6.3-rc2/arch/powerpc/platforms/pseries/ |
A D | ibmebus.c | 117 sg->dma_length = sg->length; in ibmebus_map_sg()
|
A D | vio.c | 573 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg() 597 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_unmap_sg()
|
/linux-6.3-rc2/drivers/dma/ti/ |
A D | edma.c | 907 unsigned int acnt, unsigned int dma_length, in edma_config_pset() argument 939 ccnt = dma_length / acnt / (SZ_64K - 1); in edma_config_pset() 940 bcnt = dma_length / acnt - ccnt * (SZ_64K - 1); in edma_config_pset() 962 ccnt = dma_length / (acnt * bcnt); in edma_config_pset() 970 epset->len = dma_length; in edma_config_pset()
|
/linux-6.3-rc2/arch/arm/mm/ |
A D | dma-mapping.c | 1251 s->dma_length = 0; in arm_iommu_map_sg() 1260 dma->dma_length = size - offset; in arm_iommu_map_sg() 1274 dma->dma_length = size - offset; in arm_iommu_map_sg()
|
/linux-6.3-rc2/arch/powerpc/platforms/ps3/ |
A D | system-bus.c | 652 sg->dma_length = sg->length; in ps3_sb_map_sg()
|
/linux-6.3-rc2/drivers/iommu/ |
A D | dma-iommu.c | 852 sgt->sgl->dma_length = size; in __iommu_dma_alloc_noncontiguous()
|
/linux-6.3-rc2/drivers/nvme/target/ |
A D | fc.c | 326 s->dma_length = s->length; in fc_map_sg()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_amdkfd_gpuvm.c | 446 sg->sgl->dma_length = size; in create_sg_table()
|
/linux-6.3-rc2/drivers/nvme/host/ |
A D | fc.c | 1009 s->dma_length = s->length; in fc_map_sg()
|
/linux-6.3-rc2/drivers/infiniband/ulp/srp/ |
A D | ib_srp.c | 1579 idb_sg->dma_length = idb_sg->length; /* hack^2 */ in srp_map_idb()
|