Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/lib/
Dscatterlist.c202 while (table->orig_nents) { in __sg_free_table()
203 unsigned int alloc_size = table->orig_nents; in __sg_free_table()
221 table->orig_nents -= sg_size; in __sg_free_table()
312 table->nents = ++table->orig_nents; in __sg_alloc_table()
318 table->nents = table->orig_nents += sg_size; in __sg_alloc_table()
390 table->orig_nents += alloc_size - 1; in get_next_sg()
393 table->orig_nents = alloc_size; in get_next_sg()
Dsg_pool.c87 if (table->orig_nents <= nents_first_chunk) in sg_free_table_chained()
120 table->nents = table->orig_nents = nents; in sg_alloc_table_chained()
/kernel/linux/linux-5.10/tools/testing/scatterlist/
Dmain.c37 st->orig_nents); in fail()
94 VALIDATE(st.orig_nents == test->expected_segments, &st, test); in main()
/kernel/linux/linux-5.10/include/linux/
Dscatterlist.h45 unsigned int orig_nents; /* original size of list */ member
158 for_each_sg((sgt)->sgl, sg, (sgt)->orig_nents, i)
460 for_each_sg_page((sgt)->sgl, piter, (sgt)->orig_nents, pgoffset)
Ddma-mapping.h324 nents = dma_map_sg_attrs(dev, sgt->sgl, sgt->orig_nents, dir, attrs); in dma_map_sgtable()
345 dma_unmap_sg_attrs(dev, sgt->sgl, sgt->orig_nents, dir, attrs); in dma_unmap_sgtable()
363 dma_sync_sg_for_cpu(dev, sgt->sgl, sgt->orig_nents, dir); in dma_sync_sgtable_for_cpu()
380 dma_sync_sg_for_device(dev, sgt->sgl, sgt->orig_nents, dir); in dma_sync_sgtable_for_device()
Diommu.h1087 return iommu_map_sg(domain, iova, sgt->sgl, sgt->orig_nents, prot); in iommu_map_sgtable()
/kernel/linux/linux-5.10/net/ceph/
Dcrypto.c189 sgt->nents = sgt->orig_nents = 1; in setup_sgtable()
192 for_each_sg(sgt->sgl, sg, sgt->orig_nents, i) { in setup_sgtable()
214 if (sgt->orig_nents > 1) in teardown_sgtable()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_scatterlist.c15 if (orig_st->nents == orig_st->orig_nents) in i915_sg_trim()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_dmabuf.c39 ret = sg_alloc_table(st, obj->mm.pages->orig_nents, GFP_KERNEL); in i915_gem_map_dma_buf()
45 for (i = 0; i < obj->mm.pages->orig_nents; i++) { in i915_gem_map_dma_buf()
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ttm_buffer.c368 vsgt->sgt->orig_nents, p_offset); in vmw_piter_start()
388 vmw_tt->sgt.nents = vmw_tt->sgt.orig_nents; in vmw_ttm_unmap_from_dma()
468 if (vsgt->num_pages > vmw_tt->sgt.orig_nents) { in vmw_ttm_map_dma()
471 vmw_tt->sgt.orig_nents); in vmw_ttm_map_dma()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Dscatterlist.c345 if (pt.st.orig_nents != prime || in igt_sg_trim()
348 pt.st.nents, pt.st.orig_nents, prime); in igt_sg_trim()
/kernel/linux/linux-5.10/net/smc/
Dsmc_ib.c402 buf_slot->sgt[link_idx].orig_nents, in smc_ib_map_mr_sg()
480 buf_slot->sgt[lnk->link_idx].orig_nents, in smc_ib_buf_map_sg()
497 buf_slot->sgt[lnk->link_idx].orig_nents, in smc_ib_buf_unmap_sg()
/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/
Dvirtgpu_object.c174 *nents = shmem->pages->orig_nents; in virtio_gpu_object_shmem_init()
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/
Dvideobuf2-dma-sg.c373 ret = sg_alloc_table(sgt, buf->dma_sgt->orig_nents, GFP_KERNEL); in vb2_dma_sg_dmabuf_ops_attach()
381 for (i = 0; i < sgt->orig_nents; ++i) { in vb2_dma_sg_dmabuf_ops_attach()
Dvideobuf2-dma-contig.c233 ret = sg_alloc_table(sgt, buf->sgt_base->orig_nents, GFP_KERNEL); in vb2_dc_dmabuf_ops_attach()
241 for (i = 0; i < sgt->orig_nents; ++i) { in vb2_dc_dmabuf_ops_attach()
/kernel/linux/linux-5.10/drivers/gpu/drm/xen/
Dxen_drm_front_gem.c221 size, sgt->orig_nents); in xen_drm_front_gem_import_sg_table()
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/
Domap_gem.c1282 if (sgt->orig_nents != 1 && !priv->has_dmm) in omap_gem_new_dmabuf()
1296 if (sgt->orig_nents == 1) { in omap_gem_new_dmabuf()
/kernel/linux/linux-5.10/drivers/crypto/
Dsa2ul.c1139 mapped_sg->sgt.orig_nents = src_nents; in sa_run()
1150 mapped_sg->sgt.orig_nents = sg_nents; in sa_run()
1187 mapped_sg->sgt.orig_nents = dst_nents; in sa_run()
1197 mapped_sg->sgt.orig_nents = dst_nents; in sa_run()
/kernel/linux/linux-5.10/drivers/iommu/
Ddma-iommu.c632 for_each_sg(sgt.sgl, sg, sgt.orig_nents, i) in iommu_dma_alloc_remap()
636 if (iommu_map_sg_atomic(domain, iova, sgt.sgl, sgt.orig_nents, ioprot) in iommu_dma_alloc_remap()
/kernel/linux/linux-5.10/drivers/staging/android/ion/
Dion.c153 ret = sg_alloc_table(new_table, table->orig_nents, GFP_KERNEL); in dup_sg_table()
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/
Dgem.c102 obj->sgt->orig_nents, GFP_KERNEL); in tegra_bo_pin()
/kernel/linux/linux-5.10/drivers/spi/
Dspi.c946 if (sgt->orig_nents) { in spi_unmap_buf()
947 dma_unmap_sg(dev, sgt->sgl, sgt->orig_nents, dir); in spi_unmap_buf()
949 sgt->orig_nents = 0; in spi_unmap_buf()
/kernel/linux/linux-5.10/drivers/char/agp/
Dintel-gtt.c133 st.orig_nents = st.nents = num_sg; in intel_gtt_unmap_memory()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dbcmsdh.c511 sg_init_table(sdiodev->sgtable.sgl, sdiodev->sgtable.orig_nents); in brcmf_sdiod_sglist_rw()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c4020 adapter->hma.sgt->orig_nents, i) { in adap_free_hma_mem()
4080 sgt->orig_nents = (hma_size << 20) / (page_size << page_order); in adap_config_hma()
4081 if (sg_alloc_table(sgt, sgt->orig_nents, GFP_KERNEL)) { in adap_config_hma()
4090 for_each_sg(sgl, iter, sgt->orig_nents, i) { in adap_config_hma()
4102 sgt->nents = dma_map_sg(adapter->pdev_dev, sgl, sgt->orig_nents, in adap_config_hma()

12