Lines Matching refs:bufs
204 if (NULL == q->bufs[i]) in videobuf_queue_is_busy()
206 if (q->bufs[i]->map) { in videobuf_queue_is_busy()
210 if (q->bufs[i]->state == VIDEOBUF_QUEUED) { in videobuf_queue_is_busy()
214 if (q->bufs[i]->state == VIDEOBUF_ACTIVE) { in videobuf_queue_is_busy()
246 if (q->bufs[i] && q->bufs[i]->map) { in __videobuf_free()
252 if (NULL == q->bufs[i]) in __videobuf_free()
254 q->ops->buf_release(q, q->bufs[i]); in __videobuf_free()
255 kfree(q->bufs[i]); in __videobuf_free()
256 q->bufs[i] = NULL; in __videobuf_free()
275 if (NULL == q->bufs[i]) in videobuf_queue_cancel()
277 if (q->bufs[i]->state == VIDEOBUF_QUEUED) { in videobuf_queue_cancel()
278 list_del(&q->bufs[i]->queue); in videobuf_queue_cancel()
279 q->bufs[i]->state = VIDEOBUF_ERROR; in videobuf_queue_cancel()
280 wake_up_all(&q->bufs[i]->done); in videobuf_queue_cancel()
287 if (NULL == q->bufs[i]) in videobuf_queue_cancel()
289 q->ops->buf_release(q, q->bufs[i]); in videobuf_queue_cancel()
399 q->bufs[i] = videobuf_alloc_vb(q); in __videobuf_mmap_setup()
401 if (NULL == q->bufs[i]) in __videobuf_mmap_setup()
404 q->bufs[i]->i = i; in __videobuf_mmap_setup()
405 q->bufs[i]->memory = memory; in __videobuf_mmap_setup()
406 q->bufs[i]->bsize = bsize; in __videobuf_mmap_setup()
409 q->bufs[i]->boff = PAGE_ALIGN(bsize) * i; in __videobuf_mmap_setup()
514 if (unlikely(NULL == q->bufs[b->index])) { in videobuf_querybuf()
519 videobuf_status(q, b, q->bufs[b->index], q->type); in videobuf_querybuf()
555 buf = q->bufs[b->index]; in videobuf_qbuf()
983 err = q->ops->buf_prepare(q, q->bufs[i], field); in __videobuf_read_start()
986 list_add_tail(&q->bufs[i]->stream, &q->stream); in __videobuf_read_start()
990 q->ops->buf_queue(q, q->bufs[i]); in __videobuf_read_start()
1004 if (NULL == q->bufs[i]) in __videobuf_read_stop()
1006 kfree(q->bufs[i]); in __videobuf_read_stop()
1007 q->bufs[i] = NULL; in __videobuf_read_stop()
1186 struct videobuf_buffer *buf = q->bufs[i]; in videobuf_mmap_mapper()