Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/dmabuf-heaps/
Ddmabuf-heap.c145 int heap_fd = -1, dmabuf_fd = -1, importer_fd = -1; in test_alloc_and_import() local
150 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_and_import()
151 if (heap_fd < 0) in test_alloc_and_import()
155 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_and_import()
214 if (heap_fd >= 0) in test_alloc_and_import()
215 close(heap_fd); in test_alloc_and_import()
222 int heap_fd = -1, dmabuf_fd[32]; in test_alloc_zeroed() local
228 heap_fd = dmabuf_heap_open(heap_name); in test_alloc_zeroed()
229 if (heap_fd < 0) in test_alloc_zeroed()
234 ret = dmabuf_heap_alloc(heap_fd, size, 0, &dmabuf_fd[i]); in test_alloc_zeroed()
[all …]