• Home
  • Raw
  • Download

Lines Matching refs:rhdev

2233 int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg)  in hcd_bus_suspend()  argument
2235 struct usb_hcd *hcd = container_of(rhdev->bus, struct usb_hcd, self); in hcd_bus_suspend()
2239 dev_dbg(&rhdev->dev, "bus %ssuspend, wakeup %d\n", in hcd_bus_suspend()
2241 rhdev->do_remote_wakeup); in hcd_bus_suspend()
2243 dev_dbg(&rhdev->dev, "skipped %s of dead bus\n", "suspend"); in hcd_bus_suspend()
2255 usb_set_device_state(rhdev, USB_STATE_SUSPENDED); in hcd_bus_suspend()
2259 if (rhdev->do_remote_wakeup) { in hcd_bus_suspend()
2264 dev_dbg(&rhdev->dev, "suspend raced with wakeup event\n"); in hcd_bus_suspend()
2265 hcd_bus_resume(rhdev, PMSG_AUTO_RESUME); in hcd_bus_suspend()
2276 dev_dbg(&rhdev->dev, "bus %s fail, err %d\n", in hcd_bus_suspend()
2282 int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg) in hcd_bus_resume() argument
2284 struct usb_hcd *hcd = container_of(rhdev->bus, struct usb_hcd, self); in hcd_bus_resume()
2288 dev_dbg(&rhdev->dev, "usb %sresume\n", in hcd_bus_resume()
2291 dev_dbg(&rhdev->dev, "skipped %s of dead bus\n", "resume"); in hcd_bus_resume()
2308 usb_set_device_state(rhdev, rhdev->actconfig in hcd_bus_resume()
2322 usb_hub_for_each_child(rhdev, port1, udev) { in hcd_bus_resume()
2331 dev_dbg(&rhdev->dev, "bus %s fail, err %d\n", in hcd_bus_resume()
2696 struct usb_device *rhdev; in usb_put_invalidate_rhdev() local
2699 rhdev = hcd->self.root_hub; in usb_put_invalidate_rhdev()
2702 usb_put_dev(rhdev); in usb_put_invalidate_rhdev()
2719 struct usb_device *rhdev; in usb_add_hcd() local
2796 rhdev = usb_alloc_dev(NULL, &hcd->self, 0); in usb_add_hcd()
2797 if (rhdev == NULL) { in usb_add_hcd()
2803 hcd->self.root_hub = rhdev; 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()
2818 rhdev->speed = USB_SPEED_SUPER; in usb_add_hcd()
2829 device_set_wakeup_capable(&rhdev->dev, 1); in usb_add_hcd()
2880 retval = sysfs_create_group(&rhdev->dev.kobj, &usb_bus_attr_group); in usb_add_hcd()
2903 usb_disconnect(&rhdev); /* Sets rhdev to NULL */ in usb_add_hcd()
2951 struct usb_device *rhdev = hcd->self.root_hub; in usb_remove_hcd() local
2955 usb_get_dev(rhdev); in usb_remove_hcd()
2956 sysfs_remove_group(&rhdev->dev.kobj, &usb_bus_attr_group); in usb_remove_hcd()
2972 usb_disconnect(&rhdev); /* Sets rhdev to NULL */ in usb_remove_hcd()