Lines Matching refs:vb

205 	struct videobuf_buffer vb;  member
383 videobuf_vmalloc_free(&buf->vb); in free_buffer()
384 buf->vb.state = VIDEOBUF_NEEDS_INIT; in free_buffer()
387 static int buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb, in buffer_prepare() argument
391 struct zr364xx_buffer *buf = container_of(vb, struct zr364xx_buffer, in buffer_prepare()
392 vb); in buffer_prepare()
400 buf->vb.size = cam->width * cam->height * (cam->fmt->depth >> 3); in buffer_prepare()
402 if (buf->vb.baddr != 0 && buf->vb.bsize < buf->vb.size) { in buffer_prepare()
408 buf->vb.width = cam->width; in buffer_prepare()
409 buf->vb.height = cam->height; in buffer_prepare()
410 buf->vb.field = field; in buffer_prepare()
412 if (buf->vb.state == VIDEOBUF_NEEDS_INIT) { in buffer_prepare()
413 rc = videobuf_iolock(vq, &buf->vb, NULL); in buffer_prepare()
418 buf->vb.state = VIDEOBUF_PREPARED; in buffer_prepare()
425 static void buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb) in buffer_queue() argument
427 struct zr364xx_buffer *buf = container_of(vb, struct zr364xx_buffer, in buffer_queue()
428 vb); in buffer_queue()
433 buf->vb.state = VIDEOBUF_QUEUED; in buffer_queue()
434 list_add_tail(&buf->vb.queue, &cam->vidq.active); in buffer_queue()
438 struct videobuf_buffer *vb) in buffer_release() argument
440 struct zr364xx_buffer *buf = container_of(vb, struct zr364xx_buffer, in buffer_release()
441 vb); in buffer_release()
505 char *vbuf = videobuf_to_vmalloc(&buf->vb); in zr364xx_fillbuff()
516 buf->vb.size = jpgsize; in zr364xx_fillbuff()
517 memcpy(vbuf, tmpbuf, buf->vb.size); in zr364xx_fillbuff()
531 buf->vb.field_count = cam->frame_count * 2; in zr364xx_fillbuff()
532 v4l2_get_timestamp(&buf->vb.ts); in zr364xx_fillbuff()
533 buf->vb.state = VIDEOBUF_DONE; in zr364xx_fillbuff()
552 struct zr364xx_buffer, vb.queue); in zr364xx_got_frame()
554 if (!waitqueue_active(&buf->vb.done)) { in zr364xx_got_frame()
559 list_del(&buf->vb.queue); in zr364xx_got_frame()
560 v4l2_get_timestamp(&buf->vb.ts); in zr364xx_got_frame()
561 DBG("[%p/%d] wakeup\n", buf, buf->vb.i); in zr364xx_got_frame()
563 wake_up(&buf->vb.done); in zr364xx_got_frame()
564 DBG("wakeup [buf/i] [%p/%d]\n", buf, buf->vb.i); in zr364xx_got_frame()