/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_dmabuf.c | 21 struct sg_table sgt; member in struct:exynos_drm_dmabuf_attachment 51 struct sg_table *sgt; local 56 sgt = &exynos_attach->sgt; 59 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents, 62 sg_free_table(sgt); 76 struct sg_table *sgt = NULL; local 80 /* just return current sgt if already requested. */ 82 return &exynos_attach->sgt; 129 exynos_gem_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir) argument 197 struct sg_table *sgt; local [all...] |
H A D | exynos_drm_buf.c | 93 buf->sgt = drm_prime_pages_to_sg(buf->pages, nr_pages); 94 if (IS_ERR(buf->sgt)) { 96 ret = PTR_ERR(buf->sgt); 129 sg_free_table(buf->sgt); 131 kfree(buf->sgt); 132 buf->sgt = NULL;
|
H A D | exynos_drm_gem.h | 32 * @sgt: sg table to transfer page data. 44 struct sg_table *sgt; member in struct:exynos_drm_gem_buf 170 /* map sgt with dma region. */ 172 struct sg_table *sgt, 175 /* unmap sgt from dma region. */ 177 struct sg_table *sgt,
|
H A D | exynos_drm_gem.c | 90 if (!buf->sgt) 98 sgl = buf->sgt->sgl; 99 for_each_sg(buf->sgt->sgl, sgl, buf->sgt->nents, i) { 479 struct sg_table *sgt, 486 nents = dma_map_sg(drm_dev->dev, sgt->sgl, sgt->nents, dir); 498 struct sg_table *sgt, 501 dma_unmap_sg(drm_dev->dev, sgt->sgl, sgt 478 exynos_gem_map_sgt_with_dma(struct drm_device *drm_dev, struct sg_table *sgt, enum dma_data_direction dir) argument 497 exynos_gem_unmap_sgt_from_dma(struct drm_device *drm_dev, struct sg_table *sgt, enum dma_data_direction dir) argument [all...] |
/drivers/media/v4l2-core/ |
H A D | videobuf2-dma-contig.c | 53 static void vb2_dc_sgt_foreach_page(struct sg_table *sgt, argument 59 for_each_sg(sgt->sgl, s, sgt->orig_nents, i) { 70 static unsigned long vb2_dc_get_contiguous_size(struct sg_table *sgt) argument 73 dma_addr_t expected = sg_dma_address(sgt->sgl); 77 for_each_sg(sgt->sgl, s, sgt->nents, i) { 117 struct sg_table *sgt = buf->dma_sgt; local 120 if (!sgt || buf->db_attach) 123 dma_sync_sg_for_device(buf->dev, sgt 129 struct sg_table *sgt = buf->dma_sgt; local 231 struct sg_table sgt; member in struct:vb2_dc_attachment 241 struct sg_table *sgt; local 277 struct sg_table *sgt; local 299 struct sg_table *sgt; local 333 vb2_dc_dmabuf_ops_unmap(struct dma_buf_attachment *db_attach, struct sg_table *sgt, enum dma_data_direction dir) argument 380 struct sg_table *sgt; local 508 struct sg_table *sgt = buf->dma_sgt; local 565 struct sg_table *sgt; local 710 struct sg_table *sgt; local 749 struct sg_table *sgt = buf->dma_sgt; local [all...] |
/drivers/gpu/drm/msm/ |
H A D | msm_gem_prime.c | 26 BUG_ON(!msm_obj->sgt); /* should have already pinned! */ 27 return msm_obj->sgt;
|
H A D | msm_iommu.c | 47 struct sg_table *sgt, unsigned len, int prot) 56 if (!domain || !sgt) 59 for_each_sg(sgt->sgl, sg, sgt->nents, i) { 77 for_each_sg(sgt->sgl, sg, i, j) { 86 struct sg_table *sgt, unsigned len) 94 for_each_sg(sgt->sgl, sg, sgt->nents, i) { 46 msm_iommu_map(struct msm_mmu *mmu, uint32_t iova, struct sg_table *sgt, unsigned len, int prot) argument 85 msm_iommu_unmap(struct msm_mmu *mmu, uint32_t iova, struct sg_table *sgt, unsigned len) argument
|
H A D | msm_mmu.h | 26 int (*map)(struct msm_mmu *mmu, uint32_t iova, struct sg_table *sgt, 28 int (*unmap)(struct msm_mmu *mmu, uint32_t iova, struct sg_table *sgt,
|
H A D | msm_gem.h | 49 struct sg_table *sgt; member in struct:msm_gem_object
|
H A D | msm_gem.c | 86 msm_obj->sgt = drm_prime_pages_to_sg(p, npages); 87 if (IS_ERR(msm_obj->sgt)) { 88 dev_err(dev->dev, "failed to allocate sgt\n"); 89 return ERR_CAST(msm_obj->sgt); 98 dma_map_sg(dev->dev, msm_obj->sgt->sgl, 99 msm_obj->sgt->nents, DMA_BIDIRECTIONAL); 114 dma_unmap_sg(obj->dev->dev, msm_obj->sgt->sgl, 115 msm_obj->sgt->nents, DMA_BIDIRECTIONAL); 116 sg_free_table(msm_obj->sgt); 117 kfree(msm_obj->sgt); 659 msm_gem_import(struct drm_device *dev, uint32_t size, struct sg_table *sgt) argument [all...] |
/drivers/spi/ |
H A D | spi-pxa2xx-dma.c | 29 struct sg_table *sgt; local 34 sgt = &drv_data->tx_sgt; 39 sgt = &drv_data->rx_sgt; 45 if (nents != sgt->nents) { 48 sg_free_table(sgt); 49 ret = sg_alloc_table(sgt, nents, GFP_ATOMIC); 55 for_each_sg(sgt->sgl, sg, sgt->nents, i) { 67 nents = dma_map_sg(dmadev, sgt->sgl, sgt 78 struct sg_table *sgt; local 164 struct sg_table *sgt; local [all...] |
H A D | spi-ep93xx.c | 439 struct sg_table *sgt; local 456 sgt = &espi->rx_sgt; 463 sgt = &espi->tx_sgt; 484 if (nents != sgt->nents) { 485 sg_free_table(sgt); 487 ret = sg_alloc_table(sgt, nents, GFP_KERNEL); 493 for_each_sg(sgt->sgl, sg, sgt->nents, i) { 513 nents = dma_map_sg(chan->device->dev, sgt->sgl, sgt 537 struct sg_table *sgt; local [all...] |
/drivers/gpu/drm/armada/ |
H A D | armada_gem.c | 72 dma_buf_unmap_attachment(dobj->obj.import_attach, dobj->sgt, 427 struct sg_table *sgt; local 430 sgt = kmalloc(sizeof(*sgt), GFP_KERNEL); 431 if (!sgt) 439 if (sg_alloc_table(sgt, count, GFP_KERNEL)) 444 for_each_sg(sgt->sgl, sg, count, i) { 456 if (dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir) == 0) { 457 num = sgt 490 armada_gem_prime_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir) argument [all...] |
H A D | armada_gem.h | 21 struct sg_table *sgt; /* for imported */ member in struct:armada_gem_object
|
/drivers/gpu/drm/tegra/ |
H A D | gem.c | 37 static dma_addr_t tegra_bo_pin(struct host1x_bo *bo, struct sg_table **sgt) argument 44 static void tegra_bo_unpin(struct host1x_bo *bo, struct sg_table *sgt) argument 204 bo->sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE); 205 if (!bo->sgt) { 210 if (IS_ERR(bo->sgt)) { 211 err = PTR_ERR(bo->sgt); 215 if (bo->sgt->nents > 1) { 220 bo->paddr = sg_dma_address(bo->sgt->sgl); 226 if (!IS_ERR_OR_NULL(bo->sgt)) 227 dma_buf_unmap_attachment(attach, bo->sgt, DMA_TO_DEVIC 339 struct sg_table *sgt; local 356 tegra_gem_prime_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir) argument [all...] |
H A D | gem.h | 37 struct sg_table *sgt; member in struct:tegra_bo
|
/drivers/gpu/host1x/ |
H A D | job.h | 46 struct sg_table *sgt; member in struct:host1x_job_unpin_data
|
H A D | job.c | 185 struct sg_table *sgt; local 192 phys_addr = host1x_bo_pin(reloc->target.bo, &sgt); 198 job->unpins[job->num_unpins].sgt = sgt; 204 struct sg_table *sgt; local 211 phys_addr = host1x_bo_pin(g->bo, &sgt); 217 job->unpins[job->num_unpins].sgt = sgt; 575 host1x_bo_unpin(unpin->bo, unpin->sgt);
|
/drivers/gpu/drm/ |
H A D | drm_prime.c | 70 struct sg_table *sgt; member in struct:drm_prime_attachment 145 struct sg_table *sgt; local 153 sgt = prime_attach->sgt; 154 if (sgt) { 156 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents, 158 sg_free_table(sgt); 161 kfree(sgt); 185 struct sg_table *sgt; local 217 drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir) argument 497 struct sg_table *sgt; local 705 drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages, dma_addr_t *addrs, int max_pages) argument [all...] |
H A D | drm_gem_cma_helper.c | 164 drm_prime_gem_destroy(gem_obj, cma_obj->sgt); 298 struct sg_table *sgt; local 301 sgt = kzalloc(sizeof(*sgt), GFP_KERNEL); 302 if (!sgt) 305 ret = dma_get_sgtable(obj->dev->dev, sgt, cma_obj->vaddr, 310 return sgt; 313 kfree(sgt); 321 struct sg_table *sgt) 325 if (sgt 319 drm_gem_cma_prime_import_sg_table(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt) argument [all...] |
/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_buffer.c | 209 struct sg_table sgt; member in struct:vmw_ttm_tt 316 __sg_page_iter_start(&viter->iter, vsgt->sgt->sgl, 317 vsgt->sgt->orig_nents, p_offset); 336 dma_unmap_sg(dev, vmw_tt->sgt.sgl, vmw_tt->sgt.nents, 338 vmw_tt->sgt.nents = vmw_tt->sgt.orig_nents; 359 ret = dma_map_sg(dev, vmw_tt->sgt.sgl, vmw_tt->sgt.orig_nents, 364 vmw_tt->sgt [all...] |
/drivers/media/pci/cx23885/ |
H A D | cx23885-vbi.c | 143 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); local 154 ret = dma_map_sg(&dev->pci->dev, sgt->sgl, sgt->nents, DMA_FROM_DEVICE); 159 sgt->sgl, 171 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); local 175 dma_unmap_sg(&dev->pci->dev, sgt->sgl, sgt->nents, DMA_FROM_DEVICE);
|
/drivers/crypto/qce/ |
H A D | dma.h | 58 qce_sgtable_add(struct sg_table *sgt, struct scatterlist *sg_add);
|
H A D | dma.c | 110 qce_sgtable_add(struct sg_table *sgt, struct scatterlist *new_sgl) argument 112 struct scatterlist *sg = sgt->sgl, *sg_last = NULL;
|
/drivers/media/platform/omap3isp/ |
H A D | ispccdc.h | 60 struct sg_table sgt; member in struct:ispccdc_lsc_config_req::__anon2266
|