• Home
  • Raw
  • Download

Lines Matching refs:dmabuf

38 	int dmabuf, i;  in test_read()  local
45 dmabuf = prime_handle_to_fd(vgem, scratch.handle); in test_read()
46 handle = prime_fd_to_handle(i915, dmabuf); in test_read()
47 close(dmabuf); in test_read()
69 int dmabuf, i; in test_fence_read() local
80 dmabuf = prime_handle_to_fd(vgem, scratch.handle); in test_fence_read()
81 handle = prime_fd_to_handle(i915, dmabuf); in test_fence_read()
82 close(dmabuf); in test_fence_read()
126 int dmabuf, i; in test_fence_mmap() local
137 dmabuf = prime_handle_to_fd(vgem, scratch.handle); in test_fence_mmap()
138 handle = prime_fd_to_handle(i915, dmabuf); in test_fence_mmap()
139 close(dmabuf); in test_fence_mmap()
183 int dmabuf, i; in test_write() local
190 dmabuf = prime_handle_to_fd(vgem, scratch.handle); in test_write()
191 handle = prime_fd_to_handle(i915, dmabuf); in test_write()
192 close(dmabuf); in test_write()
211 int dmabuf, i; in test_gtt() local
218 dmabuf = prime_handle_to_fd(vgem, scratch.handle); in test_gtt()
219 handle = prime_fd_to_handle(i915, dmabuf); in test_gtt()
220 close(dmabuf); in test_gtt()
250 int dmabuf; in test_shrink() local
254 dmabuf = prime_handle_to_fd(vgem, scratch.handle); in test_shrink()
257 scratch.handle = prime_fd_to_handle(i915, dmabuf); in test_shrink()
258 close(dmabuf); in test_shrink()
286 int dmabuf, i; in test_gtt_interleaved() local
295 dmabuf = prime_handle_to_fd(vgem, scratch.handle); in test_gtt_interleaved()
296 handle = prime_fd_to_handle(i915, dmabuf); in test_gtt_interleaved()
297 close(dmabuf); in test_gtt_interleaved()
332 static void work(int i915, int dmabuf, unsigned ring, uint32_t flags) in work() argument
353 obj[SCRATCH].handle = prime_fd_to_handle(i915, dmabuf); in work()
417 write_busy = prime_busy(dmabuf, false); in work()
418 read_busy = prime_busy(dmabuf, true); in work()
432 int dmabuf; in test_busy() local
439 dmabuf = prime_handle_to_fd(vgem, scratch.handle); in test_busy()
441 work(i915, dmabuf, ring, flags); in test_busy()
445 while (prime_busy(dmabuf, false)) in test_busy()
454 close(dmabuf); in test_busy()
488 int dmabuf; in test_sync() local
495 dmabuf = prime_handle_to_fd(vgem, scratch.handle); in test_sync()
497 ptr = mmap(NULL, scratch.size, PROT_READ, MAP_SHARED, dmabuf, 0); in test_sync()
501 work(i915, dmabuf, ring, flags); in test_sync()
503 prime_sync_start(dmabuf, false); in test_sync()
507 prime_sync_end(dmabuf, false); in test_sync()
508 close(dmabuf); in test_sync()
518 int dmabuf; in test_fence_wait() local
525 dmabuf = prime_handle_to_fd(vgem, scratch.handle); in test_fence_wait()
527 igt_assert(prime_busy(dmabuf, false)); in test_fence_wait()
530 ptr = mmap(NULL, scratch.size, PROT_READ, MAP_SHARED, dmabuf, 0); in test_fence_wait()
534 work(i915, dmabuf, ring, flags); in test_fence_wait()
542 igt_assert(prime_busy(dmabuf, false)); in test_fence_wait()
547 prime_sync_start(dmabuf, false); in test_fence_wait()
550 prime_sync_end(dmabuf, false); in test_fence_wait()
552 close(dmabuf); in test_fence_wait()
561 int dmabuf; in test_fence_hang() local
568 dmabuf = prime_handle_to_fd(vgem, scratch.handle); in test_fence_hang()
571 ptr = mmap(NULL, scratch.size, PROT_READ, MAP_SHARED, dmabuf, 0); in test_fence_hang()
575 work(i915, dmabuf, I915_EXEC_DEFAULT, 0); in test_fence_hang()
579 prime_sync_start(dmabuf, false); in test_fence_hang()
582 prime_sync_end(dmabuf, false); in test_fence_hang()
583 close(dmabuf); in test_fence_hang()