Home
last modified time | relevance | path

Searched refs:sg_table (Results 1 - 25 of 81) sorted by relevance

1234

/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/
H A Dvideobuf2-rdma-sg.c24 struct sg_table sg_table; member
26 * This will point to sg_table when used with the MMAP or USERPTR
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 *sg in vb2_dma_sg_prepare()
[all...]
H A Dcommon.c124 struct sg_table *sg_tbl; in rkisp_alloc_buffer()
145 sg_tbl = (struct sg_table *)g_ops->cookie(mem_priv); in rkisp_alloc_buffer()
257 struct sg_table *sg = NULL; in rkisp_alloc_page_dummy_buf()
273 sg = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in rkisp_alloc_page_dummy_buf()
302 struct sg_table *sg = dummy_buf->mem_priv; in rkisp_free_page_dummy_buf()
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/
H A Dvideobuf2-rdma-sg.c24 struct sg_table sg_table; member
26 * This will point to sg_table when used with the MMAP or USERPTR
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 *sg in vb2_dma_sg_prepare()
[all...]
H A Dcommon.c122 struct sg_table *sg_tbl; in rkisp_alloc_buffer()
143 sg_tbl = (struct sg_table *)g_ops->cookie(mem_priv); in rkisp_alloc_buffer()
255 struct sg_table *sg = NULL; in rkisp_alloc_page_dummy_buf()
268 sg = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in rkisp_alloc_page_dummy_buf()
297 struct sg_table *sg = dummy_buf->mem_priv; in rkisp_free_page_dummy_buf()
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/heaps/
H A 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 *tabl in system_heap_map_dma_buf()
[all...]
/device/soc/rockchip/common/sdk_linux/include/drm/
H A 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_direction dir);
83 struct sg_table *drm_prime_pages_to_sg(struct drm_device *dev, struct page **pages, unsigned int nr_pages);
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, int max_pages);
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
H A 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_mask, 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/
H A Ddma-buf-cache.h12 extern 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,
H A Ddma-buf.h146 * A &sg_table scatter list of or the backing storage of the DMA buffer,
154 struct sg_table *(*map_dma_buf)(struct dma_buf_attachment *, enum dma_data_direction);
159 * release the &sg_table allocated in @map_dma_buf, and it is mandatory.
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_direction);
H A Ddma-mapping.h138 int dma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, size_t size,
214 static inline int dma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, in dma_get_sgtable_attrs()
299 * @sgt: The sg_table object describing the buffer
303 * Maps a buffer described by a scatterlist stored in the given sg_table
312 static inline int dma_map_sgtable(struct device *dev, struct sg_table *sgt, enum dma_data_direction dir, in dma_map_sgtable()
328 * @sgt: The sg_table object describing the buffer
332 * Unmaps a buffer described by a scatterlist stored in the given sg_table
336 static inline void dma_unmap_sgtable(struct device *dev, struct sg_table *sgt, enum dma_data_direction dir, in dma_unmap_sgtable()
345 * @sgt: The sg_table object describing the buffer
354 static inline void dma_sync_sgtable_for_cpu(struct device *dev, struct sg_table *sg
[all...]
/device/soc/rockchip/rk3588/kernel/include/linux/
H A Ddma-buf-cache.h14 struct sg_table *sg_table,
20 extern struct sg_table *
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/
H A 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);
H A Drockchip_drm_gem.c258 struct sg_table *sgt; in rockchip_gem_alloc_dma()
342 struct sg_table *sgt; in rockchip_gem_alloc_secure()
656 static void rockchip_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg) in rockchip_gem_destroy()
767 * Allocate a sg_table for this GEM object.
768 * Note: Both the table's contents, and the sg_table itself must be freed by
770 * Returns a pointer to the newly allocated sg_table, or an ERR_PTR() error.
772 struct sg_table *rockchip_gem_prime_get_sg_table(struct drm_gem_object *obj) in rockchip_gem_prime_get_sg_table()
776 struct sg_table *sgt; in rockchip_gem_prime_get_sg_table()
798 static int rockchip_gem_iommu_map_sg(struct drm_device *drm, struct dma_buf_attachment *attach, struct sg_table *sg, in rockchip_gem_iommu_map_sg()
805 static int rockchip_gem_dma_map_sg(struct drm_device *drm, struct dma_buf_attachment *attach, struct sg_table *s
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/gpu/drm/rockchip/
H A 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/vendor/drivers/media/platform/rockchip/cif/
H A 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/rk3588/kernel/drivers/media/platform/rockchip/cif/
H A 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/sdk_linux/drivers/gpu/drm/
H A Ddrm_prime.c609 * Returns:sg_table containing the scatterlist to be returned; returns ERR_PTR
612 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_direction dir) 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_pages) 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()
859 * @sgt: sg_table describing the buffer to check
862 * of the the buffer described by the provided sg_table.
867 unsigned long drm_prime_get_contiguous_size(struct sg_table *sg
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/
H A Ddma-buf.c871 struct sg_table *sgt; in dma_buf_dynamic_attach()
993 * Returns sg_table containing the scatterlist to be returned; returns ERR_PTR
1001 struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *attach, enum dma_data_direction 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_NOTIFY)) { in dma_buf_map_attachment()
1047 if (!IS_ERR(sg_table) in dma_buf_map_attachment()
1066 dma_buf_unmap_attachment(struct dma_buf_attachment *attach, struct sg_table *sg_table, enum dma_data_direction direction) dma_buf_unmap_attachment() argument
[all...]
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/ispp/
H A Dcommon.c72 struct sg_table *sg_tbl; in rkispp_allow_buffer()
93 sg_tbl = (struct sg_table *)g_ops->cookie(mem_priv); in rkispp_allow_buffer()
298 struct sg_table *sg_tbl; in rkispp_init_pool()
327 sg_tbl = (struct sg_table *)g_ops->cookie(mem); in rkispp_init_pool()
427 struct sg_table *sg = NULL; in rkispp_alloc_page_dummy_buf()
443 sg = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in rkispp_alloc_page_dummy_buf()
471 struct sg_table *sg = dummy_buf->mem_priv; in rkispp_free_page_dummy_buf()
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/ispp/
H A Dcommon.c70 struct sg_table *sg_tbl; in rkispp_allow_buffer()
91 sg_tbl = (struct sg_table *)g_ops->cookie(mem_priv); in rkispp_allow_buffer()
291 struct sg_table *sg_tbl; in rkispp_init_pool()
319 sg_tbl = (struct sg_table *)g_ops->cookie(mem); in rkispp_init_pool()
416 struct sg_table *sg = NULL; in rkispp_alloc_page_dummy_buf()
429 sg = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in rkispp_alloc_page_dummy_buf()
458 struct sg_table *sg = dummy_buf->mem_priv; in rkispp_free_page_dummy_buf()
/device/soc/rockchip/common/vendor/drivers/video/rockchip/mpp/
H A Dmpp_iommu.h26 struct sg_table *sgt;
27 struct sg_table *copy_sgt;
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/mpp/
H A Dmpp_iommu.h26 struct sg_table *sgt;
27 struct sg_table *copy_sgt;
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/common/
H A Dump_kernel_types.h52 struct sg_table *sgt;
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_memory_dma_buf.h29 struct sg_table *sgt;
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/ump/common/
H A Dump_kernel_types.h53 struct sg_table *sgt;

Completed in 15 milliseconds

1234