Lines Matching defs:qb
1702 utvfu_querybuf(void *v, struct v4l2_buffer *qb)
1706 if (qb->type != V4L2_BUF_TYPE_VIDEO_CAPTURE ||
1707 qb->memory != V4L2_MEMORY_MMAP ||
1708 qb->index >= sc->sc_mmap_count)
1711 memcpy(qb, &sc->sc_mmap[qb->index].v4l2_buf,
1715 DEVNAME(sc), __func__, qb->index, qb->m.offset, qb->length);
1721 utvfu_qbuf(void *v, struct v4l2_buffer *qb)
1725 if (qb->type != V4L2_BUF_TYPE_VIDEO_CAPTURE ||
1726 qb->memory != V4L2_MEMORY_MMAP ||
1727 qb->index >= sc->sc_mmap_count)
1730 sc->sc_mmap[qb->index].v4l2_buf.flags &= ~V4L2_BUF_FLAG_DONE;
1731 sc->sc_mmap[qb->index].v4l2_buf.flags |= V4L2_BUF_FLAG_MAPPED;
1732 sc->sc_mmap[qb->index].v4l2_buf.flags |= V4L2_BUF_FLAG_QUEUED;
1735 DEVNAME(sc), __func__, qb->index);