Lines Matching refs:fence
46 struct pipe_fence_handle **fence, in lima_create_fence_fd() argument
50 *fence = lima_fence_create(os_dupfd_cloexec(fd)); in lima_create_fence_fd()
55 struct pipe_fence_handle *fence) in lima_fence_server_sync() argument
59 sync_accumulate("lima", &ctx->in_sync_fd, fence->fd); in lima_fence_server_sync()
71 struct pipe_fence_handle *fence; in lima_fence_create() local
73 fence = CALLOC_STRUCT(pipe_fence_handle); in lima_fence_create()
74 if (!fence) in lima_fence_create()
77 pipe_reference_init(&fence->reference, 1); in lima_fence_create()
78 fence->fd = fd; in lima_fence_create()
80 return fence; in lima_fence_create()
85 struct pipe_fence_handle *fence) in lima_fence_get_fd() argument
87 return os_dupfd_cloexec(fence->fd); in lima_fence_get_fd()
91 lima_fence_destroy(struct pipe_fence_handle *fence) in lima_fence_destroy() argument
93 if (fence->fd >= 0) in lima_fence_destroy()
94 close(fence->fd); in lima_fence_destroy()
95 FREE(fence); in lima_fence_destroy()
101 struct pipe_fence_handle *fence) in lima_fence_reference() argument
103 if (pipe_reference(&(*ptr)->reference, &fence->reference)) in lima_fence_reference()
105 *ptr = fence; in lima_fence_reference()
110 struct pipe_fence_handle *fence, uint64_t timeout) in lima_fence_finish() argument
112 return !sync_wait(fence->fd, timeout / 1000000); in lima_fence_finish()