Lines Matching defs:old
1101 * Within physical_state_transitions, rows represent "old" states,
1102 * columns "new" states, and physical_state_transitions.allowed[old][new]
1103 * indicates if the transition from old state to new state is legal (see
1132 * Within logical_state_transitions rows represent "old" states,
1133 * columns "new" states, and logical_state_transitions.allowed[old][new]
1134 * indicates if the transition from old state to new state is legal (see
1150 static int logical_transition_allowed(int old, int new)
1152 if (old < IB_PORT_NOP || old > IB_PORT_ACTIVE_DEFER ||
1154 pr_warn("invalid logical state(s) (old %d new %d)\n",
1155 old, new);
1163 old -= IB_PORT_DOWN;
1166 if (old < 0 || new < 0)
1168 return logical_state_transitions.allowed[old][new];
1171 static int physical_transition_allowed(int old, int new)
1173 if (old < IB_PORTPHYSSTATE_NOP || old > OPA_PORTPHYSSTATE_MAX ||
1175 pr_warn("invalid physical state(s) (old %d new %d)\n",
1176 old, new);
1184 old -= IB_PORTPHYSSTATE_POLLING;
1187 if (old < 0 || new < 0)
1189 return physical_state_transitions.allowed[old][new];