Lines Matching defs:new
316 /* Only update the transaction ID for new traps (o13-5). */
1060 * columns "new" states, and physical_state_transitions.allowed[old][new]
1061 * indicates if the transition from old state to new state is legal (see
1091 * columns "new" states, and logical_state_transitions.allowed[old][new]
1092 * indicates if the transition from old state to new state is legal (see
1108 static int logical_transition_allowed(int old, int new)
1111 new < IB_PORT_NOP || new > IB_PORT_ACTIVE_DEFER) {
1112 pr_warn("invalid logical state(s) (old %d new %d)\n",
1113 old, new);
1117 if (new == IB_PORT_NOP)
1122 new -= IB_PORT_DOWN;
1124 if (old < 0 || new < 0)
1126 return logical_state_transitions.allowed[old][new];
1129 static int physical_transition_allowed(int old, int new)
1132 new < IB_PORTPHYSSTATE_NOP || new > OPA_PORTPHYSSTATE_MAX) {
1133 pr_warn("invalid physical state(s) (old %d new %d)\n",
1134 old, new);
1138 if (new == IB_PORTPHYSSTATE_NOP)
1143 new -= IB_PORTPHYSSTATE_POLLING;
1145 if (old < 0 || new < 0)
1147 return physical_state_transitions.allowed[old][new];
1607 * Apply the new link downgrade policy. This may result in a link