Lines Matching defs:state
462 * tb_port_state() - get connectedness state of a port
480 return phy.state;
488 * Wait up to 1 second for a port to reach state TB_PORT_UP. If
489 * wait_if_unplugged is set then we also wait if the port is in state
495 * connected or failed to reach state TB_PORT_UP within one second. Returns 1
496 * if the port is connected and in state TB_PORT_UP.
501 int state;
512 state = tb_port_state(port);
513 switch (state) {
515 tb_port_dbg(port, "is disabled (state: 0)\n");
522 "is unplugged (state: 7), retrying...\n");
526 tb_port_dbg(port, "is unplugged (state: 7)\n");
534 tb_port_dbg(port, "is connected, link is up (state: %d)\n", state);
538 if (state < 0)
539 return state;
542 * After plug-in the state is TB_PORT_CONNECTING. Give it some
546 "is connected, link is not up (state: %d), retrying...\n",
547 state);
553 "failed to reach state TB_PORT_UP. Ignoring port...\n");
1103 * actually reach the bonded state so caller needs to call
1105 * link to make sure the link is in expected state.
1135 * avoids the lane adapter to re-enter bonding state.
1184 * the expected state. Returns %-ETIMEDOUT if the width was not reached
3853 * tb_switch_pcie_l1_enable() - Enable PCIe link to enter L1 state
3856 * For Titan Ridge switch to enter CLx state, its PCIe bridges shall enable
3857 * entry to PCIe L1 state. Shall be called after the upstream PCIe tunnel