Lines Matching refs:udev
162 dev_dbg(&sdev->udev->dev, "shutdown sockfd %d\n", ud->sockfd); in stub_shutdown_connection()
213 struct usb_device *udev = sdev->udev; in stub_device_reset() local
216 dev_dbg(&udev->dev, "device reset"); in stub_device_reset()
218 ret = usb_lock_device_for_reset(udev, NULL); in stub_device_reset()
220 dev_err(&udev->dev, "lock for reset\n"); in stub_device_reset()
228 ret = usb_reset_device(udev); in stub_device_reset()
229 usb_unlock_device(udev); in stub_device_reset()
233 dev_err(&udev->dev, "device reset\n"); in stub_device_reset()
236 dev_info(&udev->dev, "device reset\n"); in stub_device_reset()
255 static struct stub_device *stub_device_alloc(struct usb_device *udev) in stub_device_alloc() argument
258 int busnum = udev->bus->busnum; in stub_device_alloc()
259 int devnum = udev->devnum; in stub_device_alloc()
261 dev_dbg(&udev->dev, "allocating stub device"); in stub_device_alloc()
268 sdev->udev = usb_get_dev(udev); in stub_device_alloc()
298 dev_dbg(&udev->dev, "register new device\n"); in stub_device_alloc()
308 static int stub_probe(struct usb_device *udev) in stub_probe() argument
311 const char *udev_busid = dev_name(&udev->dev); in stub_probe()
316 dev_dbg(&udev->dev, "Enter probe\n"); in stub_probe()
321 sdev = stub_device_alloc(udev); in stub_probe()
329 dev_info(&udev->dev, in stub_probe()
345 if (udev->descriptor.bDeviceClass == USB_CLASS_HUB) { in stub_probe()
346 dev_dbg(&udev->dev, "%s is a usb hub device... skip!\n", in stub_probe()
352 if (!strcmp(udev->bus->bus_name, "vhci_hcd")) { in stub_probe()
353 dev_dbg(&udev->dev, in stub_probe()
362 dev_info(&udev->dev, in stub_probe()
364 udev->bus->busnum, udev->devnum); in stub_probe()
369 dev_set_drvdata(&udev->dev, sdev); in stub_probe()
372 busid_priv->udev = udev; in stub_probe()
385 rc = usb_hub_claim_port(udev->parent, udev->portnum, in stub_probe()
386 (struct usb_dev_state *) udev); in stub_probe()
388 dev_dbg(&udev->dev, "unable to claim port\n"); in stub_probe()
395 dev_set_drvdata(&udev->dev, NULL); in stub_probe()
410 usb_put_dev(udev); in stub_probe()
428 static void stub_disconnect(struct usb_device *udev) in stub_disconnect() argument
431 const char *udev_busid = dev_name(&udev->dev); in stub_disconnect()
435 dev_dbg(&udev->dev, "Enter disconnect\n"); in stub_disconnect()
443 sdev = dev_get_drvdata(&udev->dev); in stub_disconnect()
447 dev_err(&udev->dev, "could not get device"); in stub_disconnect()
453 dev_set_drvdata(&udev->dev, NULL); in stub_disconnect()
463 rc = usb_hub_release_port(udev->parent, udev->portnum, in stub_disconnect()
464 (struct usb_dev_state *) udev); in stub_disconnect()
471 dev_dbg(&udev->dev, "unable to release port (%i)\n", rc); in stub_disconnect()
489 usb_put_dev(sdev->udev); in stub_disconnect()
509 static int stub_suspend(struct usb_device *udev, pm_message_t message) in stub_suspend() argument
511 dev_dbg(&udev->dev, "stub_suspend\n"); in stub_suspend()
516 static int stub_resume(struct usb_device *udev, pm_message_t message) in stub_resume() argument
518 dev_dbg(&udev->dev, "stub_resume\n"); in stub_resume()