Home
last modified time | relevance | path

Searched refs:dmabuf_fd (Results 1 – 12 of 12) sorted by relevance

/OK3568_Linux_fs/kernel/tools/testing/selftests/dmabuf-heaps/
H A Ddmabuf-heap.c106 unsigned int heap_flags, int *dmabuf_fd) in dmabuf_heap_alloc_fdflags() argument
116 if (!dmabuf_fd) in dmabuf_heap_alloc_fdflags()
122 *dmabuf_fd = (int)data.fd; in dmabuf_heap_alloc_fdflags()
127 int *dmabuf_fd) in dmabuf_heap_alloc() argument
130 dmabuf_fd); in dmabuf_heap_alloc()
149 int heap_fd = -1, dmabuf_fd = -1, importer_fd = -1; in test_alloc_and_import() local
161 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_and_import()
172 dmabuf_fd, in test_alloc_and_import()
181 dmabuf_sync(dmabuf_fd, DMA_BUF_SYNC_START); in test_alloc_and_import()
184 dmabuf_sync(dmabuf_fd, DMA_BUF_SYNC_END); in test_alloc_and_import()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/
H A Drockchip_drm_direct_show.c86 int dmabuf_fd; in rockchip_drm_direct_show_alloc_buffer() local
139 dmabuf_fd = dma_buf_fd(dmabuf, 0); in rockchip_drm_direct_show_alloc_buffer()
140 if (dmabuf_fd < 0) { in rockchip_drm_direct_show_alloc_buffer()
141 DRM_DS_ERR("failed dma_buf_fd, ret %d\n", dmabuf_fd); in rockchip_drm_direct_show_alloc_buffer()
144 buffer->dmabuf_fd = dmabuf_fd; in rockchip_drm_direct_show_alloc_buffer()
146 …DRM_DS_DBG("alloc buffer: 0x%p, dma buf fd:%d, args.pitch:%d\n", buffer->rk_gem_obj, dmabuf_fd, ar… in rockchip_drm_direct_show_alloc_buffer()
H A Drockchip_drm_direct_show.h36 int dmabuf_fd; /* export dmabuf_fd used by other module */ member
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gvt/
H A Ddmabuf.c531 int dmabuf_fd; in intel_vgpu_get_dmabuf() local
564 dmabuf_fd = ret; in intel_vgpu_get_dmabuf()
579 dmabuf_fd, in intel_vgpu_get_dmabuf()
585 return dmabuf_fd; in intel_vgpu_get_dmabuf()
H A Dkvmgt.c1611 __s32 dmabuf_fd; in intel_vgpu_ioctl() local
1616 dmabuf_fd = intel_gvt_ops->vgpu_get_dmabuf(vgpu, dmabuf_id); in intel_vgpu_ioctl()
1617 return dmabuf_fd; in intel_vgpu_ioctl()
/OK3568_Linux_fs/external/mpp/osal/allocator/
H A Dallocator_dma_heap.c91 static int dma_heap_alloc(int fd, size_t len, RK_S32 *dmabuf_fd, RK_U32 flags) in dma_heap_alloc() argument
113 *dmabuf_fd = data.fd; in dma_heap_alloc()
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkisp_demo/demo/
H A Drkdrm_display.h55 int dmabuf_fd; member
H A Drkisp_demo.cpp80 int dmabuf_fd; member
149 &buf->dmabuf_fd); in alloc_drm_buffer()
169 close(buf->dmabuf_fd); in free_drm_buffer()
190 printf("xint fd:%d size:%d\n", g_drm_buf_xint.dmabuf_fd, g_drm_buf_xint.size); in init_ispfec_bufs()
195 printf("xfra fd:%d size:%d\n", g_drm_buf_xfra.dmabuf_fd, g_drm_buf_xfra.size); in init_ispfec_bufs()
200 printf("yint fd:%d size:%d\n", g_drm_buf_yint.dmabuf_fd, g_drm_buf_yint.size); in init_ispfec_bufs()
205 printf("yfra fd:%d size:%d\n", g_drm_buf_yfra.dmabuf_fd, g_drm_buf_yfra.size); in init_ispfec_bufs()
210 printf("out pic fd:%d size:%d\n", g_drm_buf_pic_out.dmabuf_fd, g_drm_buf_pic_out.size); in init_ispfec_bufs()
212 cfg->mesh_xint.dmaFd = g_drm_buf_xint.dmabuf_fd; in init_ispfec_bufs()
216 cfg->mesh_xfra.dmaFd = g_drm_buf_xfra.dmabuf_fd; in init_ispfec_bufs()
[all …]
H A Drkdrm_display.c211 ret = drmPrimeHandleToFD(fd, alloc_arg.handle, 0, &buffer->dmabuf_fd); in drmGetBuffer()
251 close(buffer->dmabuf_fd); in drmPutBuffer()
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dkfd_ioctl.h439 __u32 dmabuf_fd; /* to KFD */ member
446 __u32 dmabuf_fd; /* to KFD */ member
/OK3568_Linux_fs/kernel/drivers/video/rockchip/vehicle/
H A Dvehicle_flinger.c237 buffer->handle = create_buffer->dmabuf_fd; in rk_flinger_alloc_buffer()
239 buffer->fd = create_buffer->dmabuf_fd; in rk_flinger_alloc_buffer()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_chardev.c1667 r = amdgpu_amdkfd_get_dmabuf_info(dev->kgd, args->dmabuf_fd, in kfd_ioctl_get_dmabuf_info()
1713 dmabuf = dma_buf_get(args->dmabuf_fd); in kfd_ioctl_import_dmabuf()