/linux/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/arch/x86/kernel/ |
A D | amd_gart_64.c | 285 if (!s->dma_length || !s->length) in gart_unmap_sg() 287 gart_unmap_page(dev, s->dma_address, s->dma_length, dir, 0); in gart_unmap_sg() 311 sg[0].dma_length = 0; in dma_map_sg_nonforce() 316 s->dma_length = s->length; in dma_map_sg_nonforce() 344 sout->dma_length = s->length; in __dma_map_cont() 346 sout->dma_length += s->length; in __dma_map_cont() 369 sout->dma_length = start->length; in dma_map_cont() 443 sgmap->dma_length = 0; in gart_map_sg()
|
/linux/arch/alpha/kernel/ |
A 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/arch/powerpc/kernel/ |
A D | iommu.c | 484 outs->dma_length = 0; in ppc_iommu_map_sg() 542 (outs->dma_length + s->length > max_seg_size)) { in ppc_iommu_map_sg() 549 outs->dma_length += s->length; in ppc_iommu_map_sg() 550 DBG(" merged, new len: %ux\n", outs->dma_length); in ppc_iommu_map_sg() 558 outs->dma_length = slen; in ppc_iommu_map_sg() 578 outs->dma_length = 0; in ppc_iommu_map_sg() 588 if (s->dma_length != 0) { in ppc_iommu_map_sg() 592 npages = iommu_num_pages(s->dma_address, s->dma_length, in ppc_iommu_map_sg() 595 s->dma_length = 0; in ppc_iommu_map_sg() 620 if (sg->dma_length == 0) in ppc_iommu_unmap_sg() [all …]
|
/linux/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/arch/s390/pci/ |
A 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/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/include/linux/ |
A D | scatterlist.h | 17 unsigned int dma_length; member 31 #define sg_dma_len(sg) ((sg)->dma_length)
|
/linux/drivers/dma/sh/ |
A D | rz-dmac.c | 504 int dma_length = 0; in rz_dmac_prep_slave_sg() local 513 dma_length += sg_dma_len(sg); in rz_dmac_prep_slave_sg() 519 desc->len = dma_length; in rz_dmac_prep_slave_sg()
|
/linux/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/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/drivers/dma/ti/ |
A D | edma.c | 955 unsigned int acnt, unsigned int dma_length, in edma_config_pset() argument 987 ccnt = dma_length / acnt / (SZ_64K - 1); in edma_config_pset() 988 bcnt = dma_length / acnt - ccnt * (SZ_64K - 1); in edma_config_pset() 1010 ccnt = dma_length / (acnt * bcnt); in edma_config_pset() 1018 epset->len = dma_length; in edma_config_pset()
|
/linux/arch/powerpc/platforms/pseries/ |
A D | ibmebus.c | 117 sg->dma_length = sg->length; in ibmebus_map_sg()
|
A D | vio.c | 572 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg() 596 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_unmap_sg()
|
/linux/arch/arm/mm/ |
A D | dma-mapping.c | 987 s->dma_length = s->length; in arm_dma_map_sg() 1635 s->dma_length = 0; in __iommu_map_sg() 1645 dma->dma_length = size - offset; in __iommu_map_sg() 1660 dma->dma_length = size - offset; in __iommu_map_sg()
|
/linux/drivers/infiniband/hw/hns/ |
A D | hns_roce_hw_v1.h | 689 __le32 dma_length; member
|
/linux/arch/powerpc/platforms/ps3/ |
A D | system-bus.c | 652 sg->dma_length = sg->length; in ps3_sb_map_sg()
|
/linux/drivers/iommu/ |
A D | dma-iommu.c | 657 sgt->sgl->dma_length = size; in __iommu_dma_alloc_noncontiguous()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_amdkfd_gpuvm.c | 1132 sg->sgl->dma_length = size; in create_doorbell_sg()
|
/linux/drivers/nvme/target/ |
A D | fc.c | 326 s->dma_length = s->length; in fc_map_sg()
|
/linux/drivers/nvme/host/ |
A D | fc.c | 1009 s->dma_length = s->length; in fc_map_sg()
|
/linux/drivers/infiniband/ulp/srp/ |
A D | ib_srp.c | 1580 idb_sg->dma_length = idb_sg->length; /* hack^2 */ in srp_map_idb()
|