Lines Matching refs:udev

164 		dev_dbg(&sdev->udev->dev, "shutdown sockfd %d\n", ud->sockfd);  in stub_shutdown_connection()
215 struct usb_device *udev = sdev->udev; in stub_device_reset() local
218 dev_dbg(&udev->dev, "device reset"); in stub_device_reset()
220 ret = usb_lock_device_for_reset(udev, NULL); in stub_device_reset()
222 dev_err(&udev->dev, "lock for reset\n"); in stub_device_reset()
230 ret = usb_reset_device(udev); in stub_device_reset()
231 usb_unlock_device(udev); in stub_device_reset()
235 dev_err(&udev->dev, "device reset\n"); in stub_device_reset()
238 dev_info(&udev->dev, "device reset\n"); in stub_device_reset()
257 static struct stub_device *stub_device_alloc(struct usb_device *udev) in stub_device_alloc() argument
260 int busnum = udev->bus->busnum; in stub_device_alloc()
261 int devnum = udev->devnum; in stub_device_alloc()
263 dev_dbg(&udev->dev, "allocating stub device"); in stub_device_alloc()
270 sdev->udev = usb_get_dev(udev); in stub_device_alloc()
300 dev_dbg(&udev->dev, "register new device\n"); in stub_device_alloc()
310 static int stub_probe(struct usb_device *udev) in stub_probe() argument
313 const char *udev_busid = dev_name(&udev->dev); in stub_probe()
318 dev_dbg(&udev->dev, "Enter probe\n"); in stub_probe()
323 sdev = stub_device_alloc(udev); in stub_probe()
331 dev_info(&udev->dev, in stub_probe()
347 if (udev->descriptor.bDeviceClass == USB_CLASS_HUB) { in stub_probe()
348 dev_dbg(&udev->dev, "%s is a usb hub device... skip!\n", in stub_probe()
354 if (!strcmp(udev->bus->bus_name, "vhci_hcd")) { in stub_probe()
355 dev_dbg(&udev->dev, in stub_probe()
364 dev_info(&udev->dev, in stub_probe()
366 udev->bus->busnum, udev->devnum); in stub_probe()
371 dev_set_drvdata(&udev->dev, sdev); in stub_probe()
374 busid_priv->udev = udev; in stub_probe()
387 rc = usb_hub_claim_port(udev->parent, udev->portnum, in stub_probe()
388 (struct usb_dev_state *) udev); in stub_probe()
390 dev_dbg(&udev->dev, "unable to claim port\n"); in stub_probe()
397 dev_set_drvdata(&udev->dev, NULL); in stub_probe()
412 usb_put_dev(udev); in stub_probe()
430 static void stub_disconnect(struct usb_device *udev) in stub_disconnect() argument
433 const char *udev_busid = dev_name(&udev->dev); in stub_disconnect()
437 dev_dbg(&udev->dev, "Enter disconnect\n"); in stub_disconnect()
445 sdev = dev_get_drvdata(&udev->dev); in stub_disconnect()
449 dev_err(&udev->dev, "could not get device"); in stub_disconnect()
455 dev_set_drvdata(&udev->dev, NULL); in stub_disconnect()
465 rc = usb_hub_release_port(udev->parent, udev->portnum, in stub_disconnect()
466 (struct usb_dev_state *) udev); in stub_disconnect()
473 dev_dbg(&udev->dev, "unable to release port (%i)\n", rc); in stub_disconnect()
491 usb_put_dev(sdev->udev); in stub_disconnect()
511 static int stub_suspend(struct usb_device *udev, pm_message_t message) in stub_suspend() argument
513 dev_dbg(&udev->dev, "stub_suspend\n"); in stub_suspend()
518 static int stub_resume(struct usb_device *udev, pm_message_t message) in stub_resume() argument
520 dev_dbg(&udev->dev, "stub_resume\n"); in stub_resume()