Lines Matching refs:oper_states
131 static const char *oper_states[] = { variable
138 if (state >= sizeof(oper_states)/sizeof(oper_states[0])) in print_operstate()
142 if (strcmp(oper_states[state], "UP") == 0) in print_operstate()
143 color_fprintf(f, COLOR_OPERSTATE_UP, "%-14s ", oper_states[state]); in print_operstate()
144 else if (strcmp(oper_states[state], "DOWN") == 0) in print_operstate()
145 color_fprintf(f, COLOR_OPERSTATE_DOWN, "%-14s ", oper_states[state]); in print_operstate()
147 fprintf(f, "%-14s ", oper_states[state]); in print_operstate()
150 if (strcmp(oper_states[state], "UP") == 0) in print_operstate()
151 color_fprintf(f, COLOR_OPERSTATE_UP, "%s ", oper_states[state]); in print_operstate()
152 else if (strcmp(oper_states[state], "DOWN") == 0) in print_operstate()
153 color_fprintf(f, COLOR_OPERSTATE_DOWN, "%s ", oper_states[state]); in print_operstate()
155 fprintf(f, "%s ", oper_states[state]); in print_operstate()
164 for (i = 0; i < sizeof(oper_states)/sizeof(oper_states[0]); i++) in get_operstate()
165 if (strcasecmp(name, oper_states[i]) == 0) in get_operstate()