Home
last modified time | relevance | path

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

12345678910>>...13

/OK3568_Linux_fs/kernel/drivers/dma-buf/
H A Ddma-buf-cache.c21 struct sg_table *sg_table; member
34 if (!IS_ERR_OR_NULL(cache->sg_table)) in dma_buf_cache_destructor()
36 cache->sg_table, in dma_buf_cache_destructor()
148 struct sg_table *sg_table, in dma_buf_cache_unmap_attachment() argument
158 dma_buf_unmap_attachment(attach, sg_table, direction); in dma_buf_cache_unmap_attachment()
164 struct sg_table *dma_buf_cache_map_attachment(struct dma_buf_attachment *attach, in dma_buf_cache_map_attachment()
169 struct sg_table *sg_table; in dma_buf_cache_map_attachment() local
175 sg_table = dma_buf_map_attachment(attach, direction); in dma_buf_cache_map_attachment()
178 if (cache->sg_table) { in dma_buf_cache_map_attachment()
181 sg_table = cache->sg_table; in dma_buf_cache_map_attachment()
[all …]
/OK3568_Linux_fs/kernel/drivers/hwtracing/coresight/
H A Dcoresight-tmc-etr.c107 struct tmc_sg_table *sg_table; member
236 tmc_sg_get_data_page_offset(struct tmc_sg_table *sg_table, dma_addr_t addr) in tmc_sg_get_data_page_offset() argument
238 return tmc_pages_get_offset(&sg_table->data_pages, addr); in tmc_sg_get_data_page_offset()
241 static inline void tmc_free_table_pages(struct tmc_sg_table *sg_table) in tmc_free_table_pages() argument
243 if (sg_table->table_vaddr) in tmc_free_table_pages()
244 vunmap(sg_table->table_vaddr); in tmc_free_table_pages()
245 tmc_pages_free(&sg_table->table_pages, sg_table->dev, DMA_TO_DEVICE); in tmc_free_table_pages()
248 static void tmc_free_data_pages(struct tmc_sg_table *sg_table) in tmc_free_data_pages() argument
250 if (sg_table->data_vaddr) in tmc_free_data_pages()
251 vunmap(sg_table->data_vaddr); in tmc_free_data_pages()
[all …]
/OK3568_Linux_fs/kernel/drivers/target/
H A Dtarget_core_rd.c63 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 …]
/OK3568_Linux_fs/kernel/drivers/media/common/videobuf2/
H A 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()
145 sgt = &buf->sg_table; in vb2_dma_sg_alloc()
181 struct sg_table *sgt = &buf->sg_table; in vb2_dma_sg_put()
203 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_prepare()
211 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_finish()
221 struct sg_table *sgt; in vb2_dma_sg_get_userptr()
236 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_get_userptr()
[all …]
H A Dvideobuf2-cma-sg.c30 struct sg_table sg_table; member
36 struct sg_table *dma_sgt;
146 struct sg_table *sgt; in vb2_cma_sg_alloc()
163 buf->dma_sgt = &buf->sg_table; in vb2_cma_sg_alloc()
184 sgt = &buf->sg_table; in vb2_cma_sg_alloc()
219 struct sg_table *sgt = &buf->sg_table; in vb2_cma_sg_put()
241 struct sg_table *sgt = buf->dma_sgt; in vb2_cma_sg_prepare()
249 struct sg_table *sgt = buf->dma_sgt; in vb2_cma_sg_finish()
259 struct sg_table *sgt; in vb2_cma_sg_get_userptr()
274 buf->dma_sgt = &buf->sg_table; in vb2_cma_sg_get_userptr()
[all …]
H A 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()
107 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_finish()
211 struct sg_table sgt;
221 struct sg_table *sgt; in vb2_dc_dmabuf_ops_attach()
257 struct sg_table *sgt; in vb2_dc_dmabuf_ops_detach()
279 static struct sg_table *vb2_dc_dmabuf_ops_map( in vb2_dc_dmabuf_ops_map()
285 struct sg_table *sgt; in vb2_dc_dmabuf_ops_map()
[all …]
/OK3568_Linux_fs/kernel/drivers/dma-buf/heaps/
H A Dsystem_heap.c35 struct sg_table sg_table; member
45 struct sg_table *table;
67 static struct sg_table *dup_sg_table(struct sg_table *table) in dup_sg_table()
69 struct sg_table *new_table; in dup_sg_table()
97 struct sg_table *table; in system_heap_attach()
103 table = dup_sg_table(&buffer->sg_table); in system_heap_attach()
138 static struct sg_table *system_heap_map_dma_buf(struct dma_buf_attachment *attachment, in system_heap_map_dma_buf()
142 struct sg_table *table = a->table; in system_heap_map_dma_buf()
158 struct sg_table *table, in system_heap_unmap_dma_buf()
219 struct sg_table *table = &buffer->sg_table; in system_heap_mmap()
[all …]
H A Drk_system_heap.c44 struct sg_table sg_table; member
54 struct sg_table *table;
77 static struct sg_table *dup_sg_table(struct sg_table *table) in dup_sg_table()
79 struct sg_table *new_table; in dup_sg_table()
107 struct sg_table *table; in system_heap_attach()
113 table = dup_sg_table(&buffer->sg_table); in system_heap_attach()
148 static struct sg_table *system_heap_map_dma_buf(struct dma_buf_attachment *attachment, in system_heap_map_dma_buf()
152 struct sg_table *table = a->table; in system_heap_map_dma_buf()
168 struct sg_table *table, in system_heap_unmap_dma_buf()
227 struct sg_table *sgt, in system_heap_sgl_sync_range()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rcar-du/
H A Drcar_du_vsp.h18 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()
/OK3568_Linux_fs/kernel/include/drm/
H A Ddrm_prime.h80 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach,
83 struct sg_table *sgt,
91 struct sg_table *drm_prime_pages_to_sg(struct drm_device *dev,
96 unsigned long drm_prime_get_contiguous_size(struct sg_table *sgt);
105 void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg);
107 int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages,
H A Ddrm_gem_shmem_helper.h18 struct sg_table;
80 struct sg_table *sgt;
147 struct sg_table *drm_gem_shmem_get_sg_table(struct drm_gem_object *obj);
151 struct sg_table *sgt);
153 struct sg_table *drm_gem_shmem_get_pages_sgt(struct drm_gem_object *obj);
H A Ddrm_gem_cma_helper.h23 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);
193 struct sg_table *sgt);
/OK3568_Linux_fs/kernel/drivers/spi/
H A 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()
/OK3568_Linux_fs/kernel/drivers/staging/android/ion/
H A Dion_buffer.c24 trace_ion_stat(buffer->sg_table, buffer->size, total); in track_buffer_created()
31 trace_ion_stat(buffer->sg_table, -buffer->size, total); in track_buffer_destroyed()
63 if (!buffer->sg_table) { in ion_buffer_create()
174 struct sg_table *table; in ion_buffer_zero()
180 table = buffer->sg_table; in ion_buffer_zero()
193 struct sg_table *table; in ion_buffer_prep_noncached()
196 if (WARN_ONCE(!buffer || !buffer->sg_table, in ion_buffer_prep_noncached()
201 table = buffer->sg_table; in ion_buffer_prep_noncached()
H A Dion_dma_buf.c16 static struct sg_table *dup_sg_table(struct sg_table *table) in dup_sg_table()
18 struct sg_table *new_table; in dup_sg_table()
42 static void free_duped_table(struct sg_table *table) in free_duped_table()
52 struct sg_table *table; in ion_dma_buf_attach()
63 table = dup_sg_table(buffer->sg_table); in ion_dma_buf_attach()
101 static struct sg_table *ion_map_dma_buf(struct dma_buf_attachment *attachment, in ion_map_dma_buf()
107 struct sg_table *table; in ion_map_dma_buf()
129 struct sg_table *table, in ion_unmap_dma_buf()
/OK3568_Linux_fs/kernel/include/linux/
H A Dscatterlist.h42 struct sg_table { struct
288 void __sg_free_table(struct sg_table *, unsigned int, unsigned int,
290 void sg_free_table(struct sg_table *);
291 int __sg_alloc_table(struct sg_table *, unsigned int, unsigned int,
293 int sg_alloc_table(struct sg_table *, unsigned int, gfp_t);
294 struct scatterlist *__sg_alloc_table_from_pages(struct sg_table *sgt,
299 int sg_alloc_table_from_pages(struct sg_table *sgt, struct page **pages,
355 void sg_free_table_chained(struct sg_table *table,
357 int sg_alloc_table_chained(struct sg_table *table, int nents,
H A Dintel_th.h43 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);
H A Ddma-buf-cache.h14 struct sg_table *sg_table,
20 extern struct sg_table *
H A Ddma-buf.h155 struct sg_table * (*map_dma_buf)(struct dma_buf_attachment *,
166 struct sg_table *,
515 struct sg_table *sgt;
625 struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *,
627 void dma_buf_unmap_attachment(struct dma_buf_attachment *, struct sg_table *,
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/cif/
H A Dcommon.c15 struct sg_table *sg_tbl; in rkcif_alloc_buffer()
36 sg_tbl = (struct sg_table *)g_ops->cookie(mem_priv); in rkcif_alloc_buffer()
93 struct sg_table *sg = NULL; in rkcif_alloc_page_dummy_buf()
106 sg = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in rkcif_alloc_page_dummy_buf()
134 struct sg_table *sg = buf->mem_priv; in rkcif_free_page_dummy_buf()
196 static struct sg_table *rkcif_shm_map_dma_buf(struct dma_buf_attachment *attachment, in rkcif_shm_map_dma_buf()
200 struct sg_table *table; in rkcif_shm_map_dma_buf()
215 struct sg_table *table, in rkcif_shm_unmap_dma_buf()
259 struct sg_table *table; in rkcif_shm_begin_cpu_access()
271 struct sg_table *table; in rkcif_shm_end_cpu_access()
/OK3568_Linux_fs/kernel/drivers/hwtracing/intel_th/
H A Dmsu-sink.c18 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()
84 static void msu_sink_free_window(void *data, struct sg_table *sgt) in msu_sink_free_window()
99 static int msu_sink_ready(void *data, struct sg_table *sgt, size_t bytes) in msu_sink_ready()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/xen/
H A Dxen_drm_front_gem.h18 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);
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/
H A Di915_gem_dmabuf.c20 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()
68 struct sg_table *sg, in i915_gem_unmap_dma_buf()
192 struct sg_table *pages; in i915_gem_object_get_pages_dmabuf()
208 struct sg_table *pages) in i915_gem_object_put_pages_dmabuf()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gt/
H A Dintel_ggtt_fencing.h37 struct sg_table;
69 struct sg_table *pages);
71 struct sg_table *pages);
/OK3568_Linux_fs/kernel/drivers/gpu/drm/mediatek/
H A Dmtk_drm_gem.h31 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);

12345678910>>...13