Lines Matching refs:udev

128 		dev_dbg(&sdev->udev->dev, "shutdown sockfd %d\n", ud->sockfd);  in stub_shutdown_connection()
179 struct usb_device *udev = sdev->udev; in stub_device_reset() local
182 dev_dbg(&udev->dev, "device reset"); in stub_device_reset()
184 ret = usb_lock_device_for_reset(udev, NULL); in stub_device_reset()
186 dev_err(&udev->dev, "lock for reset\n"); in stub_device_reset()
194 ret = usb_reset_device(udev); in stub_device_reset()
195 usb_unlock_device(udev); in stub_device_reset()
199 dev_err(&udev->dev, "device reset\n"); in stub_device_reset()
202 dev_info(&udev->dev, "device reset\n"); in stub_device_reset()
221 static struct stub_device *stub_device_alloc(struct usb_device *udev) in stub_device_alloc() argument
224 int busnum = udev->bus->busnum; in stub_device_alloc()
225 int devnum = udev->devnum; in stub_device_alloc()
227 dev_dbg(&udev->dev, "allocating stub device"); in stub_device_alloc()
234 sdev->udev = usb_get_dev(udev); in stub_device_alloc()
263 dev_dbg(&udev->dev, "register new device\n"); in stub_device_alloc()
273 static int stub_probe(struct usb_device *udev) in stub_probe() argument
276 const char *udev_busid = dev_name(&udev->dev); in stub_probe()
281 dev_dbg(&udev->dev, "Enter probe\n"); in stub_probe()
286 sdev = stub_device_alloc(udev); in stub_probe()
294 dev_info(&udev->dev, in stub_probe()
310 if (udev->descriptor.bDeviceClass == USB_CLASS_HUB) { in stub_probe()
311 dev_dbg(&udev->dev, "%s is a usb hub device... skip!\n", in stub_probe()
317 if (!strcmp(udev->bus->bus_name, "vhci_hcd")) { in stub_probe()
318 dev_dbg(&udev->dev, in stub_probe()
327 dev_info(&udev->dev, in stub_probe()
329 udev->bus->busnum, udev->devnum); in stub_probe()
334 dev_set_drvdata(&udev->dev, sdev); in stub_probe()
337 busid_priv->udev = udev; in stub_probe()
350 rc = usb_hub_claim_port(udev->parent, udev->portnum, in stub_probe()
351 (struct usb_dev_state *) udev); in stub_probe()
353 dev_dbg(&udev->dev, "unable to claim port\n"); in stub_probe()
360 dev_set_drvdata(&udev->dev, NULL); in stub_probe()
361 usb_put_dev(udev); in stub_probe()
393 static void stub_disconnect(struct usb_device *udev) in stub_disconnect() argument
396 const char *udev_busid = dev_name(&udev->dev); in stub_disconnect()
400 dev_dbg(&udev->dev, "Enter disconnect\n"); in stub_disconnect()
408 sdev = dev_get_drvdata(&udev->dev); in stub_disconnect()
412 dev_err(&udev->dev, "could not get device"); in stub_disconnect()
418 dev_set_drvdata(&udev->dev, NULL); in stub_disconnect()
428 rc = usb_hub_release_port(udev->parent, udev->portnum, in stub_disconnect()
429 (struct usb_dev_state *) udev); in stub_disconnect()
431 dev_dbg(&udev->dev, "unable to release port\n"); in stub_disconnect()
449 usb_put_dev(sdev->udev); in stub_disconnect()
469 static int stub_suspend(struct usb_device *udev, pm_message_t message) in stub_suspend() argument
471 dev_dbg(&udev->dev, "stub_suspend\n"); in stub_suspend()
476 static int stub_resume(struct usb_device *udev, pm_message_t message) in stub_resume() argument
478 dev_dbg(&udev->dev, "stub_resume\n"); in stub_resume()