Lines Matching refs:queue
35 if (buf->buf.bytesused - video->queue.buf_used <= len - 2)
45 struct uvc_video_queue *queue = &video->queue;
50 mem = queue->mem + buf->buf.m.offset + queue->buf_used;
51 nbytes = min((unsigned int)len, buf->buf.bytesused - queue->buf_used);
54 queue->buf_used += nbytes;
85 if (buf->buf.bytesused == video->queue.buf_used) {
86 video->queue.buf_used = 0;
88 uvc_queue_next_buffer(&video->queue, buf);
95 buf->buf.bytesused == video->queue.buf_used)
118 if (buf->buf.bytesused == video->queue.buf_used) {
119 video->queue.buf_used = 0;
121 uvc_queue_next_buffer(&video->queue, buf);
148 * being empty, as a request can still be in flight. A separate "queue paused"
152 * queue is empty, and cleared when we queue a buffer.
155 * under protection of the queue spinlock. If the queue is empty, the streaming
157 * application can queue a buffer. The flag will then cleared, and the ioctl
182 spin_lock_irqsave(&video->queue.irqlock, flags);
183 buf = uvc_queue_head(&video->queue);
185 spin_unlock_irqrestore(&video->queue.irqlock, flags);
192 printk(KERN_INFO "Failed to queue request (%d).\n", ret);
194 spin_unlock_irqrestore(&video->queue.irqlock, flags);
197 spin_unlock_irqrestore(&video->queue.irqlock, flags);
300 * request, protected by the video queue irqlock.
302 spin_lock_irqsave(&video->queue.irqlock, flags);
303 buf = uvc_queue_head(&video->queue);
305 spin_unlock_irqrestore(&video->queue.irqlock, flags);
313 printk(KERN_INFO "Failed to queue request (%d)\n", ret);
315 spin_unlock_irqrestore(&video->queue.irqlock, flags);
318 spin_unlock_irqrestore(&video->queue.irqlock, flags);
347 uvc_queue_enable(&video->queue, 0);
351 if ((ret = uvc_queue_enable(&video->queue, 1)) < 0)
381 /* Initialize the video buffers queue. */
382 uvc_queue_init(&video->queue, V4L2_BUF_TYPE_VIDEO_OUTPUT);