Lines Matching refs:cdev

242 		INFO(f->config->cdev, "invalid request type\n");  in uvc_function_setup()
266 struct usb_composite_dev *cdev = uvc->func.config->cdev; in uvc_function_setup_continue() local
268 usb_composite_setup_continue(cdev); in uvc_function_setup_continue()
276 INFO(f->config->cdev, "uvc_function_get_alt(%u)\n", interface); in uvc_function_get_alt()
290 struct usb_composite_dev *cdev = f->config->cdev; in uvc_function_set_alt() local
295 INFO(cdev, "uvc_function_set_alt(%u, %u)\n", interface, alt); in uvc_function_set_alt()
301 INFO(cdev, "reset UVC Control\n"); in uvc_function_set_alt()
305 if (config_ep_by_speed(cdev->gadget, f, uvc->control_ep)) in uvc_function_set_alt()
313 uvc_event->speed = cdev->gadget->speed; in uvc_function_set_alt()
352 INFO(cdev, "reset UVC\n"); in uvc_function_set_alt()
355 ret = config_ep_by_speed(f->config->cdev->gadget, in uvc_function_set_alt()
377 INFO(f->config->cdev, "uvc_function_disable\n"); in uvc_function_disable()
396 struct usb_composite_dev *cdev = uvc->func.config->cdev; in uvc_function_connect() local
400 INFO(cdev, "UVC connect failed with %d\n", ret); in uvc_function_connect()
406 struct usb_composite_dev *cdev = uvc->func.config->cdev; in uvc_function_disconnect() local
410 INFO(cdev, "UVC disconnect failed with %d\n", ret); in uvc_function_disconnect()
420 struct usb_composite_dev *cdev = uvc->func.config->cdev; in uvc_register_video() local
429 strlcpy(uvc->vdev.name, cdev->gadget->name, sizeof(uvc->vdev.name)); in uvc_register_video()
579 struct usb_composite_dev *cdev = c->cdev; in uvc_function_bind() local
588 INFO(cdev, "uvc_function_bind\n"); in uvc_function_bind()
631 ep = usb_ep_autoconfig(cdev->gadget, &uvc_control_ep); in uvc_function_bind()
633 INFO(cdev, "Unable to allocate control EP\n"); in uvc_function_bind()
638 if (gadget_is_superspeed(c->cdev->gadget)) in uvc_function_bind()
639 ep = usb_ep_autoconfig_ss(cdev->gadget, &uvc_ss_streaming_ep, in uvc_function_bind()
641 else if (gadget_is_dualspeed(cdev->gadget)) in uvc_function_bind()
642 ep = usb_ep_autoconfig(cdev->gadget, &uvc_hs_streaming_ep); in uvc_function_bind()
644 ep = usb_ep_autoconfig(cdev->gadget, &uvc_fs_streaming_ep); in uvc_function_bind()
647 INFO(cdev, "Unable to allocate streaming EP\n"); in uvc_function_bind()
656 us = usb_gstrings_attach(cdev, uvc_function_strings, in uvc_function_bind()
688 if (gadget_is_dualspeed(cdev->gadget)) { in uvc_function_bind()
696 if (gadget_is_superspeed(c->cdev->gadget)) { in uvc_function_bind()
706 uvc->control_req = usb_ep_alloc_request(cdev->gadget->ep0, GFP_KERNEL); in uvc_function_bind()
717 if (v4l2_device_register(&cdev->gadget->dev, &uvc->v4l2_dev)) { in uvc_function_bind()
740 usb_ep_free_request(cdev->gadget->ep0, uvc->control_req); in uvc_function_bind()
858 struct usb_composite_dev *cdev = c->cdev; in uvc_unbind() local
861 INFO(cdev, "%s\n", __func__); in uvc_unbind()
866 usb_ep_free_request(cdev->gadget->ep0, uvc->control_req); in uvc_unbind()