Lines Matching refs:rhdev
1911 int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg)
1913 struct usb_hcd *hcd = container_of(rhdev->bus, struct usb_hcd, self);
1917 dev_dbg(&rhdev->dev, "bus %s%s\n",
1926 usb_set_device_state(rhdev, USB_STATE_SUSPENDED);
1930 dev_dbg(&rhdev->dev, "bus %s fail, err %d\n",
1936 int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg)
1938 struct usb_hcd *hcd = container_of(rhdev->bus, struct usb_hcd, self);
1942 dev_dbg(&rhdev->dev, "usb %s%s\n",
1955 usb_set_device_state(rhdev, rhdev->actconfig
1961 dev_dbg(&rhdev->dev, "bus %s fail, err %d\n",
2199 struct usb_device *rhdev;
2218 if ((rhdev = usb_alloc_dev(NULL, &hcd->self, 0)) == NULL) {
2223 hcd->self.root_hub = rhdev;
2227 rhdev->speed = USB_SPEED_FULL;
2230 rhdev->speed = USB_SPEED_HIGH;
2233 rhdev->speed = USB_SPEED_SUPER;
2243 device_init_wakeup(&rhdev->dev, 1);
2297 rhdev->bus_mA = min(500u, hcd->power_budget);
2301 retval = sysfs_create_group(&rhdev->dev.kobj, &usb_bus_attr_group);
2322 usb_disconnect(&rhdev); /* Sets rhdev to NULL */
2357 struct usb_device *rhdev = hcd->self.root_hub;
2361 usb_get_dev(rhdev);
2362 sysfs_remove_group(&rhdev->dev.kobj, &usb_bus_attr_group);
2377 usb_disconnect(&rhdev); /* Sets rhdev to NULL */