Lines Matching defs: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);
453 * @hcd: pointer to hcd of the roothub
460 int xhci_find_slot_id_by_port(struct usb_hcd *hcd, struct xhci_hcd *xhci,
472 if (((speed >= USB_SPEED_SUPER) == (hcd->speed >= HCD_USB3))
583 struct usb_hcd *hcd;
586 hcd = port->rhub->hcd;
589 if (hcd->speed >= HCD_USB3) {
608 hcd->self.busnum, port->hcd_portnum + 1, portsc);
662 struct xhci_hub *xhci_get_rhub(struct usb_hcd *hcd)
664 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
666 if (hcd->speed >= HCD_USB3)
680 struct usb_hcd *hcd;
683 hcd = port->rhub->hcd;
687 hcd->self.busnum, port->hcd_portnum + 1, on ? "ON" : "OFF", temp);
701 temp = usb_acpi_power_manageable(hcd->self.root_hub,
704 usb_acpi_set_power_state(hcd->self.root_hub,
800 port->rhub->hcd->self.busnum, port->hcd_portnum + 1,
932 struct usb_hcd *hcd;
936 hcd = port->rhub->hcd;
938 xhci = hcd_to_xhci(hcd);
963 mod_timer(&hcd->rh_timer, timeout);
964 usb_hcd_start_port_resume(&hcd->self, wIndex);
971 hcd->self.busnum, wIndex + 1);
989 slot_id = xhci_find_slot_id_by_port(hcd, xhci,
1000 hcd->self.busnum, wIndex + 1, port_status);
1009 usb_hcd_end_port_resume(&hcd->self, wIndex);
1038 struct usb_hcd *hcd;
1043 xhci = hcd_to_xhci(port->rhub->hcd);
1044 hcd = port->rhub->hcd;
1075 usb_hcd_end_port_resume(&hcd->self, portnum);
1131 usb_hcd_end_port_resume(&port->rhub->hcd->self, portnum);
1148 static u32 xhci_get_port_status(struct usb_hcd *hcd,
1159 rhub = xhci_get_rhub(hcd);
1185 if (hcd->speed >= HCD_USB3)
1197 int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
1200 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
1216 rhub = xhci_get_rhub(hcd);
1233 if (hcd->speed >= HCD_USB3 &&
1240 xhci_hub_descriptor(hcd, xhci,
1247 if (hcd->speed < HCD_USB3)
1266 status = xhci_get_port_status(hcd, bus_state, wIndex, temp,
1272 hcd->self.busnum, portnum1, temp, status);
1279 if (hcd->speed < HCD_USB31 || wLength != 8) {
1331 hcd->self.busnum, portnum1);
1335 slot_id = xhci_find_slot_id_by_port(hcd, xhci,
1360 hcd->self.busnum, portnum1);
1377 hcd->self.busnum, portnum1);
1409 hcd->self.busnum, portnum1);
1423 hcd->self.busnum, portnum1, link_state);
1458 hcd->self.busnum, portnum1);
1466 slot_id = xhci_find_slot_id_by_port(hcd, xhci,
1504 hcd->self.busnum, portnum1, temp);
1510 hcd->self.busnum, portnum1, temp);
1518 if (hcd->speed < HCD_USB3)
1526 if (hcd->speed < HCD_USB3)
1535 if (hcd->speed != HCD_USB2)
1576 usb_hcd_start_port_resume(&hcd->self, wIndex);
1583 usb_hcd_end_port_resume(&hcd->self, wIndex);
1587 slot_id = xhci_find_slot_id_by_port(hcd, xhci,
1639 int xhci_hub_status_data(struct usb_hcd *hcd, char *buf)
1645 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
1652 rhub = xhci_get_rhub(hcd);
1706 __func__, hcd->self.busnum);
1707 clear_bit(HCD_FLAG_POLL_RH, &hcd->flags);
1715 int xhci_bus_suspend(struct usb_hcd *hcd)
1717 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
1726 rhub = xhci_get_rhub(hcd);
1730 wake_enabled = hcd->self.root_hub->do_remote_wakeup;
1739 hcd->self.busnum);
1761 if ((hcd->speed >= HCD_USB3) && retries-- &&
1767 hcd->self.busnum, port_index + 1);
1786 hcd->self.busnum, port_index + 1);
1805 (hcd->speed < HCD_USB3)) {
1806 if (usb_amd_pt_check_port(hcd->self.controller,
1826 slot_id = xhci_find_slot_id_by_port(hcd, xhci,
1836 hcd->state = HC_STATE_SUSPENDED;
1874 int xhci_bus_resume(struct usb_hcd *hcd)
1876 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
1887 rhub = xhci_get_rhub(hcd);
1896 if (!HCD_HW_ACCESSIBLE(hcd)) {
1907 if (hcd->speed >= HCD_USB3)
1918 (hcd->speed >= HCD_USB3) &&
1921 hcd->self.busnum, port_index + 1);
1948 if (hcd->speed < HCD_USB3) {
1969 hcd->self.busnum, port_index + 1);
1973 slot_id = xhci_find_slot_id_by_port(hcd, xhci, port_index + 1);
1990 unsigned long xhci_get_resuming_ports(struct usb_hcd *hcd)
1992 struct xhci_hub *rhub = xhci_get_rhub(hcd);