Lines Matching refs:next_buf
167 int next_buf; /* Next to consume (dev_lock) */ member
264 cam->next_buf = -1; in cafe_reset_buffers()
956 if (cam->next_buf < 0) { in cafe_deliver_buffer()
961 bufno = cam->next_buf; in cafe_deliver_buffer()
963 if (++(cam->next_buf) >= cam->nbufs) in cafe_deliver_buffer()
964 cam->next_buf = 0; in cafe_deliver_buffer()
965 if (! test_bit(cam->next_buf, &cam->flags)) in cafe_deliver_buffer()
966 cam->next_buf = -1; in cafe_deliver_buffer()
1026 if (cam->next_buf >= 0) { in cafe_v4l_read()
1061 wait_event_timeout(cam->iowait, cam->next_buf >= 0, HZ); in cafe_v4l_read()
1062 if (cam->next_buf < 0) { in cafe_v4l_read()
1462 if (cam->next_buf >= 0) in cafe_v4l_poll()
1836 int bufno = cam->next_buf; in cafe_frame_tasklet()
1841 if (++(cam->next_buf) >= cam->nbufs) in cafe_frame_tasklet()
1842 cam->next_buf = 0; in cafe_frame_tasklet()
1879 if (cam->next_buf < 0) in cafe_frame_complete()
1880 cam->next_buf = frame; in cafe_frame_complete()