/external/igt-gpu-tools/tests/ |
D | prime_mmap.c | 78 int dma_buf_fd; in test_correct() local 85 dma_buf_fd = prime_handle_to_fd(fd, handle); in test_correct() 90 ptr2 = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_correct() 100 close(dma_buf_fd); in test_correct() 107 int dma_buf_fd; in test_map_unmap() local 114 dma_buf_fd = prime_handle_to_fd(fd, handle); in test_map_unmap() 117 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_map_unmap() 123 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_map_unmap() 128 close(dma_buf_fd); in test_map_unmap() 136 int dma_buf_fd; in test_reprime() local [all …]
|
D | prime_self_import.c | 116 int dma_buf_fd; in test_with_two_bos() local 126 dma_buf_fd = prime_handle_to_fd(fd1, handle1); in test_with_two_bos() 127 handle_import = prime_fd_to_handle(fd2, dma_buf_fd); in test_with_two_bos() 129 close(dma_buf_fd); in test_with_two_bos() 132 dma_buf_fd = prime_handle_to_fd(fd1, handle2); in test_with_two_bos() 133 handle_import = prime_fd_to_handle(fd2, dma_buf_fd); in test_with_two_bos() 137 close(dma_buf_fd); in test_with_two_bos() 176 int dma_buf_fd; in test_with_one_bo() local 183 dma_buf_fd = prime_handle_to_fd(fd1, handle); in test_with_one_bo() 184 handle_import1 = prime_fd_to_handle(fd2, dma_buf_fd); in test_with_one_bo() [all …]
|
D | prime_mmap_coherency.c | 55 int dma_buf_fd, i; in test_read_flush() local 68 dma_buf_fd = prime_handle_to_fd_for_mmap(fd, bo_1->handle); in test_read_flush() 79 MAP_SHARED, dma_buf_fd, 0); in test_read_flush() 82 prime_sync_start(dma_buf_fd, false); in test_read_flush() 85 prime_sync_end(dma_buf_fd, false); in test_read_flush() 95 prime_sync_start(dma_buf_fd, false); in test_read_flush() 99 prime_sync_end(dma_buf_fd, false); in test_read_flush() 104 close(dma_buf_fd); in test_read_flush() 122 int dma_buf_fd, dma_buf2_fd, i; in test_write_flush() local 135 dma_buf_fd = prime_handle_to_fd_for_mmap(fd, bo_1->handle); in test_write_flush() [all …]
|
D | kms_mmap_write_crc.c | 58 int dma_buf_fd; variable 64 dma_buf_fd = prime_handle_to_fd_for_mmap(drm_fd, fb->gem_handle); in dmabuf_mmap_framebuffer() 65 igt_skip_on(dma_buf_fd == -1 && errno == EINVAL); in dmabuf_mmap_framebuffer() 67 ptr = mmap(NULL, fb->size, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf_fd, 0); in dmabuf_mmap_framebuffer() 113 prime_sync_start(dma_buf_fd, true); in test() 145 prime_sync_start(dma_buf_fd, true); in test() 157 prime_sync_end(dma_buf_fd, true); in test()
|
D | prime_mmap_kms.c | 222 int dma_buf_fd; in check_for_dma_buf_mmap() local 228 dma_buf_fd = prime_handle_to_fd(fd, handle); in check_for_dma_buf_mmap() 229 ptr = mmap(NULL, 4096, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in check_for_dma_buf_mmap() 234 close(dma_buf_fd); in check_for_dma_buf_mmap()
|
/external/igt-gpu-tools/lib/ |
D | ioctl_wrappers.h | 172 uint32_t prime_fd_to_handle(int fd, int dma_buf_fd); 173 off_t prime_get_size(int dma_buf_fd); 174 void prime_sync_start(int dma_buf_fd, bool write); 175 void prime_sync_end(int dma_buf_fd, bool write);
|
D | ioctl_wrappers.c | 1359 uint32_t prime_fd_to_handle(int fd, int dma_buf_fd) in prime_fd_to_handle() argument 1364 args.fd = dma_buf_fd; in prime_fd_to_handle() 1383 off_t prime_get_size(int dma_buf_fd) in prime_get_size() argument 1387 ret = lseek(dma_buf_fd, 0, SEEK_END); in prime_get_size() 1402 void prime_sync_start(int dma_buf_fd, bool write) in prime_sync_start() argument 1411 do_ioctl(dma_buf_fd, LOCAL_DMA_BUF_IOCTL_SYNC, &sync_start); in prime_sync_start() 1421 void prime_sync_end(int dma_buf_fd, bool write) in prime_sync_end() argument 1430 do_ioctl(dma_buf_fd, LOCAL_DMA_BUF_IOCTL_SYNC, &sync_end); in prime_sync_end()
|
/external/linux-kselftest/tools/testing/selftests/android/ion/ |
D | ionmap_test.c | 61 int import_vgem_fd(int vgem_fd, int dma_buf_fd, uint32_t *handle) in import_vgem_fd() argument 66 import_handle.fd = dma_buf_fd; in import_vgem_fd()
|
/external/crosvm/devices/src/virtio/gpu/ |
D | backend.rs | 801 let dma_buf_fd = match buffer.export_plane_fd(0) { in resource_create_3d() localVariable 802 Ok(dma_buf_fd) => dma_buf_fd, in resource_create_3d() 813 dma_buf_fd.as_raw_fd(), in resource_create_3d()
|
/external/igt-gpu-tools/tests/i915/ |
D | gem_userptr_blits.c | 943 int dma_buf_fd = -1; in test_dmabuf() local 951 ret = export_handle(fd1, handle, &dma_buf_fd); in test_dmabuf() 959 igt_assert_lte(0, dma_buf_fd); in test_dmabuf() 963 handle_import = prime_fd_to_handle(fd2, dma_buf_fd); in test_dmabuf() 967 close(dma_buf_fd); in test_dmabuf()
|