Lines Matching refs:rhdev
2240 int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg) in hcd_bus_suspend() argument
2242 struct usb_hcd *hcd = bus_to_hcd(rhdev->bus); in hcd_bus_suspend()
2246 dev_dbg(&rhdev->dev, "bus %ssuspend, wakeup %d\n", in hcd_bus_suspend()
2248 rhdev->do_remote_wakeup); in hcd_bus_suspend()
2250 dev_dbg(&rhdev->dev, "skipped %s of dead bus\n", "suspend"); in hcd_bus_suspend()
2262 usb_set_device_state(rhdev, USB_STATE_SUSPENDED); in hcd_bus_suspend()
2270 if (rhdev->do_remote_wakeup) { in hcd_bus_suspend()
2275 dev_dbg(&rhdev->dev, "suspend raced with wakeup event\n"); in hcd_bus_suspend()
2276 hcd_bus_resume(rhdev, PMSG_AUTO_RESUME); in hcd_bus_suspend()
2287 dev_dbg(&rhdev->dev, "bus %s fail, err %d\n", in hcd_bus_suspend()
2293 int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg) in hcd_bus_resume() argument
2295 struct usb_hcd *hcd = bus_to_hcd(rhdev->bus); in hcd_bus_resume()
2299 dev_dbg(&rhdev->dev, "usb %sresume\n", in hcd_bus_resume()
2302 dev_dbg(&rhdev->dev, "skipped %s of dead bus\n", "resume"); in hcd_bus_resume()
2327 usb_set_device_state(rhdev, rhdev->actconfig in hcd_bus_resume()
2341 usb_hub_for_each_child(rhdev, port1, udev) { in hcd_bus_resume()
2351 dev_dbg(&rhdev->dev, "bus %s fail, err %d\n", in hcd_bus_resume()
2721 struct usb_device *rhdev; in usb_put_invalidate_rhdev() local
2724 rhdev = hcd->self.root_hub; in usb_put_invalidate_rhdev()
2727 usb_put_dev(rhdev); in usb_put_invalidate_rhdev()
2744 struct usb_device *rhdev; in usb_add_hcd() local
2793 rhdev = usb_alloc_dev(NULL, &hcd->self, 0); in usb_add_hcd()
2794 if (rhdev == NULL) { in usb_add_hcd()
2800 hcd->self.root_hub = rhdev; in usb_add_hcd()
2803 rhdev->rx_lanes = 1; in usb_add_hcd()
2804 rhdev->tx_lanes = 1; in usb_add_hcd()
2808 rhdev->speed = USB_SPEED_FULL; in usb_add_hcd()
2811 rhdev->speed = USB_SPEED_HIGH; in usb_add_hcd()
2814 rhdev->speed = USB_SPEED_WIRELESS; in usb_add_hcd()
2817 rhdev->speed = USB_SPEED_SUPER; in usb_add_hcd()
2820 rhdev->rx_lanes = 2; in usb_add_hcd()
2821 rhdev->tx_lanes = 2; in usb_add_hcd()
2824 rhdev->speed = USB_SPEED_SUPER_PLUS; in usb_add_hcd()
2835 device_set_wakeup_capable(&rhdev->dev, 1); in usb_add_hcd()
2886 retval = sysfs_create_group(&rhdev->dev.kobj, &usb_bus_attr_group); in usb_add_hcd()
2909 usb_disconnect(&rhdev); /* Sets rhdev to NULL */ in usb_add_hcd()
2949 struct usb_device *rhdev = hcd->self.root_hub; in usb_remove_hcd() local
2953 usb_get_dev(rhdev); in usb_remove_hcd()
2954 sysfs_remove_group(&rhdev->dev.kobj, &usb_bus_attr_group); in usb_remove_hcd()
2970 usb_disconnect(&rhdev); /* Sets rhdev to NULL */ in usb_remove_hcd()