Home
last modified time | relevance | path

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

/Linux-v6.1/arch/sparc/kernel/
Diommu.c472 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 …]
Dpci_sun4v.c505 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()
Diommu_common.h45 int nr = iommu_num_pages(paddr, outs->dma_length + sg->length, in is_span_boundary()
/Linux-v6.1/arch/x86/kernel/
Damd_gart_64.c283 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/
Dpci_iommu.c516 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/
Diommu.c483 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/
Dsba_iommu.c391 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/
Dpci_dma.c497 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/
Dqib_user_sdma.c91 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/
Dscatterlist.h17 unsigned int dma_length; member
34 #define sg_dma_len(sg) ((sg)->dma_length)
/Linux-v6.1/drivers/dma/sh/
Drz-dmac.c505 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/
Dio-unit.c174 sg->dma_length = sg->length; in iounit_map_sg()
Diommu.c260 sg->dma_length = sg->length; in __sbus_iommu_map_sg()
/Linux-v6.1/drivers/dma/
Dimx-dma.c802 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/
Dibmebus.c117 sg->dma_length = sg->length; in ibmebus_map_sg()
Dvio.c573 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/
Dedma.c907 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/
Ddma-mapping.c1266 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/
Dsystem-bus.c652 sg->dma_length = sg->length; in ps3_sb_map_sg()
/Linux-v6.1/drivers/iommu/
Ddma-iommu.c844 sgt->sgl->dma_length = size; in __iommu_dma_alloc_noncontiguous()
/Linux-v6.1/drivers/nvme/target/
Dfc.c326 s->dma_length = s->length; in fc_map_sg()
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gpuvm.c492 sg->sgl->dma_length = size; in create_sg_table()
/Linux-v6.1/drivers/nvme/host/
Dfc.c1009 s->dma_length = s->length; in fc_map_sg()
/Linux-v6.1/drivers/infiniband/ulp/srp/
Dib_srp.c1579 idb_sg->dma_length = idb_sg->length; /* hack^2 */ in srp_map_idb()