Home
last modified time | relevance | path

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

1234567891011

/linux/drivers/hwtracing/coresight/
A Dcoresight-tmc-etr.c243 tmc_pages_free(&sg_table->table_pages, sg_table->dev, DMA_TO_DEVICE); in tmc_free_table_pages()
250 tmc_pages_free(&sg_table->data_pages, sg_table->dev, DMA_FROM_DEVICE); in tmc_free_data_pages()
292 sg_table->dev, sg_table->node, in tmc_alloc_data_pages()
295 sg_table->data_vaddr = vmap(sg_table->data_pages.pages, in tmc_alloc_data_pages()
325 sg_table = kzalloc(sizeof(*sg_table), GFP_KERNEL); in tmc_alloc_sg_table()
326 if (!sg_table) in tmc_alloc_sg_table()
338 kfree(sg_table); in tmc_alloc_sg_table()
342 return sg_table; in tmc_alloc_sg_table()
440 struct tmc_sg_table *sg_table = etr_table->sg_table; in tmc_etr_sg_table_dump() local
495 struct tmc_sg_table *sg_table = etr_table->sg_table; in tmc_etr_sg_table_populate() local
[all …]
A Dcoresight-tmc.h319 void tmc_free_sg_table(struct tmc_sg_table *sg_table);
320 void tmc_sg_table_sync_table(struct tmc_sg_table *sg_table);
323 ssize_t tmc_sg_table_get_data(struct tmc_sg_table *sg_table,
326 tmc_sg_table_buf_size(struct tmc_sg_table *sg_table) in tmc_sg_table_buf_size() argument
328 return sg_table->data_pages.nr_pages << PAGE_SHIFT; in tmc_sg_table_buf_size()
/linux/drivers/target/
A Dtarget_core_rd.c71 sg = sg_table[i].sg_table; in rd_release_sgl_table()
84 kfree(sg_table); in rd_release_sgl_table()
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()
195 sg_table = kcalloc(sg_tables, sizeof(*sg_table), GFP_KERNEL); in rd_build_device_space()
196 if (!sg_table) in rd_build_device_space()
252 sg_table = kcalloc(sg_tables, sizeof(*sg_table), GFP_KERNEL); in rd_build_prot_space()
253 if (!sg_table) in rd_build_prot_space()
350 return sg_table; in rd_get_sg_table()
370 return sg_table; in rd_get_prot_table()
[all …]
/linux/drivers/dma-buf/heaps/
A Dsystem_heap.c31 struct sg_table sg_table; member
38 struct sg_table *table;
58 static struct sg_table *dup_sg_table(struct sg_table *table) in dup_sg_table()
60 struct sg_table *new_table; in dup_sg_table()
88 struct sg_table *table; in system_heap_attach()
199 struct sg_table *table = &buffer->sg_table; in system_heap_mmap()
220 struct sg_table *table = &buffer->sg_table; in system_heap_do_vmap()
288 struct sg_table *table; in system_heap_dma_buf_release()
292 table = &buffer->sg_table; in system_heap_dma_buf_release()
345 struct sg_table *table; in system_heap_allocate()
[all …]
/linux/drivers/media/common/videobuf2/
A Dvideobuf2-dma-sg.c41 struct sg_table sg_table; member
105 struct sg_table *sgt; in vb2_dma_sg_alloc()
146 sgt = &buf->sg_table; in vb2_dma_sg_alloc()
183 struct sg_table *sgt = &buf->sg_table; in vb2_dma_sg_put()
228 struct sg_table *sgt; in vb2_dma_sg_get_userptr()
259 sgt = &buf->sg_table; in vb2_dma_sg_get_userptr()
286 struct sg_table *sgt = &buf->sg_table; in vb2_dma_sg_put_userptr()
363 struct sg_table sgt;
373 struct sg_table *sgt; in vb2_dma_sg_dmabuf_ops_attach()
409 struct sg_table *sgt; in vb2_dma_sg_dmabuf_ops_detach()
[all …]
A Dvideobuf2-dma-contig.c34 struct sg_table *dma_sgt;
40 struct sg_table *sgt_base;
126 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_prepare()
146 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_finish()
313 struct sg_table sgt;
323 struct sg_table *sgt; in vb2_dc_dmabuf_ops_attach()
359 struct sg_table *sgt; in vb2_dc_dmabuf_ops_detach()
387 struct sg_table *sgt; in vb2_dc_dmabuf_ops_map()
485 struct sg_table *sgt; in vb2_dc_get_base_sgt()
579 struct sg_table *sgt; in vb2_dc_get_userptr()
[all …]
/linux/include/drm/
A Ddrm_prime.h81 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach,
84 struct sg_table *sgt,
92 struct sg_table *drm_prime_pages_to_sg(struct drm_device *dev,
97 unsigned long drm_prime_get_contiguous_size(struct sg_table *sgt);
106 void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg);
108 int drm_prime_sg_to_page_array(struct sg_table *sgt, struct page **pages,
110 int drm_prime_sg_to_dma_addr_array(struct sg_table *sgt, dma_addr_t *addrs,
A Ddrm_gem_shmem_helper.h18 struct sg_table;
80 struct sg_table *sgt;
144 struct sg_table *drm_gem_shmem_get_sg_table(struct drm_gem_object *obj);
148 struct sg_table *sgt);
150 struct sg_table *drm_gem_shmem_get_pages_sgt(struct drm_gem_object *obj);
A Ddrm_gem_cma_helper.h24 struct sg_table *sgt;
99 struct sg_table *drm_gem_cma_get_sg_table(struct drm_gem_object *obj);
103 struct sg_table *sgt);
186 struct sg_table *sgt);
/linux/drivers/dma-buf/
A Ddma-buf.c655 static void mangle_sg_table(struct sg_table *sg_table) in mangle_sg_table() argument
673 struct sg_table *sg_table; in __map_dma_buf() local
680 return sg_table; in __map_dma_buf()
745 struct sg_table *sgt; in dma_buf_dynamic_attach()
802 struct sg_table *sg_table, in __unmap_dma_buf() argument
922 struct sg_table *sg_table; in dma_buf_map_attachment() local
955 if (!sg_table) in dma_buf_map_attachment()
963 attach->sgt = sg_table; in dma_buf_map_attachment()
968 if (!IS_ERR(sg_table)) { in dma_buf_map_attachment()
984 return sg_table; in dma_buf_map_attachment()
[all …]
/linux/drivers/gpu/drm/rcar-du/
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()
/linux/include/linux/
A Dscatterlist.h36 struct sg_table { struct
43 struct sg_table sgt; /* The scatter list table */ argument
288 void __sg_free_table(struct sg_table *, unsigned int, unsigned int,
290 void sg_free_table(struct sg_table *);
292 int __sg_alloc_table(struct sg_table *, unsigned int, unsigned int,
294 int sg_alloc_table(struct sg_table *, unsigned int, gfp_t);
300 int sg_alloc_table_from_pages_segment(struct sg_table *sgt, struct page **pages,
325 static inline int sg_alloc_table_from_pages(struct sg_table *sgt, in sg_alloc_table_from_pages()
387 void sg_free_table_chained(struct sg_table *table,
389 int sg_alloc_table_chained(struct sg_table *table, int nents,
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);
A Ddma-mapping.h113 int dma_map_sgtable(struct device *dev, struct sg_table *sgt,
135 int dma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt,
152 struct sg_table *sgt, enum dma_data_direction dir);
154 struct sg_table *sgt);
157 size_t size, struct sg_table *sgt);
234 struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, in dma_get_sgtable_attrs()
284 struct sg_table *sgt, enum dma_data_direction dir) in dma_free_noncontiguous()
288 struct sg_table *sgt) in dma_vmap_noncontiguous()
296 struct vm_area_struct *vma, size_t size, struct sg_table *sgt) in dma_mmap_noncontiguous()
384 struct sg_table *sgt, enum dma_data_direction dir) in dma_sync_sgtable_for_cpu()
[all …]
A Ddma-buf.h179 struct sg_table * (*map_dma_buf)(struct dma_buf_attachment *,
190 struct sg_table *,
519 struct sg_table *sgt;
619 struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *,
621 void dma_buf_unmap_attachment(struct dma_buf_attachment *, struct sg_table *,
/linux/drivers/spi/
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()
/linux/drivers/gpu/drm/i915/
A Di915_scatterlist.c16 bool i915_sg_trim(struct sg_table *orig_st) in i915_sg_trim()
18 struct sg_table new_st; in i915_sg_trim()
56 struct sg_table *i915_sg_from_mm_node(const struct drm_mm_node *node, in i915_sg_from_mm_node()
62 struct sg_table *st; in i915_sg_from_mm_node()
123 struct sg_table *i915_sg_from_buddy_resource(struct ttm_resource *res, in i915_sg_from_buddy_resource()
133 struct sg_table *st; in i915_sg_from_buddy_resource()
/linux/drivers/hwtracing/intel_th/
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()
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/drivers/gpu/drm/xen/
A Dxen_drm_front_gem.h19 struct sg_table;
28 struct sg_table *sgt);
30 struct sg_table *xen_drm_front_gem_get_sg_table(struct drm_gem_object *gem_obj);
/linux/drivers/gpu/drm/i915/gt/
A Dintel_ggtt_fencing.h18 struct sg_table;
50 struct sg_table *pages);
52 struct sg_table *pages);
/linux/drivers/gpu/drm/mediatek/
A Dmtk_drm_gem.h31 struct sg_table *sg;
42 struct sg_table *mtk_gem_prime_get_sg_table(struct drm_gem_object *obj);
44 struct dma_buf_attachment *attach, struct sg_table *sg);
/linux/drivers/gpu/drm/rockchip/
A Drockchip_drm_gem.h25 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/drivers/gpu/drm/
A Ddrm_prime.c616 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, in drm_gem_map_dma_buf()
620 struct sg_table *sgt; in drm_gem_map_dma_buf()
654 struct sg_table *sgt, in drm_gem_unmap_dma_buf()
811 struct sg_table *drm_prime_pages_to_sg(struct drm_device *dev, in drm_prime_pages_to_sg()
814 struct sg_table *sg; in drm_prime_pages_to_sg()
818 sg = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in drm_prime_pages_to_sg()
847 unsigned long drm_prime_get_contiguous_size(struct sg_table *sgt) in drm_prime_get_contiguous_size()
914 struct sg_table *sgt; in drm_gem_prime_import_dev()
998 int __deprecated drm_prime_sg_to_page_array(struct sg_table *sgt, in drm_prime_sg_to_page_array()
1025 int drm_prime_sg_to_dma_addr_array(struct sg_table *sgt, dma_addr_t *addrs, in drm_prime_sg_to_dma_addr_array()
[all …]
/linux/drivers/gpu/drm/exynos/
A Dexynos_drm_gem.h46 struct sg_table *sgt;
105 struct sg_table *exynos_drm_gem_prime_get_sg_table(struct drm_gem_object *obj);
109 struct sg_table *sgt);
/linux/drivers/gpu/drm/omapdrm/
A Domap_gem_dmabuf.c20 static struct sg_table *omap_gem_map_dma_buf( in omap_gem_map_dma_buf()
25 struct sg_table *sg; in omap_gem_map_dma_buf()
59 struct sg_table *sg, enum dma_data_direction dir) in omap_gem_unmap_dma_buf()
133 struct sg_table *sgt; in omap_gem_prime_import()

Completed in 51 milliseconds

1234567891011