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