Home
last modified time | relevance | path

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

12

/linux/lib/
H 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()
H A Dscatterlist.c260 table->orig_nents); in sg_free_table()
332 table->nents = ++table->orig_nents; in __sg_alloc_table()
338 table->nents = table->orig_nents += sg_size; in __sg_alloc_table()
547 sgt_append->sgt.orig_nents = sgt_append->sgt.nents; in sg_alloc_append_table_from_pages()
594 WARN_ON(append.total_nents != sgt->orig_nents); in sg_alloc_table_from_pages_segment()
1153 while (sgtable->nents > sgtable->orig_nents) in extract_user_to_sg()
/linux/net/ceph/
H A Dcrypto.c178 sgt->nents = sgt->orig_nents = 1; in setup_sgtable()
181 for_each_sg(sgt->sgl, sg, sgt->orig_nents, i) { in setup_sgtable()
203 if (sgt->orig_nents > 1) in teardown_sgtable()
/linux/tools/testing/scatterlist/
H A Dmain.c38 st->orig_nents); in fail()
120 VALIDATE(append.sgt.orig_nents == in main()
/linux/include/linux/
H A Dscatterlist.h42 unsigned int orig_nents; /* original size of list */ member
202 for_each_sg((sgt)->sgl, sg, (sgt)->orig_nents, i)
638 for_each_sg_page((sgt)->sgl, piter, (sgt)->orig_nents, pgoffset)
H A Ddma-mapping.h422 dma_unmap_sg_attrs(dev, sgt->sgl, sgt->orig_nents, dir, attrs); in dma_unmap_sgtable()
440 dma_sync_sg_for_cpu(dev, sgt->sgl, sgt->orig_nents, dir); in dma_sync_sgtable_for_cpu()
457 dma_sync_sg_for_device(dev, sgt->sgl, sgt->orig_nents, dir); in dma_sync_sgtable_for_device()
/linux/include/trace/events/
H A Ddma.h168 __dynamic_array(u64, phys_addrs, sgt->orig_nents)
181 for_each_sg(sgt->sgl, sg, sgt->orig_nents, i)
250 __dynamic_array(u64, phys_addrs, sgt->orig_nents)
261 for_each_sg(sgt->sgl, sg, sgt->orig_nents, i)
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_dmabuf.c46 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/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ttm_buffer.c120 vsgt->sgt->orig_nents, p_offset); in vmw_piter_start()
140 vmw_tt->sgt.nents = vmw_tt->sgt.orig_nents; in vmw_ttm_unmap_from_dma()
/linux/drivers/infiniband/core/
H A Drw.c299 .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()
H A Dumem.c302 umem->sgt_append.sgt.orig_nents, dst, length, in ib_umem_copy_from()
/linux/drivers/gpu/drm/renesas/rcar-du/
H A Drcar_du_vsp.c280 ret = sg_alloc_table(sgt, gem->sgt->orig_nents, in rcar_du_vsp_map_fb()
287 for (j = 0; j < gem->sgt->orig_nents; ++j) { in rcar_du_vsp_map_fb()
/linux/drivers/gpu/drm/i915/
H A Di915_scatterlist.c21 if (orig_st->nents == orig_st->orig_nents) in i915_sg_trim()
/linux/kernel/dma/
H A Dmapping.c294 nents = __dma_map_sg_attrs(dev, sgt->sgl, sgt->orig_nents, dir, attrs); in dma_map_sgtable()
783 debug_dma_map_sg(dev, sgt->sgl, sgt->orig_nents, 1, dir, attrs); in dma_alloc_noncontiguous()
804 debug_dma_unmap_sg(dev, sgt->sgl, sgt->orig_nents, dir); in dma_free_noncontiguous()
/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-dma-sg.c386 ret = sg_alloc_table(sgt, buf->dma_sgt->orig_nents, GFP_KERNEL); in vb2_dma_sg_dmabuf_ops_attach()
394 for (i = 0; i < sgt->orig_nents; ++i) { in vb2_dma_sg_dmabuf_ops_attach()
H 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/virtio/
H A Dvirtgpu_object.c176 *nents = pages->orig_nents; in virtio_gpu_object_shmem_init()
/linux/drivers/infiniband/sw/siw/
H A Dsiw_mem.c394 __sg_page_iter_start(&sg_iter, sgt->sgl, sgt->orig_nents, 0); in siw_umem_get()
/linux/drivers/net/wireless/intel/iwlwifi/pcie/
H A Dtx.c1873 int orig_nents; in iwl_pcie_prep_tso() local
1892 orig_nents = skb_to_sgvec(skb, sgt->sgl, offset, skb->len - offset); in iwl_pcie_prep_tso()
1893 if (WARN_ON_ONCE(orig_nents <= 0)) in iwl_pcie_prep_tso()
1896 sgt->orig_nents = orig_nents; in iwl_pcie_prep_tso()
/linux/drivers/vfio/pci/pds/
H A Dlm.c149 lm_file->sg_table.orig_nents - lm_file->sg_last_entry, i) { in pds_vfio_get_file_page()
/linux/crypto/
H A Dalgif_hash.c108 ctx->sgl.sgt.orig_nents = 0; in hash_sendmsg()
H A Daf_alg.c1045 .orig_nents = sgl->cur, in af_alg_sendmsg()
1265 rsgl->sgl.sgt.orig_nents = 0; in af_alg_get_rsgl()
/linux/drivers/media/pci/intel/ipu6/
H A Dipu6-dma.c148 ipu6_dma_sync_sg(sys, sgt->sgl, sgt->orig_nents); in ipu6_dma_sync_sgtable()
/linux/drivers/infiniband/sw/rxe/
H A Drxe_mr.c101 __sg_page_iter_start(&sg_iter, sgt->sgl, sgt->orig_nents, 0); in rxe_mr_fill_pages_from_sgt()
/linux/drivers/iommu/
H A Ddma-iommu.c994 for_each_sg(sgt->sgl, sg, sgt->orig_nents, i) in __iommu_dma_alloc_noncontiguous()
998 ret = iommu_map_sg(domain, iova, sgt->sgl, sgt->orig_nents, ioprot, in __iommu_dma_alloc_noncontiguous()

12