Lines Matching refs:dmabuf
130 int dmabuf; in plug() local
139 dmabuf = prime_handle_to_fd(c->device, bo.handle); in plug()
140 c->handle = prime_fd_to_handle(fd, dmabuf); in plug()
141 close(dmabuf); in plug()
148 int dmabuf; in amd_plug() local
157 dmabuf = prime_handle_to_fd(c->device, bo.handle); in amd_plug()
159 dmabuf, &import); in amd_plug()
160 close(dmabuf); in amd_plug()
225 int i, r, dmabuf; in i915_to_amd() local
233 dmabuf = prime_handle_to_fd(i915, obj[1].handle); in i915_to_amd()
235 dmabuf, &import); in i915_to_amd()
236 close(dmabuf); in i915_to_amd()
303 int i, r, dmabuf; in amd_to_i915() local
371 (uint32_t *)&dmabuf); in amd_to_i915()
372 igt_assert_eq(poll(&(struct pollfd){dmabuf, POLLOUT}, 1, 0), 0); in amd_to_i915()
373 obj[0].handle = prime_fd_to_handle(i915, dmabuf); in amd_to_i915()
375 close(dmabuf); in amd_to_i915()
405 int dmabuf; in shrink() local
410 (uint32_t *)&dmabuf); in shrink()
413 handle = prime_fd_to_handle(i915, dmabuf); in shrink()
414 close(dmabuf); in shrink()