• Home
  • Raw
  • Download

Lines Matching refs:dma_buf_fd

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
143 dma_buf_fd = prime_handle_to_fd(fd, handle); in test_reprime()
146 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_reprime()
150 close (dma_buf_fd); in test_reprime()
154 dma_buf_fd = prime_handle_to_fd(fd, handle); in test_reprime()
155 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_reprime()
160 close(dma_buf_fd); in test_reprime()
168 int dma_buf_fd; in test_forked() local
175 dma_buf_fd = prime_handle_to_fd(fd, handle); in test_forked()
179 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_forked()
183 close(dma_buf_fd); in test_forked()
185 close(dma_buf_fd); in test_forked()
194 int dma_buf_fd; in test_correct_cpu_write() local
200 dma_buf_fd = prime_handle_to_fd_for_mmap(fd, handle); in test_correct_cpu_write()
206 ptr = mmap(NULL, BO_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf_fd, 0); in test_correct_cpu_write()
216 close(dma_buf_fd); in test_correct_cpu_write()
224 int dma_buf_fd; in test_forked_cpu_write() local
230 dma_buf_fd = prime_handle_to_fd_for_mmap(fd, handle); in test_forked_cpu_write()
236 ptr = mmap(NULL, BO_SIZE, PROT_READ | PROT_WRITE , MAP_SHARED, dma_buf_fd, 0); in test_forked_cpu_write()
242 close(dma_buf_fd); in test_forked_cpu_write()
244 close(dma_buf_fd); in test_forked_cpu_write()
252 int dma_buf_fd; in test_refcounting() local
259 dma_buf_fd = prime_handle_to_fd(fd, handle); in test_refcounting()
264 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_refcounting()
268 close (dma_buf_fd); in test_refcounting()
275 int dma_buf_fd; in test_dup() local
282 dma_buf_fd = dup(prime_handle_to_fd(fd, handle)); in test_dup()
285 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_dup()
290 close (dma_buf_fd); in test_dup()
328 int ret, dma_buf_fd; in test_userptr() local
343 ret = prime_handle_to_fd_no_assert(handle, DRM_CLOEXEC, &dma_buf_fd); in test_userptr()
349 igt_assert_lte(0, dma_buf_fd); in test_userptr()
354 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_userptr()
358 close(dma_buf_fd); in test_userptr()
364 int i, dma_buf_fd; in test_errors() local
373 prime_handle_to_fd_no_assert(handle, invalid_flags[i], &dma_buf_fd); in test_errors()
382 prime_handle_to_fd_no_assert(handle, DRM_CLOEXEC, &dma_buf_fd); in test_errors()
383 igt_assert(dma_buf_fd == -1 && errno == ENOENT); in test_errors()
389 dma_buf_fd = prime_handle_to_fd(fd, handle); in test_errors()
391 close(dma_buf_fd); in test_errors()
392 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_errors()
400 dma_buf_fd = prime_handle_to_fd(fd, handle); in test_errors()
402 ptr = mmap(NULL, BO_SIZE * 2, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_errors()
405 close(dma_buf_fd); in test_errors()
410 dma_buf_fd = prime_handle_to_fd(fd, handle); in test_errors()
412 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, BO_SIZE / 2); in test_errors()
415 close(dma_buf_fd); in test_errors()
423 int i, dma_buf_fd; in test_invalid_sync_flags() local
432 dma_buf_fd = prime_handle_to_fd(fd, handle); in test_invalid_sync_flags()
437 drmIoctl(dma_buf_fd, LOCAL_DMA_BUF_IOCTL_SYNC, &sync); in test_invalid_sync_flags()
483 int dma_buf_fd; in check_for_dma_buf_mmap() local
489 dma_buf_fd = prime_handle_to_fd(fd, handle); in check_for_dma_buf_mmap()
490 ptr = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in check_for_dma_buf_mmap()
495 close(dma_buf_fd); in check_for_dma_buf_mmap()