Lines Matching refs:queue
273 } else if (list_empty(&q->queue)) {
274 list_add_tail(&buf->entry, &q->queue);
276 next = list_entry(q->queue.next, struct saa7134_buf,
282 list_add_tail(&buf->entry, &q->queue);
309 if (!list_empty(&q->queue)) {
310 /* activate next one from queue */
311 buf = list_entry(q->queue.next, struct saa7134_buf, entry);
313 buf, q->queue.prev, q->queue.next);
315 if (!list_empty(&q->queue))
316 next = list_entry(q->queue.next, struct saa7134_buf, entry);
320 q->queue.prev, q->queue.next);
359 list_for_each_safe(pos, n, &q->queue) {
1181 dev->video_dev->queue = &dev->video_vbq;
1200 dev->vbi_dev->queue = &dev->vbi_vbq;
1346 /* resends a current buffer in queue after resume */
1363 if (!list_empty(&q->queue))
1364 next = list_entry(q->queue.next, struct saa7134_buf,