Home
last modified time | relevance | path

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

12345678910>>...12

/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 …]
/drivers/hwtracing/coresight/
A Dcoresight-tmc-etr.c252 tmc_pages_free(&sg_table->table_pages, sg_table->dev, DMA_TO_DEVICE); in tmc_free_table_pages()
259 tmc_pages_free(&sg_table->data_pages, sg_table->dev, DMA_FROM_DEVICE); in tmc_free_data_pages()
266 kfree(sg_table); in tmc_free_sg_table()
302 sg_table->dev, sg_table->node, in tmc_alloc_data_pages()
305 sg_table->data_vaddr = vmap(sg_table->data_pages.pages, in tmc_alloc_data_pages()
335 sg_table = kzalloc(sizeof(*sg_table), GFP_KERNEL); in tmc_alloc_sg_table()
336 if (!sg_table) in tmc_alloc_sg_table()
351 return sg_table; in tmc_alloc_sg_table()
449 struct tmc_sg_table *sg_table = etr_table->sg_table; in tmc_etr_sg_table_dump() local
504 struct tmc_sg_table *sg_table = etr_table->sg_table; in tmc_etr_sg_table_populate() local
[all …]
A Dcoresight-tmc.h380 void tmc_free_sg_table(struct tmc_sg_table *sg_table);
381 void tmc_sg_table_sync_table(struct tmc_sg_table *sg_table);
384 ssize_t tmc_sg_table_get_data(struct tmc_sg_table *sg_table,
388 tmc_sg_table_buf_size(struct tmc_sg_table *sg_table) in tmc_sg_table_buf_size() argument
390 return (unsigned long)sg_table->data_pages.nr_pages << PAGE_SHIFT; in tmc_sg_table_buf_size()
/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()
145 sgt = &buf->sg_table; in vb2_dma_sg_alloc()
182 struct sg_table *sgt = &buf->sg_table; in vb2_dma_sg_put()
227 struct sg_table *sgt; in vb2_dma_sg_get_userptr()
260 sgt = &buf->sg_table; in vb2_dma_sg_get_userptr()
287 struct sg_table *sgt = &buf->sg_table; in vb2_dma_sg_put_userptr()
364 struct sg_table sgt;
374 struct sg_table *sgt; in vb2_dma_sg_dmabuf_ops_attach()
410 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()
385 struct sg_table *sgt; in vb2_dc_dmabuf_ops_map()
476 struct sg_table *sgt; in vb2_dc_get_base_sgt()
571 struct sg_table *sgt; in vb2_dc_get_userptr()
[all …]
A Dvideobuf2-vmalloc.c208 struct sg_table sgt;
218 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_attach()
255 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_detach()
270 static struct sg_table *vb2_vmalloc_dmabuf_ops_map( in vb2_vmalloc_dmabuf_ops_map()
274 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_map()
299 struct sg_table *sgt, enum dma_data_direction dma_dir) in vb2_vmalloc_dmabuf_ops_unmap()
/drivers/dma-buf/heaps/
A Dsystem_heap.c29 struct sg_table sg_table; member
36 struct sg_table table;
55 static int dup_sg_table(struct sg_table *from, struct sg_table *to) in dup_sg_table()
121 struct sg_table *table = &a->table; in system_heap_map_dma_buf()
133 struct sg_table *table, in system_heap_unmap_dma_buf()
187 struct sg_table *table = &buffer->sg_table; in system_heap_mmap()
208 struct sg_table *table = &buffer->sg_table; in system_heap_do_vmap()
276 struct sg_table *table; in system_heap_dma_buf_release()
280 table = &buffer->sg_table; in system_heap_dma_buf_release()
333 struct sg_table *table; in system_heap_allocate()
[all …]
/drivers/gpu/drm/renesas/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()
/drivers/dma-buf/
A Ddma-buf.c831 static void mangle_sg_table(struct sg_table *sg_table) in mangle_sg_table() argument
1105 struct sg_table *sg_table; in dma_buf_map_attachment() local
1127 if (!sg_table) in dma_buf_map_attachment()
1129 if (IS_ERR(sg_table)) in dma_buf_map_attachment()
1161 return sg_table; in dma_buf_map_attachment()
1171 return sg_table; in dma_buf_map_attachment()
1184 struct sg_table *
1188 struct sg_table *sg_table; in dma_buf_map_attachment_unlocked() local
1199 return sg_table; in dma_buf_map_attachment_unlocked()
1214 struct sg_table *sg_table, in dma_buf_unmap_attachment() argument
[all …]
/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()
/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()
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/
A Dxen_drm_front_gem.h18 struct sg_table;
26 struct sg_table *sgt);
28 struct sg_table *xen_drm_front_gem_get_sg_table(struct drm_gem_object *gem_obj);
/drivers/gpu/drm/mediatek/
A Dmtk_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/
A Dintel_ggtt_fencing.h18 struct sg_table;
50 struct sg_table *pages);
52 struct sg_table *pages);
/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()
34 struct sg_table *sg, enum dma_data_direction dir) in omap_gem_unmap_dma_buf()
102 struct sg_table *sgt; in omap_gem_prime_import()
A Domap_gem.h48 struct sg_table *sgt);
82 struct sg_table *omap_gem_get_sg(struct drm_gem_object *obj,
84 void omap_gem_put_sg(struct drm_gem_object *obj, struct sg_table *sgt);
/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);
/drivers/media/pci/intel/ipu6/
A Dipu6-dma.h24 void ipu6_dma_sync_sgtable(struct ipu6_bus_device *sys, struct sg_table *sgt);
39 int ipu6_dma_map_sgtable(struct ipu6_bus_device *sys, struct sg_table *sgt,
41 void ipu6_dma_unmap_sgtable(struct ipu6_bus_device *sys, struct sg_table *sgt,
/drivers/staging/media/ipu7/
A Dipu7-dma.h27 void ipu7_dma_sync_sgtable(struct ipu7_bus_device *sys, struct sg_table *sgt);
42 int ipu7_dma_map_sgtable(struct ipu7_bus_device *sys, struct sg_table *sgt,
44 void ipu7_dma_unmap_sgtable(struct ipu7_bus_device *sys, struct sg_table *sgt,
/drivers/gpu/drm/exynos/
A Dexynos_drm_gem.h46 struct sg_table *sgt;
102 struct sg_table *exynos_drm_gem_prime_get_sg_table(struct drm_gem_object *obj);
106 struct sg_table *sgt);
/drivers/gpu/drm/
A Ddrm_prime.c669 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, in drm_gem_map_dma_buf()
673 struct sg_table *sgt; in drm_gem_map_dma_buf()
707 struct sg_table *sgt, in drm_gem_unmap_dma_buf()
853 struct sg_table *drm_prime_pages_to_sg(struct drm_device *dev, in drm_prime_pages_to_sg()
856 struct sg_table *sg; in drm_prime_pages_to_sg()
860 sg = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in drm_prime_pages_to_sg()
889 unsigned long drm_prime_get_contiguous_size(struct sg_table *sgt) in drm_prime_get_contiguous_size()
976 struct sg_table *sgt; in drm_gem_prime_import_dev()
1058 int __deprecated drm_prime_sg_to_page_array(struct sg_table *sgt, in drm_prime_sg_to_page_array()
1085 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/crypto/caam/
A Dcaamalg_qi2.c473 sg_table = &edesc->sgt[0]; in aead_edesc_alloc()
582 sizeof(*sg_table)); in aead_edesc_alloc()
1205 sg_table = &edesc->sgt[0]; in skcipher_edesc_alloc()
1254 sizeof(*sg_table)); in skcipher_edesc_alloc()
1257 sizeof(*sg_table)); in skcipher_edesc_alloc()
3583 sizeof(*sg_table); in ahash_update_ctx()
3672 sg_table = &edesc->sgt[0]; in ahash_final_ctx()
3765 sizeof(*sg_table); in ahash_finup_ctx()
3766 sg_table = &edesc->sgt[0]; in ahash_finup_ctx()
4034 sizeof(*sg_table); in ahash_update_no_ctx()
[all …]
/drivers/gpu/drm/i915/
A Di915_scatterlist.c15 bool i915_sg_trim(struct sg_table *orig_st) in i915_sg_trim()
17 struct sg_table new_st; in i915_sg_trim()
88 struct sg_table *st; in i915_rsgt_from_mm_node()
175 struct sg_table *st; in i915_rsgt_from_buddy_resource()
/drivers/vfio/pci/pds/
A Ddirty.c378 struct sg_table sg_table; in pds_vfio_dirty_seq_ack() local
414 err = sg_alloc_table_from_pages(&sg_table, pages, npages, page_offset, in pds_vfio_dirty_seq_ack()
419 err = dma_map_sgtable(pdsc_dev, &sg_table, dma_dir, 0); in pds_vfio_dirty_seq_ack()
423 for_each_sgtable_dma_sg(&sg_table, sg, i) { in pds_vfio_dirty_seq_ack()
430 num_sge = sg_table.nents; in pds_vfio_dirty_seq_ack()
443 dma_unmap_sgtable(pdsc_dev, &sg_table, dma_dir, 0); in pds_vfio_dirty_seq_ack()
445 sg_free_table(&sg_table); in pds_vfio_dirty_seq_ack()
/drivers/gpu/drm/radeon/
A Dradeon_prime.h31 struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj);
38 struct sg_table *sg);

Completed in 71 milliseconds

12345678910>>...12