/Linux-v4.19/arch/sparc/kernel/ |
D | iommu.c | 473 outs->dma_length = 0; in dma_4u_map_sg() 524 (outs->dma_length + s->length > max_seg_size) || in dma_4u_map_sg() 532 outs->dma_length += s->length; in dma_4u_map_sg() 539 outs->dma_length = slen; in dma_4u_map_sg() 552 outs->dma_length = 0; in dma_4u_map_sg() 559 if (s->dma_length != 0) { in dma_4u_map_sg() 564 npages = iommu_num_pages(s->dma_address, s->dma_length, in dma_4u_map_sg() 578 s->dma_length = 0; in dma_4u_map_sg() 630 unsigned int len = sg->dma_length; in dma_4u_unmap_sg() 733 if (sg->dma_length == 0) in dma_4u_sync_sg_for_cpu() [all …]
|
D | pci_sun4v.c | 502 outs->dma_length = 0; in dma_4v_map_sg() 563 (outs->dma_length + s->length > max_seg_size) || in dma_4v_map_sg() 571 outs->dma_length += s->length; in dma_4v_map_sg() 578 outs->dma_length = slen; in dma_4v_map_sg() 596 outs->dma_length = 0; in dma_4v_map_sg() 603 if (s->dma_length != 0) { in dma_4v_map_sg() 607 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-v4.19/arch/x86/kernel/ |
D | amd_gart_64.c | 296 if (!s->dma_length || !s->length) in gart_unmap_sg() 298 gart_unmap_page(dev, s->dma_address, s->dma_length, dir, 0); in gart_unmap_sg() 322 sg[0].dma_length = 0; in dma_map_sg_nonforce() 327 s->dma_length = s->length; in dma_map_sg_nonforce() 355 sout->dma_length = s->length; in __dma_map_cont() 357 sout->dma_length += s->length; in __dma_map_cont() 380 sout->dma_length = start->length; in dma_map_cont() 455 sgmap->dma_length = 0; in gart_map_sg()
|
D | pci-calgary_64.c | 358 unsigned int dmalen = s->dma_length; in calgary_unmap_sg() 388 s->dma_length = 0; in calgary_map_sg() 397 s->dma_length = s->length; in calgary_map_sg() 405 sg->dma_length = 0; in calgary_map_sg()
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | iommu.c | 453 outs->dma_length = 0; in ppc_iommu_map_sg() 511 (outs->dma_length + s->length > max_seg_size)) { in ppc_iommu_map_sg() 518 outs->dma_length += s->length; in ppc_iommu_map_sg() 519 DBG(" merged, new len: %ux\n", outs->dma_length); in ppc_iommu_map_sg() 527 outs->dma_length = slen; in ppc_iommu_map_sg() 548 outs->dma_length = 0; in ppc_iommu_map_sg() 558 if (s->dma_length != 0) { in ppc_iommu_map_sg() 562 npages = iommu_num_pages(s->dma_address, s->dma_length, in ppc_iommu_map_sg() 566 s->dma_length = 0; in ppc_iommu_map_sg() 591 if (sg->dma_length == 0) in ppc_iommu_unmap_sg() [all …]
|
D | dma.c | 202 sg->dma_length = sg->length; in dma_nommu_map_sg()
|
/Linux-v4.19/arch/alpha/kernel/ |
D | pci_iommu.c | 538 leader->dma_length = leader_length; in sg_classify() 548 leader->dma_length = leader_length; in sg_classify() 560 long size = leader->dma_length; in sg_fill() 572 out->dma_length = size; in sg_fill() 584 out->dma_length = size; in sg_fill() 610 out->dma_length = size; in sg_fill() 670 sg->dma_length = sg->length; in alpha_pci_map_sg() 708 out->dma_length = 0; in alpha_pci_map_sg() 765 size = sg->dma_length; in alpha_pci_unmap_sg()
|
/Linux-v4.19/arch/s390/pci/ |
D | pci_dma.c | 500 s->dma_length = 0; in s390_dma_map_sg() 509 dma->dma_length = size - offset; in s390_dma_map_sg() 522 dma->dma_length = size - offset; in s390_dma_map_sg() 541 if (s->dma_length) in s390_dma_unmap_sg() 542 s390_dma_unmap_pages(dev, s->dma_address, s->dma_length, in s390_dma_unmap_sg() 545 s->dma_length = 0; in s390_dma_unmap_sg()
|
/Linux-v4.19/arch/ia64/hp/common/ |
D | sba_iommu.c | 399 startsg->dma_address, startsg->dma_length, in sba_dump_sg() 1235 int cnt = startsg->dma_length; in sba_fill_pdir() 1236 startsg->dma_length = 0; in sba_fill_pdir() 1272 dma_sg->dma_length += cnt; in sba_fill_pdir() 1345 startsg->dma_address = startsg->dma_length = 0; in sba_coalesce_chunks() 1357 startsg->dma_address = startsg->dma_length = 0; in sba_coalesce_chunks() 1403 vcontig_sg->dma_length = vcontig_len; in sba_coalesce_chunks() 1427 vcontig_sg->dma_length = vcontig_len; in sba_coalesce_chunks() 1432 dma_sg->dma_length = 0; in sba_coalesce_chunks() 1477 sg->dma_length = sg->length; in sba_map_sg_attrs() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/qib/ |
D | qib_user_sdma.c | 91 u16 dma_length; /* for dma_unmap_page() */ member 263 dma_addr_t dma_addr, u16 dma_length) in qib_user_sdma_init_frag() argument 274 pkt->addr[i].dma_length = dma_length; in qib_user_sdma_init_frag() 390 pkt->addr[pkt->index].dma_length, in qib_user_sdma_page_to_frags() 481 pkt->addr[pkt->index].dma_length, in qib_user_sdma_page_to_frags() 631 pkt->addr[i].dma_length, in qib_user_sdma_free_pkt_frag() 647 pkt->addr[i].dma_length, in qib_user_sdma_free_pkt_frag() 751 pkt->addr[0].dma_length, in qib_user_sdma_pin_pkt()
|
/Linux-v4.19/include/linux/ |
D | scatterlist.h | 17 unsigned int dma_length; member 37 #define sg_dma_len(sg) ((sg)->dma_length)
|
/Linux-v4.19/arch/ia64/sn/pci/ |
D | pci_dma.c | 252 sg->dma_length = 0; in sn_dma_unmap_sg() 311 sg->dma_length = sg->length; in sn_dma_map_sg()
|
/Linux-v4.19/arch/sparc/mm/ |
D | iommu.c | 248 sg->dma_length = sg->length; in iommu_get_scsi_sgl_gflush() 279 sg->dma_length = sg->length; in iommu_get_scsi_sgl_pflush()
|
D | io-unit.c | 164 sg->dma_length = sg->length; in iounit_get_scsi_sgl()
|
/Linux-v4.19/arch/hexagon/kernel/ |
D | dma.c | 112 s->dma_length = s->length; in hexagon_map_sg()
|
/Linux-v4.19/drivers/dma/ |
D | imx-dma.c | 811 int i, dma_length = 0; in imxdma_prep_slave_sg() local 821 dma_length += sg_dma_len(sg); in imxdma_prep_slave_sg() 842 desc->len = dma_length; in imxdma_prep_slave_sg()
|
/Linux-v4.19/arch/powerpc/platforms/pseries/ |
D | ibmebus.c | 115 sg->dma_length = sg->length; in ibmebus_map_sg()
|
D | vio.c | 581 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg() 601 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_unmap_sg()
|
/Linux-v4.19/drivers/dma/ti/ |
D | edma.c | 932 unsigned int acnt, unsigned int dma_length, in edma_config_pset() argument 964 ccnt = dma_length / acnt / (SZ_64K - 1); in edma_config_pset() 965 bcnt = dma_length / acnt - ccnt * (SZ_64K - 1); in edma_config_pset() 987 ccnt = dma_length / (acnt * bcnt); in edma_config_pset() 995 epset->len = dma_length; in edma_config_pset()
|
/Linux-v4.19/arch/arm/mm/ |
D | dma-mapping.c | 1068 s->dma_length = s->length; in arm_dma_map_sg() 1744 s->dma_length = 0; in __iommu_map_sg() 1752 dma->dma_length = size - offset; in __iommu_map_sg() 1766 dma->dma_length = size - offset; in __iommu_map_sg()
|
/Linux-v4.19/drivers/infiniband/hw/hns/ |
D | hns_roce_hw_v1.h | 652 __le32 dma_length; member
|
/Linux-v4.19/arch/powerpc/platforms/ps3/ |
D | system-bus.c | 665 sg->dma_length = sg->length; in ps3_sb_map_sg()
|
/Linux-v4.19/drivers/iommu/ |
D | intel-iommu.c | 2252 sg->dma_length = sg->length; in __domain_mapping() 3831 sg->dma_length = sg->length; in intel_nontranslate_map_sg() 3865 sglist->dma_length = 0; in intel_map_sg()
|
/Linux-v4.19/drivers/nvme/target/ |
D | fc.c | 308 s->dma_length = s->length; in fc_map_sg()
|