Home
last modified time | relevance | path

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

12

/linux/lib/
A Dsg_pool.c87 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 Dscatterlist.c257 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 Drw.c294 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 Dumem.c307 umem->sgt_append.sgt.orig_nents, dst, length, in ib_umem_copy_from()
/linux/include/linux/
A Dscatterlist.h39 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 Ddma-mapping.h368 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 Diommu.h1099 return iommu_map_sg(domain, iova, sgt->sgl, sgt->orig_nents, prot); in iommu_map_sgtable()
/linux/net/ceph/
A Dcrypto.c190 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 Dmain.c38 st->orig_nents); in fail()
120 VALIDATE(append.sgt.orig_nents == in main()
/linux/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_ttm_buffer.c264 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 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()
/linux/drivers/gpu/drm/rcar-du/
A Drcar_du_vsp.c208 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 Di915_scatterlist.c22 if (orig_st->nents == orig_st->orig_nents) in i915_sg_trim()
/linux/kernel/dma/
A Dmapping.c264 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 Dsmc_ib.c700 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 Dvideobuf2-dma-sg.c385 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 Dvideobuf2-dma-contig.c335 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 Dxen_drm_front_gem.c236 size, sgt->orig_nents); in xen_drm_front_gem_import_sg_table()
/linux/drivers/gpu/drm/virtio/
A Dvirtgpu_object.c183 *nents = shmem->pages->orig_nents; in virtio_gpu_object_shmem_init()
/linux/drivers/dma-buf/heaps/
A Dsystem_heap.c68 ret = sg_alloc_table(new_table, table->orig_nents, GFP_KERNEL); in dup_sg_table()
/linux/drivers/crypto/
A Dsa2ul.c1164 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 Domap_gem.c1296 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 Ddma-iommu.c648 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 Dmemalloc.c561 __sg_page_iter_start(piter, sgt->sgl, sgt->orig_nents, in snd_dma_noncontig_iter_set()
/linux/drivers/gpu/drm/tegra/
A Dgem.c105 obj->sgt->orig_nents, GFP_KERNEL); in tegra_bo_pin()

Completed in 67 milliseconds

12