Searched refs:heap_fd (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/dmabuf-heaps/ |
| H A D | dmabuf-heap.c | 147 int heap_fd = -1, dmabuf_fd = -1, importer_fd = -1; in test_alloc_and_import() local 152 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_and_import() 155 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_and_import() 205 close(heap_fd); in test_alloc_and_import() 210 int heap_fd = -1, dmabuf_fd[32]; in test_alloc_zeroed() local 216 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_zeroed() 220 ret = dmabuf_heap_alloc(heap_fd, size, 0, &dmabuf_fd[i]); in test_alloc_zeroed() 245 ret = dmabuf_heap_alloc(heap_fd, size, 0, &dmabuf_fd[i]); in test_alloc_zeroed() 280 close(heap_fd); in test_alloc_zeroed() 351 int ret, heap_fd = -1, dmabuf_fd = -1; in test_alloc_compat() local [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | dmabuf_iter.c | 84 int heap_fd, ret; in create_sys_heap_dmabuf() local 89 heap_fd = open("/dev/dma_heap/system", O_RDONLY); in create_sys_heap_dmabuf() 90 if (!ASSERT_OK_FD(heap_fd, "open dma heap")) in create_sys_heap_dmabuf() 93 ret = ioctl(heap_fd, DMA_HEAP_IOCTL_ALLOC, &data); in create_sys_heap_dmabuf() 94 close(heap_fd); in create_sys_heap_dmabuf()
|