• Home
  • Raw
  • Download

Lines Matching refs:vb

273 				 struct cx23885_buffer, vb.queue);  in cx23885_video_wakeup()
281 do_gettimeofday(&buf->vb.ts); in cx23885_video_wakeup()
282 dprintk(2, "[%p/%d] wakeup reg=%d buf=%d\n", buf, buf->vb.i, in cx23885_video_wakeup()
284 buf->vb.state = VIDEOBUF_DONE; in cx23885_video_wakeup()
285 list_del(&buf->vb.queue); in cx23885_video_wakeup()
286 wake_up(&buf->vb.done); in cx23885_video_wakeup()
440 cx23885_set_scale(dev, buf->vb.width, buf->vb.height, buf->vb.field); in cx23885_start_video_dma()
467 vb.queue); in cx23885_restart_video_queue()
469 buf, buf->vb.i); in cx23885_restart_video_queue()
473 vb.queue); in cx23885_restart_video_queue()
485 vb.queue); in cx23885_restart_video_queue()
487 list_move_tail(&buf->vb.queue, &q->active); in cx23885_restart_video_queue()
489 buf->vb.state = VIDEOBUF_ACTIVE; in cx23885_restart_video_queue()
493 buf, buf->vb.i); in cx23885_restart_video_queue()
495 } else if (prev->vb.width == buf->vb.width && in cx23885_restart_video_queue()
496 prev->vb.height == buf->vb.height && in cx23885_restart_video_queue()
498 list_move_tail(&buf->vb.queue, &q->active); in cx23885_restart_video_queue()
499 buf->vb.state = VIDEOBUF_ACTIVE; in cx23885_restart_video_queue()
504 buf, buf->vb.i); in cx23885_restart_video_queue()
525 static int buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb, in buffer_prepare() argument
531 container_of(vb, struct cx23885_buffer, vb); in buffer_prepare()
534 struct videobuf_dmabuf *dma = videobuf_to_dma(&buf->vb); in buffer_prepare()
540 buf->vb.size = (fh->width * fh->height * fh->fmt->depth) >> 3; in buffer_prepare()
541 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) in buffer_prepare()
545 buf->vb.width != fh->width || in buffer_prepare()
546 buf->vb.height != fh->height || in buffer_prepare()
547 buf->vb.field != field) { in buffer_prepare()
549 buf->vb.width = fh->width; in buffer_prepare()
550 buf->vb.height = fh->height; in buffer_prepare()
551 buf->vb.field = field; in buffer_prepare()
555 if (VIDEOBUF_NEEDS_INIT == buf->vb.state) { in buffer_prepare()
557 rc = videobuf_iolock(q, &buf->vb, NULL); in buffer_prepare()
563 buf->bpl = buf->vb.width * buf->fmt->depth >> 3; in buffer_prepare()
564 switch (buf->vb.field) { in buffer_prepare()
568 buf->bpl, 0, buf->vb.height); in buffer_prepare()
573 buf->bpl, 0, buf->vb.height); in buffer_prepare()
593 buf->vb.height >> 1); in buffer_prepare()
598 0, buf->bpl * (buf->vb.height >> 1), in buffer_prepare()
600 buf->vb.height >> 1); in buffer_prepare()
605 buf->bpl * (buf->vb.height >> 1), 0, in buffer_prepare()
607 buf->vb.height >> 1); in buffer_prepare()
614 buf, buf->vb.i, in buffer_prepare()
618 buf->vb.state = VIDEOBUF_PREPARED; in buffer_prepare()
626 static void buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb) in buffer_queue() argument
628 struct cx23885_buffer *buf = container_of(vb, in buffer_queue()
629 struct cx23885_buffer, vb); in buffer_queue()
641 list_add_tail(&buf->vb.queue, &q->queued); in buffer_queue()
642 buf->vb.state = VIDEOBUF_QUEUED; in buffer_queue()
644 buf, buf->vb.i); in buffer_queue()
647 list_add_tail(&buf->vb.queue, &q->active); in buffer_queue()
649 buf->vb.state = VIDEOBUF_ACTIVE; in buffer_queue()
653 buf, buf->vb.i); in buffer_queue()
657 vb.queue); in buffer_queue()
658 if (prev->vb.width == buf->vb.width && in buffer_queue()
659 prev->vb.height == buf->vb.height && in buffer_queue()
661 list_add_tail(&buf->vb.queue, &q->active); in buffer_queue()
662 buf->vb.state = VIDEOBUF_ACTIVE; in buffer_queue()
668 buf, buf->vb.i); in buffer_queue()
671 list_add_tail(&buf->vb.queue, &q->queued); in buffer_queue()
672 buf->vb.state = VIDEOBUF_QUEUED; in buffer_queue()
674 buf, buf->vb.i); in buffer_queue()
680 struct videobuf_buffer *vb) in buffer_release() argument
682 struct cx23885_buffer *buf = container_of(vb, in buffer_release()
683 struct cx23885_buffer, vb); in buffer_release()
824 struct cx23885_buffer, vb.stream); in video_poll()
831 poll_wait(file, &buf->vb.done, wait); in video_poll()
832 if (buf->vb.state == VIDEOBUF_DONE || in video_poll()
833 buf->vb.state == VIDEOBUF_ERROR) in video_poll()
1372 struct cx23885_buffer, vb.queue); in cx23885_vid_timeout()
1373 list_del(&buf->vb.queue); in cx23885_vid_timeout()
1374 buf->vb.state = VIDEOBUF_ERROR; in cx23885_vid_timeout()
1375 wake_up(&buf->vb.done); in cx23885_vid_timeout()
1377 dev->name, buf, buf->vb.i, in cx23885_vid_timeout()