/drivers/target/ |
D | target_core_rd.c | 81 static u32 rd_release_sgl_table(struct rd_dev *rd_dev, struct rd_dev_sg_table *sg_table, in rd_release_sgl_table() argument 89 sg = sg_table[i].sg_table; in rd_release_sgl_table() 90 sg_per_table = sg_table[i].rd_sg_count; in rd_release_sgl_table() 102 kfree(sg_table); in rd_release_sgl_table() 130 static int rd_allocate_sgl_table(struct rd_dev *rd_dev, struct rd_dev_sg_table *sg_table, in rd_allocate_sgl_table() argument 154 sg_table[i].sg_table = sg; in rd_allocate_sgl_table() 155 sg_table[i].rd_sg_count = sg_per_table; in rd_allocate_sgl_table() 156 sg_table[i].page_start_offset = page_offset; in rd_allocate_sgl_table() 157 sg_table[i++].page_end_offset = (page_offset + sg_per_table) in rd_allocate_sgl_table() 184 struct rd_dev_sg_table *sg_table; in rd_build_device_space() local [all …]
|
/drivers/media/v4l2-core/ |
D | videobuf2-dma-contig.c | 34 struct sg_table *dma_sgt; 39 struct sg_table *sgt_base; 53 static void vb2_dc_sgt_foreach_page(struct sg_table *sgt, in vb2_dc_sgt_foreach_page() 70 static unsigned long vb2_dc_get_contiguous_size(struct sg_table *sgt) in vb2_dc_get_contiguous_size() 117 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_prepare() 129 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_finish() 231 struct sg_table sgt; 241 struct sg_table *sgt; in vb2_dc_dmabuf_ops_attach() 277 struct sg_table *sgt; in vb2_dc_dmabuf_ops_detach() 293 static struct sg_table *vb2_dc_dmabuf_ops_map( in vb2_dc_dmabuf_ops_map() [all …]
|
D | videobuf2-dma-sg.c | 38 struct sg_table sg_table; member 115 ret = sg_alloc_table_from_pages(&buf->sg_table, buf->pages, in vb2_dma_sg_alloc() 151 sg_free_table(&buf->sg_table); in vb2_dma_sg_put() 232 if (sg_alloc_table_from_pages(&buf->sg_table, buf->pages, in vb2_dma_sg_get_userptr() 266 sg_free_table(&buf->sg_table); in vb2_dma_sg_put_userptr() 342 return &buf->sg_table; in vb2_dma_sg_cookie()
|
/drivers/staging/android/ion/ |
D | ion_system_heap.c | 130 struct sg_table *table; in ion_system_heap_allocate() 155 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_system_heap_allocate() 185 struct sg_table *table = buffer->sg_table; in ion_system_heap_free() 201 static struct sg_table *ion_system_heap_map_dma(struct ion_heap *heap, in ion_system_heap_map_dma() 319 struct sg_table *table; in ion_system_contig_heap_allocate() 336 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_system_contig_heap_allocate() 365 struct sg_table *table = buffer->priv_virt; in ion_system_contig_heap_free() 380 struct sg_table *table = buffer->priv_virt; in ion_system_contig_heap_phys() 387 static struct sg_table *ion_system_contig_heap_map_dma(struct ion_heap *heap, in ion_system_contig_heap_map_dma()
|
D | ion_carveout_heap.c | 63 struct sg_table *table = buffer->priv_virt; in ion_carveout_heap_phys() 77 struct sg_table *table; in ion_carveout_heap_allocate() 84 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_carveout_heap_allocate() 112 struct sg_table *table = buffer->priv_virt; in ion_carveout_heap_free() 127 static struct sg_table *ion_carveout_heap_map_dma(struct ion_heap *heap, in ion_carveout_heap_map_dma()
|
D | ion_heap.c | 35 struct sg_table *table = buffer->sg_table; in ion_heap_map_kernel() 74 struct sg_table *table = buffer->sg_table; in ion_heap_map_user() 143 struct sg_table *table = buffer->sg_table; in ion_heap_buffer_zero()
|
D | ion_chunk_heap.c | 43 struct sg_table *table; in ion_chunk_heap_allocate() 58 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_chunk_heap_allocate() 98 struct sg_table *table = buffer->priv_virt; in ion_chunk_heap_free() 120 static struct sg_table *ion_chunk_heap_map_dma(struct ion_heap *heap, in ion_chunk_heap_map_dma()
|
D | ion_cma_heap.c | 39 struct sg_table *table; 47 static int ion_cma_get_sgtable(struct device *dev, struct sg_table *sgt, in ion_cma_get_sgtable() 90 info->table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_cma_allocate() 143 static struct sg_table *ion_cma_heap_map_dma(struct ion_heap *heap, in ion_cma_heap_map_dma()
|
D | ion_priv.h | 83 struct sg_table *sg_table; member 119 struct sg_table * (*map_dma)(struct ion_heap *heap,
|
/drivers/gpu/drm/ |
D | drm_prime.c | 70 struct sg_table *sgt; 145 struct sg_table *sgt; in drm_gem_map_detach() 180 static struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, in drm_gem_map_dma_buf() 185 struct sg_table *sgt; in drm_gem_map_dma_buf() 218 struct sg_table *sgt, in drm_gem_unmap_dma_buf() 497 struct sg_table *sgt; in drm_gem_prime_import() 672 struct sg_table *drm_prime_pages_to_sg(struct page **pages, int nr_pages) in drm_prime_pages_to_sg() 674 struct sg_table *sg = NULL; in drm_prime_pages_to_sg() 677 sg = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in drm_prime_pages_to_sg() 705 int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages, in drm_prime_sg_to_page_addr_arrays() [all …]
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_dmabuf.c | 21 struct sg_table sgt; 51 struct sg_table *sgt; in exynos_gem_detach_dma_buf() 67 static struct sg_table * 76 struct sg_table *sgt = NULL; in exynos_gem_map_dma_buf() 130 struct sg_table *sgt, in exynos_gem_unmap_dma_buf() 197 struct sg_table *sgt; in exynos_dmabuf_prime_import()
|
D | exynos_drm_gem.h | 44 struct sg_table *sgt; 172 struct sg_table *sgt, 177 struct sg_table *sgt,
|
/drivers/dma-buf/ |
D | dma-buf.c | 488 struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *attach, in dma_buf_map_attachment() 491 struct sg_table *sg_table = ERR_PTR(-EINVAL); in dma_buf_map_attachment() local 498 sg_table = attach->dmabuf->ops->map_dma_buf(attach, direction); in dma_buf_map_attachment() 499 if (!sg_table) in dma_buf_map_attachment() 500 sg_table = ERR_PTR(-ENOMEM); in dma_buf_map_attachment() 502 return sg_table; in dma_buf_map_attachment() 516 struct sg_table *sg_table, in dma_buf_unmap_attachment() argument 521 if (WARN_ON(!attach || !attach->dmabuf || !sg_table)) in dma_buf_unmap_attachment() 524 attach->dmabuf->ops->unmap_dma_buf(attach, sg_table, in dma_buf_unmap_attachment()
|
/drivers/gpu/drm/i915/ |
D | i915_gem_dmabuf.c | 35 static struct sg_table *i915_gem_map_dma_buf(struct dma_buf_attachment *attachment, in i915_gem_map_dma_buf() 39 struct sg_table *st; in i915_gem_map_dma_buf() 54 st = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in i915_gem_map_dma_buf() 93 struct sg_table *sg, in i915_gem_unmap_dma_buf() 246 struct sg_table *sg; in i915_gem_object_get_pages_dmabuf()
|
/drivers/gpu/drm/qxl/ |
D | qxl_prime.c | 42 struct sg_table *qxl_gem_prime_get_sg_table(struct drm_gem_object *obj) in qxl_gem_prime_get_sg_table() 50 struct sg_table *table) in qxl_gem_prime_import_sg_table()
|
/drivers/crypto/qce/ |
D | cipher.h | 53 struct sg_table dst_tbl; 55 struct sg_table src_tbl;
|
/drivers/gpu/drm/msm/ |
D | msm_gem_prime.c | 23 struct sg_table *msm_gem_prime_get_sg_table(struct drm_gem_object *obj) in msm_gem_prime_get_sg_table() 41 struct dma_buf_attachment *attach, struct sg_table *sg) in msm_gem_prime_import_sg_table()
|
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,
|
/drivers/video/adf/ |
D | adf_memblock.c | 24 static struct sg_table *adf_memblock_map(struct dma_buf_attachment *attach, in adf_memblock_map() 30 struct sg_table *table; in adf_memblock_map() 59 struct sg_table *table, enum dma_data_direction direction) in adf_memblock_unmap()
|
D | adf_client.c | 281 struct sg_table *sg_table; in adf_buffer_map() local 292 sg_table = dma_buf_map_attachment(attachment, DMA_TO_DEVICE); in adf_buffer_map() 293 if (IS_ERR(sg_table)) { in adf_buffer_map() 294 ret = PTR_ERR(sg_table); in adf_buffer_map() 298 } else if (!sg_table) { in adf_buffer_map() 304 mapping->sg_tables[i] = sg_table; in adf_buffer_map()
|
/drivers/crypto/ccp/ |
D | ccp-crypto.h | 119 struct sg_table data_sg; 173 struct sg_table data_sg; 211 struct scatterlist *ccp_crypto_sg_table_add(struct sg_table *table,
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_gem.h | 40 extern struct sg_table *nouveau_gem_prime_get_sg_table(struct drm_gem_object *); 42 struct drm_device *, struct dma_buf_attachment *, struct sg_table *);
|
/drivers/gpu/drm/omapdrm/ |
D | omap_gem_dmabuf.c | 24 static struct sg_table *omap_gem_map_dma_buf( in omap_gem_map_dma_buf() 29 struct sg_table *sg; in omap_gem_map_dma_buf() 63 struct sg_table *sg, enum dma_data_direction dir) in omap_gem_unmap_dma_buf()
|
/drivers/gpu/drm/tegra/ |
D | gem.c | 37 static dma_addr_t tegra_bo_pin(struct host1x_bo *bo, struct sg_table **sgt) in tegra_bo_pin() 44 static void tegra_bo_unpin(struct host1x_bo *bo, struct sg_table *sgt) in tegra_bo_unpin() 329 static struct sg_table * 335 struct sg_table *sgt; in tegra_gem_prime_map_dma_buf() 353 struct sg_table *sgt, in tegra_gem_prime_unmap_dma_buf()
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_prime.c | 54 static struct sg_table *vmw_prime_map_dma_buf(struct dma_buf_attachment *attach, in vmw_prime_map_dma_buf() 61 struct sg_table *sgb, in vmw_prime_unmap_dma_buf()
|