orig_nents 133 drivers/char/agp/intel-gtt.c st.orig_nents = st.nents = num_sg; orig_nents 15 drivers/gpu/drm/i915/i915_scatterlist.c if (orig_st->nents == orig_st->orig_nents) orig_nents 345 drivers/gpu/drm/i915/selftests/scatterlist.c if (pt.st.orig_nents != prime || orig_nents 348 drivers/gpu/drm/i915/selftests/scatterlist.c pt.st.nents, pt.st.orig_nents, prime); orig_nents 265 drivers/gpu/drm/mediatek/mtk_drm_gem.c for_each_sg_page(sgt->sgl, &iter, sgt->orig_nents, 0) { orig_nents 1237 drivers/gpu/drm/omapdrm/omap_gem.c if (sgt->orig_nents != 1 && !priv->has_dmm) orig_nents 1251 drivers/gpu/drm/omapdrm/omap_gem.c if (sgt->orig_nents == 1) { orig_nents 1270 drivers/gpu/drm/omapdrm/omap_gem.c for_each_sg_page(sgt->sgl, &iter, sgt->orig_nents, 0) { orig_nents 99 drivers/gpu/drm/udl/udl_dmabuf.c ret = sg_alloc_table(sgt, obj->sg->orig_nents, GFP_KERNEL); orig_nents 109 drivers/gpu/drm/udl/udl_dmabuf.c for (i = 0; i < sgt->orig_nents; ++i) { orig_nents 116 drivers/gpu/drm/udl/udl_dmabuf.c nents = dma_map_sg(attach->dev, sgt->sgl, sgt->orig_nents, dir); orig_nents 346 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c vsgt->sgt->orig_nents, p_offset); orig_nents 367 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c vmw_tt->sgt.nents = vmw_tt->sgt.orig_nents; orig_nents 388 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c ret = dma_map_sg(dev, vmw_tt->sgt.sgl, vmw_tt->sgt.orig_nents, orig_nents 609 drivers/iommu/dma-iommu.c for_each_sg(sgt.sgl, sg, sgt.orig_nents, i) orig_nents 613 drivers/iommu/dma-iommu.c if (iommu_map_sg(domain, iova, sgt.sgl, sgt.orig_nents, ioprot) orig_nents 102 drivers/media/common/videobuf2/videobuf2-dma-contig.c dma_sync_sg_for_device(buf->dev, sgt->sgl, sgt->orig_nents, orig_nents 115 drivers/media/common/videobuf2/videobuf2-dma-contig.c dma_sync_sg_for_cpu(buf->dev, sgt->sgl, sgt->orig_nents, buf->dma_dir); orig_nents 237 drivers/media/common/videobuf2/videobuf2-dma-contig.c ret = sg_alloc_table(sgt, buf->sgt_base->orig_nents, GFP_KERNEL); orig_nents 245 drivers/media/common/videobuf2/videobuf2-dma-contig.c for (i = 0; i < sgt->orig_nents; ++i) { orig_nents 276 drivers/media/common/videobuf2/videobuf2-dma-contig.c dma_unmap_sg_attrs(db_attach->dev, sgt->sgl, sgt->orig_nents, orig_nents 302 drivers/media/common/videobuf2/videobuf2-dma-contig.c dma_unmap_sg_attrs(db_attach->dev, sgt->sgl, sgt->orig_nents, orig_nents 311 drivers/media/common/videobuf2/videobuf2-dma-contig.c sgt->nents = dma_map_sg_attrs(db_attach->dev, sgt->sgl, sgt->orig_nents, orig_nents 434 drivers/media/common/videobuf2/videobuf2-dma-contig.c dma_unmap_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, orig_nents 532 drivers/media/common/videobuf2/videobuf2-dma-contig.c sgt->nents = dma_map_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, orig_nents 556 drivers/media/common/videobuf2/videobuf2-dma-contig.c dma_unmap_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, orig_nents 145 drivers/media/common/videobuf2/videobuf2-dma-sg.c sgt->nents = dma_map_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, orig_nents 183 drivers/media/common/videobuf2/videobuf2-dma-sg.c dma_unmap_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, orig_nents 205 drivers/media/common/videobuf2/videobuf2-dma-sg.c dma_sync_sg_for_device(buf->dev, sgt->sgl, sgt->orig_nents, orig_nents 218 drivers/media/common/videobuf2/videobuf2-dma-sg.c dma_sync_sg_for_cpu(buf->dev, sgt->sgl, sgt->orig_nents, buf->dma_dir); orig_nents 261 drivers/media/common/videobuf2/videobuf2-dma-sg.c sgt->nents = dma_map_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, orig_nents 289 drivers/media/common/videobuf2/videobuf2-dma-sg.c dma_unmap_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, buf->dma_dir, orig_nents 381 drivers/media/common/videobuf2/videobuf2-dma-sg.c ret = sg_alloc_table(sgt, buf->dma_sgt->orig_nents, GFP_KERNEL); orig_nents 389 drivers/media/common/videobuf2/videobuf2-dma-sg.c for (i = 0; i < sgt->orig_nents; ++i) { orig_nents 414 drivers/media/common/videobuf2/videobuf2-dma-sg.c dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, orig_nents 440 drivers/media/common/videobuf2/videobuf2-dma-sg.c dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, orig_nents 446 drivers/media/common/videobuf2/videobuf2-dma-sg.c sgt->nents = dma_map_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, orig_nents 263 drivers/media/common/videobuf2/videobuf2-vmalloc.c dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, orig_nents 289 drivers/media/common/videobuf2/videobuf2-vmalloc.c dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, orig_nents 295 drivers/media/common/videobuf2/videobuf2-vmalloc.c sgt->nents = dma_map_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, orig_nents 3542 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c adapter->hma.sgt->orig_nents, i) { orig_nents 3602 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c sgt->orig_nents = (hma_size << 20) / (page_size << page_order); orig_nents 3603 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (sg_alloc_table(sgt, sgt->orig_nents, GFP_KERNEL)) { orig_nents 3612 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c for_each_sg(sgl, iter, sgt->orig_nents, i) { orig_nents 3624 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c sgt->nents = dma_map_sg(adapter->pdev_dev, sgl, sgt->orig_nents, orig_nents 512 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c sg_init_table(sdiodev->sgtable.sgl, sdiodev->sgtable.orig_nents); orig_nents 990 drivers/scsi/scsi_error.c scmd->sdb.table.nents = scmd->sdb.table.orig_nents = 1; orig_nents 890 drivers/spi/spi.c if (sgt->orig_nents) { orig_nents 891 drivers/spi/spi.c dma_unmap_sg(dev, sgt->sgl, sgt->orig_nents, dir); orig_nents 45 include/linux/scatterlist.h unsigned int orig_nents; /* original size of list */ orig_nents 202 lib/scatterlist.c while (table->orig_nents) { orig_nents 203 lib/scatterlist.c unsigned int alloc_size = table->orig_nents; orig_nents 221 lib/scatterlist.c table->orig_nents -= sg_size; orig_nents 312 lib/scatterlist.c table->nents = ++table->orig_nents; orig_nents 318 lib/scatterlist.c table->nents = table->orig_nents += sg_size; orig_nents 419 lib/scatterlist.c for_each_sg(sgt->sgl, s, sgt->orig_nents, i) { orig_nents 87 lib/sg_pool.c if (table->orig_nents <= nents_first_chunk) orig_nents 120 lib/sg_pool.c table->nents = table->orig_nents = nents; orig_nents 189 net/ceph/crypto.c sgt->nents = sgt->orig_nents = 1; orig_nents 192 net/ceph/crypto.c for_each_sg(sgt->sgl, sg, sgt->orig_nents, i) { orig_nents 214 net/ceph/crypto.c if (sgt->orig_nents > 1) orig_nents 370 net/smc/smc_ib.c buf_slot->sgt[SMC_SINGLE_LINK].orig_nents, orig_nents 448 net/smc/smc_ib.c buf_slot->sgt[SMC_SINGLE_LINK].orig_nents, orig_nents 465 net/smc/smc_ib.c buf_slot->sgt[SMC_SINGLE_LINK].orig_nents, orig_nents 71 tools/testing/scatterlist/main.c assert(st.orig_nents == test->expected_segments);