Home
last modified time | relevance | path

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

/linux-6.3-rc2/arch/sparc/kernel/
A 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 …]
A 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()
A Diommu_common.h45 int nr = iommu_num_pages(paddr, outs->dma_length + sg->length, in is_span_boundary()
/linux-6.3-rc2/arch/x86/kernel/
A 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-6.3-rc2/arch/alpha/kernel/
A Dpci_iommu.c518 leader->dma_length = leader_length; in sg_classify()
528 leader->dma_length = leader_length; in sg_classify()
540 long size = leader->dma_length; in sg_fill()
552 out->dma_length = size; in sg_fill()
564 out->dma_length = size; in sg_fill()
590 out->dma_length = size; in sg_fill()
650 sg->dma_length = sg->length; in alpha_pci_map_sg()
690 out->dma_length = 0; in alpha_pci_map_sg()
749 size = sg->dma_length; in alpha_pci_unmap_sg()
/linux-6.3-rc2/arch/powerpc/kernel/
A Diommu.c481 outs->dma_length = 0; in ppc_iommu_map_sg()
539 (outs->dma_length + s->length > max_seg_size)) { in ppc_iommu_map_sg()
546 outs->dma_length += s->length; in ppc_iommu_map_sg()
547 DBG(" merged, new len: %ux\n", outs->dma_length); in ppc_iommu_map_sg()
555 outs->dma_length = slen; in ppc_iommu_map_sg()
575 outs->dma_length = 0; in ppc_iommu_map_sg()
585 if (s->dma_length != 0) { in ppc_iommu_map_sg()
589 npages = iommu_num_pages(s->dma_address, s->dma_length, in ppc_iommu_map_sg()
592 s->dma_length = 0; in ppc_iommu_map_sg()
617 if (sg->dma_length == 0) in ppc_iommu_unmap_sg()
[all …]
/linux-6.3-rc2/arch/ia64/hp/common/
A 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()
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-6.3-rc2/arch/s390/pci/
A Dpci_dma.c517 s->dma_length = 0; in s390_dma_map_sg()
527 dma->dma_length = size - offset; in s390_dma_map_sg()
541 dma->dma_length = size - offset; in s390_dma_map_sg()
560 if (s->dma_length) in s390_dma_unmap_sg()
561 s390_dma_unmap_pages(dev, s->dma_address, s->dma_length, in s390_dma_unmap_sg()
564 s->dma_length = 0; in s390_dma_unmap_sg()
/linux-6.3-rc2/drivers/infiniband/hw/qib/
A 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-6.3-rc2/drivers/net/wireless/ath/ath12k/
A Ddp_mon.h63 u16 dma_length; member
/linux-6.3-rc2/include/linux/
A Dscatterlist.h17 unsigned int dma_length; member
34 #define sg_dma_len(sg) ((sg)->dma_length)
/linux-6.3-rc2/drivers/dma/sh/
A 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-6.3-rc2/arch/sparc/mm/
A Dio-unit.c174 sg->dma_length = sg->length; in iounit_map_sg()
A Diommu.c260 sg->dma_length = sg->length; in __sbus_iommu_map_sg()
/linux-6.3-rc2/drivers/dma/
A 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-6.3-rc2/arch/powerpc/platforms/pseries/
A Dibmebus.c117 sg->dma_length = sg->length; in ibmebus_map_sg()
A 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-6.3-rc2/drivers/dma/ti/
A 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-6.3-rc2/arch/arm/mm/
A Ddma-mapping.c1251 s->dma_length = 0; in arm_iommu_map_sg()
1260 dma->dma_length = size - offset; in arm_iommu_map_sg()
1274 dma->dma_length = size - offset; in arm_iommu_map_sg()
/linux-6.3-rc2/arch/powerpc/platforms/ps3/
A Dsystem-bus.c652 sg->dma_length = sg->length; in ps3_sb_map_sg()
/linux-6.3-rc2/drivers/iommu/
A Ddma-iommu.c852 sgt->sgl->dma_length = size; in __iommu_dma_alloc_noncontiguous()
/linux-6.3-rc2/drivers/nvme/target/
A Dfc.c326 s->dma_length = s->length; in fc_map_sg()
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_amdkfd_gpuvm.c446 sg->sgl->dma_length = size; in create_sg_table()
/linux-6.3-rc2/drivers/nvme/host/
A Dfc.c1009 s->dma_length = s->length; in fc_map_sg()
/linux-6.3-rc2/drivers/infiniband/ulp/srp/
A Dib_srp.c1579 idb_sg->dma_length = idb_sg->length; /* hack^2 */ in srp_map_idb()

Completed in 84 milliseconds