Home
last modified time | relevance | path

Searched refs:import_handle (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/tools/testing/selftests/android/ion/
Dionmap_test.c63 struct drm_prime_handle import_handle = { 0 }; in import_vgem_fd() local
66 import_handle.fd = dma_buf_fd; in import_vgem_fd()
67 import_handle.flags = 0; in import_vgem_fd()
68 import_handle.handle = 0; in import_vgem_fd()
70 ret = ioctl(vgem_fd, DRM_IOCTL_PRIME_FD_TO_HANDLE, &import_handle); in import_vgem_fd()
72 *handle = import_handle.handle; in import_vgem_fd()
/Linux-v5.10/tools/testing/selftests/dmabuf-heaps/
Ddmabuf-heap.c66 struct drm_prime_handle import_handle = { in import_vgem_fd() local
73 ret = ioctl(vgem_fd, DRM_IOCTL_PRIME_FD_TO_HANDLE, &import_handle); in import_vgem_fd()
75 *handle = import_handle.handle; in import_vgem_fd()