Lines Matching refs:ffd
53 int ffd; member
131 static int cnw_dequeue_buffer1(aWindow *base, aBuffer **buf, int *ffd) { in cnw_dequeue_buffer1() argument
141 *ffd = cnb->ffd; in cnw_dequeue_buffer1()
143 cnb->ffd = -1; in cnw_dequeue_buffer1()
144 LOG("<< dequeue buffer %p %d\n", *buf, *ffd); in cnw_dequeue_buffer1()
154 static void set_layer(hwc_layer_1_t *dl, aBuffer *buf, int ffd) { in set_layer() argument
176 dl->acquireFenceFd = ffd; in set_layer()
180 static void hwc_post(CNativeWindow *win, aBuffer *buf, int ffd) { in hwc_post() argument
195 set_layer(&dl[0], buf, ffd); in hwc_post()
223 cnb->ffd = dl->releaseFenceFd; in hwc_post()
230 static int cnw_queue_buffer1(aWindow *base, aBuffer *buffer, int ffd) { in cnw_queue_buffer1() argument
233 LOG(">> queue buffer %p %d\n", buffer, ffd); in cnw_queue_buffer1()
236 if (ffd != -1) in cnw_queue_buffer1()
237 close(ffd); in cnw_queue_buffer1()
239 hwc_post(win, buffer, ffd); in cnw_queue_buffer1()
252 static int cnw_cancel_buffer1(aWindow *base, aBuffer *buf, int ffd) { in cnw_cancel_buffer1() argument
255 LOG("<< cancel buffer %p %d\n", buf, ffd); in cnw_cancel_buffer1()
256 cnb->ffd = ffd; in cnw_cancel_buffer1()
264 int ffd = -1; in cnw_dequeue_buffer0() local
266 r = cnw_dequeue_buffer1(base, buf, &ffd); in cnw_dequeue_buffer0()
267 if (ffd != -1) in cnw_dequeue_buffer0()
268 close(ffd); in cnw_dequeue_buffer0()
437 cnb->ffd = -1; in cnw_alloc()