| /linux-4.4.14/drivers/media/v4l2-core/ |
| D | videobuf2-dma-sg.c | 150 sgt->nents = dma_map_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dma_sg_alloc() 191 dma_unmap_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dma_sg_put() 213 dma_sync_sg_for_device(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dma_sg_prepare() 226 dma_sync_sg_for_cpu(buf->dev, sgt->sgl, sgt->orig_nents, buf->dma_dir); in vb2_dma_sg_finish() 269 sgt->nents = dma_map_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dma_sg_get_userptr() 300 dma_unmap_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, buf->dma_dir, in vb2_dma_sg_put_userptr() 402 ret = sg_alloc_table(sgt, buf->dma_sgt->orig_nents, GFP_KERNEL); in vb2_dma_sg_dmabuf_ops_attach() 410 for (i = 0; i < sgt->orig_nents; ++i) { in vb2_dma_sg_dmabuf_ops_attach() 435 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_dma_sg_dmabuf_ops_detach() 461 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_dma_sg_dmabuf_ops_map() [all …]
|
| D | videobuf2-dma-contig.c | 103 dma_sync_sg_for_device(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dc_prepare() 116 dma_sync_sg_for_cpu(buf->dev, sgt->sgl, sgt->orig_nents, buf->dma_dir); in vb2_dc_finish() 236 ret = sg_alloc_table(sgt, buf->sgt_base->orig_nents, GFP_KERNEL); in vb2_dc_dmabuf_ops_attach() 244 for (i = 0; i < sgt->orig_nents; ++i) { in vb2_dc_dmabuf_ops_attach() 269 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_dc_dmabuf_ops_detach() 295 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_dc_dmabuf_ops_map() 301 sgt->nents = dma_map_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_dc_dmabuf_ops_map() 428 dma_unmap_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dc_put_userptr() 548 sgt->nents = dma_map_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dc_get_userptr() 572 dma_unmap_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, in vb2_dc_get_userptr()
|
| D | videobuf2-vmalloc.c | 258 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_detach() 284 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_map() 290 sgt->nents = dma_map_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_map()
|
| /linux-4.4.14/lib/ |
| D | scatterlist.c | 214 while (table->orig_nents) { in __sg_free_table() 215 unsigned int alloc_size = table->orig_nents; in __sg_free_table() 233 table->orig_nents -= sg_size; in __sg_free_table() 318 table->nents = ++table->orig_nents; in __sg_alloc_table() 324 table->nents = table->orig_nents += sg_size; in __sg_alloc_table() 415 for_each_sg(sgt->sgl, s, sgt->orig_nents, i) { in sg_alloc_table_from_pages()
|
| /linux-4.4.14/drivers/gpu/drm/udl/ |
| D | udl_dmabuf.c | 109 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-4.4.14/net/ceph/ |
| D | crypto.c | 130 sgt->nents = sgt->orig_nents = 1; in setup_sgtable() 133 for_each_sg(sgt->sgl, sg, sgt->orig_nents, i) { in setup_sgtable() 155 if (sgt->orig_nents > 1) in teardown_sgtable()
|
| /linux-4.4.14/drivers/gpu/drm/vmwgfx/ |
| D | vmwgfx_buffer.c | 330 vsgt->sgt->orig_nents, p_offset); in vmw_piter_start() 351 vmw_tt->sgt.nents = vmw_tt->sgt.orig_nents; in vmw_ttm_unmap_from_dma() 372 ret = dma_map_sg(dev, vmw_tt->sgt.sgl, vmw_tt->sgt.orig_nents, in vmw_ttm_map_for_dma()
|
| /linux-4.4.14/drivers/iommu/ |
| D | dma-iommu.c | 313 sg_miter_start(&miter, sgt.sgl, sgt.orig_nents, SG_MITER_FROM_SG); in iommu_dma_alloc() 320 if (iommu_map_sg(domain, dma_addr, sgt.sgl, sgt.orig_nents, prot) in iommu_dma_alloc()
|
| /linux-4.4.14/include/linux/ |
| D | scatterlist.h | 41 unsigned int orig_nents; /* original size of list */ member
|
| /linux-4.4.14/drivers/spi/ |
| D | spi.c | 746 if (sgt->orig_nents) { in spi_unmap_buf() 747 dma_unmap_sg(dev, sgt->sgl, sgt->orig_nents, dir); in spi_unmap_buf()
|
| /linux-4.4.14/drivers/scsi/ |
| D | scsi_lib.c | 587 if (mq && sdb->table.orig_nents <= SCSI_MAX_SG_SEGMENTS) in scsi_free_sgtable() 601 sdb->table.nents = sdb->table.orig_nents = nents; in scsi_alloc_sgtable()
|
| D | scsi_error.c | 951 scmd->sdb.table.nents = scmd->sdb.table.orig_nents = 1; in scsi_eh_prep_cmnd()
|
| /linux-4.4.14/drivers/char/agp/ |
| D | intel-gtt.c | 132 st.orig_nents = st.nents = num_sg; in intel_gtt_unmap_memory()
|
| /linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/ |
| D | bcmsdh.c | 661 sg_init_table(sdiodev->sgtable.sgl, sdiodev->sgtable.orig_nents); in brcmf_sdiod_sglist_rw()
|
| /linux-4.4.14/drivers/gpu/drm/i915/ |
| D | i915_gem_gtt.c | 837 uint64_t length = (uint64_t)pages->orig_nents << PAGE_SHIFT; in gen8_ppgtt_insert_entries()
|