/linux/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() 533 sgt_append->sgt.orig_nents = sgt_append->sgt.nents; in sg_alloc_append_table_from_pages() 580 WARN_ON(append.total_nents != sgt->orig_nents); in sg_alloc_table_from_pages_segment()
|
/linux/drivers/infiniband/core/ |
A D | rw.c | 294 sgt->orig_nents, dir); in rdma_rw_map_sgtable() 325 .orig_nents = sg_cnt, in rdma_rw_ctx_init() 368 rdma_rw_unmap_sg(dev, sgt.sgl, sgt.orig_nents, dir); in rdma_rw_ctx_init() 401 .orig_nents = sg_cnt, in rdma_rw_ctx_signature_init() 405 .orig_nents = prot_sg_cnt, in rdma_rw_ctx_signature_init() 488 rdma_rw_unmap_sg(dev, prot_sgt.sgl, prot_sgt.orig_nents, dir); in rdma_rw_ctx_signature_init() 490 rdma_rw_unmap_sg(dev, sgt.sgl, sgt.orig_nents, dir); 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/include/linux/ |
A D | scatterlist.h | 39 unsigned int orig_nents; /* original size of list */ member 158 for_each_sg((sgt)->sgl, sg, (sgt)->orig_nents, i) 492 for_each_sg_page((sgt)->sgl, piter, (sgt)->orig_nents, pgoffset)
|
A D | dma-mapping.h | 368 dma_unmap_sg_attrs(dev, sgt->sgl, sgt->orig_nents, dir, attrs); in dma_unmap_sgtable() 386 dma_sync_sg_for_cpu(dev, sgt->sgl, sgt->orig_nents, dir); in dma_sync_sgtable_for_cpu() 403 dma_sync_sg_for_device(dev, sgt->sgl, sgt->orig_nents, dir); in dma_sync_sgtable_for_device()
|
A D | iommu.h | 1099 return iommu_map_sg(domain, iova, sgt->sgl, sgt->orig_nents, prot); in iommu_map_sgtable()
|
/linux/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/tools/testing/scatterlist/ |
A D | main.c | 38 st->orig_nents); in fail() 120 VALIDATE(append.sgt.orig_nents == in main()
|
/linux/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_ttm_buffer.c | 264 vsgt->sgt->orig_nents, p_offset); in vmw_piter_start() 284 vmw_tt->sgt.nents = vmw_tt->sgt.orig_nents; in vmw_ttm_unmap_from_dma() 360 if (vsgt->num_pages > vmw_tt->sgt.orig_nents) { in vmw_ttm_map_dma() 363 vmw_tt->sgt.orig_nents); in vmw_ttm_map_dma()
|
/linux/drivers/gpu/drm/i915/selftests/ |
A 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()
|
/linux/drivers/gpu/drm/rcar-du/ |
A D | rcar_du_vsp.c | 208 ret = sg_alloc_table(sgt, gem->sgt->orig_nents, in rcar_du_vsp_map_fb() 215 for (j = 0; j < gem->sgt->orig_nents; ++j) { in rcar_du_vsp_map_fb()
|
/linux/drivers/gpu/drm/i915/ |
A D | i915_scatterlist.c | 22 if (orig_st->nents == orig_st->orig_nents) in i915_sg_trim()
|
/linux/kernel/dma/ |
A D | mapping.c | 264 nents = __dma_map_sg_attrs(dev, sgt->sgl, sgt->orig_nents, dir, attrs); in dma_map_sgtable() 643 debug_dma_map_sg(dev, sgt->sgl, sgt->orig_nents, 1, dir, attrs); in dma_alloc_noncontiguous() 663 debug_dma_unmap_sg(dev, sgt->sgl, sgt->orig_nents, dir); in dma_free_noncontiguous()
|
/linux/net/smc/ |
A D | smc_ib.c | 700 buf_slot->sgt[link_idx].orig_nents, in smc_ib_map_mr_sg() 778 buf_slot->sgt[lnk->link_idx].orig_nents, in smc_ib_buf_map_sg() 795 buf_slot->sgt[lnk->link_idx].orig_nents, in smc_ib_buf_unmap_sg()
|
/linux/drivers/media/common/videobuf2/ |
A D | videobuf2-dma-sg.c | 385 ret = sg_alloc_table(sgt, buf->dma_sgt->orig_nents, GFP_KERNEL); in vb2_dma_sg_dmabuf_ops_attach() 393 for (i = 0; i < sgt->orig_nents; ++i) { in vb2_dma_sg_dmabuf_ops_attach()
|
A D | videobuf2-dma-contig.c | 335 ret = sg_alloc_table(sgt, buf->sgt_base->orig_nents, GFP_KERNEL); in vb2_dc_dmabuf_ops_attach() 343 for (i = 0; i < sgt->orig_nents; ++i) { in vb2_dc_dmabuf_ops_attach()
|
/linux/drivers/gpu/drm/xen/ |
A D | xen_drm_front_gem.c | 236 size, sgt->orig_nents); in xen_drm_front_gem_import_sg_table()
|
/linux/drivers/gpu/drm/virtio/ |
A D | virtgpu_object.c | 183 *nents = shmem->pages->orig_nents; in virtio_gpu_object_shmem_init()
|
/linux/drivers/dma-buf/heaps/ |
A D | system_heap.c | 68 ret = sg_alloc_table(new_table, table->orig_nents, GFP_KERNEL); in dup_sg_table()
|
/linux/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/drivers/gpu/drm/omapdrm/ |
A D | omap_gem.c | 1296 if (sgt->orig_nents != 1 && !priv->has_dmm) in omap_gem_new_dmabuf() 1310 if (sgt->orig_nents == 1) { in omap_gem_new_dmabuf()
|
/linux/drivers/iommu/ |
A D | dma-iommu.c | 648 for_each_sg(sgt->sgl, sg, sgt->orig_nents, i) in __iommu_dma_alloc_noncontiguous() 652 if (iommu_map_sg_atomic(domain, iova, sgt->sgl, sgt->orig_nents, ioprot) in __iommu_dma_alloc_noncontiguous()
|
/linux/sound/core/ |
A D | memalloc.c | 561 __sg_page_iter_start(piter, sgt->sgl, sgt->orig_nents, in snd_dma_noncontig_iter_set()
|
/linux/drivers/gpu/drm/tegra/ |
A D | gem.c | 105 obj->sgt->orig_nents, GFP_KERNEL); in tegra_bo_pin()
|