Lines Matching refs:self

433 		s = hcd->self.bus_name;  in rh_string()
522 tbuf[0] = (device_may_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
530 device_set_wakeup_enable(&hcd->self.root_hub->dev, 0); in rh_call_control()
535 if (device_can_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
537 device_set_wakeup_enable(&hcd->self.root_hub->dev, 1); in rh_call_control()
590 if (device_can_wakeup(&hcd->self.root_hub->dev)) in rh_call_control()
614 dev_dbg (hcd->self.controller, "root hub device address %d\n", in rh_call_control()
630 dev_dbg (hcd->self.controller, "no endpoint features yet\n"); in rh_call_control()
661 usb_hub_adjust_deviceremovable(hcd->self.root_hub, in rh_call_control()
672 dev_dbg (hcd->self.controller, in rh_call_control()
793 dev_dbg (hcd->self.controller, "not queuing rh status urb\n"); in rh_queue_status()
957 struct device *parent_dev = hcd->self.controller; in register_root_hub()
958 struct usb_device *usb_dev = hcd->self.root_hub; in register_root_hub()
1313 dma_unmap_single(hcd->self.sysdev, in usb_hcd_unmap_urb_setup_for_dma()
1346 dma_unmap_sg(hcd->self.sysdev, in usb_hcd_unmap_urb_for_dma()
1352 dma_unmap_page(hcd->self.sysdev, in usb_hcd_unmap_urb_for_dma()
1358 dma_unmap_single(hcd->self.sysdev, in usb_hcd_unmap_urb_for_dma()
1369 dma_sync_sgtable_for_cpu(hcd->self.sysdev, urb->sgt, dir); in usb_hcd_unmap_urb_for_dma()
1403 if (hcd->self.uses_pio_for_control) in usb_hcd_map_urb_for_dma()
1422 hcd->self.sysdev, in usb_hcd_map_urb_for_dma()
1426 if (dma_mapping_error(hcd->self.sysdev, in usb_hcd_map_urb_for_dma()
1441 dma_sync_sgtable_for_device(hcd->self.sysdev, urb->sgt, dir); in usb_hcd_map_urb_for_dma()
1463 hcd->self.sysdev, in usb_hcd_map_urb_for_dma()
1478 hcd->self.sysdev, in usb_hcd_map_urb_for_dma()
1483 if (dma_mapping_error(hcd->self.sysdev, in usb_hcd_map_urb_for_dma()
1493 hcd->self.sysdev, in usb_hcd_map_urb_for_dma()
1497 if (dma_mapping_error(hcd->self.sysdev, in usb_hcd_map_urb_for_dma()
1531 usbmon_urb_submit(&hcd->self, urb); in usb_hcd_submit_urb()
1553 usbmon_urb_submit_error(&hcd->self, urb, status); in usb_hcd_submit_urb()
1648 usbmon_urb_complete(&hcd->self, urb, status); in __usb_hcd_giveback_urb()
1801 dev_dbg (hcd->self.controller, in usb_hcd_flush_endpoint()
2193 udev = usb_hub_find_child(hcd->self.root_hub, port); in ehset_single_step_set_feature()
2195 dev_err(hcd->self.controller, "No device attached to the RootHub\n"); in ehset_single_step_set_feature()
2225 dev_err(hcd->self.controller, in ehset_single_step_set_feature()
2241 dev_err(hcd->self.controller, in ehset_single_step_set_feature()
2284 usb_phy_roothub_suspend(hcd->self.sysdev, in hcd_bus_suspend()
2325 status = usb_phy_roothub_resume(hcd->self.sysdev, in hcd_bus_resume()
2371 usb_phy_roothub_suspend(hcd->self.sysdev, hcd->phy_roothub); in hcd_bus_resume()
2384 struct usb_device *udev = hcd->self.root_hub; in hcd_resume_work()
2404 pm_wakeup_event(&hcd->self.root_hub->dev, 0); in usb_hcd_resume_root_hub()
2495 kobject_uevent_env(&hcd->self.root_hub->dev.kobj, KOBJ_OFFLINE, env); in hcd_died_work()
2512 dev_err (hcd->self.controller, "HC died; cleaning up\n"); in usb_hc_died()
2521 usb_set_device_state (hcd->self.root_hub, in usb_hc_died()
2523 usb_kick_hub_wq(hcd->self.root_hub); in usb_hc_died()
2533 usb_set_device_state(hcd->self.root_hub, in usb_hc_died()
2535 usb_kick_hub_wq(hcd->self.root_hub); in usb_hc_died()
2601 usb_bus_init(&hcd->self); in __usb_create_hcd()
2602 hcd->self.controller = dev; in __usb_create_hcd()
2603 hcd->self.sysdev = sysdev; in __usb_create_hcd()
2604 hcd->self.bus_name = bus_name; in __usb_create_hcd()
2734 hcd->driver->description, hcd->self.busnum); in usb_hcd_request_irqs()
2738 dev_err(hcd->self.controller, in usb_hcd_request_irqs()
2744 dev_info(hcd->self.controller, "irq %d, %s 0x%08llx\n", irqnum, in usb_hcd_request_irqs()
2751 dev_info(hcd->self.controller, "%s 0x%08llx\n", in usb_hcd_request_irqs()
2768 rhdev = hcd->self.root_hub; in usb_put_invalidate_rhdev()
2769 hcd->self.root_hub = NULL; in usb_put_invalidate_rhdev()
2819 hcd->phy_roothub = usb_phy_roothub_alloc(hcd->self.sysdev); in usb_add_hcd()
2823 hcd->phy_roothub = usb_phy_roothub_alloc_usb3_phy(hcd->self.sysdev); in usb_add_hcd()
2845 dev_info(hcd->self.controller, "%s\n", hcd->product_desc); in usb_add_hcd()
2874 dev_dbg(hcd->self.sysdev, "pool alloc failed\n"); in usb_add_hcd()
2878 retval = usb_register_bus(&hcd->self); in usb_add_hcd()
2882 rhdev = usb_alloc_dev(NULL, &hcd->self, 0); in usb_add_hcd()
2884 dev_err(hcd->self.sysdev, "unable to allocate root hub\n"); in usb_add_hcd()
2889 hcd->self.root_hub = rhdev; in usb_add_hcd()
2939 dev_err(hcd->self.controller, "can't setup: %d\n", in usb_add_hcd()
2951 if (device_can_wakeup(hcd->self.controller) in usb_add_hcd()
2952 && device_can_wakeup(&hcd->self.root_hub->dev)) in usb_add_hcd()
2953 dev_dbg(hcd->self.controller, "supports USB remote wakeup\n"); in usb_add_hcd()
2972 dev_err(hcd->self.controller, "startup error %d\n", retval); in usb_add_hcd()
3009 usb_deregister_bus(&hcd->self); in usb_add_hcd()
3039 rhdev = hcd->self.root_hub; in usb_remove_hcd()
3041 dev_info(hcd->self.controller, "remove, state %x\n", hcd->state); in usb_remove_hcd()
3048 dev_dbg(hcd->self.controller, "roothub graceful disconnect\n"); in usb_remove_hcd()
3086 usb_deregister_bus(&hcd->self); in usb_remove_hcd()
3116 hcd->localmem_pool = devm_gen_pool_create(hcd->self.sysdev, 4, in usb_hcd_setup_local_mem()
3117 dev_to_node(hcd->self.sysdev), in usb_hcd_setup_local_mem()
3118 dev_name(hcd->self.sysdev)); in usb_hcd_setup_local_mem()
3127 local_mem = devm_memremap(hcd->self.sysdev, phys_addr, in usb_hcd_setup_local_mem()
3130 local_mem = dmam_alloc_attrs(hcd->self.sysdev, size, &dma, in usb_hcd_setup_local_mem()
3147 dma, size, dev_to_node(hcd->self.sysdev)); in usb_hcd_setup_local_mem()
3149 dev_err(hcd->self.sysdev, "gen_pool_add_virt failed with %d\n", in usb_hcd_setup_local_mem()