| /linux/lib/ |
| H 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()
|
| H A D | scatterlist.c | 262 table->orig_nents); in sg_free_table() 334 table->nents = ++table->orig_nents; in __sg_alloc_table() 340 table->nents = table->orig_nents += sg_size; in __sg_alloc_table() 549 sgt_append->sgt.orig_nents = sgt_append->sgt.nents; in sg_alloc_append_table_from_pages() 596 WARN_ON(append.total_nents != sgt->orig_nents); in sg_alloc_table_from_pages_segment() 1157 while (sgtable->nents > sgtable->orig_nents) in extract_user_to_sg()
|
| /linux/tools/testing/scatterlist/ |
| H A D | main.c | 38 st->orig_nents); in fail() 120 VALIDATE(append.sgt.orig_nents == in main()
|
| /linux/include/trace/events/ |
| H A D | dma.h | 172 __dynamic_array(u64, phys_addrs, sgt->orig_nents) 185 for_each_sg(sgt->sgl, sg, sgt->orig_nents, i) 254 __dynamic_array(u64, phys_addrs, sgt->orig_nents) 265 for_each_sg(sgt->sgl, sg, sgt->orig_nents, i)
|
| /linux/net/ceph/ |
| H A D | crypto.c | 235 sgt->nents = sgt->orig_nents = 1; in setup_sgtable() 238 for_each_sg(sgt->sgl, sg, sgt->orig_nents, i) { in setup_sgtable() 260 if (sgt->orig_nents > 1) in teardown_sgtable()
|
| /linux/drivers/gpu/drm/i915/gem/ |
| H A D | i915_gem_dmabuf.c | 45 ret = sg_alloc_table(sgt, obj->mm.pages->orig_nents, GFP_KERNEL); in i915_gem_map_dma_buf() 50 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 D | vmwgfx_ttm_buffer.c | 120 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/net/smc/ |
| H A D | smc_ib.c | 708 buf_slot->sgt[link_idx].orig_nents, in smc_ib_map_mr_sg() 732 buf_slot->sgt[link_idx].orig_nents) in smc_ib_get_memory_region() 819 buf_slot->sgt[lnk->link_idx].orig_nents, in smc_ib_buf_map_sg() 836 buf_slot->sgt[lnk->link_idx].orig_nents, in smc_ib_buf_unmap_sg()
|
| /linux/include/linux/ |
| H A D | dma-mapping.h | 573 dma_unmap_sg_attrs(dev, sgt->sgl, sgt->orig_nents, dir, attrs); in dma_unmap_sgtable() 591 dma_sync_sg_for_cpu(dev, sgt->sgl, sgt->orig_nents, dir); in dma_sync_sgtable_for_cpu() 608 dma_sync_sg_for_device(dev, sgt->sgl, sgt->orig_nents, dir); in dma_sync_sgtable_for_device()
|
| /linux/drivers/dma-buf/ |
| H A D | dma-buf-mapping.c | 194 dma->sgt.orig_nents = 0; in dma_buf_phys_vec_to_sgt()
|
| /linux/drivers/infiniband/core/ |
| H A D | rw.c | 243 ctx->reg[0].sgt.orig_nents = nents; in rdma_rw_init_mr_wrs_bvec() 581 .orig_nents = sg_cnt, in rdma_rw_ctx_init() 747 .orig_nents = sg_cnt, in rdma_rw_ctx_signature_init() 751 .orig_nents = prot_sg_cnt, in rdma_rw_ctx_signature_init()
|
| /linux/drivers/accel/amdxdna/ |
| H A D | amdxdna_iommu.c | 56 if (!sgt->orig_nents) { in amdxdna_dma_map_bo()
|
| /linux/fs/smb/smbdirect/ |
| H A D | rw.c | 199 msg->sgt.orig_nents); in smbdirect_connection_rdma_xmit()
|
| H A D | mr.c | 296 mr->sgt.orig_nents = 0; in smbdirect_connection_register_mr_io()
|
| /linux/kernel/dma/ |
| H A D | mapping.c | 336 nents = __dma_map_sg_attrs(dev, sgt->sgl, sgt->orig_nents, dir, attrs); in dma_map_sgtable() 835 debug_dma_map_sg(dev, sgt->sgl, sgt->orig_nents, 1, dir, attrs); in dma_alloc_noncontiguous() 856 debug_dma_unmap_sg(dev, sgt->sgl, sgt->orig_nents, dir, 0); in dma_free_noncontiguous()
|
| /linux/drivers/media/common/videobuf2/ |
| H 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/drivers/gpu/drm/virtio/ |
| H A D | virtgpu_object.c | 188 *nents = pages->orig_nents; in virtio_gpu_object_shmem_init()
|
| /linux/drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/ |
| H A D | tx.c | 1876 int orig_nents; in iwl_pcie_prep_tso() local 1895 orig_nents = skb_to_sgvec(skb, sgt->sgl, offset, skb->len - offset); in iwl_pcie_prep_tso() 1896 if (WARN_ON_ONCE(orig_nents <= 0)) in iwl_pcie_prep_tso() 1899 sgt->orig_nents = orig_nents; in iwl_pcie_prep_tso()
|
| /linux/drivers/vfio/pci/pds/ |
| H A D | lm.c | 149 lm_file->sg_table.orig_nents - lm_file->sg_last_entry, i) { in pds_vfio_get_file_page()
|
| /linux/drivers/tee/ |
| H A D | tee_heap.c | 76 ret = sg_alloc_table(dst, src->orig_nents, GFP_KERNEL); in copy_sg_table()
|
| /linux/drivers/staging/media/ipu7/ |
| H A D | ipu7-dma.c | 148 ipu7_dma_sync_sg(sys, sgt->sgl, sgt->orig_nents); in ipu7_dma_sync_sgtable()
|
| /linux/drivers/media/pci/intel/ipu6/ |
| H A D | ipu6-dma.c | 148 ipu6_dma_sync_sg(sys, sgt->sgl, sgt->orig_nents); in ipu6_dma_sync_sgtable()
|
| /linux/drivers/infiniband/sw/rxe/ |
| H A D | rxe_mr.c | 135 __sg_page_iter_start(&sg_iter, sgt->sgl, sgt->orig_nents, 0); in rxe_mr_fill_pages_from_sgt()
|
| /linux/sound/core/ |
| H A D | memalloc.c | 618 __sg_page_iter_start(piter, sgt->sgl, sgt->orig_nents, in snd_dma_noncontig_iter_set()
|
| /linux/drivers/iommu/ |
| H A D | dma-iommu.c | 992 for_each_sg(sgt->sgl, sg, sgt->orig_nents, i) in __iommu_dma_alloc_noncontiguous() 996 ret = iommu_map_sg(domain, iova, sgt->sgl, sgt->orig_nents, ioprot, in __iommu_dma_alloc_noncontiguous()
|