Lines Matching refs:vb

205 	struct videobuf_buffer vb;  member
382 videobuf_vmalloc_free(&buf->vb); in free_buffer()
383 buf->vb.state = VIDEOBUF_NEEDS_INIT; in free_buffer()
386 static int buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb, in buffer_prepare() argument
390 struct zr364xx_buffer *buf = container_of(vb, struct zr364xx_buffer, in buffer_prepare()
391 vb); in buffer_prepare()
399 buf->vb.size = cam->width * cam->height * (cam->fmt->depth >> 3); in buffer_prepare()
401 if (buf->vb.baddr != 0 && buf->vb.bsize < buf->vb.size) { in buffer_prepare()
407 buf->vb.width = cam->width; in buffer_prepare()
408 buf->vb.height = cam->height; in buffer_prepare()
409 buf->vb.field = field; in buffer_prepare()
411 if (buf->vb.state == VIDEOBUF_NEEDS_INIT) { in buffer_prepare()
412 rc = videobuf_iolock(vq, &buf->vb, NULL); in buffer_prepare()
417 buf->vb.state = VIDEOBUF_PREPARED; in buffer_prepare()
424 static void buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb) in buffer_queue() argument
426 struct zr364xx_buffer *buf = container_of(vb, struct zr364xx_buffer, in buffer_queue()
427 vb); in buffer_queue()
432 buf->vb.state = VIDEOBUF_QUEUED; in buffer_queue()
433 list_add_tail(&buf->vb.queue, &cam->vidq.active); in buffer_queue()
437 struct videobuf_buffer *vb) in buffer_release() argument
439 struct zr364xx_buffer *buf = container_of(vb, struct zr364xx_buffer, in buffer_release()
440 vb); in buffer_release()
504 char *vbuf = videobuf_to_vmalloc(&buf->vb); in zr364xx_fillbuff()
515 buf->vb.size = jpgsize; in zr364xx_fillbuff()
516 memcpy(vbuf, tmpbuf, buf->vb.size); in zr364xx_fillbuff()
530 buf->vb.field_count = cam->frame_count * 2; in zr364xx_fillbuff()
531 v4l2_get_timestamp(&buf->vb.ts); in zr364xx_fillbuff()
532 buf->vb.state = VIDEOBUF_DONE; in zr364xx_fillbuff()
551 struct zr364xx_buffer, vb.queue); in zr364xx_got_frame()
553 if (!waitqueue_active(&buf->vb.done)) { in zr364xx_got_frame()
558 list_del(&buf->vb.queue); in zr364xx_got_frame()
559 v4l2_get_timestamp(&buf->vb.ts); in zr364xx_got_frame()
560 DBG("[%p/%d] wakeup\n", buf, buf->vb.i); in zr364xx_got_frame()
562 wake_up(&buf->vb.done); in zr364xx_got_frame()
563 DBG("wakeup [buf/i] [%p/%d]\n", buf, buf->vb.i); in zr364xx_got_frame()