Lines Matching refs:self
442 s = hcd->self.bus_name; in rh_string()
531 tbuf[0] = (device_may_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
539 device_set_wakeup_enable(&hcd->self.root_hub->dev, 0); in rh_call_control()
544 if (device_can_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
546 device_set_wakeup_enable(&hcd->self.root_hub->dev, 1); in rh_call_control()
597 if (device_can_wakeup(&hcd->self.root_hub->dev)) in rh_call_control()
621 dev_dbg (hcd->self.controller, "root hub device address %d\n", in rh_call_control()
637 dev_dbg (hcd->self.controller, "no endpoint features yet\n"); in rh_call_control()
662 usb_hub_adjust_deviceremovable(hcd->self.root_hub, in rh_call_control()
673 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()
1006 struct device *parent_dev = hcd->self.controller; in register_root_hub()
1007 struct usb_device *usb_dev = hcd->self.root_hub; in register_root_hub()
1361 dma_unmap_single(hcd->self.controller, in usb_hcd_unmap_urb_setup_for_dma()
1393 dma_unmap_sg(hcd->self.controller, in usb_hcd_unmap_urb_for_dma()
1398 dma_unmap_page(hcd->self.controller, in usb_hcd_unmap_urb_for_dma()
1403 dma_unmap_single(hcd->self.controller, in usb_hcd_unmap_urb_for_dma()
1442 if (hcd->self.uses_pio_for_control) in usb_hcd_map_urb_for_dma()
1444 if (hcd->self.uses_dma) { in usb_hcd_map_urb_for_dma()
1446 hcd->self.controller, in usb_hcd_map_urb_for_dma()
1450 if (dma_mapping_error(hcd->self.controller, in usb_hcd_map_urb_for_dma()
1470 if (hcd->self.uses_dma) { in usb_hcd_map_urb_for_dma()
1481 hcd->self.controller, in usb_hcd_map_urb_for_dma()
1496 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()
1511 hcd->self.controller, in usb_hcd_map_urb_for_dma()
1515 if (dma_mapping_error(hcd->self.controller, in usb_hcd_map_urb_for_dma()
1558 usbmon_urb_submit(&hcd->self, urb); in usb_hcd_submit_urb()
1580 usbmon_urb_submit_error(&hcd->self, urb, status); in usb_hcd_submit_urb()
1668 usbmon_urb_complete(&hcd->self, urb, status); in __usb_hcd_giveback_urb()
1811 dev_dbg (hcd->self.controller, in usb_hcd_flush_endpoint()
2160 struct usb_hcd *hcd = container_of(rhdev->bus, struct usb_hcd, self); in hcd_bus_suspend()
2209 struct usb_hcd *hcd = container_of(rhdev->bus, struct usb_hcd, self); in hcd_bus_resume()
2272 struct usb_device *udev = hcd->self.root_hub; in hcd_resume_work()
2327 hcd = container_of (bus, struct usb_hcd, self); in usb_bus_start_enum()
2386 dev_err (hcd->self.controller, "HC died; cleaning up\n"); in usb_hc_died()
2395 usb_set_device_state (hcd->self.root_hub, in usb_hc_died()
2397 usb_kick_hub_wq(hcd->self.root_hub); in usb_hc_died()
2407 usb_set_device_state(hcd->self.root_hub, in usb_hc_died()
2409 usb_kick_hub_wq(hcd->self.root_hub); in usb_hc_died()
2486 usb_bus_init(&hcd->self); in usb_create_shared_hcd()
2487 hcd->self.controller = dev; in usb_create_shared_hcd()
2488 hcd->self.bus_name = bus_name; in usb_create_shared_hcd()
2489 hcd->self.uses_dma = (dev->dma_mask != NULL); in usb_create_shared_hcd()
2593 hcd->driver->description, hcd->self.busnum); in usb_hcd_request_irqs()
2597 dev_err(hcd->self.controller, in usb_hcd_request_irqs()
2603 dev_info(hcd->self.controller, "irq %d, %s 0x%08llx\n", irqnum, in usb_hcd_request_irqs()
2610 dev_info(hcd->self.controller, "%s 0x%08llx\n", in usb_hcd_request_irqs()
2627 rhdev = hcd->self.root_hub; in usb_put_invalidate_rhdev()
2628 hcd->self.root_hub = NULL; in usb_put_invalidate_rhdev()
2650 struct usb_phy *phy = usb_get_phy_dev(hcd->self.controller, 0); in usb_add_hcd()
2668 struct phy *phy = phy_get(hcd->self.controller, "usb"); in usb_add_hcd()
2690 dev_info(hcd->self.controller, "%s\n", hcd->product_desc); in usb_add_hcd()
2704 dev_dbg(hcd->self.controller, "pool alloc failed\n"); in usb_add_hcd()
2708 if ((retval = usb_register_bus(&hcd->self)) < 0) in usb_add_hcd()
2711 if ((rhdev = usb_alloc_dev(NULL, &hcd->self, 0)) == NULL) { in usb_add_hcd()
2712 dev_err(hcd->self.controller, "unable to allocate root hub\n"); in usb_add_hcd()
2717 hcd->self.root_hub = rhdev; in usb_add_hcd()
2754 dev_err(hcd->self.controller, "can't setup: %d\n", retval); in usb_add_hcd()
2760 if (device_can_wakeup(hcd->self.controller) in usb_add_hcd()
2761 && device_can_wakeup(&hcd->self.root_hub->dev)) in usb_add_hcd()
2762 dev_dbg(hcd->self.controller, "supports USB remote wakeup\n"); in usb_add_hcd()
2780 dev_err(hcd->self.controller, "startup error %d\n", retval); in usb_add_hcd()
2829 usb_deregister_bus(&hcd->self); in usb_add_hcd()
2859 struct usb_device *rhdev = hcd->self.root_hub; in usb_remove_hcd()
2861 dev_info(hcd->self.controller, "remove, state %x\n", hcd->state); in usb_remove_hcd()
2870 dev_dbg(hcd->self.controller, "roothub graceful disconnect\n"); in usb_remove_hcd()
2914 usb_deregister_bus(&hcd->self); in usb_remove_hcd()