Lines Matching refs:vb
352 struct cx23885_buffer, vb.queue); in cx23885_wakeup()
360 do_gettimeofday(&buf->vb.ts); in cx23885_wakeup()
361 dprintk(2, "[%p/%d] wakeup reg=%d buf=%d\n", buf, buf->vb.i, in cx23885_wakeup()
363 buf->vb.state = VIDEOBUF_DONE; in cx23885_wakeup()
364 list_del(&buf->vb.queue); in cx23885_wakeup()
365 wake_up(&buf->vb.done); in cx23885_wakeup()
1101 struct videobuf_dmabuf *dma = videobuf_to_dma(&buf->vb); in cx23885_free_buffer()
1104 videobuf_waiton(&buf->vb, 0, 0); in cx23885_free_buffer()
1108 buf->vb.state = VIDEOBUF_NEEDS_INIT; in cx23885_free_buffer()
1171 buf->vb.width, buf->vb.height, buf->vb.field); in cx23885_start_dma()
1187 cx_write(port->reg_lngth, buf->vb.width); in cx23885_start_dma()
1320 vb.queue); in cx23885_restart_queue()
1322 list_del(&buf->vb.queue); in cx23885_restart_queue()
1323 list_add_tail(&buf->vb.queue, &q->active); in cx23885_restart_queue()
1325 buf->vb.state = VIDEOBUF_ACTIVE; in cx23885_restart_queue()
1329 buf, buf->vb.i); in cx23885_restart_queue()
1331 } else if (prev->vb.width == buf->vb.width && in cx23885_restart_queue()
1332 prev->vb.height == buf->vb.height && in cx23885_restart_queue()
1334 list_del(&buf->vb.queue); in cx23885_restart_queue()
1335 list_add_tail(&buf->vb.queue, &q->active); in cx23885_restart_queue()
1336 buf->vb.state = VIDEOBUF_ACTIVE; in cx23885_restart_queue()
1342 buf, buf->vb.i); in cx23885_restart_queue()
1351 buf = list_entry(q->active.next, struct cx23885_buffer, vb.queue); in cx23885_restart_queue()
1353 buf, buf->vb.i); in cx23885_restart_queue()
1355 list_for_each_entry(buf, &q->active, vb.queue) in cx23885_restart_queue()
1371 if (0 != buf->vb.baddr && buf->vb.bsize < size) in cx23885_buf_prepare()
1374 if (VIDEOBUF_NEEDS_INIT == buf->vb.state) { in cx23885_buf_prepare()
1375 buf->vb.width = port->ts_packet_size; in cx23885_buf_prepare()
1376 buf->vb.height = port->ts_packet_count; in cx23885_buf_prepare()
1377 buf->vb.size = size; in cx23885_buf_prepare()
1378 buf->vb.field = field /*V4L2_FIELD_TOP*/; in cx23885_buf_prepare()
1380 rc = videobuf_iolock(q, &buf->vb, NULL); in cx23885_buf_prepare()
1384 videobuf_to_dma(&buf->vb)->sglist, in cx23885_buf_prepare()
1385 buf->vb.width, buf->vb.height); in cx23885_buf_prepare()
1387 buf->vb.state = VIDEOBUF_PREPARED; in cx23885_buf_prepare()
1408 list_add_tail(&buf->vb.queue, &cx88q->active); in cx23885_buf_queue()
1410 buf->vb.state = VIDEOBUF_ACTIVE; in cx23885_buf_queue()
1414 buf, buf->vb.i, __func__); in cx23885_buf_queue()
1418 vb.queue); in cx23885_buf_queue()
1419 list_add_tail(&buf->vb.queue, &cx88q->active); in cx23885_buf_queue()
1420 buf->vb.state = VIDEOBUF_ACTIVE; in cx23885_buf_queue()
1425 buf, buf->vb.i, __func__); in cx23885_buf_queue()
1442 vb.queue); in do_cancel_buffers()
1443 list_del(&buf->vb.queue); in do_cancel_buffers()
1444 buf->vb.state = VIDEOBUF_ERROR; in do_cancel_buffers()
1445 wake_up(&buf->vb.done); in do_cancel_buffers()
1447 buf, buf->vb.i, reason, (unsigned long)buf->risc.dma); in do_cancel_buffers()