/Linux-v5.4/drivers/hwtracing/coresight/ |
D | coresight-tmc-etr.c | 107 struct tmc_sg_table *sg_table; member 234 tmc_sg_get_data_page_offset(struct tmc_sg_table *sg_table, dma_addr_t addr) in tmc_sg_get_data_page_offset() argument 236 return tmc_pages_get_offset(&sg_table->data_pages, addr); in tmc_sg_get_data_page_offset() 239 static inline void tmc_free_table_pages(struct tmc_sg_table *sg_table) in tmc_free_table_pages() argument 241 if (sg_table->table_vaddr) in tmc_free_table_pages() 242 vunmap(sg_table->table_vaddr); in tmc_free_table_pages() 243 tmc_pages_free(&sg_table->table_pages, sg_table->dev, DMA_TO_DEVICE); in tmc_free_table_pages() 246 static void tmc_free_data_pages(struct tmc_sg_table *sg_table) in tmc_free_data_pages() argument 248 if (sg_table->data_vaddr) in tmc_free_data_pages() 249 vunmap(sg_table->data_vaddr); in tmc_free_data_pages() [all …]
|
D | coresight-tmc.h | 314 void tmc_free_sg_table(struct tmc_sg_table *sg_table); 315 void tmc_sg_table_sync_table(struct tmc_sg_table *sg_table); 318 ssize_t tmc_sg_table_get_data(struct tmc_sg_table *sg_table, 321 tmc_sg_table_buf_size(struct tmc_sg_table *sg_table) in tmc_sg_table_buf_size() argument 323 return sg_table->data_pages.nr_pages << PAGE_SHIFT; in tmc_sg_table_buf_size()
|
/Linux-v5.4/drivers/target/ |
D | target_core_rd.c | 63 static u32 rd_release_sgl_table(struct rd_dev *rd_dev, struct rd_dev_sg_table *sg_table, in rd_release_sgl_table() argument 71 sg = sg_table[i].sg_table; in rd_release_sgl_table() 72 sg_per_table = sg_table[i].rd_sg_count; in rd_release_sgl_table() 84 kfree(sg_table); in rd_release_sgl_table() 112 static int rd_allocate_sgl_table(struct rd_dev *rd_dev, struct rd_dev_sg_table *sg_table, in rd_allocate_sgl_table() argument 142 sg_chain(sg_table[i - 1].sg_table, in rd_allocate_sgl_table() 146 sg_table[i].sg_table = sg; in rd_allocate_sgl_table() 147 sg_table[i].rd_sg_count = sg_per_table; in rd_allocate_sgl_table() 148 sg_table[i].page_start_offset = page_offset; in rd_allocate_sgl_table() 149 sg_table[i++].page_end_offset = (page_offset + sg_per_table) in rd_allocate_sgl_table() [all …]
|
/Linux-v5.4/drivers/media/common/videobuf2/ |
D | videobuf2-dma-sg.c | 41 struct sg_table sg_table; member 47 struct sg_table *dma_sgt; 104 struct sg_table *sgt; in vb2_dma_sg_alloc() 121 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_alloc() 140 sgt = &buf->sg_table; in vb2_dma_sg_alloc() 177 struct sg_table *sgt = &buf->sg_table; in vb2_dma_sg_put() 199 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_prepare() 212 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_finish() 226 struct sg_table *sgt; in vb2_dma_sg_get_userptr() 241 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_get_userptr() [all …]
|
D | videobuf2-dma-contig.c | 33 struct sg_table *dma_sgt; 39 struct sg_table *sgt_base; 49 static unsigned long vb2_dc_get_contiguous_size(struct sg_table *sgt) in vb2_dc_get_contiguous_size() 96 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_prepare() 109 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_finish() 215 struct sg_table sgt; 225 struct sg_table *sgt; in vb2_dc_dmabuf_ops_attach() 261 struct sg_table *sgt; in vb2_dc_dmabuf_ops_detach() 283 static struct sg_table *vb2_dc_dmabuf_ops_map( in vb2_dc_dmabuf_ops_map() 289 struct sg_table *sgt; in vb2_dc_dmabuf_ops_map() [all …]
|
/Linux-v5.4/drivers/gpu/drm/rcar-du/ |
D | rcar_du_vsp.h | 18 struct sg_table; 49 struct sg_table sg_tables[3]; 66 struct sg_table sg_tables[3]); 68 struct sg_table sg_tables[3]); 82 struct sg_table sg_tables[3]) in rcar_du_vsp_map_fb() 88 struct sg_table sg_tables[3]) in rcar_du_vsp_unmap_fb()
|
/Linux-v5.4/drivers/spi/ |
D | internals.h | 24 struct sg_table *sgt, void *buf, size_t len, 27 struct sg_table *sgt, enum dma_data_direction dir); 30 struct sg_table *sgt, void *buf, size_t len, in spi_map_buf() 37 struct device *dev, struct sg_table *sgt, in spi_unmap_buf()
|
/Linux-v5.4/include/drm/ |
D | drm_prime.h | 82 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, 85 struct sg_table *sgt, 93 struct sg_table *drm_prime_pages_to_sg(struct page **pages, unsigned int nr_pages); 104 void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg); 106 int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages,
|
D | drm_gem_shmem_helper.h | 18 struct sg_table; 80 struct sg_table *sgt; 166 struct sg_table *drm_gem_shmem_get_sg_table(struct drm_gem_object *obj); 170 struct sg_table *sgt); 172 struct sg_table *drm_gem_shmem_get_pages_sgt(struct drm_gem_object *obj);
|
D | drm_gem_cma_helper.h | 23 struct sg_table *sgt; 99 struct sg_table *drm_gem_cma_prime_get_sg_table(struct drm_gem_object *obj); 103 struct sg_table *sgt); 131 struct sg_table *sgt);
|
/Linux-v5.4/include/linux/ |
D | intel_th.h | 43 int (*alloc_window)(void *priv, struct sg_table **sgt, 45 void (*free_window)(void *priv, struct sg_table *sgt); 59 int (*ready)(void *priv, struct sg_table *sgt, size_t bytes); 65 void intel_th_msc_window_unlock(struct device *dev, struct sg_table *sgt);
|
D | scatterlist.h | 42 struct sg_table { struct 269 void __sg_free_table(struct sg_table *, unsigned int, unsigned int, 271 void sg_free_table(struct sg_table *); 272 int __sg_alloc_table(struct sg_table *, unsigned int, unsigned int, 274 int sg_alloc_table(struct sg_table *, unsigned int, gfp_t); 275 int __sg_alloc_table_from_pages(struct sg_table *sgt, struct page **pages, 279 int sg_alloc_table_from_pages(struct sg_table *sgt, struct page **pages, 335 void sg_free_table_chained(struct sg_table *table, 337 int sg_alloc_table_chained(struct sg_table *table, int nents,
|
D | dma-buf.h | 122 struct sg_table * (*map_dma_buf)(struct dma_buf_attachment *, 134 struct sg_table *, 344 struct sg_table *sgt; 408 struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *, 410 void dma_buf_unmap_attachment(struct dma_buf_attachment *, struct sg_table *,
|
/Linux-v5.4/drivers/gpu/drm/i915/ |
D | i915_gem_fence_reg.h | 36 struct sg_table; 64 struct sg_table *pages); 66 struct sg_table *pages);
|
/Linux-v5.4/drivers/gpu/drm/xen/ |
D | xen_drm_front_gem.h | 18 struct sg_table; 27 struct sg_table *sgt); 29 struct sg_table *xen_drm_front_gem_get_sg_table(struct drm_gem_object *gem_obj);
|
/Linux-v5.4/drivers/gpu/drm/udl/ |
D | udl_dmabuf.c | 16 struct sg_table sgt; 43 struct sg_table *sgt; in udl_detach_dma_buf() 62 static struct sg_table *udl_map_dma_buf(struct dma_buf_attachment *attach, in udl_map_dma_buf() 70 struct sg_table *sgt = NULL; in udl_map_dma_buf() 135 struct sg_table *sgt, in udl_unmap_dma_buf() 189 struct sg_table *sg, in udl_prime_create() 219 struct sg_table *sg; in udl_gem_prime_import()
|
/Linux-v5.4/drivers/hwtracing/intel_th/ |
D | msu-sink.c | 18 struct sg_table **sgts; 51 static int msu_sink_alloc_window(void *data, struct sg_table **sgt, size_t size) in msu_sink_alloc_window() 81 static void msu_sink_free_window(void *data, struct sg_table *sgt) in msu_sink_free_window() 96 static int msu_sink_ready(void *data, struct sg_table *sgt, size_t bytes) in msu_sink_ready()
|
/Linux-v5.4/drivers/gpu/drm/mediatek/ |
D | mtk_drm_gem.h | 31 struct sg_table *sg; 45 struct sg_table *mtk_gem_prime_get_sg_table(struct drm_gem_object *obj); 47 struct dma_buf_attachment *attach, struct sg_table *sg);
|
/Linux-v5.4/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_gem.h | 25 struct sg_table *sgt; 29 struct sg_table *rockchip_gem_prime_get_sg_table(struct drm_gem_object *obj); 33 struct sg_table *sg);
|
/Linux-v5.4/drivers/staging/android/ion/ |
D | ion_system_heap.c | 105 struct sg_table *table; in ion_system_heap_allocate() 141 buffer->sg_table = table; in ion_system_heap_allocate() 157 struct sg_table *table = buffer->sg_table; in ion_system_heap_free() 291 struct sg_table *table; in ion_system_contig_heap_allocate() 317 buffer->sg_table = table; in ion_system_contig_heap_allocate() 332 struct sg_table *table = buffer->sg_table; in ion_system_contig_heap_free()
|
D | ion_cma_heap.c | 32 struct sg_table *table; in ion_cma_allocate() 73 buffer->sg_table = table; in ion_cma_allocate() 92 sg_free_table(buffer->sg_table); in ion_cma_free() 93 kfree(buffer->sg_table); in ion_cma_free()
|
D | ion.c | 62 if (!buffer->sg_table) { in ion_buffer_create() 140 static struct sg_table *dup_sg_table(struct sg_table *table) in dup_sg_table() 142 struct sg_table *new_table; in dup_sg_table() 166 static void free_duped_table(struct sg_table *table) in free_duped_table() 174 struct sg_table *table; 182 struct sg_table *table; in ion_dma_buf_attach() 189 table = dup_sg_table(buffer->sg_table); in ion_dma_buf_attach() 222 static struct sg_table *ion_map_dma_buf(struct dma_buf_attachment *attachment, in ion_map_dma_buf() 226 struct sg_table *table; in ion_map_dma_buf() 238 struct sg_table *table, in ion_unmap_dma_buf()
|
/Linux-v5.4/drivers/gpu/drm/exynos/ |
D | exynos_drm_gem.h | 52 struct sg_table *sgt; 113 struct sg_table *exynos_drm_gem_prime_get_sg_table(struct drm_gem_object *obj); 117 struct sg_table *sgt);
|
/Linux-v5.4/include/media/ |
D | videobuf2-dma-sg.h | 18 static inline struct sg_table *vb2_dma_sg_plane_desc( in vb2_dma_sg_plane_desc() 21 return (struct sg_table *)vb2_plane_cookie(vb, plane_no); in vb2_dma_sg_plane_desc()
|
/Linux-v5.4/drivers/gpu/drm/i915/gem/ |
D | i915_gem_dmabuf.c | 20 static struct sg_table *i915_gem_map_dma_buf(struct dma_buf_attachment *attachment, in i915_gem_map_dma_buf() 24 struct sg_table *st; in i915_gem_map_dma_buf() 33 st = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in i915_gem_map_dma_buf() 69 struct sg_table *sg, in i915_gem_unmap_dma_buf() 229 struct sg_table *pages; in i915_gem_object_get_pages_dmabuf() 245 struct sg_table *pages) in i915_gem_object_put_pages_dmabuf()
|