Lines Matching defs:old
1059 * Within physical_state_transitions, rows represent "old" states,
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
1090 * Within logical_state_transitions rows represent "old" states,
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)
1110 if (old < IB_PORT_NOP || old > IB_PORT_ACTIVE_DEFER ||
1112 pr_warn("invalid logical state(s) (old %d new %d)\n",
1113 old, new);
1121 old -= 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)
1131 if (old < IB_PORTPHYSSTATE_NOP || old > OPA_PORTPHYSSTATE_MAX ||
1133 pr_warn("invalid physical state(s) (old %d new %d)\n",
1134 old, new);
1142 old -= IB_PORTPHYSSTATE_POLLING;
1145 if (old < 0 || new < 0)
1147 return physical_state_transitions.allowed[old][new];