Home
last modified time | relevance | path

Searched refs:dma_length (Results 1 – 25 of 29) sorted by relevance

12

/Linux-v4.19/arch/sparc/kernel/
Diommu.c473 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 …]
Dpci_sun4v.c502 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()
Diommu_common.h45 int nr = iommu_num_pages(paddr, outs->dma_length + sg->length, in is_span_boundary()
/Linux-v4.19/arch/x86/kernel/
Damd_gart_64.c296 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()
Dpci-calgary_64.c358 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/
Diommu.c453 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 …]
Ddma.c202 sg->dma_length = sg->length; in dma_nommu_map_sg()
/Linux-v4.19/arch/alpha/kernel/
Dpci_iommu.c538 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/
Dpci_dma.c500 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/
Dsba_iommu.c399 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/
Dqib_user_sdma.c91 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/
Dscatterlist.h17 unsigned int dma_length; member
37 #define sg_dma_len(sg) ((sg)->dma_length)
/Linux-v4.19/arch/ia64/sn/pci/
Dpci_dma.c252 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/
Diommu.c248 sg->dma_length = sg->length; in iommu_get_scsi_sgl_gflush()
279 sg->dma_length = sg->length; in iommu_get_scsi_sgl_pflush()
Dio-unit.c164 sg->dma_length = sg->length; in iounit_get_scsi_sgl()
/Linux-v4.19/arch/hexagon/kernel/
Ddma.c112 s->dma_length = s->length; in hexagon_map_sg()
/Linux-v4.19/drivers/dma/
Dimx-dma.c811 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/
Dibmebus.c115 sg->dma_length = sg->length; in ibmebus_map_sg()
Dvio.c581 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/
Dedma.c932 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/
Ddma-mapping.c1068 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/
Dhns_roce_hw_v1.h652 __le32 dma_length; member
/Linux-v4.19/arch/powerpc/platforms/ps3/
Dsystem-bus.c665 sg->dma_length = sg->length; in ps3_sb_map_sg()
/Linux-v4.19/drivers/iommu/
Dintel-iommu.c2252 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/
Dfc.c308 s->dma_length = s->length; in fc_map_sg()

12