Home
last modified time | relevance | path

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

123456789

/drivers/hwtracing/coresight/
Dcoresight-tmc-etr.c106 struct tmc_sg_table *sg_table; member
235 tmc_sg_get_data_page_offset(struct tmc_sg_table *sg_table, dma_addr_t addr) in tmc_sg_get_data_page_offset() argument
237 return tmc_pages_get_offset(&sg_table->data_pages, addr); in tmc_sg_get_data_page_offset()
240 static inline void tmc_free_table_pages(struct tmc_sg_table *sg_table) in tmc_free_table_pages() argument
242 if (sg_table->table_vaddr) in tmc_free_table_pages()
243 vunmap(sg_table->table_vaddr); in tmc_free_table_pages()
244 tmc_pages_free(&sg_table->table_pages, sg_table->dev, DMA_TO_DEVICE); in tmc_free_table_pages()
247 static void tmc_free_data_pages(struct tmc_sg_table *sg_table) in tmc_free_data_pages() argument
249 if (sg_table->data_vaddr) in tmc_free_data_pages()
250 vunmap(sg_table->data_vaddr); in tmc_free_data_pages()
[all …]
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 (unsigned long)sg_table->data_pages.nr_pages << PAGE_SHIFT; in tmc_sg_table_buf_size()
/drivers/target/
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 …]
/drivers/media/common/videobuf2/
Dvideobuf2-dma-sg.c41 struct sg_table sg_table; member
47 struct sg_table *dma_sgt;
105 struct sg_table *sgt; in vb2_dma_sg_alloc()
122 buf->dma_sgt = &buf->sg_table; 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()
205 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_prepare()
213 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_finish()
222 struct sg_table *sgt; in vb2_dma_sg_get_userptr()
237 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;
51 static unsigned long vb2_dc_get_contiguous_size(struct sg_table *sgt) in vb2_dc_get_contiguous_size()
102 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_prepare()
113 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_finish()
219 struct sg_table sgt;
229 struct sg_table *sgt; in vb2_dc_dmabuf_ops_attach()
265 struct sg_table *sgt; in vb2_dc_dmabuf_ops_detach()
287 static struct sg_table *vb2_dc_dmabuf_ops_map( in vb2_dc_dmabuf_ops_map()
293 struct sg_table *sgt; in vb2_dc_dmabuf_ops_map()
[all …]
Dvideobuf2-vmalloc.c204 struct sg_table sgt;
214 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_attach()
251 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_detach()
266 static struct sg_table *vb2_vmalloc_dmabuf_ops_map( in vb2_vmalloc_dmabuf_ops_map()
272 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_map()
304 struct sg_table *sgt, enum dma_data_direction dma_dir) in vb2_vmalloc_dmabuf_ops_unmap()
/drivers/dma-buf/heaps/
Dsystem_heap.c34 struct sg_table sg_table; member
43 struct sg_table *table;
66 static struct sg_table *dup_sg_table(struct sg_table *table) in dup_sg_table()
68 struct sg_table *new_table; in dup_sg_table()
96 struct sg_table *table; in system_heap_attach()
102 table = dup_sg_table(&buffer->sg_table); in system_heap_attach()
137 static struct sg_table *system_heap_map_dma_buf(struct dma_buf_attachment *attachment, in system_heap_map_dma_buf()
141 struct sg_table *table = a->table; in system_heap_map_dma_buf()
157 struct sg_table *table, in system_heap_unmap_dma_buf()
218 struct sg_table *table = &buffer->sg_table; in system_heap_mmap()
[all …]
/drivers/dma-buf/
Ddma-buf.c729 static void mangle_sg_table(struct sg_table *sg_table) in mangle_sg_table() argument
739 for_each_sgtable_sg(sg_table, sg, i) in mangle_sg_table()
744 static struct sg_table * __map_dma_buf(struct dma_buf_attachment *attach, in __map_dma_buf()
747 struct sg_table *sg_table; in __map_dma_buf() local
749 sg_table = attach->dmabuf->ops->map_dma_buf(attach, direction); in __map_dma_buf()
751 if (!IS_ERR_OR_NULL(sg_table)) in __map_dma_buf()
752 mangle_sg_table(sg_table); in __map_dma_buf()
754 return sg_table; in __map_dma_buf()
819 struct sg_table *sgt; in dma_buf_dynamic_attach()
876 struct sg_table *sg_table, in __unmap_dma_buf() argument
[all …]
Dudmabuf.c27 struct sg_table *sg;
60 static struct sg_table *get_sg_table(struct device *dev, struct dma_buf *buf, in get_sg_table()
64 struct sg_table *sg; in get_sg_table()
86 static void put_sg_table(struct device *dev, struct sg_table *sg, in put_sg_table()
94 static struct sg_table *map_udmabuf(struct dma_buf_attachment *at, in map_udmabuf()
101 struct sg_table *sg, in unmap_udmabuf()
/drivers/gpu/drm/rcar-du/
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()
/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()
/drivers/gpu/drm/i915/
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()
Di915_scatterlist.h145 bool i915_sg_trim(struct sg_table *orig_st);
147 struct sg_table *i915_sg_from_mm_node(const struct drm_mm_node *node,
150 struct sg_table *i915_sg_from_buddy_resource(struct ttm_resource *res,
/drivers/hwtracing/intel_th/
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()
/drivers/gpu/drm/xen/
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);
/drivers/gpu/drm/mediatek/
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);
/drivers/gpu/drm/i915/gt/
Dintel_ggtt_fencing.h18 struct sg_table;
50 struct sg_table *pages);
52 struct sg_table *pages);
/drivers/gpu/drm/
Ddrm_prime.c617 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, in drm_gem_map_dma_buf()
621 struct sg_table *sgt; in drm_gem_map_dma_buf()
655 struct sg_table *sgt, in drm_gem_unmap_dma_buf()
812 struct sg_table *drm_prime_pages_to_sg(struct drm_device *dev, in drm_prime_pages_to_sg()
815 struct sg_table *sg; in drm_prime_pages_to_sg()
819 sg = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in drm_prime_pages_to_sg()
848 unsigned long drm_prime_get_contiguous_size(struct sg_table *sgt) in drm_prime_get_contiguous_size()
915 struct sg_table *sgt; in drm_gem_prime_import_dev()
999 int __deprecated drm_prime_sg_to_page_array(struct sg_table *sgt, in drm_prime_sg_to_page_array()
1026 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 …]
/drivers/gpu/drm/rockchip/
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);
/drivers/gpu/drm/exynos/
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);
/drivers/gpu/drm/omapdrm/
Domap_gem_dmabuf.c18 static struct sg_table *omap_gem_map_dma_buf( in omap_gem_map_dma_buf()
23 struct sg_table *sg; in omap_gem_map_dma_buf()
57 struct sg_table *sg, enum dma_data_direction dir) in omap_gem_unmap_dma_buf()
131 struct sg_table *sgt; in omap_gem_prime_import()
/drivers/gpu/drm/i915/gem/
Di915_gem_dmabuf.c22 static struct sg_table *i915_gem_map_dma_buf(struct dma_buf_attachment *attachment, in i915_gem_map_dma_buf()
26 struct sg_table *st; in i915_gem_map_dma_buf()
31 st = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in i915_gem_map_dma_buf()
64 struct sg_table *sg, in i915_gem_unmap_dma_buf()
235 struct sg_table *pages; in i915_gem_object_get_pages_dmabuf()
253 struct sg_table *pages) in i915_gem_object_put_pages_dmabuf()
/drivers/crypto/caam/
Dcaamalg_qi2.c370 struct dpaa2_sg_entry *sg_table; in aead_edesc_alloc() local
470 sg_table = &edesc->sgt[0]; in aead_edesc_alloc()
471 qm_sg_bytes = qm_sg_nents * sizeof(*sg_table); in aead_edesc_alloc()
483 u8 *iv = (u8 *)(sg_table + qm_sg_nents); in aead_edesc_alloc()
521 dma_to_qm_sg_one(sg_table, edesc->assoclen_dma, 4, 0); in aead_edesc_alloc()
524 dma_to_qm_sg_one(sg_table + qm_sg_index, iv_dma, ivsize, 0); in aead_edesc_alloc()
527 sg_to_qm_sg_last(req->src, src_len, sg_table + qm_sg_index, 0); in aead_edesc_alloc()
531 sg_to_qm_sg_last(req->dst, dst_len, sg_table + qm_sg_index, 0); in aead_edesc_alloc()
533 qm_sg_dma = dma_map_single(dev, sg_table, qm_sg_bytes, DMA_TO_DEVICE); in aead_edesc_alloc()
563 (1 + !!ivsize) * sizeof(*sg_table)); in aead_edesc_alloc()
[all …]
/drivers/gpu/drm/radeon/
Dradeon_prime.h31 struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj);
38 struct sg_table *sg);
/drivers/gpu/drm/i915/gem/selftests/
Dhuge_gem_object.c12 struct sg_table *pages) in huge_free_pages()
34 struct sg_table *pages; in huge_get_pages()
82 struct sg_table *pages) in huge_put_pages()

123456789