Lines Matching refs:state

105  * Force HC into halt state.
154 /* clear state flags. Including dying, halted or removing */
165 * This resets pipelines, timers, counters, state machines, etc.
172 u32 state;
175 state = readl(&xhci->op_regs->status);
177 if (state == ~(u32)0) {
182 if ((state & STS_HALT) == 0) {
236 * Some Renesas controllers get into a weird state if they are
508 if (hcd->state == HC_STATE_SUSPENDED)
523 * The quirk creates a timer that polls every 2 seconds the link state of
619 xhci->shared_hcd->state = HC_STATE_RUNNING;
675 /* Set the HCD state before we enable the irqs */
778 * machine will be powered off, and the HC's internal state will be reset.
916 * Also clear a possible internal port wake state left hanging for ports that
1003 if (!hcd->state)
1006 if (hcd->state != HC_STATE_SUSPENDED ||
1007 xhci->shared_hcd->state != HC_STATE_SUSPENDED)
1076 xhci_warn(xhci, "WARN: xHC save state timeout\n");
1119 if (!hcd->state)
1155 /* step 3: restore state and start state*/
1167 xhci_warn(xhci, "WARN: xHC restore state timeout\n");
1236 hcd->state = HC_STATE_SUSPENDED;
1237 xhci->shared_hcd->state = HC_STATE_SUSPENDED;
1579 xhci_warn(xhci, "WARN: Can't enqueue URB, ep in streams transition state %x\n",
1955 * this re-adds a new state for the endpoint from the new endpoint
1990 * configure endpoint command will leave that endpoint's state
1991 * untouched. Make sure we don't leave any old state in the input
2022 "Not enough host controller resources for new device state.\n");
2029 "Not enough bandwidth for new device state.\n");
2031 /* FIXME: can we go back to the old state? */
2082 "WARN: invalid context state for evaluate context command.\n");
3100 /* HW with the reset endpoint quirk will use the saved dequeue state to
3105 "Queueing new dequeue state");
3170 * state. For software that wishes to reset the data toggle or sequence number
3171 * of an endpoint that isn't in the halted state this function will issue a
3626 * Modify the endpoint context state, submit a configure endpoint command,
3744 * This submits a Reset Device Command, which will set the device state to 0,
3845 * or the device wasn't in the addressed or configured state.
3856 xhci_dbg(xhci, "Can't reset device (slot ID %u) in %s state\n",
3968 u32 state;
3979 state = readl(&xhci->op_regs->status);
3980 if (state == 0xffffffff || (xhci->xhc_state & XHCI_STATE_DYING) ||
4169 xhci_dbg(xhci, "Slot already in default state\n");
4626 enum usb3_link_state state)
4633 switch (state) {
4648 dev_warn(&udev->dev, "%s: Can't get timeout for non-U1 or U2 state.\n",
4811 enum usb3_link_state state,
4814 if (state == USB3_LPM_U1)
4816 else if (state == USB3_LPM_U2)
4825 enum usb3_link_state state,
4831 desc, state, timeout);
4850 enum usb3_link_state state,
4857 &alt->endpoint[j].desc, state, timeout))
4865 enum usb3_link_state state)
4870 if (state == USB3_LPM_U2)
4881 dev_dbg(&udev->dev, "Disabling U1 link state for device"
4890 enum usb3_link_state state)
4893 return xhci_check_intel_tier_policy(udev, state);
4904 struct usb_device *udev, enum usb3_link_state state)
4912 if (state == USB3_LPM_U1)
4914 else if (state == USB3_LPM_U2)
4917 dev_warn(&udev->dev, "Can't enable unknown link state %i\n",
4918 state);
4922 if (xhci_check_tier_policy(xhci, udev, state) < 0)
4929 state, &timeout))
4952 state);
4964 state, &timeout))
5017 struct usb_device *udev, enum usb3_link_state state)
5041 hub_encoded_timeout = xhci_calculate_lpm_timeout(hcd, udev, state);
5042 mel = calculate_max_exit_latency(udev, state, hub_encoded_timeout);
5056 struct usb_device *udev, enum usb3_link_state state)
5066 mel = calculate_max_exit_latency(udev, state, USB3_LPM_DISABLED);
5083 struct usb_device *udev, enum usb3_link_state state)
5089 struct usb_device *udev, enum usb3_link_state state)
5318 /* Reset the internal HC memory state and registers. */