Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/media/common/videobuf2/
Dvideobuf2-dma-sg.c145 sgt->nents = dma_map_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dma_sg_alloc()
183 dma_unmap_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dma_sg_put()
205 dma_sync_sg_for_device(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dma_sg_prepare()
218 dma_sync_sg_for_cpu(buf->dev, sgt->sgl, sgt->orig_nents, buf->dma_dir); in vb2_dma_sg_finish()
262 sgt->nents = dma_map_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dma_sg_get_userptr()
290 dma_unmap_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, buf->dma_dir, in vb2_dma_sg_put_userptr()
392 ret = sg_alloc_table(sgt, buf->dma_sgt->orig_nents, GFP_KERNEL); in vb2_dma_sg_dmabuf_ops_attach()
400 for (i = 0; i < sgt->orig_nents; ++i) { in vb2_dma_sg_dmabuf_ops_attach()
425 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_dma_sg_dmabuf_ops_detach()
451 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_dma_sg_dmabuf_ops_map()
[all …]
Dvideobuf2-dma-contig.c102 dma_sync_sg_for_device(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dc_prepare()
115 dma_sync_sg_for_cpu(buf->dev, sgt->sgl, sgt->orig_nents, buf->dma_dir); in vb2_dc_finish()
243 ret = sg_alloc_table(sgt, buf->sgt_base->orig_nents, GFP_KERNEL); in vb2_dc_dmabuf_ops_attach()
251 for (i = 0; i < sgt->orig_nents; ++i) { in vb2_dc_dmabuf_ops_attach()
276 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_dc_dmabuf_ops_detach()
302 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_dc_dmabuf_ops_map()
308 sgt->nents = dma_map_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_dc_dmabuf_ops_map()
431 dma_unmap_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dc_put_userptr()
553 sgt->nents = dma_map_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dc_get_userptr()
577 dma_unmap_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dc_get_userptr()
Dvideobuf2-vmalloc.c264 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_detach()
290 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_map()
296 sgt->nents = dma_map_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_map()
/Linux-v4.19/lib/
Dscatterlist.c202 while (table->orig_nents) { in __sg_free_table()
203 unsigned int alloc_size = table->orig_nents; in __sg_free_table()
221 table->orig_nents -= sg_size; in __sg_free_table()
306 table->nents = ++table->orig_nents; in __sg_alloc_table()
312 table->nents = table->orig_nents += sg_size; in __sg_alloc_table()
411 for_each_sg(sgt->sgl, s, sgt->orig_nents, i) { in __sg_alloc_table_from_pages()
Dsg_pool.c81 if (first_chunk && table->orig_nents <= SG_CHUNK_SIZE) in sg_free_table_chained()
107 table->nents = table->orig_nents = nents; in sg_alloc_table_chained()
/Linux-v4.19/drivers/gpu/drm/udl/
Dudl_dmabuf.c109 ret = sg_alloc_table(sgt, obj->sg->orig_nents, GFP_KERNEL); in udl_map_dma_buf()
119 for (i = 0; i < sgt->orig_nents; ++i) { in udl_map_dma_buf()
126 nents = dma_map_sg(attach->dev, sgt->sgl, sgt->orig_nents, dir); in udl_map_dma_buf()
/Linux-v4.19/net/ceph/
Dcrypto.c187 sgt->nents = sgt->orig_nents = 1; in setup_sgtable()
190 for_each_sg(sgt->sgl, sg, sgt->orig_nents, i) { in setup_sgtable()
212 if (sgt->orig_nents > 1) in teardown_sgtable()
/Linux-v4.19/tools/testing/scatterlist/
Dmain.c71 assert(st.orig_nents == test->expected_segments); in main()
/Linux-v4.19/drivers/gpu/drm/i915/selftests/
Dscatterlist.c344 if (pt.st.orig_nents != prime || in igt_sg_trim()
347 pt.st.nents, pt.st.orig_nents, prime); in igt_sg_trim()
/Linux-v4.19/net/smc/
Dsmc_ib.c362 buf_slot->sgt[SMC_SINGLE_LINK].orig_nents, in smc_ib_map_mr_sg()
440 buf_slot->sgt[SMC_SINGLE_LINK].orig_nents, in smc_ib_buf_map_sg()
457 buf_slot->sgt[SMC_SINGLE_LINK].orig_nents, in smc_ib_buf_unmap_sg()
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ttm_buffer.c353 vsgt->sgt->orig_nents, p_offset); in vmw_piter_start()
374 vmw_tt->sgt.nents = vmw_tt->sgt.orig_nents; in vmw_ttm_unmap_from_dma()
395 ret = dma_map_sg(dev, vmw_tt->sgt.sgl, vmw_tt->sgt.orig_nents, in vmw_ttm_map_for_dma()
/Linux-v4.19/include/linux/
Dscatterlist.h45 unsigned int orig_nents; /* original size of list */ member
/Linux-v4.19/drivers/gpu/drm/omapdrm/
Domap_gem.c1246 if (sgt->orig_nents != 1 && !priv->has_dmm) in omap_gem_new_dmabuf()
1260 if (sgt->orig_nents == 1) { in omap_gem_new_dmabuf()
1279 for_each_sg_page(sgt->sgl, &iter, sgt->orig_nents, 0) { in omap_gem_new_dmabuf()
/Linux-v4.19/drivers/iommu/
Ddma-iommu.c560 sg_miter_start(&miter, sgt.sgl, sgt.orig_nents, SG_MITER_FROM_SG); in iommu_dma_alloc()
566 if (iommu_map_sg(domain, iova, sgt.sgl, sgt.orig_nents, prot) in iommu_dma_alloc()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c3374 adapter->hma.sgt->orig_nents, i) { in adap_free_hma_mem()
3434 sgt->orig_nents = (hma_size << 20) / (page_size << page_order); in adap_config_hma()
3435 if (sg_alloc_table(sgt, sgt->orig_nents, GFP_KERNEL)) { in adap_config_hma()
3444 for_each_sg(sgl, iter, sgt->orig_nents, i) { in adap_config_hma()
3456 sgt->nents = dma_map_sg(adapter->pdev_dev, sgl, sgt->orig_nents, in adap_config_hma()
/Linux-v4.19/drivers/char/agp/
Dintel-gtt.c133 st.orig_nents = st.nents = num_sg; in intel_gtt_unmap_memory()
/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dbcmsdh.c512 sg_init_table(sdiodev->sgtable.sgl, sdiodev->sgtable.orig_nents); in brcmf_sdiod_sglist_rw()
/Linux-v4.19/drivers/spi/
Dspi.c831 if (sgt->orig_nents) { in spi_unmap_buf()
832 dma_unmap_sg(dev, sgt->sgl, sgt->orig_nents, dir); in spi_unmap_buf()
/Linux-v4.19/drivers/scsi/
Dscsi_error.c992 scmd->sdb.table.nents = scmd->sdb.table.orig_nents = 1; in scsi_eh_prep_cmnd()
/Linux-v4.19/drivers/gpu/drm/i915/
Di915_gem.c2495 if (orig_st->nents == orig_st->orig_nents) in i915_sg_trim()