Home
last modified time | relevance | path

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

123456

/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/
Dvideobuf2-rdma-sg.c24 struct sg_table sg_table; member
30 struct sg_table *dma_sgt;
67 struct sg_table *sgt; in vb2_dma_sg_alloc()
85 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_alloc()
104 sgt = &buf->sg_table; in vb2_dma_sg_alloc()
137 struct sg_table *sgt = &buf->sg_table; in vb2_dma_sg_put()
156 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_prepare()
164 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_finish()
174 struct sg_table *sgt; in vb2_dma_sg_get_userptr()
189 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_get_userptr()
[all …]
/device/board/isoftstone/yangfan/kernel/src/driv/media/isp/
Dvideobuf2-rdma-sg.c24 struct sg_table sg_table; member
30 struct sg_table *dma_sgt;
67 struct sg_table *sgt; in vb2_dma_sg_alloc()
85 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_alloc()
104 sgt = &buf->sg_table; in vb2_dma_sg_alloc()
137 struct sg_table *sgt = &buf->sg_table; in vb2_dma_sg_put()
156 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_prepare()
164 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_finish()
174 struct sg_table *sgt; in vb2_dma_sg_get_userptr()
189 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_get_userptr()
[all …]
Drkisp_tb_helper.c30 static struct sg_table *shm_map_dma_buf(struct dma_buf_attachment *attachment, in shm_map_dma_buf()
34 struct sg_table *table; in shm_map_dma_buf()
55 struct sg_table *table, in shm_unmap_dma_buf()
102 struct sg_table *table; in shm_begin_cpu_access()
114 struct sg_table *table; in shm_end_cpu_access()
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/
Dvideobuf2-rdma-sg.c24 struct sg_table sg_table; member
30 struct sg_table *dma_sgt;
68 struct sg_table *sgt; in vb2_dma_sg_alloc()
88 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_alloc()
108 sgt = &buf->sg_table; in vb2_dma_sg_alloc()
141 struct sg_table *sgt = &buf->sg_table; in vb2_dma_sg_put()
160 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_prepare()
168 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_finish()
177 struct sg_table *sgt; in vb2_dma_sg_get_userptr()
194 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_get_userptr()
[all …]
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/heaps/
Dsystem_heap.c35 struct sg_table sg_table; member
45 struct sg_table *table;
65 static struct sg_table *dup_sg_table(struct sg_table *table) in dup_sg_table()
67 struct sg_table *new_table; in dup_sg_table()
96 struct sg_table *table; in system_heap_attach()
103 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()
158 static void system_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, struct sg_table *table, in system_heap_unmap_dma_buf()
224 struct sg_table *table = &buffer->sg_table; in system_heap_mmap()
[all …]
/device/soc/rockchip/common/sdk_linux/include/drm/
Ddrm_prime.h75 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, enum dma_data_direction dir…
76 void drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_d…
83 struct sg_table *drm_prime_pages_to_sg(struct drm_device *dev, struct page **pages, unsigned int nr…
86 unsigned long drm_prime_get_contiguous_size(struct sg_table *sgt);
93 void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg);
95 int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages, dma_addr_t *addrs, …
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
Doal_scatterlist.h29 struct sg_table { struct
74 void __sg_free_table(struct sg_table *table, unsigned int max_ents, sg_free_fn *free_fn) in __sg_free_table()
114 void sg_free_table(struct sg_table *table) in sg_free_table()
144 int __sg_alloc_table(struct sg_table *table, unsigned int nents, unsigned int max_ents, gfp_t gfp_m… in __sg_alloc_table()
152 memset_s(table, sizeof(struct sg_table), 0, sizeof(struct sg_table)); in __sg_alloc_table()
210 int sg_alloc_table(struct sg_table *table, unsigned int nents, gfp_t gfp_mask) in sg_alloc_table()
/device/soc/rockchip/common/sdk_linux/include/linux/
Ddma-buf-cache.h12 …n void dma_buf_cache_unmap_attachment(struct dma_buf_attachment *attach, struct sg_table *sg_table,
17 extern struct sg_table *dma_buf_cache_map_attachment(struct dma_buf_attachment *attach,
Ddma-buf.h154 struct sg_table *(*map_dma_buf)(struct dma_buf_attachment *, enum dma_data_direction);
163 void (*unmap_dma_buf)(struct dma_buf_attachment *, struct sg_table *, enum dma_data_direction);
497 struct sg_table *sgt;
601 struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *, enum dma_data_direction);
602 void dma_buf_unmap_attachment(struct dma_buf_attachment *, struct sg_table *, enum dma_data_directi…
/device/board/isoftstone/yangfan/kernel/src/incl/linux/current/
Ddma-buf-cache.h14 struct sg_table *sg_table,
20 extern struct sg_table *
/device/soc/rockchip/rk3588/kernel/include/linux/
Ddma-buf-cache.h14 struct sg_table *sg_table,
20 extern struct sg_table *
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/drm/
Dsunxi_drm_gem.h44 struct sg_table *sgt;
96 struct sg_table *sunxi_drm_gem_prime_get_sg_table(struct drm_gem_object *obj);
100 struct sg_table *sgt);
/device/soc/rockchip/rk3588/kernel/drivers/gpu/drm/rockchip/
Drockchip_drm_gem.h35 struct sg_table *sgt;
39 struct sg_table *rockchip_gem_prime_get_sg_table(struct drm_gem_object *obj);
43 struct sg_table *sg);
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/
Drockchip_drm_gem.h35 struct sg_table *sgt;
39 struct sg_table *rockchip_gem_prime_get_sg_table(struct drm_gem_object *obj);
41 struct sg_table *sg);
/device/soc/amlogic/a311d/soc/amlogic/ge2d/
Dge2d_dmabuf.c189 struct sg_table sgt;
202 struct sg_table *sgt;
239 struct sg_table *sgt;
256 static struct sg_table *aml_dmabuf_ops_map(struct dma_buf_attachment *db_attach, enum dma_data_dire…
261 struct sg_table *sgt;
291 static void aml_dmabuf_ops_unmap(struct dma_buf_attachment *db_attach, struct sg_table *sgt,
534 struct sg_table *sg = NULL;
627 struct sg_table *sg_table; local
643 sg_table = cfg->sg;
644 page = sg_page(sg_table->sgl);
[all …]
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/common/codec_mm/
Dsecmem.c50 struct sg_table sgt;
63 struct sg_table *sgt; in secmem_dma_attach()
95 struct sg_table *sgt; in secmem_dma_detach()
111 static struct sg_table *secmem_dma_map_dma_buf( in secmem_dma_map_dma_buf()
118 struct sg_table *sgt; in secmem_dma_map_dma_buf()
144 struct sg_table *sgt, in secmem_dma_unmap_dma_buf()
310 struct sg_table *sgt; in secmem_import()
/device/soc/amlogic/a311d/soc/amlogic/media/common/codec_mm/
Dsecmem.c50 struct sg_table sgt;
61 struct sg_table *sgt; in secmem_dma_attach()
92 struct sg_table *sgt; in secmem_dma_detach()
106 static struct sg_table *secmem_dma_map_dma_buf(struct dma_buf_attachment *attachment, enum dma_data… in secmem_dma_map_dma_buf()
111 struct sg_table *sgt; in secmem_dma_map_dma_buf()
134 static void secmem_dma_unmap_dma_buf(struct dma_buf_attachment *attachment, struct sg_table *sgt, in secmem_dma_unmap_dma_buf()
294 struct sg_table *sgt; in secmem_import()
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/cif/
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()
92 struct sg_table *sg = NULL; in rkcif_alloc_page_dummy_buf()
105 sg = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in rkcif_alloc_page_dummy_buf()
133 struct sg_table *sg = buf->mem_priv; in rkcif_free_page_dummy_buf()
/device/board/isoftstone/yangfan/kernel/src/driv/media/cif/
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()
92 struct sg_table *sg = NULL; in rkcif_alloc_page_dummy_buf()
105 sg = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in rkcif_alloc_page_dummy_buf()
133 struct sg_table *sg = buf->mem_priv; in rkcif_free_page_dummy_buf()
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/cif/
Dcommon.c14 struct sg_table *sg_tbl; in rkcif_alloc_buffer()
35 sg_tbl = (struct sg_table *)g_ops->cookie(mem_priv); in rkcif_alloc_buffer()
90 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()
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
Ddrm_prime.c612 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, enum dma_data_direction dir) in drm_gem_map_dma_buf()
615 struct sg_table *sgt; in drm_gem_map_dma_buf()
647 void drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_d… in drm_gem_unmap_dma_buf()
831 struct sg_table *drm_prime_pages_to_sg(struct drm_device *dev, struct page **pages, unsigned int nr… in drm_prime_pages_to_sg()
833 struct sg_table *sg; in drm_prime_pages_to_sg()
837 sg = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in drm_prime_pages_to_sg()
867 unsigned long drm_prime_get_contiguous_size(struct sg_table *sgt) in drm_prime_get_contiguous_size()
934 struct sg_table *sgt; in drm_gem_prime_import_dev()
1020 int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages, dma_addr_t *addrs, … in drm_prime_sg_to_page_addr_arrays()
1058 void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg) in drm_prime_gem_destroy()
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/
Ddma-buf.c871 struct sg_table *sgt; in dma_buf_dynamic_attach()
1001 struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *attach, enum dma_data_direction … in dma_buf_map_attachment()
1003 struct sg_table *sg_table; in dma_buf_map_attachment() local
1038 sg_table = attach->dmabuf->ops->map_dma_buf(attach, direction); in dma_buf_map_attachment()
1039 if (!sg_table) { in dma_buf_map_attachment()
1040 sg_table = ERR_PTR(-ENOMEM); in dma_buf_map_attachment()
1043 …if (IS_ERR(sg_table) && dma_buf_is_dynamic(attach->dmabuf) && !IS_ENABLED(CONFIG_DMABUF_MOVE_NOTIF… in dma_buf_map_attachment()
1047 if (!IS_ERR(sg_table) && attach->dmabuf->ops->cache_sgt_mapping) { in dma_buf_map_attachment()
1048 attach->sgt = sg_table; in dma_buf_map_attachment()
1052 return sg_table; in dma_buf_map_attachment()
[all …]
/device/board/unionman/unionpi_tiger/kernel/drivers/isp/drivers/v4l2_dev/app/v4l2_interface/
Disp-vb2-cmalloc.c218 struct sg_table sgt;
233 struct sg_table *sgt;
270 struct sg_table *sgt;
287 static struct sg_table *vb2_cmalloc_dmabuf_ops_map(
293 struct sg_table *sgt;
328 struct sg_table *sgt, enum dma_data_direction dma_dir)
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/gpu/panfrost/
Dpanfrost_gem.h14 struct sg_table *sgts;
69 struct sg_table *sgt);
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/include/linux/amlogic/
Dmeson_uvm_core.h105 struct sg_table *sgt;
117 struct sg_table *sgt;

123456