Lines Matching refs:rhdev

2158 int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg)  in hcd_bus_suspend()  argument
2160 struct usb_hcd *hcd = container_of(rhdev->bus, struct usb_hcd, self); in hcd_bus_suspend()
2164 dev_dbg(&rhdev->dev, "bus %ssuspend, wakeup %d\n", in hcd_bus_suspend()
2166 rhdev->do_remote_wakeup); in hcd_bus_suspend()
2168 dev_dbg(&rhdev->dev, "skipped %s of dead bus\n", "suspend"); in hcd_bus_suspend()
2180 usb_set_device_state(rhdev, USB_STATE_SUSPENDED); in hcd_bus_suspend()
2184 if (rhdev->do_remote_wakeup) { in hcd_bus_suspend()
2189 dev_dbg(&rhdev->dev, "suspend raced with wakeup event\n"); in hcd_bus_suspend()
2190 hcd_bus_resume(rhdev, PMSG_AUTO_RESUME); in hcd_bus_suspend()
2201 dev_dbg(&rhdev->dev, "bus %s fail, err %d\n", in hcd_bus_suspend()
2207 int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg) in hcd_bus_resume() argument
2209 struct usb_hcd *hcd = container_of(rhdev->bus, struct usb_hcd, self); in hcd_bus_resume()
2213 dev_dbg(&rhdev->dev, "usb %sresume\n", in hcd_bus_resume()
2216 dev_dbg(&rhdev->dev, "skipped %s of dead bus\n", "resume"); in hcd_bus_resume()
2233 usb_set_device_state(rhdev, rhdev->actconfig in hcd_bus_resume()
2247 usb_hub_for_each_child(rhdev, port1, udev) { in hcd_bus_resume()
2256 dev_dbg(&rhdev->dev, "bus %s fail, err %d\n", in hcd_bus_resume()
2620 struct usb_device *rhdev; in usb_put_invalidate_rhdev() local
2623 rhdev = hcd->self.root_hub; in usb_put_invalidate_rhdev()
2626 usb_put_dev(rhdev); in usb_put_invalidate_rhdev()
2643 struct usb_device *rhdev; in usb_add_hcd() local
2708 if ((rhdev = usb_alloc_dev(NULL, &hcd->self, 0)) == NULL) { in usb_add_hcd()
2714 hcd->self.root_hub = rhdev; in usb_add_hcd()
2719 rhdev->speed = USB_SPEED_FULL; in usb_add_hcd()
2722 rhdev->speed = USB_SPEED_HIGH; in usb_add_hcd()
2725 rhdev->speed = USB_SPEED_WIRELESS; in usb_add_hcd()
2728 rhdev->speed = USB_SPEED_SUPER; in usb_add_hcd()
2739 device_set_wakeup_capable(&rhdev->dev, 1); in usb_add_hcd()
2785 retval = sysfs_create_group(&rhdev->dev.kobj, &usb_bus_attr_group); in usb_add_hcd()
2808 usb_disconnect(&rhdev); /* Sets rhdev to NULL */ in usb_add_hcd()
2856 struct usb_device *rhdev = hcd->self.root_hub; in usb_remove_hcd() local
2860 usb_get_dev(rhdev); in usb_remove_hcd()
2861 sysfs_remove_group(&rhdev->dev.kobj, &usb_bus_attr_group); in usb_remove_hcd()
2877 usb_disconnect(&rhdev); /* Sets rhdev to NULL */ in usb_remove_hcd()