Lines Matching defs:next_buf
165 int next_buf; /* Next to consume (dev_lock) */
218 cam->next_buf = -1;
910 if (cam->next_buf < 0) {
915 bufno = cam->next_buf;
917 if (++(cam->next_buf) >= cam->nbufs)
918 cam->next_buf = 0;
919 if (! test_bit(cam->next_buf, &cam->flags))
920 cam->next_buf = -1;
980 if (cam->next_buf >= 0) {
1011 wait_event_timeout(cam->iowait, cam->next_buf >= 0, HZ);
1012 if (cam->next_buf < 0) {
1411 if (cam->next_buf >= 0)
1743 int bufno = cam->next_buf;
1748 if (++(cam->next_buf) >= cam->nbufs)
1749 cam->next_buf = 0;
1786 if (cam->next_buf < 0)
1787 cam->next_buf = frame;