Lines Matching refs:queue

37 	if (buf->bytesused - video->queue.buf_used <= len - 2)  in uvc_video_encode_header()
47 struct uvc_video_queue *queue = &video->queue; in uvc_video_encode_data() local
52 mem = buf->mem + queue->buf_used; in uvc_video_encode_data()
53 nbytes = min((unsigned int)len, buf->bytesused - queue->buf_used); in uvc_video_encode_data()
56 queue->buf_used += nbytes; in uvc_video_encode_data()
87 if (buf->bytesused == video->queue.buf_used) { in uvc_video_encode_bulk()
88 video->queue.buf_used = 0; in uvc_video_encode_bulk()
90 uvcg_queue_next_buffer(&video->queue, buf); in uvc_video_encode_bulk()
97 buf->bytesused == video->queue.buf_used) in uvc_video_encode_bulk()
120 if (buf->bytesused == video->queue.buf_used) { in uvc_video_encode_isoc()
121 video->queue.buf_used = 0; in uvc_video_encode_isoc()
123 uvcg_queue_next_buffer(&video->queue, buf); in uvc_video_encode_isoc()
166 struct uvc_video_queue *queue = &video->queue; in uvc_video_complete() local
177 uvcg_queue_cancel(queue, 1); in uvc_video_complete()
183 uvcg_queue_cancel(queue, 0); in uvc_video_complete()
187 spin_lock_irqsave(&video->queue.irqlock, flags); in uvc_video_complete()
188 buf = uvcg_queue_head(&video->queue); in uvc_video_complete()
190 spin_unlock_irqrestore(&video->queue.irqlock, flags); in uvc_video_complete()
199 spin_unlock_irqrestore(&video->queue.irqlock, flags); in uvc_video_complete()
200 uvcg_queue_cancel(queue, 0); in uvc_video_complete()
203 spin_unlock_irqrestore(&video->queue.irqlock, flags); in uvc_video_complete()
286 struct uvc_video_queue *queue = &video->queue; in uvcg_video_pump() local
313 spin_lock_irqsave(&queue->irqlock, flags); in uvcg_video_pump()
314 buf = uvcg_queue_head(queue); in uvcg_video_pump()
316 spin_unlock_irqrestore(&queue->irqlock, flags); in uvcg_video_pump()
327 spin_unlock_irqrestore(&queue->irqlock, flags); in uvcg_video_pump()
328 uvcg_queue_cancel(queue, 0); in uvcg_video_pump()
331 spin_unlock_irqrestore(&queue->irqlock, flags); in uvcg_video_pump()
360 uvcg_queue_enable(&video->queue, 0); in uvcg_video_enable()
364 if ((ret = uvcg_queue_enable(&video->queue, 1)) < 0) in uvcg_video_enable()
394 uvcg_queue_init(&video->queue, V4L2_BUF_TYPE_VIDEO_OUTPUT, in uvcg_video_init()