Home
last modified time | relevance | path

Searched refs:attachment (Results 1 - 14 of 14) sorted by relevance

/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_memory_dma_buf.c34 * Map DMA buf attachment \a mem into \a session at virtual address \a virt.
52 mem = mem_backend->dma_buf.attachment; in mali_dma_buf_map()
66 ("Mali DMA-buf: map attachment %p, new map_ref = %d\n", mem, mem->map_ref)); in mali_dma_buf_map()
72 mem->sgt = dma_buf_map_attachment(mem->attachment, DMA_BIDIRECTIONAL); in mali_dma_buf_map()
74 MALI_DEBUG_PRINT_ERROR(("Failed to map dma-buf attachment\n")); in mali_dma_buf_map()
129 MALI_DEBUG_ASSERT_POINTER(mem->attachment); in mali_dma_buf_unmap()
137 ("Mali DMA-buf: unmap attachment %p, new map_ref = %d\n", mem, mem->map_ref)); in mali_dma_buf_unmap()
140 dma_buf_unmap_attachment(mem->attachment, mem->sgt, DMA_BIDIRECTIONAL); in mali_dma_buf_unmap()
188 mem = mem_bkend->dma_buf.attachment; in mali_dma_buf_map_job()
237 mem = mem_bkend->dma_buf.attachment; in mali_dma_buf_unmap_job()
[all...]
H A Dmali_memory_secure.c39 secure_mem->attachment = dma_buf_attach(secure_mem->buf, &mali_platform_device->dev); in mali_mem_secure_attach_dma_buf()
40 if (secure_mem->attachment == NULL) { in mali_mem_secure_attach_dma_buf()
41 MALI_DEBUG_PRINT_ERROR(("Failed to get dma buf attachment!\n")); in mali_mem_secure_attach_dma_buf()
45 secure_mem->sgt = dma_buf_map_attachment(secure_mem->attachment, DMA_BIDIRECTIONAL); in mali_mem_secure_attach_dma_buf()
47 MALI_DEBUG_PRINT_ERROR(("Failed to map dma buf attachment\n")); in mali_mem_secure_attach_dma_buf()
56 dma_buf_detach(secure_mem->buf, secure_mem->attachment); in mali_mem_secure_attach_dma_buf()
156 MALI_DEBUG_ASSERT_POINTER(mem->attachment); in mali_mem_secure_release()
162 dma_buf_unmap_attachment(mem->attachment, mem->sgt, DMA_BIDIRECTIONAL); in mali_mem_secure_release()
163 dma_buf_detach(mem->buf, mem->attachment); in mali_mem_secure_release()
H A Dmali_memory_types.h77 struct mali_dma_buf_attachment *attachment; member
179 struct dma_buf_attachment *attachment; member
H A Dmali_memory_dma_buf.h28 struct dma_buf_attachment *attachment; member
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_memory_dma_buf.c33 * Map DMA buf attachment \a mem into \a session at virtual address \a virt.
51 mem = mem_backend->dma_buf.attachment; in mali_dma_buf_map()
64 MALI_DEBUG_PRINT(5, ("Mali DMA-buf: map attachment %p, new map_ref = %d\n", mem, mem->map_ref)); in mali_dma_buf_map()
71 mem->sgt = dma_buf_map_attachment(mem->attachment, DMA_BIDIRECTIONAL); in mali_dma_buf_map()
73 MALI_DEBUG_PRINT_ERROR(("Failed to map dma-buf attachment\n")); in mali_dma_buf_map()
127 MALI_DEBUG_ASSERT_POINTER(mem->attachment); in mali_dma_buf_unmap()
134 MALI_DEBUG_PRINT(5, ("Mali DMA-buf: unmap attachment %p, new map_ref = %d\n", mem, mem->map_ref)); in mali_dma_buf_unmap()
137 dma_buf_unmap_attachment(mem->attachment, mem->sgt, DMA_BIDIRECTIONAL); in mali_dma_buf_unmap()
186 mem = mem_bkend->dma_buf.attachment; in mali_dma_buf_map_job()
235 mem = mem_bkend->dma_buf.attachment; in mali_dma_buf_unmap_job()
[all...]
H A Dmali_memory_secure.c38 secure_mem->attachment = dma_buf_attach(secure_mem->buf, &mali_platform_device->dev); in mali_mem_secure_attach_dma_buf()
39 if (NULL == secure_mem->attachment) { in mali_mem_secure_attach_dma_buf()
40 MALI_DEBUG_PRINT_ERROR(("Failed to get dma buf attachment!\n")); in mali_mem_secure_attach_dma_buf()
44 secure_mem->sgt = dma_buf_map_attachment(secure_mem->attachment, DMA_BIDIRECTIONAL); in mali_mem_secure_attach_dma_buf()
46 MALI_DEBUG_PRINT_ERROR(("Failed to map dma buf attachment\n")); in mali_mem_secure_attach_dma_buf()
55 dma_buf_detach(secure_mem->buf, secure_mem->attachment); in mali_mem_secure_attach_dma_buf()
154 MALI_DEBUG_ASSERT_POINTER(mem->attachment); in mali_mem_secure_release()
160 dma_buf_unmap_attachment(mem->attachment, mem->sgt, DMA_BIDIRECTIONAL); in mali_mem_secure_release()
161 dma_buf_detach(mem->buf, mem->attachment); in mali_mem_secure_release()
H A Dmali_memory_types.h76 struct mali_dma_buf_attachment *attachment; member
177 struct dma_buf_attachment *attachment; member
H A Dmali_memory_dma_buf.h27 struct dma_buf_attachment *attachment; member
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/heaps/
H A Dsystem_heap.c92 static int system_heap_attach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) in system_heap_attach() argument
110 a->dev = attachment->dev; in system_heap_attach()
114 attachment->priv = a; in system_heap_attach()
123 static void system_heap_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) in system_heap_detach() argument
126 struct dma_heap_attachment *a = attachment->priv; in system_heap_detach()
137 static struct sg_table *system_heap_map_dma_buf(struct dma_buf_attachment *attachment, in system_heap_map_dma_buf() argument
140 struct dma_heap_attachment *a = attachment->priv; in system_heap_map_dma_buf()
149 ret = dma_map_sgtable(attachment->dev, table, direction, attr); 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() argument
161 struct dma_heap_attachment *a = attachment in system_heap_unmap_dma_buf()
[all...]
H A Dcma_heap.c49 static int cma_heap_attach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) in cma_heap_attach() argument
67 a->dev = attachment->dev; in cma_heap_attach()
71 attachment->priv = a; in cma_heap_attach()
80 static void cma_heap_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) in cma_heap_detach() argument
83 struct dma_heap_attachment *a = attachment->priv; in cma_heap_detach()
93 static struct sg_table *cma_heap_map_dma_buf(struct dma_buf_attachment *attachment, enum dma_data_direction direction) in cma_heap_map_dma_buf() argument
95 struct dma_heap_attachment *a = attachment->priv; in cma_heap_map_dma_buf()
99 ret = dma_map_sgtable(attachment->dev, table, direction, 0); in cma_heap_map_dma_buf()
107 static void cma_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, struct sg_table *table, in cma_heap_unmap_dma_buf() argument
110 struct dma_heap_attachment *a = attachment in cma_heap_unmap_dma_buf()
[all...]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/
H A Dmali_kbase_mem_linux.c70 * the attachment. This would result in a kernel panic as ion populates the
71 * dma_address when the attachment is mapped and kernel derives the physical
75 * with an importer having an unmapped attachment comes at the time of 2nd
83 * Kbase's attachment to dma-buf that was previously mapped.
1118 struct dma_buf_attachment *attachment = in kbase_mem_do_sync_imported() local
1122 dma_sync_sg_for_device(attachment->dev, sgt->sgl, sgt->nents, in kbase_mem_do_sync_imported()
1147 struct dma_buf_attachment *attachment = in kbase_mem_do_sync_imported() local
1151 dma_sync_sg_for_cpu(attachment->dev, sgt->sgl, sgt->nents, dir); in kbase_mem_do_sync_imported()
1174 * kbase_mem_umm_unmap_attachment - Unmap dma-buf attachment
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_mem_linux.c68 * the attachment. This would result in a kernel panic as ion populates the
69 * dma_address when the attachment is mapped and kernel derives the physical
73 * with an importer having an unmapped attachment comes at the time of 2nd
81 * Kbase's attachment to dma-buf that was previously mapped.
1068 struct dma_buf_attachment *attachment = reg->gpu_alloc->imported.umm.dma_attachment; in kbase_mem_do_sync_imported() local
1071 dma_sync_sg_for_device(attachment->dev, sgt->sgl, in kbase_mem_do_sync_imported()
1097 struct dma_buf_attachment *attachment = reg->gpu_alloc->imported.umm.dma_attachment; in kbase_mem_do_sync_imported() local
1100 dma_sync_sg_for_cpu(attachment->dev, sgt->sgl, in kbase_mem_do_sync_imported()
1123 * kbase_mem_umm_unmap_attachment - Unmap dma-buf attachment
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/
H A Dmali_scheduler.c1030 tmp_reservation_object = mem_backend->dma_buf.attachment->buf->resv; in mali_scheduler_submit_pp_job()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/
H A Dmali_scheduler.c974 tmp_reservation_object = mem_backend->dma_buf.attachment->buf->resv; in mali_scheduler_submit_pp_job()

Completed in 16 milliseconds