/Linux-v6.1/arch/sparc/kernel/ |
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 …]
|
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()
|
D | iommu_common.h | 45 int nr = iommu_num_pages(paddr, outs->dma_length + sg->length, in is_span_boundary()
|
/Linux-v6.1/arch/x86/kernel/ |
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-v6.1/arch/alpha/kernel/ |
D | pci_iommu.c | 516 leader->dma_length = leader_length; in sg_classify() 526 leader->dma_length = leader_length; in sg_classify() 538 long size = leader->dma_length; in sg_fill() 550 out->dma_length = size; in sg_fill() 562 out->dma_length = size; in sg_fill() 588 out->dma_length = size; in sg_fill() 648 sg->dma_length = sg->length; in alpha_pci_map_sg() 688 out->dma_length = 0; in alpha_pci_map_sg() 747 size = sg->dma_length; in alpha_pci_unmap_sg()
|
/Linux-v6.1/arch/powerpc/kernel/ |
D | iommu.c | 483 outs->dma_length = 0; in ppc_iommu_map_sg() 541 (outs->dma_length + s->length > max_seg_size)) { in ppc_iommu_map_sg() 548 outs->dma_length += s->length; in ppc_iommu_map_sg() 549 DBG(" merged, new len: %ux\n", outs->dma_length); in ppc_iommu_map_sg() 557 outs->dma_length = slen; in ppc_iommu_map_sg() 577 outs->dma_length = 0; in ppc_iommu_map_sg() 587 if (s->dma_length != 0) { in ppc_iommu_map_sg() 591 npages = iommu_num_pages(s->dma_address, s->dma_length, in ppc_iommu_map_sg() 594 s->dma_length = 0; in ppc_iommu_map_sg() 619 if (sg->dma_length == 0) in ppc_iommu_unmap_sg() [all …]
|
/Linux-v6.1/arch/ia64/hp/common/ |
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() 1330 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() [all …]
|
/Linux-v6.1/arch/s390/pci/ |
D | pci_dma.c | 497 s->dma_length = 0; in s390_dma_map_sg() 507 dma->dma_length = size - offset; in s390_dma_map_sg() 521 dma->dma_length = size - offset; in s390_dma_map_sg() 540 if (s->dma_length) in s390_dma_unmap_sg() 541 s390_dma_unmap_pages(dev, s->dma_address, s->dma_length, in s390_dma_unmap_sg() 544 s->dma_length = 0; in s390_dma_unmap_sg()
|
/Linux-v6.1/drivers/infiniband/hw/qib/ |
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-v6.1/include/linux/ |
D | scatterlist.h | 17 unsigned int dma_length; member 34 #define sg_dma_len(sg) ((sg)->dma_length)
|
/Linux-v6.1/drivers/dma/sh/ |
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-v6.1/arch/sparc/mm/ |
D | io-unit.c | 174 sg->dma_length = sg->length; in iounit_map_sg()
|
D | iommu.c | 260 sg->dma_length = sg->length; in __sbus_iommu_map_sg()
|
/Linux-v6.1/drivers/dma/ |
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-v6.1/arch/powerpc/platforms/pseries/ |
D | ibmebus.c | 117 sg->dma_length = sg->length; in ibmebus_map_sg()
|
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-v6.1/drivers/dma/ti/ |
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-v6.1/arch/arm/mm/ |
D | dma-mapping.c | 1266 s->dma_length = 0; in arm_iommu_map_sg() 1275 dma->dma_length = size - offset; in arm_iommu_map_sg() 1289 dma->dma_length = size - offset; in arm_iommu_map_sg()
|
/Linux-v6.1/arch/powerpc/platforms/ps3/ |
D | system-bus.c | 652 sg->dma_length = sg->length; in ps3_sb_map_sg()
|
/Linux-v6.1/drivers/iommu/ |
D | dma-iommu.c | 844 sgt->sgl->dma_length = size; in __iommu_dma_alloc_noncontiguous()
|
/Linux-v6.1/drivers/nvme/target/ |
D | fc.c | 326 s->dma_length = s->length; in fc_map_sg()
|
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_amdkfd_gpuvm.c | 492 sg->sgl->dma_length = size; in create_sg_table()
|
/Linux-v6.1/drivers/nvme/host/ |
D | fc.c | 1009 s->dma_length = s->length; in fc_map_sg()
|
/Linux-v6.1/drivers/infiniband/ulp/srp/ |
D | ib_srp.c | 1579 idb_sg->dma_length = idb_sg->length; /* hack^2 */ in srp_map_idb()
|