Lines Matching refs:status

394  * connect status, over-current status, port speed, and device removable.
395 * connect status and port speed are also sticky - meaning they're in
434 * port being in the same state, if the value was written to the port status
446 /* Save read-only status and port state */
548 if (cmd->status == COMP_COMMAND_ABORTED ||
549 cmd->status == COMP_COMMAND_RING_STOPPED) {
615 u32 status;
619 status = PORT_RC;
623 status = PORT_WRC;
627 status = PORT_CSC;
631 status = PORT_OCC;
635 status = PORT_PEC;
639 status = PORT_PLC;
643 status = PORT_PLC;
647 status = PORT_CEC;
655 writel(port_status | status, addr);
846 u32 *status, u32 status_reg)
877 *status |= USB_SS_PORT_LS_U3;
894 /* update status field */
895 *status |= pls;
905 static void xhci_del_comp_mod_timer(struct xhci_hcd *xhci, u32 status,
909 bool port_in_u0 = ((status & PORT_PLS_MASK) == XDEV_U0);
1003 * know to report PORT_STAT_SUSPEND status back to
1033 static void xhci_get_usb3_port_status(struct xhci_port *port, u32 *status,
1058 *status |= USB_PORT_STAT_C_LINK_STATE << 16;
1060 *status |= USB_PORT_STAT_C_BH_RESET << 16;
1062 *status |= USB_PORT_STAT_C_CONFIG_ERROR << 16;
1066 *status |= USB_SS_PORT_STAT_POWER;
1080 xhci_hub_report_usb3_link_state(xhci, status, portsc);
1084 static void xhci_get_usb2_port_status(struct xhci_port *port, u32 *status,
1098 *status |= USB_PORT_STAT_POWER;
1102 *status |= USB_PORT_STAT_SUSPEND;
1104 *status |= USB_PORT_STAT_L1;
1115 *status = 0xffffffff;
1117 *status |= USB_PORT_STAT_SUSPEND;
1139 * Converts a raw xHCI port status into the format that external USB 2.0 or USB
1155 u32 status = 0;
1164 status |= USB_PORT_STAT_C_CONNECTION << 16;
1166 status |= USB_PORT_STAT_C_ENABLE << 16;
1168 status |= USB_PORT_STAT_C_OVERCURRENT << 16;
1170 status |= USB_PORT_STAT_C_RESET << 16;
1174 status |= USB_PORT_STAT_CONNECTION;
1175 status |= xhci_port_speed(raw_port_status);
1178 status |= USB_PORT_STAT_ENABLE;
1180 status |= USB_PORT_STAT_OVERCURRENT;
1182 status |= USB_PORT_STAT_RESET;
1186 xhci_get_usb3_port_status(port, &status, raw_port_status);
1188 xhci_get_usb2_port_status(port, &status, raw_port_status,
1192 status |= USB_PORT_STAT_C_SUSPEND << 16;
1194 return status;
1203 u32 temp, status;
1266 status = xhci_get_port_status(hcd, bus_state, wIndex, temp,
1268 if (status == 0xffffffff)
1271 xhci_dbg(xhci, "Get port status %d-%d read: 0x%x, return 0x%x",
1272 hcd->self.busnum, portnum1, temp, status);
1274 put_unaligned(cpu_to_le32(status), (__le32 *) buf);
1275 /* if USB 3.1 extended port status return additional 4 bytes */
1280 xhci_err(xhci, "get ext port status invalid parameter\n");
1285 status = xhci_get_ext_port_status(temp, port_li);
1286 put_unaligned_le32(status, &buf[4]);
1503 xhci_dbg(xhci, "set port reset, actual port %d-%d status = 0x%x\n",
1509 xhci_dbg(xhci, "set port remote wake mask, actual port %d-%d status = 0x%x\n",
1632 * Returns 0 if the status hasn't changed, or the number of bytes in buf.
1636 * Note that the status change bits will be cleared as soon as a port status
1637 * change event is generated, so we use the saved status from that event.
1642 u32 temp, status;
1657 /* Initial status is no changes */
1663 * a non-zero value even if there are no status changes.
1667 status = bus_state->resuming_ports;
1675 status = 1;
1697 status = 1;
1702 status = 1;
1704 if (!status && !reset_change) {
1710 return status ? retval : 0;