| /linux/drivers/target/ |
| H A D | target_core_rd.c | 63 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 …]
|
| /linux/drivers/hwtracing/coresight/ |
| H A D | coresight-tmc-etr.c | 114 struct tmc_sg_table *sg_table; member 243 tmc_sg_get_data_page_offset(struct tmc_sg_table *sg_table, dma_addr_t addr) in tmc_sg_get_data_page_offset() argument 245 return tmc_pages_get_offset(&sg_table->data_pages, addr); in tmc_sg_get_data_page_offset() 248 static void tmc_free_table_pages(struct tmc_sg_table *sg_table) in tmc_free_table_pages() argument 250 if (sg_table->table_vaddr) in tmc_free_table_pages() 251 vunmap(sg_table->table_vaddr); in tmc_free_table_pages() 252 tmc_pages_free(&sg_table->table_pages, sg_table->dev, DMA_TO_DEVICE); in tmc_free_table_pages() 255 static void tmc_free_data_pages(struct tmc_sg_table *sg_table) in tmc_free_data_pages() argument 257 if (sg_table->data_vaddr) in tmc_free_data_pages() 258 vunmap(sg_table->data_vaddr); in tmc_free_data_pages() [all …]
|
| H A D | coresight-tmc.h | 382 void tmc_free_sg_table(struct tmc_sg_table *sg_table); 383 void tmc_sg_table_sync_table(struct tmc_sg_table *sg_table); 386 ssize_t tmc_sg_table_get_data(struct tmc_sg_table *sg_table, 390 tmc_sg_table_buf_size(struct tmc_sg_table *sg_table) in tmc_sg_table_buf_size() argument 392 return (unsigned long)sg_table->data_pages.nr_pages << PAGE_SHIFT; in tmc_sg_table_buf_size()
|
| /linux/drivers/dma-buf/heaps/ |
| H A D | system_heap.c | 29 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() 84 ret = dup_sg_table(&buffer->sg_table, &a->table); in system_heap_attach() 117 static struct sg_table *system_heap_map_dma_buf(struct dma_buf_attachment *attachment, in system_heap_map_dma_buf() 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() 223 struct sg_table *table = &buffer->sg_table; in system_heap_do_vmap() 291 struct sg_table *table; in system_heap_dma_buf_release() [all …]
|
| /linux/drivers/gpu/drm/renesas/rcar-du/ |
| H A D | rcar_du_vsp.h | 18 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/ |
| H A D | dma-buf.h | 171 struct sg_table * (*map_dma_buf)(struct dma_buf_attachment *, 182 struct sg_table *, 599 struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *, 601 void dma_buf_unmap_attachment(struct dma_buf_attachment *, struct sg_table *, 608 struct sg_table * 612 struct sg_table *sg_table,
|
| H A D | intel_th.h | 43 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 D | scatterlist.h | 39 struct sg_table { struct 46 struct sg_table sgt; /* The scatter list table */ argument 456 void __sg_free_table(struct sg_table *, unsigned int, unsigned int, 458 void sg_free_table(struct sg_table *); 460 int __sg_alloc_table(struct sg_table *, unsigned int, unsigned int, 462 int sg_alloc_table(struct sg_table *, unsigned int, gfp_t); 468 int sg_alloc_table_from_pages_segment(struct sg_table *sgt, struct page **pages, 493 static inline int sg_alloc_table_from_pages(struct sg_table *sgt, in sg_alloc_table_from_pages() 555 void sg_free_table_chained(struct sg_table *table, 557 int sg_alloc_table_chained(struct sg_table *table, int nents,
|
| H A D | dma-mapping.h | 150 int dma_map_sgtable(struct device *dev, struct sg_table *sgt, 164 int dma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt, 179 struct sg_table *dma_alloc_noncontiguous(struct device *dev, size_t size, 182 struct sg_table *sgt, enum dma_data_direction dir); 184 struct sg_table *sgt); 187 size_t size, struct sg_table *sgt); 219 static inline int dma_map_sgtable(struct device *dev, struct sg_table *sgt, in dma_map_sgtable() 257 struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, in dma_get_sgtable_attrs() 304 static inline struct sg_table *dma_alloc_noncontiguous(struct device *dev, in dma_alloc_noncontiguous() 311 struct sg_table *sgt, enum dma_data_direction dir) in dma_free_noncontiguous() [all …]
|
| H A D | dma-buf-mapping.h | 10 struct sg_table *dma_buf_phys_vec_to_sgt(struct dma_buf_attachment *attach, 15 void dma_buf_free_sgt(struct dma_buf_attachment *attach, struct sg_table *sgt,
|
| /linux/drivers/spi/ |
| H A D | internals.h | 24 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/include/drm/ |
| H A D | drm_gem_dma_helper.h | 24 struct sg_table *sgt; 40 struct sg_table *drm_gem_dma_get_sg_table(struct drm_gem_dma_object *dma_obj); 92 static inline struct sg_table *drm_gem_dma_object_get_sg_table(struct drm_gem_object *obj) in drm_gem_dma_object_get_sg_table() 153 struct sg_table *sgt); 228 struct sg_table *sgt);
|
| /linux/rust/kernel/ |
| H A D | scatterlist.rs | 102 pub struct Borrowed(Opaque<bindings::sg_table>); 144 pub unsafe fn from_raw<'a>(ptr: *mut bindings::sg_table) -> &'a Self { in from_raw() 151 fn as_raw(&self) -> *mut bindings::sg_table { in as_raw() argument 184 sgt: NonNull<bindings::sg_table>, 203 sgt: NonNull<bindings::sg_table>, in new() argument 246 struct RawSGTable(Opaque<bindings::sg_table>); 292 fn as_raw(&self) -> *mut bindings::sg_table { in as_raw() argument
|
| /linux/drivers/gpu/drm/xen/ |
| H A D | xen_drm_front_gem.h | 18 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);
|
| /linux/drivers/hwtracing/intel_th/ |
| H A D | msu-sink.c | 18 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()
|
| /linux/include/linux/iio/ |
| H A D | buffer-dma.h | 22 struct sg_table; 78 struct sg_table *sg_table; member 173 struct sg_table *sgt,
|
| /linux/drivers/gpu/drm/mediatek/ |
| H A D | mtk_gem.h | 31 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/i915/gt/ |
| H A D | intel_ggtt_fencing.h | 18 struct sg_table; 50 struct sg_table *pages); 52 struct sg_table *pages);
|
| /linux/drivers/gpu/drm/rockchip/ |
| H A D | rockchip_drm_gem.h | 25 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/omapdrm/ |
| H A D | omap_gem_dmabuf.c | 20 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()
|
| H A D | omap_gem.h | 48 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);
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_gem.h | 46 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);
|
| /linux/include/media/ |
| H A D | videobuf2-dma-sg.h | 18 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/drivers/media/common/videobuf2/ |
| H A D | videobuf2-vmalloc.c | 208 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()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_prime.h | 31 struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj); 38 struct sg_table *sg);
|