/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
H A D | f_uvc.c | 28 #include "uvc.h" 207 struct uvc_device *uvc = req->context; in uvc_function_ep0_complete() local 211 if (uvc->event_setup_out) { in uvc_function_ep0_complete() 212 uvc->event_setup_out = 0; in uvc_function_ep0_complete() 219 v4l2_event_queue(&uvc->vdev, &v4l2_event); in uvc_function_ep0_complete() 226 struct uvc_device *uvc = to_uvc(f); in uvc_function_setup() local 242 uvc->event_setup_out = !(ctrl->bRequestType & USB_DIR_IN); in uvc_function_setup() 243 uvc->event_length = le16_to_cpu(ctrl->wLength); in uvc_function_setup() 248 v4l2_event_queue(&uvc->vdev, &v4l2_event); in uvc_function_setup() 253 void uvc_function_setup_continue(struct uvc_device *uvc) in uvc_function_setup_continue() argument 263 struct uvc_device *uvc = to_uvc(f); uvc_function_get_alt() local 278 struct uvc_device *uvc = to_uvc(f); uvc_function_set_alt() local 363 struct uvc_device *uvc = to_uvc(f); uvc_function_disable() local 383 uvc_function_connect(struct uvc_device *uvc) uvc_function_connect() argument 392 uvc_function_disconnect(struct uvc_device *uvc) uvc_function_disconnect() argument 407 struct uvc_device *uvc = dev_get_drvdata(dev); function_name_show() local 415 uvc_register_video(struct uvc_device *uvc) uvc_register_video() argument 463 uvc_copy_descriptors(struct uvc_device *uvc, enum usb_device_speed speed) uvc_copy_descriptors() argument 589 struct uvc_device *uvc = to_uvc(f); uvc_function_bind() local 880 struct uvc_device *uvc = to_uvc(f); uvc_free() local 891 struct uvc_device *uvc = to_uvc(f); uvc_function_unbind() local 931 struct uvc_device *uvc; uvc_alloc() local [all...] |
H A D | uvc_v4l2.c | 23 #include "uvc.h" 33 uvc_send_response(struct uvc_device *uvc, struct uvc_request_data *data) in uvc_send_response() argument 35 struct usb_composite_dev *cdev = uvc->func.config->cdev; in uvc_send_response() 36 struct usb_request *req = uvc->control_req; in uvc_send_response() 41 req->length = min_t(unsigned int, uvc->event_length, data->length); in uvc_send_response() 42 req->zero = data->length < uvc->event_length; in uvc_send_response() 67 struct uvc_device *uvc = video_get_drvdata(vdev); in uvc_v4l2_querycap() local 68 struct usb_composite_dev *cdev = uvc->func.config->cdev; in uvc_v4l2_querycap() 81 struct uvc_device *uvc = video_get_drvdata(vdev); in uvc_v4l2_get_format() local 82 struct uvc_video *video = &uvc in uvc_v4l2_get_format() 100 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_set_format() local 141 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_reqbufs() local 154 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_querybuf() local 164 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_qbuf() local 181 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_dqbuf() local 191 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_streamon() local 217 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_streamoff() local 230 struct uvc_device *uvc = video_get_drvdata(fh->vdev); uvc_v4l2_subscribe_event() local 253 uvc_v4l2_disable(struct uvc_device *uvc) uvc_v4l2_disable() argument 266 struct uvc_device *uvc = video_get_drvdata(fh->vdev); uvc_v4l2_unsubscribe_event() local 287 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_ioctl_default() local 321 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_open() local 341 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_release() local 362 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_mmap() local 371 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_poll() local 382 struct uvc_device *uvc = video_get_drvdata(vdev); uvcg_v4l2_get_unmapped_area() local [all...] |
H A D | f_uvc.h | 14 void uvc_function_setup_continue(struct uvc_device *uvc); 16 void uvc_function_connect(struct uvc_device *uvc); 18 void uvc_function_disconnect(struct uvc_device *uvc);
|
H A D | uvc.h | 78 struct uvc_device *uvc; member 163 extern void uvc_function_setup_continue(struct uvc_device *uvc); 166 extern void uvc_function_connect(struct uvc_device *uvc); 167 extern void uvc_function_disconnect(struct uvc_device *uvc);
|
H A D | uvc_video.c | 18 #include "uvc.h" 134 uvcg_err(&video->uvc->func, "Failed to queue request (%d).\n", in uvcg_video_ep_queue() 157 uvcg_dbg(&video->uvc->func, "VS request cancelled.\n"); in uvc_video_complete() 162 uvcg_warn(&video->uvc->func, in uvc_video_complete() 306 uvcg_info(&video->uvc->func, in uvcg_video_enable() 344 int uvcg_video_init(struct uvc_video *video, struct uvc_device *uvc) in uvcg_video_init() argument 350 video->uvc = uvc; in uvcg_video_init()
|
H A D | uvc_video.h | 19 int uvcg_video_init(struct uvc_video *video, struct uvc_device *uvc);
|
/kernel/linux/linux-6.6/drivers/usb/gadget/function/ |
H A D | f_uvc.c | 27 #include "uvc.h" 207 struct uvc_device *uvc = req->context; in uvc_function_ep0_complete() local 211 if (uvc->event_setup_out) { in uvc_function_ep0_complete() 212 uvc->event_setup_out = 0; in uvc_function_ep0_complete() 219 v4l2_event_queue(&uvc->vdev, &v4l2_event); in uvc_function_ep0_complete() 226 struct uvc_device *uvc = to_uvc(f); in uvc_function_setup() local 245 uvc->event_setup_out = !(ctrl->bRequestType & USB_DIR_IN); in uvc_function_setup() 246 uvc->event_length = le16_to_cpu(ctrl->wLength); in uvc_function_setup() 258 if (interface == uvc->streaming_intf) in uvc_function_setup() 261 v4l2_event_queue(&uvc in uvc_function_setup() 266 uvc_function_setup_continue(struct uvc_device *uvc) uvc_function_setup_continue() argument 276 struct uvc_device *uvc = to_uvc(f); uvc_function_get_alt() local 291 struct uvc_device *uvc = to_uvc(f); uvc_function_set_alt() local 379 struct uvc_device *uvc = to_uvc(f); uvc_function_disable() local 400 uvc_function_connect(struct uvc_device *uvc) uvc_function_connect() argument 409 uvc_function_disconnect(struct uvc_device *uvc) uvc_function_disconnect() argument 424 struct uvc_device *uvc = dev_get_drvdata(dev); function_name_show() local 432 uvc_register_video(struct uvc_device *uvc) uvc_register_video() argument 501 uvc_copy_descriptors(struct uvc_device *uvc, enum usb_device_speed speed) uvc_copy_descriptors() argument 646 struct uvc_device *uvc = to_uvc(f); uvc_function_bind() local 966 struct uvc_device *uvc = to_uvc(f); uvc_free() local 979 struct uvc_device *uvc = to_uvc(f); uvc_function_unbind() local 1025 struct uvc_device *uvc; uvc_alloc() local [all...] |
H A D | uvc_v4l2.c | 14 #include <linux/usb/uvc.h> 24 #include "uvc.h" 76 static struct uvcg_format *find_format_by_index(struct uvc_device *uvc, int index) in find_format_by_index() argument 82 list_for_each_entry(format, &uvc->header->formats, entry) { in find_format_by_index() 93 static struct uvcg_frame *find_frame_by_index(struct uvc_device *uvc, in find_frame_by_index() argument 101 list_for_each_entry(format, &uvc->header->formats, entry) { in find_frame_by_index() 115 static struct uvcg_format *find_format_by_pix(struct uvc_device *uvc, in find_format_by_pix() argument 121 list_for_each_entry(format, &uvc->header->formats, entry) { in find_format_by_pix() 133 static struct uvcg_frame *find_closest_frame_by_size(struct uvc_device *uvc, in find_closest_frame_by_size() argument 137 struct uvc_video *video = &uvc in find_closest_frame_by_size() 182 uvc_send_response(struct uvc_device *uvc, struct uvc_request_data *data) uvc_send_response() argument 206 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_querycap() local 220 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_get_format() local 239 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_try_format() local 279 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_set_format() local 301 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_enum_frameintervals() local 340 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_enum_framesizes() local 366 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_enum_format() local 387 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_reqbufs() local 400 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_querybuf() local 410 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_qbuf() local 428 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_dqbuf() local 438 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_streamon() local 464 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_streamoff() local 477 struct uvc_device *uvc = video_get_drvdata(fh->vdev); uvc_v4l2_subscribe_event() local 500 uvc_v4l2_disable(struct uvc_device *uvc) uvc_v4l2_disable() argument 513 struct uvc_device *uvc = video_get_drvdata(fh->vdev); uvc_v4l2_unsubscribe_event() local 534 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_ioctl_default() local 572 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_open() local 592 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_release() local 613 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_mmap() local 622 struct uvc_device *uvc = video_get_drvdata(vdev); uvc_v4l2_poll() local 633 struct uvc_device *uvc = video_get_drvdata(vdev); uvcg_v4l2_get_unmapped_area() local [all...] |
H A D | uvc_video.c | 19 #include "uvc.h" 31 struct uvc_device *uvc = container_of(video, struct uvc_device, video); in uvc_video_encode_header() local 32 struct usb_composite_dev *cdev = uvc->func.config->cdev; in uvc_video_encode_header() 236 uvcg_err(&video->uvc->func, "Failed to queue request (%d).\n", in uvcg_video_ep_queue() 256 struct uvc_device *uvc = video->uvc; in uvc_video_complete() local 264 uvcg_dbg(&video->uvc->func, "VS request missed xfer.\n"); in uvc_video_complete() 269 uvcg_dbg(&video->uvc->func, "VS request cancelled.\n"); in uvc_video_complete() 274 uvcg_warn(&video->uvc->func, in uvc_video_complete() 289 if (uvc in uvc_video_complete() 536 uvcg_video_init(struct uvc_video *video, struct uvc_device *uvc) uvcg_video_init() argument [all...] |
H A D | f_uvc.h | 14 void uvc_function_setup_continue(struct uvc_device *uvc); 16 void uvc_function_connect(struct uvc_device *uvc); 18 void uvc_function_disconnect(struct uvc_device *uvc);
|
H A D | uvc.h | 87 struct uvc_device *uvc; member 180 extern void uvc_function_setup_continue(struct uvc_device *uvc); 181 extern void uvc_function_connect(struct uvc_device *uvc); 182 extern void uvc_function_disconnect(struct uvc_device *uvc);
|
H A D | uvc_video.h | 19 int uvcg_video_init(struct uvc_video *video, struct uvc_device *uvc);
|
H A D | uvc_queue.c | 23 #include "uvc.h" 137 struct usb_composite_dev *cdev = video->uvc->func.config->cdev; in uvcg_queue_init()
|
/kernel/linux/linux-6.6/drivers/media/common/ |
H A D | uvc.c | 7 #include <linux/usb/uvc.h>
|
/kernel/liteos_a/testsuites/kernel/ |
H A D | test.mk | 335 TESTLIB_SUBDIRS += kernel/sample/drivers/usb/uvc
|
/kernel/linux/linux-6.6/drivers/media/usb/uvc/ |
H A D | uvc_driver.c | 17 #include <linux/usb/uvc.h>
|
H A D | uvc_ctrl.c | 17 #include <linux/usb/uvc.h>
|