Home
last modified time | relevance | path

Searched refs:sg_table (Results 1 – 25 of 215) sorted by relevance

123456789

/Linux-v4.19/drivers/hwtracing/coresight/
Dcoresight-tmc-etr.c75 struct tmc_sg_table *sg_table; member
200 tmc_sg_get_data_page_offset(struct tmc_sg_table *sg_table, dma_addr_t addr) in tmc_sg_get_data_page_offset() argument
202 return tmc_pages_get_offset(&sg_table->data_pages, addr); in tmc_sg_get_data_page_offset()
205 static inline void tmc_free_table_pages(struct tmc_sg_table *sg_table) in tmc_free_table_pages() argument
207 if (sg_table->table_vaddr) in tmc_free_table_pages()
208 vunmap(sg_table->table_vaddr); in tmc_free_table_pages()
209 tmc_pages_free(&sg_table->table_pages, sg_table->dev, DMA_TO_DEVICE); in tmc_free_table_pages()
212 static void tmc_free_data_pages(struct tmc_sg_table *sg_table) in tmc_free_data_pages() argument
214 if (sg_table->data_vaddr) in tmc_free_data_pages()
215 vunmap(sg_table->data_vaddr); in tmc_free_data_pages()
[all …]
Dcoresight-tmc.h295 void tmc_free_sg_table(struct tmc_sg_table *sg_table);
296 void tmc_sg_table_sync_table(struct tmc_sg_table *sg_table);
299 ssize_t tmc_sg_table_get_data(struct tmc_sg_table *sg_table,
302 tmc_sg_table_buf_size(struct tmc_sg_table *sg_table) in tmc_sg_table_buf_size() argument
304 return sg_table->data_pages.nr_pages << PAGE_SHIFT; in tmc_sg_table_buf_size()
/Linux-v4.19/drivers/target/
Dtarget_core_rd.c76 static u32 rd_release_sgl_table(struct rd_dev *rd_dev, struct rd_dev_sg_table *sg_table, in rd_release_sgl_table() argument
84 sg = sg_table[i].sg_table; in rd_release_sgl_table()
85 sg_per_table = sg_table[i].rd_sg_count; in rd_release_sgl_table()
97 kfree(sg_table); in rd_release_sgl_table()
125 static int rd_allocate_sgl_table(struct rd_dev *rd_dev, struct rd_dev_sg_table *sg_table, in rd_allocate_sgl_table() argument
155 sg_chain(sg_table[i - 1].sg_table, in rd_allocate_sgl_table()
159 sg_table[i].sg_table = sg; in rd_allocate_sgl_table()
160 sg_table[i].rd_sg_count = sg_per_table; in rd_allocate_sgl_table()
161 sg_table[i].page_start_offset = page_offset; in rd_allocate_sgl_table()
162 sg_table[i++].page_end_offset = (page_offset + sg_per_table) in rd_allocate_sgl_table()
[all …]
/Linux-v4.19/drivers/media/common/videobuf2/
Dvideobuf2-dma-sg.c41 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 …]
Dvideobuf2-dma-contig.c33 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()
221 struct sg_table sgt;
231 struct sg_table *sgt; in vb2_dc_dmabuf_ops_attach()
267 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-v4.19/drivers/spi/
Dinternals.h24 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-v4.19/include/drm/
Ddrm_prime.h89 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach,
92 struct sg_table *sgt,
101 int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages,
103 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);
Ddrm_gem_cma_helper.h20 struct sg_table *sgt;
96 struct sg_table *drm_gem_cma_prime_get_sg_table(struct drm_gem_object *obj);
100 struct sg_table *sgt);
/Linux-v4.19/include/linux/
Dscatterlist.h42 struct sg_table { struct
269 void __sg_free_table(struct sg_table *, unsigned int, bool, sg_free_fn *);
270 void sg_free_table(struct sg_table *);
271 int __sg_alloc_table(struct sg_table *, unsigned int, unsigned int,
273 int sg_alloc_table(struct sg_table *, unsigned int, gfp_t);
274 int __sg_alloc_table_from_pages(struct sg_table *sgt, struct page **pages,
278 int sg_alloc_table_from_pages(struct sg_table *sgt, struct page **pages,
334 void sg_free_table_chained(struct sg_table *table, bool first_chunk);
335 int sg_alloc_table_chained(struct sg_table *table, int nents,
Ddma-buf.h131 struct sg_table * (*map_dma_buf)(struct dma_buf_attachment *,
143 struct sg_table *,
387 struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *,
389 void dma_buf_unmap_attachment(struct dma_buf_attachment *, struct sg_table *,
/Linux-v4.19/drivers/gpu/drm/udl/
Dudl_dmabuf.c26 struct sg_table sgt;
53 struct sg_table *sgt; in udl_detach_dma_buf()
72 static struct sg_table *udl_map_dma_buf(struct dma_buf_attachment *attach, in udl_map_dma_buf()
80 struct sg_table *sgt = NULL; in udl_map_dma_buf()
145 struct sg_table *sgt, in udl_unmap_dma_buf()
200 struct sg_table *sg, in udl_prime_create()
230 struct sg_table *sg; in udl_gem_prime_import()
/Linux-v4.19/drivers/gpu/drm/mediatek/
Dmtk_drm_gem.h39 struct sg_table *sg;
52 struct sg_table *mtk_gem_prime_get_sg_table(struct drm_gem_object *obj);
54 struct dma_buf_attachment *attach, struct sg_table *sg);
/Linux-v4.19/drivers/gpu/drm/rockchip/
Drockchip_drm_gem.h33 struct sg_table *sgt;
37 struct sg_table *rockchip_gem_prime_get_sg_table(struct drm_gem_object *obj);
41 struct sg_table *sg);
/Linux-v4.19/drivers/staging/android/ion/
Dion_system_heap.c105 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()
313 struct sg_table *table; in ion_system_contig_heap_allocate()
339 buffer->sg_table = table; in ion_system_contig_heap_allocate()
354 struct sg_table *table = buffer->sg_table; in ion_system_contig_heap_free()
Dion_cma_heap.c32 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()
Dion_carveout_heap.c55 struct sg_table *table; in ion_carveout_heap_allocate()
73 buffer->sg_table = table; in ion_carveout_heap_allocate()
87 struct sg_table *table = buffer->sg_table; in ion_carveout_heap_free()
Dion.c92 if (!buffer->sg_table) { in ion_buffer_create()
166 static struct sg_table *dup_sg_table(struct sg_table *table) in dup_sg_table()
168 struct sg_table *new_table; in dup_sg_table()
192 static void free_duped_table(struct sg_table *table) in free_duped_table()
200 struct sg_table *table;
208 struct sg_table *table; in ion_dma_buf_attach()
215 table = dup_sg_table(buffer->sg_table); in ion_dma_buf_attach()
248 static struct sg_table *ion_map_dma_buf(struct dma_buf_attachment *attachment, in ion_map_dma_buf()
252 struct sg_table *table; in ion_map_dma_buf()
264 struct sg_table *table, in ion_unmap_dma_buf()
Dion_chunk_heap.c33 struct sg_table *table; in ion_chunk_heap_allocate()
65 buffer->sg_table = table; in ion_chunk_heap_allocate()
85 struct sg_table *table = buffer->sg_table; in ion_chunk_heap_free()
Dion_heap.c26 struct sg_table *table = buffer->sg_table; in ion_heap_map_kernel()
66 struct sg_table *table = buffer->sg_table; in ion_heap_map_user()
135 struct sg_table *table = buffer->sg_table; in ion_heap_buffer_zero()
/Linux-v4.19/include/linux/spi/
Dspi-mem.h220 struct sg_table *sg);
224 struct sg_table *sg);
229 struct sg_table *sg) in spi_controller_dma_map_mem_op_data()
237 struct sg_table *sg) in spi_controller_dma_unmap_mem_op_data()
/Linux-v4.19/drivers/gpu/drm/exynos/
Dexynos_drm_gem.h56 struct sg_table *sgt;
117 struct sg_table *exynos_drm_gem_prime_get_sg_table(struct drm_gem_object *obj);
121 struct sg_table *sgt);
/Linux-v4.19/include/media/
Dvideobuf2-dma-sg.h18 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-v4.19/drivers/gpu/drm/i915/
Di915_gem_dmabuf.c39 static struct sg_table *i915_gem_map_dma_buf(struct dma_buf_attachment *attachment, in i915_gem_map_dma_buf()
43 struct sg_table *st; in i915_gem_map_dma_buf()
52 st = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in i915_gem_map_dma_buf()
88 struct sg_table *sg, in i915_gem_unmap_dma_buf()
250 struct sg_table *pages; in i915_gem_object_get_pages_dmabuf()
266 struct sg_table *pages) in i915_gem_object_put_pages_dmabuf()
/Linux-v4.19/drivers/gpu/drm/
Ddrm_prime.c90 struct sg_table *sgt;
234 struct sg_table *sgt = prime_attach->sgt; in drm_gem_map_detach()
292 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, in drm_gem_map_dma_buf()
297 struct sg_table *sgt; in drm_gem_map_dma_buf()
341 struct sg_table *sgt, in drm_gem_unmap_dma_buf()
696 struct sg_table *sgt; in drm_gem_prime_import_dev()
884 struct sg_table *drm_prime_pages_to_sg(struct page **pages, unsigned int nr_pages) in drm_prime_pages_to_sg()
886 struct sg_table *sg = NULL; in drm_prime_pages_to_sg()
889 sg = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in drm_prime_pages_to_sg()
917 int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages, in drm_prime_sg_to_page_addr_arrays()
[all …]
/Linux-v4.19/drivers/gpu/drm/omapdrm/
Domap_gem_dmabuf.c26 static struct sg_table *omap_gem_map_dma_buf( in omap_gem_map_dma_buf()
31 struct sg_table *sg; in omap_gem_map_dma_buf()
65 struct sg_table *sg, enum dma_data_direction dir) in omap_gem_unmap_dma_buf()
161 struct sg_table *sgt; in omap_gem_prime_import()

123456789