Lines Matching refs:consoles
92 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_probe()
93 consoles[cons]->c_flags = 0; in cons_probe()
94 consoles[cons]->c_probe(consoles[cons]); in cons_probe()
98 for (cons = 0; consoles[cons] != NULL && active == -1; cons++) { in cons_probe()
99 consoles[cons]->c_flags = 0; in cons_probe()
100 consoles[cons]->c_probe(consoles[cons]); in cons_probe()
101 if (consoles[cons]->c_flags == (C_PRESENTIN | C_PRESENTOUT)) in cons_probe()
116 consoles[active]->c_flags |= C_ACTIVEIN | C_ACTIVEOUT; in cons_probe()
117 consoles[active]->c_init(0); in cons_probe()
118 prefconsole = strdup(consoles[active]->c_name); in cons_probe()
122 for (cons = 0; consoles[cons] != NULL; cons++) in cons_probe()
123 if (consoles[cons]->c_flags & (C_ACTIVEIN | C_ACTIVEOUT)) in cons_probe()
124 printf("%s ", consoles[cons]->c_desc); in cons_probe()
144 for (cons = 0; consoles[cons] != NULL; cons++) { in getchar()
145 if ((consoles[cons]->c_flags & in getchar()
148 ((rv = consoles[cons]->c_in()) != -1)) in getchar()
159 for (cons = 0; consoles[cons] != NULL; cons++) in ischar()
160 if ((consoles[cons]->c_flags & (C_PRESENTIN | C_ACTIVEIN)) == in ischar()
162 (consoles[cons]->c_ready() != 0)) in ischar()
176 for (cons = 0; consoles[cons] != NULL; cons++) { in putchar()
177 if ((consoles[cons]->c_flags & (C_PRESENTOUT | C_ACTIVEOUT)) == in putchar()
179 consoles[cons]->c_out(c); in putchar()
191 for (cons = 0; consoles[cons] != NULL; cons++) in cons_find()
192 if (strcmp(consoles[cons]->c_name, name) == 0) in cons_find()
253 for (cons = 0; consoles[cons] != NULL; cons++) in cons_check()
254 printf(" %s\n", consoles[cons]->c_name); in cons_check()
270 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_change()
271 consoles[cons]->c_flags &= ~(C_ACTIVEIN | C_ACTIVEOUT); in cons_change()
283 consoles[cons]->c_flags |= C_ACTIVEIN | C_ACTIVEOUT; in cons_change()
284 consoles[cons]->c_init(0); in cons_change()
285 if ((consoles[cons]->c_flags & in cons_change()
298 consoles[cons]->c_name); in cons_change()
310 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_change()
311 consoles[cons]->c_flags |= C_ACTIVEIN | C_ACTIVEOUT; in cons_change()
312 consoles[cons]->c_init(0); in cons_change()
313 if ((consoles[cons]->c_flags & in cons_change()