Lines Matching refs:hcd
77 static void xhci_usb2_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb2_hub_descriptor() argument
130 static void xhci_usb3_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb3_hub_descriptor() argument
160 static void xhci_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_hub_descriptor() argument
164 if (hcd->speed == HCD_USB3) in xhci_hub_descriptor()
165 xhci_usb3_hub_descriptor(hcd, xhci, desc); in xhci_hub_descriptor()
167 xhci_usb2_hub_descriptor(hcd, xhci, desc); in xhci_hub_descriptor()
241 int xhci_find_slot_id_by_port(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_find_slot_id_by_port() argument
253 if (((speed == USB_SPEED_SUPER) == (hcd->speed == HCD_USB3)) in xhci_find_slot_id_by_port()
338 static void xhci_disable_port(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_disable_port() argument
342 if (hcd->speed == HCD_USB3) { in xhci_disable_port()
405 static int xhci_get_ports(struct usb_hcd *hcd, __le32 __iomem ***port_array) in xhci_get_ports() argument
408 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_get_ports()
410 if (hcd->speed == HCD_USB3) { in xhci_get_ports()
571 static u32 xhci_get_port_status(struct usb_hcd *hcd, in xhci_get_port_status() argument
579 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_get_port_status()
593 if (hcd->speed == HCD_USB3) { in xhci_get_port_status()
609 if (hcd->speed != HCD_USB3) { in xhci_get_port_status()
640 slot_id = xhci_find_slot_id_by_port(hcd, in xhci_get_port_status()
672 if (hcd->speed != HCD_USB3) in xhci_get_port_status()
686 if (hcd->speed == HCD_USB3) in xhci_get_port_status()
692 if (hcd->speed == HCD_USB3) { in xhci_get_port_status()
708 int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in xhci_hub_control() argument
711 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_hub_control()
723 max_ports = xhci_get_ports(hcd, &port_array); in xhci_hub_control()
724 bus_state = &xhci->bus_state[hcd_index(hcd)]; in xhci_hub_control()
737 if (hcd->speed == HCD_USB3 && in xhci_hub_control()
744 xhci_hub_descriptor(hcd, xhci, in xhci_hub_control()
751 if (hcd->speed != HCD_USB3) in xhci_hub_control()
779 status = xhci_get_port_status(hcd, bus_state, port_array, in xhci_hub_control()
831 slot_id = xhci_find_slot_id_by_port(hcd, xhci, in xhci_hub_control()
890 slot_id = xhci_find_slot_id_by_port(hcd, xhci, in xhci_hub_control()
926 temp = usb_acpi_power_manageable(hcd->self.root_hub, in xhci_hub_control()
929 usb_acpi_set_power_state(hcd->self.root_hub, in xhci_hub_control()
955 if (hcd->speed != HCD_USB3) in xhci_hub_control()
963 if (hcd->speed != HCD_USB3) in xhci_hub_control()
1008 slot_id = xhci_find_slot_id_by_port(hcd, xhci, in xhci_hub_control()
1029 xhci_disable_port(hcd, xhci, wIndex, in xhci_hub_control()
1036 temp = usb_acpi_power_manageable(hcd->self.root_hub, in xhci_hub_control()
1039 usb_acpi_set_power_state(hcd->self.root_hub, in xhci_hub_control()
1064 int xhci_hub_status_data(struct usb_hcd *hcd, char *buf) in xhci_hub_status_data() argument
1070 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_hub_status_data()
1076 max_ports = xhci_get_ports(hcd, &port_array); in xhci_hub_status_data()
1077 bus_state = &xhci->bus_state[hcd_index(hcd)]; in xhci_hub_status_data()
1111 clear_bit(HCD_FLAG_POLL_RH, &hcd->flags); in xhci_hub_status_data()
1119 int xhci_bus_suspend(struct usb_hcd *hcd) in xhci_bus_suspend() argument
1121 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_bus_suspend()
1127 max_ports = xhci_get_ports(hcd, &port_array); in xhci_bus_suspend()
1128 bus_state = &xhci->bus_state[hcd_index(hcd)]; in xhci_bus_suspend()
1132 if (hcd->self.root_hub->do_remote_wakeup) { in xhci_bus_suspend()
1153 slot_id = xhci_find_slot_id_by_port(hcd, xhci, in xhci_bus_suspend()
1168 if (hcd->self.root_hub->do_remote_wakeup) { in xhci_bus_suspend()
1183 hcd->state = HC_STATE_SUSPENDED; in xhci_bus_suspend()
1189 int xhci_bus_resume(struct usb_hcd *hcd) in xhci_bus_resume() argument
1191 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_bus_resume()
1198 max_ports = xhci_get_ports(hcd, &port_array); in xhci_bus_resume()
1199 bus_state = &xhci->bus_state[hcd_index(hcd)]; in xhci_bus_resume()
1205 if (!HCD_HW_ACCESSIBLE(hcd)) { in xhci_bus_resume()
1254 slot_id = xhci_find_slot_id_by_port(hcd, in xhci_bus_resume()