Searched refs:dma_buf_fd (Results 1 – 9 of 9) sorted by relevance
/third_party/mesa3d/src/vulkan/wsi/ |
D | wsi_common_drm.c | 57 wsi_dma_buf_export_sync_file(int dma_buf_fd, int *sync_file_fd) in wsi_dma_buf_export_sync_file() argument 68 int ret = drmIoctl(dma_buf_fd, DMA_BUF_IOCTL_EXPORT_SYNC_FILE_WSI, &export); in wsi_dma_buf_export_sync_file() 84 wsi_dma_buf_import_sync_file(int dma_buf_fd, int sync_file_fd) in wsi_dma_buf_import_sync_file() argument 95 int ret = drmIoctl(dma_buf_fd, DMA_BUF_IOCTL_IMPORT_SYNC_FILE_WSI, &import); in wsi_dma_buf_import_sync_file() 119 result = wsi_dma_buf_export_sync_file(image->dma_buf_fd, &sync_file_fd); in prepare_signal_dma_buf_from_semaphore() 123 result = wsi_dma_buf_import_sync_file(image->dma_buf_fd, sync_file_fd); in prepare_signal_dma_buf_from_semaphore() 181 result = wsi_dma_buf_import_sync_file(image->dma_buf_fd, sync_file_fd); in wsi_signal_dma_buf_from_semaphore() 217 result = wsi_dma_buf_export_sync_file(image->dma_buf_fd, &sync_file_fd); in wsi_create_sync_for_dma_buf_wait() 508 &image->dma_buf_fd); in wsi_create_native_image_mem() 584 &image->dma_buf_fd); in wsi_create_prime_image_mem()
|
D | wsi_common_private.h | 95 int dma_buf_fd; member
|
D | wsi_common.c | 535 image->dma_buf_fd = -1; in wsi_create_image() 572 if (image->dma_buf_fd >= 0) in wsi_destroy_image() 573 close(image->dma_buf_fd); in wsi_destroy_image()
|
D | wsi_common_x11.c | 1690 fds[i] = os_dupfd_cloexec(image->base.dma_buf_fd); in x11_image_init() 1724 int fd = os_dupfd_cloexec(image->base.dma_buf_fd); in x11_image_init()
|
D | wsi_common_wayland.c | 1180 image->base.dma_buf_fd, in wsi_wl_image_init()
|
D | wsi_common_display.c | 1107 int ret = drmPrimeFDToHandle(wsi->fd, image->base.dma_buf_fd, in wsi_display_image_init()
|
/third_party/mesa3d/src/virtio/vulkan/ |
D | vn_android.c | 581 int dma_buf_fd = -1; in vn_android_image_from_anb() local 586 dma_buf_fd = vn_android_gralloc_get_dma_buf_fd(anb_info->handle); in vn_android_image_from_anb() 587 if (dma_buf_fd < 0) { in vn_android_image_from_anb() 625 result = vn_get_memory_dma_buf_properties(dev, dma_buf_fd, &alloc_size, in vn_android_image_from_anb() 654 dup_fd = os_dupfd_cloexec(dma_buf_fd); in vn_android_image_from_anb() 1000 int dma_buf_fd = -1; in vn_GetAndroidHardwareBufferPropertiesANDROID() local 1014 dma_buf_fd = vn_android_gralloc_get_dma_buf_fd( in vn_GetAndroidHardwareBufferPropertiesANDROID() 1016 if (dma_buf_fd < 0) in vn_GetAndroidHardwareBufferPropertiesANDROID() 1019 result = vn_get_memory_dma_buf_properties(dev, dma_buf_fd, &alloc_size, in vn_GetAndroidHardwareBufferPropertiesANDROID() 1143 int dma_buf_fd = -1; in vn_android_device_import_ahb() local [all …]
|
/third_party/libdrm/tests/amdgpu/ |
D | hotunplug_tests.c | 307 uint32_t dma_buf_fd; in amdgpu_hotunplug_with_exported_bo() local 324 r = amdgpu_bo_export(bo_handle, amdgpu_bo_handle_type_dma_buf_fd, &dma_buf_fd); in amdgpu_hotunplug_with_exported_bo() 327 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf_fd, 0); in amdgpu_hotunplug_with_exported_bo() 341 close (dma_buf_fd); in amdgpu_hotunplug_with_exported_bo()
|
D | cp_dma_tests.c | 332 int dma_buf_fd; in amdgpu_cp_dma_p2p() local 351 amdgpu_bo_handle_type_dma_buf_fd, (uint32_t*)&dma_buf_fd); in amdgpu_cp_dma_p2p() 357 dma_buf_fd_dup = dup(dma_buf_fd); in amdgpu_cp_dma_p2p() 358 r = close(dma_buf_fd); in amdgpu_cp_dma_p2p()
|