Home
last modified time | relevance | path

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

/external/linux-kselftest/tools/testing/selftests/android/ion/
Dionmap_test.c61 int import_vgem_fd(int vgem_fd, int dma_buf_fd, uint32_t *handle) in import_vgem_fd() argument
70 ret = ioctl(vgem_fd, DRM_IOCTL_PRIME_FD_TO_HANDLE, &import_handle); in import_vgem_fd()
76 void close_handle(int vgem_fd, uint32_t handle) in close_handle() argument
81 ioctl(vgem_fd, DRM_IOCTL_GEM_CLOSE, &close); in close_handle()
86 int ret, vgem_fd; in main() local
101 vgem_fd = open_vgem(); in main()
102 if (vgem_fd < 0) { in main()
103 ret = vgem_fd; in main()
108 ret = import_vgem_fd(vgem_fd, info.buffd, &handle); in main()
127 close_handle(vgem_fd, handle); in main()
[all …]
/external/autotest/client/site_tests/graphics_Gbm/src/
Dgbmtest.c585 int vgem_fd = drm_open_vgem(); in test_import_vgem() local
593 if (vgem_fd <= 0) in test_import_vgem()
596 CHECK(create_vgem_bo(vgem_fd, size, &prime_handle.handle) == 0); in test_import_vgem()
598 CHECK(drmIoctl(vgem_fd, DRM_IOCTL_PRIME_HANDLE_TO_FD, &prime_handle) == 0); in test_import_vgem()
611 close(vgem_fd); in test_import_vgem()