/kernel/linux/linux-5.10/lib/ |
D | scatterlist.c | 202 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()
|
D | sg_pool.c | 87 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/ |
D | main.c | 37 st->orig_nents); in fail() 94 VALIDATE(st.orig_nents == test->expected_segments, &st, test); in main()
|
/kernel/linux/linux-5.10/include/linux/ |
D | scatterlist.h | 45 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)
|
D | dma-mapping.h | 324 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()
|
D | iommu.h | 1087 return iommu_map_sg(domain, iova, sgt->sgl, sgt->orig_nents, prot); in iommu_map_sgtable()
|
/kernel/linux/linux-5.10/net/ceph/ |
D | crypto.c | 189 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/ |
D | i915_scatterlist.c | 15 if (orig_st->nents == orig_st->orig_nents) in i915_sg_trim()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
D | i915_gem_dmabuf.c | 39 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/ |
D | vmwgfx_ttm_buffer.c | 368 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/ |
D | scatterlist.c | 345 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/ |
D | smc_ib.c | 402 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/ |
D | virtgpu_object.c | 174 *nents = shmem->pages->orig_nents; in virtio_gpu_object_shmem_init()
|
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/ |
D | videobuf2-dma-sg.c | 373 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()
|
D | videobuf2-dma-contig.c | 233 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/ |
D | xen_drm_front_gem.c | 221 size, sgt->orig_nents); in xen_drm_front_gem_import_sg_table()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/ |
D | omap_gem.c | 1282 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/ |
D | sa2ul.c | 1139 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/ |
D | dma-iommu.c | 632 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/ |
D | ion.c | 153 ret = sg_alloc_table(new_table, table->orig_nents, GFP_KERNEL); in dup_sg_table()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/ |
D | gem.c | 102 obj->sgt->orig_nents, GFP_KERNEL); in tegra_bo_pin()
|
/kernel/linux/linux-5.10/drivers/spi/ |
D | spi.c | 946 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/ |
D | intel-gtt.c | 133 st.orig_nents = st.nents = num_sg; in intel_gtt_unmap_memory()
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | bcmsdh.c | 511 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/ |
D | cxgb4_main.c | 4020 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()
|