Lines Matching refs:hcd
51 struct usb_hcd *hcd = ehci_to_hcd(ehci); in ehci_handover_companion_ports() local
94 ehci_hub_control(hcd, SetPortFeature, in ehci_handover_companion_ports()
112 ehci_hub_control(hcd, GetPortStatus, in ehci_handover_companion_ports()
225 static int ehci_bus_suspend (struct usb_hcd *hcd) in ehci_bus_suspend() argument
227 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_bus_suspend()
250 if (hcd->self.root_hub->do_remote_wakeup) { in ehci_bus_suspend()
282 if (hcd->self.root_hub->do_remote_wakeup) { in ehci_bus_suspend()
358 if (!hcd->self.root_hub->do_remote_wakeup) in ehci_bus_suspend()
375 static int ehci_bus_resume (struct usb_hcd *hcd) in ehci_bus_resume() argument
377 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_bus_resume()
386 if (!HCD_HW_ACCESSIBLE(hcd) || ehci->shutdown) in ehci_bus_resume()
390 if (!dbgp_reset_prep(hcd)) in ehci_bus_resume()
393 dbgp_external_startup(hcd); in ehci_bus_resume()
609 ehci_hub_status_data (struct usb_hcd *hcd, char *buf) in ehci_hub_status_data() argument
611 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_hub_status_data()
679 mod_timer(&hcd->rh_timer, jiffies + msecs_to_jiffies(25)); in ehci_hub_status_data()
732 struct usb_hcd *hcd,
750 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in request_single_step_set_feature_urb() local
778 hcd->self.controller, in request_single_step_set_feature_urb()
783 hcd->self.controller, in request_single_step_set_feature_urb()
791 static int ehset_single_step_set_feature(struct usb_hcd *hcd, int port) in ehset_single_step_set_feature() argument
797 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehset_single_step_set_feature()
802 udev = usb_hub_find_child(hcd->self.root_hub, port); in ehset_single_step_set_feature()
828 retval = submit_single_step_set_feature(hcd, urb, 1); in ehset_single_step_set_feature()
844 retval = submit_single_step_set_feature(hcd, urb, 0); in ehset_single_step_set_feature()
862 struct usb_hcd *hcd, in ehci_hub_control() argument
869 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_hub_control()
925 if ((hcd->self.otg_port == (wIndex + 1)) in ehci_hub_control()
926 && hcd->self.b_hnp_enable) { in ehci_hub_control()
927 otg_start_hnp(hcd->usb_phy->otg); in ehci_hub_control()
951 usb_hcd_start_port_resume(&hcd->self, wIndex); in ehci_hub_control()
1026 usb_hcd_start_port_resume(&hcd->self, wIndex); in ehci_hub_control()
1042 usb_hcd_end_port_resume(&hcd->self, wIndex); in ehci_hub_control()
1118 usb_hcd_end_port_resume(&hcd->self, wIndex); in ehci_hub_control()
1245 retval = ehset_single_step_set_feature(hcd, in ehci_hub_control()
1294 static void ehci_relinquish_port(struct usb_hcd *hcd, int portnum) in ehci_relinquish_port() argument
1296 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_relinquish_port()
1303 static int ehci_port_handed_over(struct usb_hcd *hcd, int portnum) in ehci_port_handed_over() argument
1305 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_port_handed_over()
1316 struct usb_hcd *hcd = ehci_to_hcd(ehci); in ehci_port_power() local
1325 if (hcd->driver->port_power) in ehci_port_power()
1326 hcd->driver->port_power(hcd, portnum, enable); in ehci_port_power()