Lines Matching refs:udev

166 		dev_dbg(&sdev->udev->dev, "shutdown tcp_socket %p\n",  in stub_shutdown_connection()
217 struct usb_device *udev = sdev->udev; in stub_device_reset() local
220 dev_dbg(&udev->dev, "device reset"); in stub_device_reset()
222 ret = usb_lock_device_for_reset(udev, sdev->interface); in stub_device_reset()
224 dev_err(&udev->dev, "lock for reset\n"); in stub_device_reset()
232 ret = usb_reset_device(udev); in stub_device_reset()
233 usb_unlock_device(udev); in stub_device_reset()
237 dev_err(&udev->dev, "device reset\n"); in stub_device_reset()
240 dev_info(&udev->dev, "device reset\n"); in stub_device_reset()
259 static struct stub_device *stub_device_alloc(struct usb_device *udev) in stub_device_alloc() argument
262 int busnum = udev->bus->busnum; in stub_device_alloc()
263 int devnum = udev->devnum; in stub_device_alloc()
265 dev_dbg(&udev->dev, "allocating stub device"); in stub_device_alloc()
272 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()
317 dev_dbg(&udev->dev, "Enter\n"); in stub_probe()
323 dev_info(&udev->dev, in stub_probe()
335 if (udev->descriptor.bDeviceClass == USB_CLASS_HUB) { in stub_probe()
336 dev_dbg(&udev->dev, "%s is a usb hub device... skip!\n", in stub_probe()
341 if (!strcmp(udev->bus->bus_name, "vhci_hcd")) { in stub_probe()
342 dev_dbg(&udev->dev, in stub_probe()
350 sdev = stub_device_alloc(udev); in stub_probe()
354 dev_info(&udev->dev, in stub_probe()
356 udev->bus->busnum, udev->devnum); in stub_probe()
361 dev_set_drvdata(&udev->dev, sdev); in stub_probe()
363 busid_priv->udev = udev; in stub_probe()
370 rc = usb_hub_claim_port(udev->parent, udev->portnum, in stub_probe()
371 (struct usb_dev_state *) udev); in stub_probe()
373 dev_dbg(&udev->dev, "unable to claim port\n"); in stub_probe()
377 rc = stub_add_files(&udev->dev); in stub_probe()
379 dev_err(&udev->dev, "stub_add_files for %s\n", udev_busid); in stub_probe()
386 usb_hub_release_port(udev->parent, udev->portnum, in stub_probe()
387 (struct usb_dev_state *) udev); in stub_probe()
389 dev_set_drvdata(&udev->dev, NULL); in stub_probe()
390 usb_put_dev(udev); in stub_probe()
413 static void stub_disconnect(struct usb_device *udev) in stub_disconnect() argument
416 const char *udev_busid = dev_name(&udev->dev); in stub_disconnect()
420 dev_dbg(&udev->dev, "Enter\n"); in stub_disconnect()
428 sdev = dev_get_drvdata(&udev->dev); in stub_disconnect()
432 dev_err(&udev->dev, "could not get device"); in stub_disconnect()
436 dev_set_drvdata(&udev->dev, NULL); in stub_disconnect()
441 stub_remove_files(&udev->dev); in stub_disconnect()
444 rc = usb_hub_release_port(udev->parent, udev->portnum, in stub_disconnect()
445 (struct usb_dev_state *) udev); in stub_disconnect()
447 dev_dbg(&udev->dev, "unable to release port\n"); in stub_disconnect()
458 usb_put_dev(sdev->udev); in stub_disconnect()
477 static int stub_suspend(struct usb_device *udev, pm_message_t message) in stub_suspend() argument
479 dev_dbg(&udev->dev, "stub_suspend\n"); in stub_suspend()
484 static int stub_resume(struct usb_device *udev, pm_message_t message) in stub_resume() argument
486 dev_dbg(&udev->dev, "stub_resume\n"); in stub_resume()