Lines Matching refs:hcd

278 static void xhci_usb2_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci,
333 static void xhci_usb3_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci,
366 static void xhci_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci,
370 if (hcd->speed >= HCD_USB3)
371 xhci_usb3_hub_descriptor(hcd, xhci, desc);
373 xhci_usb2_hub_descriptor(hcd, xhci, desc);
551 struct usb_hcd *hcd;
554 hcd = port->rhub->hcd;
557 if (hcd->speed >= HCD_USB3) {
576 hcd->self.busnum, port->hcd_portnum + 1, portsc);
630 struct xhci_hub *xhci_get_rhub(struct usb_hcd *hcd)
632 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
634 if (hcd->speed >= HCD_USB3)
648 struct usb_hcd *hcd;
651 hcd = port->rhub->hcd;
655 hcd->self.busnum, port->hcd_portnum + 1, on ? "ON" : "OFF", temp);
669 temp = usb_acpi_power_manageable(hcd->self.root_hub,
672 usb_acpi_set_power_state(hcd->self.root_hub,
768 port->rhub->hcd->self.busnum, port->hcd_portnum + 1,
900 struct usb_hcd *hcd;
903 hcd = port->rhub->hcd;
905 xhci = hcd_to_xhci(hcd);
930 mod_timer(&hcd->rh_timer, timeout);
931 usb_hcd_start_port_resume(&hcd->self, wIndex);
938 hcd->self.busnum, wIndex + 1);
965 hcd->self.busnum, wIndex + 1, port_status);
974 usb_hcd_end_port_resume(&hcd->self, wIndex);
1003 struct usb_hcd *hcd;
1008 xhci = hcd_to_xhci(port->rhub->hcd);
1009 hcd = port->rhub->hcd;
1040 usb_hcd_end_port_resume(&hcd->self, portnum);
1096 usb_hcd_end_port_resume(&port->rhub->hcd->self, portnum);
1113 static u32 xhci_get_port_status(struct usb_hcd *hcd,
1124 rhub = xhci_get_rhub(hcd);
1150 if (hcd->speed >= HCD_USB3)
1162 int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
1165 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
1180 rhub = xhci_get_rhub(hcd);
1197 if (hcd->speed >= HCD_USB3 &&
1204 xhci_hub_descriptor(hcd, xhci,
1211 if (hcd->speed < HCD_USB3)
1230 status = xhci_get_port_status(hcd, bus_state, wIndex, temp,
1236 hcd->self.busnum, portnum1, temp, status);
1243 if (hcd->speed < HCD_USB31 || wLength != 8) {
1295 hcd->self.busnum, portnum1);
1322 hcd->self.busnum, portnum1);
1339 hcd->self.busnum, portnum1);
1371 hcd->self.busnum, portnum1);
1385 hcd->self.busnum, portnum1, link_state);
1420 hcd->self.busnum, portnum1);
1464 hcd->self.busnum, portnum1, temp);
1470 hcd->self.busnum, portnum1, temp);
1478 if (hcd->speed < HCD_USB3)
1486 if (hcd->speed < HCD_USB3)
1495 if (hcd->speed != HCD_USB2)
1536 usb_hcd_start_port_resume(&hcd->self, wIndex);
1543 usb_hcd_end_port_resume(&hcd->self, wIndex);
1597 int xhci_hub_status_data(struct usb_hcd *hcd, char *buf)
1603 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
1610 rhub = xhci_get_rhub(hcd);
1664 __func__, hcd->self.busnum);
1665 clear_bit(HCD_FLAG_POLL_RH, &hcd->flags);
1673 int xhci_bus_suspend(struct usb_hcd *hcd)
1675 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
1684 rhub = xhci_get_rhub(hcd);
1688 wake_enabled = hcd->self.root_hub->do_remote_wakeup;
1697 hcd->self.busnum);
1719 if ((hcd->speed >= HCD_USB3) && retries-- &&
1725 hcd->self.busnum, port_index + 1);
1744 hcd->self.busnum, port_index + 1);
1763 (hcd->speed < HCD_USB3)) {
1764 if (usb_amd_pt_check_port(hcd->self.controller,
1791 hcd->state = HC_STATE_SUSPENDED;
1829 int xhci_bus_resume(struct usb_hcd *hcd)
1831 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
1841 rhub = xhci_get_rhub(hcd);
1850 if (!HCD_HW_ACCESSIBLE(hcd)) {
1861 if (hcd->speed >= HCD_USB3)
1872 (hcd->speed >= HCD_USB3) &&
1875 hcd->self.busnum, port_index + 1);
1902 if (hcd->speed < HCD_USB3) {
1923 hcd->self.busnum, port_index + 1);
1943 unsigned long xhci_get_resuming_ports(struct usb_hcd *hcd)
1945 struct xhci_hub *rhub = xhci_get_rhub(hcd);