Lines Matching refs:self
443 s = hcd->self.bus_name; in rh_string()
530 tbuf[0] = (device_may_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
538 device_set_wakeup_enable(&hcd->self.root_hub->dev, 0); in rh_call_control()
543 if (device_can_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
545 device_set_wakeup_enable(&hcd->self.root_hub->dev, 1); in rh_call_control()
598 if (device_can_wakeup(&hcd->self.root_hub->dev)) in rh_call_control()
622 dev_dbg (hcd->self.controller, "root hub device address %d\n", in rh_call_control()
638 dev_dbg (hcd->self.controller, "no endpoint features yet\n"); in rh_call_control()
663 usb_hub_adjust_deviceremovable(hcd->self.root_hub, in rh_call_control()
674 dev_dbg (hcd->self.controller, in rh_call_control()
786 dev_dbg (hcd->self.controller, "not queuing rh status urb\n"); in rh_queue_status()
1054 struct device *parent_dev = hcd->self.controller; in register_root_hub()
1055 struct usb_device *usb_dev = hcd->self.root_hub; in register_root_hub()
1412 dma_unmap_single(hcd->self.controller, in usb_hcd_unmap_urb_setup_for_dma()
1444 dma_unmap_sg(hcd->self.controller, in usb_hcd_unmap_urb_for_dma()
1449 dma_unmap_page(hcd->self.controller, in usb_hcd_unmap_urb_for_dma()
1454 dma_unmap_single(hcd->self.controller, in usb_hcd_unmap_urb_for_dma()
1493 if (hcd->self.uses_pio_for_control) in usb_hcd_map_urb_for_dma()
1495 if (hcd->self.uses_dma) { in usb_hcd_map_urb_for_dma()
1497 hcd->self.controller, in usb_hcd_map_urb_for_dma()
1501 if (dma_mapping_error(hcd->self.controller, in usb_hcd_map_urb_for_dma()
1521 if (hcd->self.uses_dma) { in usb_hcd_map_urb_for_dma()
1532 hcd->self.controller, in usb_hcd_map_urb_for_dma()
1547 hcd->self.controller, in usb_hcd_map_urb_for_dma()
1552 if (dma_mapping_error(hcd->self.controller, in usb_hcd_map_urb_for_dma()
1562 hcd->self.controller, in usb_hcd_map_urb_for_dma()
1566 if (dma_mapping_error(hcd->self.controller, in usb_hcd_map_urb_for_dma()
1609 usbmon_urb_submit(&hcd->self, urb); in usb_hcd_submit_urb()
1631 usbmon_urb_submit_error(&hcd->self, urb, status); in usb_hcd_submit_urb()
1719 usbmon_urb_complete(&hcd->self, urb, status); in __usb_hcd_giveback_urb()
1862 dev_dbg (hcd->self.controller, in usb_hcd_flush_endpoint()
2211 struct usb_hcd *hcd = container_of(rhdev->bus, struct usb_hcd, self); in hcd_bus_suspend()
2260 struct usb_hcd *hcd = container_of(rhdev->bus, struct usb_hcd, self); in hcd_bus_resume()
2319 struct usb_device *udev = hcd->self.root_hub; in hcd_resume_work()
2374 hcd = container_of (bus, struct usb_hcd, self); in usb_bus_start_enum()
2433 dev_err (hcd->self.controller, "HC died; cleaning up\n"); in usb_hc_died()
2442 usb_set_device_state (hcd->self.root_hub, in usb_hc_died()
2444 usb_kick_hub_wq(hcd->self.root_hub); in usb_hc_died()
2452 usb_set_device_state(hcd->self.root_hub, in usb_hc_died()
2454 usb_kick_hub_wq(hcd->self.root_hub); in usb_hc_died()
2521 usb_bus_init(&hcd->self); in usb_create_shared_hcd()
2522 hcd->self.controller = dev; in usb_create_shared_hcd()
2523 hcd->self.bus_name = bus_name; in usb_create_shared_hcd()
2524 hcd->self.uses_dma = (dev->dma_mask != NULL); in usb_create_shared_hcd()
2629 hcd->driver->description, hcd->self.busnum); in usb_hcd_request_irqs()
2633 dev_err(hcd->self.controller, in usb_hcd_request_irqs()
2639 dev_info(hcd->self.controller, "irq %d, %s 0x%08llx\n", irqnum, in usb_hcd_request_irqs()
2646 dev_info(hcd->self.controller, "%s 0x%08llx\n", in usb_hcd_request_irqs()
2663 rhdev = hcd->self.root_hub; in usb_put_invalidate_rhdev()
2664 hcd->self.root_hub = NULL; in usb_put_invalidate_rhdev()
2686 struct usb_phy *phy = usb_get_phy_dev(hcd->self.controller, 0); in usb_add_hcd()
2704 struct phy *phy = phy_get(hcd->self.controller, "usb"); in usb_add_hcd()
2727 dev_info(hcd->self.controller, "%s\n", hcd->product_desc); in usb_add_hcd()
2752 dev_dbg(hcd->self.controller, "pool alloc failed\n"); in usb_add_hcd()
2756 retval = usb_register_bus(&hcd->self); in usb_add_hcd()
2760 rhdev = usb_alloc_dev(NULL, &hcd->self, 0); in usb_add_hcd()
2762 dev_err(hcd->self.controller, "unable to allocate root hub\n"); in usb_add_hcd()
2767 hcd->self.root_hub = rhdev; in usb_add_hcd()
2807 dev_err(hcd->self.controller, "can't setup: %d\n", in usb_add_hcd()
2815 if (device_can_wakeup(hcd->self.controller) in usb_add_hcd()
2816 && device_can_wakeup(&hcd->self.root_hub->dev)) in usb_add_hcd()
2817 dev_dbg(hcd->self.controller, "supports USB remote wakeup\n"); in usb_add_hcd()
2835 dev_err(hcd->self.controller, "startup error %d\n", retval); in usb_add_hcd()
2885 usb_deregister_bus(&hcd->self); in usb_add_hcd()
2915 struct usb_device *rhdev = hcd->self.root_hub; in usb_remove_hcd()
2917 dev_info(hcd->self.controller, "remove, state %x\n", hcd->state); in usb_remove_hcd()
2926 dev_dbg(hcd->self.controller, "roothub graceful disconnect\n"); in usb_remove_hcd()
2970 usb_deregister_bus(&hcd->self); in usb_remove_hcd()