Lines Matching refs:status
303 * Turn all commands on command ring with status set to "aborted" to no-op trbs.
315 if (i_cmd->status != COMP_COMMAND_ABORTED)
318 i_cmd->status = COMP_COMMAND_RING_STOPPED;
723 struct xhci_td *cur_td, int status)
739 usb_hcd_giveback_urb(hcd, urb, status);
777 struct xhci_ring *ep_ring, int status)
796 status = 0;
808 (status != 0 && !usb_endpoint_xfer_isoc(&urb->ep->desc)))
809 xhci_dbg(xhci, "Giveback URB %p, len = %d, expected = %d, status = %d\n",
811 urb->transfer_buffer_length, status);
813 /* set isoc urb status to 0 just as EHCI, UHCI, and OHCI */
815 status = 0;
816 xhci_giveback_urb_in_irq(xhci, td, status);
999 /* Doesn't matter what we pass for status, since the core will
1152 usbsts = readl(&xhci->op_regs->status);
1491 NEC_FW_MAJOR(le32_to_cpu(event->status)),
1492 NEC_FW_MINOR(le32_to_cpu(event->status)));
1495 static void xhci_complete_del_and_free_cmd(struct xhci_command *cmd, u32 status)
1500 cmd->status = status;
1534 xhci->current_cmd->status = COMP_COMMAND_ABORTED;
1601 cmd_comp_code = GET_COMP_CODE(le32_to_cpu(event->status));
1623 if (cmd->status == COMP_COMMAND_ABORTED) {
1661 if (cmd->status == COMP_COMMAND_RING_STOPPED)
1741 * Retry the reset sequence max of 4 times checking the PLL lock status.
1774 /* Port status change events always have a successful completion code */
1777 "WARN: xHC returned failed port status event\n");
1856 * Avoid polling roothub status before that so that a
1916 /* Don't make the USB core poll the roothub if we got a bad port status
1924 * xHCI port-status-change events occur when the "or" of all the
1925 * status-change bits in the portsc register changes from 0 to 1.
1926 * New status changes won't cause an event if any other change
1928 * polling to avoid losing status changes.
2105 return xhci_td_cleanup(xhci, td, ep_ring, td->status);
2124 * Process control tds, update urb status and actual_length.
2146 td->status = -ESHUTDOWN;
2149 td->status = 0;
2152 td->status = 0;
2158 xhci_warn(xhci, "WARN: Stopped Short Packet on ctrl setup or status TRB\n");
2207 xhci_dbg(xhci, "Waiting for status stage event\n");
2211 /* at status stage */
2220 * Process isochronous tds, update urb packet status and actual_length.
2247 /* Don't overwrite status if TD had an error, see xHCI 4.9.1 */
2251 frame->status = short_framestatus;
2256 frame->status = 0;
2259 frame->status = short_framestatus;
2263 frame->status = -ECOMM;
2269 frame->status = -EOVERFLOW;
2275 frame->status = -EPROTO;
2278 frame->status = -EPROTO;
2288 frame->status = short_framestatus;
2297 frame->status = -1;
2324 struct xhci_virt_ep *ep, int status)
2335 frame->status = -EXDEV;
2346 return xhci_td_cleanup(xhci, td, ep->ring, status);
2350 * Process bulk and interrupt tds, update urb status and actual_length.
2376 td->status = 0;
2382 td->status = 0;
2398 td->status = 0;
2441 int status = -EINPROGRESS;
2541 status = -EPIPE;
2546 status = -EPROTO;
2551 status = -EPROTO;
2556 status = -EOVERFLOW;
2563 status = -EILSEQ;
2570 status = -ENOSR;
2627 status = -EPROTO;
2631 status = 0;
2709 skip_isoc_td(xhci, td, ep, status);
2746 xhci_td_cleanup(xhci, td, ep_ring, td->status);
2800 td->status = status;
2845 * xhci->lock between event processing (e.g. to pass up port status changes).
2958 * indicators of an event TRB error, but we check the status *first* to be safe.
2967 u32 status;
2972 status = readl(&xhci->op_regs->status);
2973 if (status == ~(u32)0) {
2979 if (!(status & STS_EINT))
2982 if (status & STS_FATAL) {
2990 * Clear the op reg interrupt status first,
2992 * Write 1 to clear the interrupt status.
2994 status |= STS_EINT;
2995 writel(status, &xhci->op_regs->status);
3626 /* 1 TRB for setup, 1 for status */
3718 /* Queue status TRB - see Table 7 and sections 4.11.2.2 and 6.4.1.2.3 */
3719 /* If the device sent data, the status stage is an OUT transfer */