/linux-6.3-rc2/lib/ |
A D | sg_pool.c | 87 if (table->orig_nents <= nents_first_chunk) in sg_free_table_chained() 94 table->orig_nents); in sg_free_table_chained() 121 table->nents = table->orig_nents = nents; in sg_alloc_table_chained()
|
A D | scatterlist.c | 257 table->orig_nents); in sg_free_table() 328 table->nents = ++table->orig_nents; in __sg_alloc_table() 334 table->nents = table->orig_nents += sg_size; in __sg_alloc_table() 543 sgt_append->sgt.orig_nents = sgt_append->sgt.nents; in sg_alloc_append_table_from_pages() 590 WARN_ON(append.total_nents != sgt->orig_nents); in sg_alloc_table_from_pages_segment()
|
/linux-6.3-rc2/tools/testing/scatterlist/ |
A D | main.c | 38 st->orig_nents); in fail() 120 VALIDATE(append.sgt.orig_nents == in main()
|
/linux-6.3-rc2/net/ceph/ |
A D | crypto.c | 190 sgt->nents = sgt->orig_nents = 1; in setup_sgtable() 193 for_each_sg(sgt->sgl, sg, sgt->orig_nents, i) { in setup_sgtable() 215 if (sgt->orig_nents > 1) in teardown_sgtable()
|
/linux-6.3-rc2/include/linux/ |
A D | scatterlist.h | 42 unsigned int orig_nents; /* original size of list */ member 178 for_each_sg((sgt)->sgl, sg, (sgt)->orig_nents, i) 578 for_each_sg_page((sgt)->sgl, piter, (sgt)->orig_nents, pgoffset)
|
A D | dma-mapping.h | 373 dma_unmap_sg_attrs(dev, sgt->sgl, sgt->orig_nents, dir, attrs); in dma_unmap_sgtable() 391 dma_sync_sg_for_cpu(dev, sgt->sgl, sgt->orig_nents, dir); in dma_sync_sgtable_for_cpu() 408 dma_sync_sg_for_device(dev, sgt->sgl, sgt->orig_nents, dir); in dma_sync_sgtable_for_device()
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_dmabuf.c | 46 ret = sg_alloc_table(sgt, obj->mm.pages->orig_nents, GFP_KERNEL); in i915_gem_map_dma_buf() 51 for_each_sg(obj->mm.pages->sgl, src, obj->mm.pages->orig_nents, i) { in i915_gem_map_dma_buf()
|
/linux-6.3-rc2/drivers/gpu/drm/i915/selftests/ |
A D | scatterlist.c | 349 if (pt.st.orig_nents != prime || in igt_sg_trim() 352 pt.st.nents, pt.st.orig_nents, prime); in igt_sg_trim()
|
/linux-6.3-rc2/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_ttm_buffer.c | 233 vsgt->sgt->orig_nents, p_offset); in vmw_piter_start() 253 vmw_tt->sgt.nents = vmw_tt->sgt.orig_nents; in vmw_ttm_unmap_from_dma()
|
/linux-6.3-rc2/drivers/gpu/drm/rcar-du/ |
A D | rcar_du_vsp.c | 256 ret = sg_alloc_table(sgt, gem->sgt->orig_nents, in rcar_du_vsp_map_fb() 263 for (j = 0; j < gem->sgt->orig_nents; ++j) { in rcar_du_vsp_map_fb()
|
/linux-6.3-rc2/drivers/infiniband/core/ |
A D | rw.c | 299 .orig_nents = sg_cnt, in rdma_rw_ctx_init() 375 .orig_nents = sg_cnt, in rdma_rw_ctx_signature_init() 379 .orig_nents = prot_sg_cnt, in rdma_rw_ctx_signature_init()
|
A D | umem.c | 307 umem->sgt_append.sgt.orig_nents, dst, length, in ib_umem_copy_from()
|
/linux-6.3-rc2/net/smc/ |
A D | smc_ib.c | 703 buf_slot->sgt[link_idx].orig_nents, in smc_ib_map_mr_sg() 727 buf_slot->sgt[link_idx].orig_nents) in smc_ib_get_memory_region() 811 buf_slot->sgt[lnk->link_idx].orig_nents, in smc_ib_buf_map_sg() 828 buf_slot->sgt[lnk->link_idx].orig_nents, in smc_ib_buf_unmap_sg()
|
/linux-6.3-rc2/kernel/dma/ |
A D | mapping.c | 271 nents = __dma_map_sg_attrs(dev, sgt->sgl, sgt->orig_nents, dir, attrs); in dma_map_sgtable() 660 debug_dma_map_sg(dev, sgt->sgl, sgt->orig_nents, 1, dir, attrs); in dma_alloc_noncontiguous() 680 debug_dma_unmap_sg(dev, sgt->sgl, sgt->orig_nents, dir); in dma_free_noncontiguous()
|
/linux-6.3-rc2/drivers/gpu/drm/i915/ |
A D | i915_scatterlist.c | 21 if (orig_st->nents == orig_st->orig_nents) in i915_sg_trim()
|
/linux-6.3-rc2/drivers/gpu/drm/virtio/ |
A D | virtgpu_object.c | 152 *nents = pages->orig_nents; in virtio_gpu_object_shmem_init()
|
/linux-6.3-rc2/drivers/gpu/drm/xen/ |
A D | xen_drm_front_gem.c | 276 size, sgt->orig_nents); in xen_drm_front_gem_import_sg_table()
|
/linux-6.3-rc2/drivers/media/common/videobuf2/ |
A D | videobuf2-dma-sg.c | 387 ret = sg_alloc_table(sgt, buf->dma_sgt->orig_nents, GFP_KERNEL); in vb2_dma_sg_dmabuf_ops_attach() 395 for (i = 0; i < sgt->orig_nents; ++i) { in vb2_dma_sg_dmabuf_ops_attach()
|
A D | videobuf2-dma-contig.c | 336 ret = sg_alloc_table(sgt, buf->sgt_base->orig_nents, GFP_KERNEL); in vb2_dc_dmabuf_ops_attach() 344 for (i = 0; i < sgt->orig_nents; ++i) { in vb2_dc_dmabuf_ops_attach()
|
/linux-6.3-rc2/fs/netfs/ |
A D | iterator.c | 153 while (sgtable->nents > sgtable->orig_nents) in netfs_extract_user_to_sg()
|
/linux-6.3-rc2/drivers/dma-buf/heaps/ |
A D | system_heap.c | 69 ret = sg_alloc_table(new_table, table->orig_nents, GFP_KERNEL); in dup_sg_table()
|
/linux-6.3-rc2/drivers/spi/ |
A D | spi.c | 1113 if (sgt->orig_nents) { in spi_unmap_buf_attrs() 1116 sgt->orig_nents = 0; in spi_unmap_buf_attrs() 1223 if (xfer->tx_sg.orig_nents) in spi_dma_sync_for_device() 1225 if (xfer->rx_sg.orig_nents) in spi_dma_sync_for_device() 1238 if (xfer->rx_sg.orig_nents) in spi_dma_sync_for_cpu() 1240 if (xfer->tx_sg.orig_nents) in spi_dma_sync_for_cpu()
|
/linux-6.3-rc2/drivers/crypto/ |
A D | sa2ul.c | 1164 mapped_sg->sgt.orig_nents = src_nents; in sa_run() 1175 mapped_sg->sgt.orig_nents = sg_nents; in sa_run() 1212 mapped_sg->sgt.orig_nents = dst_nents; in sa_run() 1222 mapped_sg->sgt.orig_nents = dst_nents; in sa_run()
|
/linux-6.3-rc2/drivers/gpu/drm/omapdrm/ |
A D | omap_gem.c | 1400 if (sgt->orig_nents != 1 && !priv->has_dmm) in omap_gem_new_dmabuf() 1414 if (sgt->orig_nents == 1) { in omap_gem_new_dmabuf()
|
/linux-6.3-rc2/drivers/infiniband/sw/rxe/ |
A D | rxe_mr.c | 106 __sg_page_iter_start(&sg_iter, sgt->sgl, sgt->orig_nents, 0); in rxe_mr_fill_pages_from_sgt()
|