Lines Matching defs:uvc
23 #include "uvc.h"
33 uvc_send_response(struct uvc_device *uvc, struct uvc_request_data *data)
35 struct usb_composite_dev *cdev = uvc->func.config->cdev;
36 struct usb_request *req = uvc->control_req;
41 req->length = min_t(unsigned int, uvc->event_length, data->length);
42 req->zero = data->length < uvc->event_length;
67 struct uvc_device *uvc = video_get_drvdata(vdev);
68 struct usb_composite_dev *cdev = uvc->func.config->cdev;
81 struct uvc_device *uvc = video_get_drvdata(vdev);
82 struct uvc_video *video = &uvc->video;
100 struct uvc_device *uvc = video_get_drvdata(vdev);
101 struct uvc_video *video = &uvc->video;
114 uvcg_info(&uvc->func, "Unsupported format 0x%08x.\n",
141 struct uvc_device *uvc = video_get_drvdata(vdev);
142 struct uvc_video *video = &uvc->video;
154 struct uvc_device *uvc = video_get_drvdata(vdev);
155 struct uvc_video *video = &uvc->video;
164 struct uvc_device *uvc = video_get_drvdata(vdev);
165 struct uvc_video *video = &uvc->video;
181 struct uvc_device *uvc = video_get_drvdata(vdev);
182 struct uvc_video *video = &uvc->video;
191 struct uvc_device *uvc = video_get_drvdata(vdev);
192 struct uvc_video *video = &uvc->video;
207 uvc_function_setup_continue(uvc);
208 uvc->state = UVC_STATE_STREAMING;
217 struct uvc_device *uvc = video_get_drvdata(vdev);
218 struct uvc_video *video = &uvc->video;
230 struct uvc_device *uvc = video_get_drvdata(fh->vdev);
237 if (sub->type == UVC_EVENT_SETUP && uvc->func_connected)
245 uvc->func_connected = true;
247 uvc_function_connect(uvc);
253 static void uvc_v4l2_disable(struct uvc_device *uvc)
255 uvc_function_disconnect(uvc);
256 uvcg_video_enable(&uvc->video, 0);
257 uvcg_free_buffers(&uvc->video.queue);
258 uvc->func_connected = false;
259 wake_up_interruptible(&uvc->func_connected_queue);
266 struct uvc_device *uvc = video_get_drvdata(fh->vdev);
275 uvc_v4l2_disable(uvc);
287 struct uvc_device *uvc = video_get_drvdata(vdev);
291 return uvc_send_response(uvc, arg);
321 struct uvc_device *uvc = video_get_drvdata(vdev);
331 handle->device = &uvc->video;
341 struct uvc_device *uvc = video_get_drvdata(vdev);
347 uvc_v4l2_disable(uvc);
362 struct uvc_device *uvc = video_get_drvdata(vdev);
364 return uvcg_queue_mmap(&uvc->video.queue, vma);
371 struct uvc_device *uvc = video_get_drvdata(vdev);
373 return uvcg_queue_poll(&uvc->video.queue, file, wait);
382 struct uvc_device *uvc = video_get_drvdata(vdev);
384 return uvcg_queue_get_unmapped_area(&uvc->video.queue, pgoff);