Lines Matching refs:sc_console
106 static scr_stat *sc_console; variable
289 if (sc_console == NULL) { in ec_putc()
586 if (sc_console->tsw->te_size > 0) { in sc_attach_unit()
587 sc_ktsw = sc_console->tsw; in sc_attach_unit()
589 oldts = sc_console->ts; in sc_attach_unit()
591 ts = malloc(sc_console->tsw->te_size, M_DEVBUF, in sc_attach_unit()
593 (*sc_console->tsw->te_init)( in sc_attach_unit()
594 sc_console, &ts, SC_TE_COLD_INIT); in sc_attach_unit()
595 sc_console->ts = ts; in sc_attach_unit()
596 (*sc_console->tsw->te_default_attr)(sc_console, in sc_attach_unit()
600 sc_console->ts = oldts; in sc_attach_unit()
601 (*sc_console->tsw->te_default_attr)( in sc_attach_unit()
602 sc_console, SC_NORM_ATTR, SC_NORM_REV_ATTR); in sc_attach_unit()
613 if (sc_console == NULL) /* sc_console_unit < 0 */ in sc_attach_unit()
614 sc_console = scp; in sc_attach_unit()
694 sc_alloc_scr_buffer(sc_console, FALSE, FALSE); in scmeminit()
697 sc_alloc_cut_buffer(sc_console, FALSE); in scmeminit()
702 sc_alloc_history_buffer(sc_console, 0, 0, FALSE); in scmeminit()
715 return ((sc_console != NULL) ? sc_console->sc->unit : -1); in scdevtounit()
1752 sc_console = sc_get_stat(sc_get_softc(unit, SC_KERNEL_CONSOLE)->dev[0]); in sc_cninit()
1768 sc_clear_screen(sc_console); in sc_cnterm()
1769 sccnupdate(sc_console); in sc_cnterm()
1776 (*sc_ktsw->te_term)(sc_console, &ts); in sc_cnterm()
1783 sc_console = NULL; in sc_cnterm()
1902 if (!cold && sc->cur_scp->index != sc_console->index && in sccnopen()
1904 sc_console->smode.mode == VT_AUTO) in sccnopen()
1905 sc_switch_scr(sc, sc_console->index); in sccnopen()
1946 sc = sc_console->sc; in sc_cngrab()
1961 sc = sc_console->sc; in sc_cnungrab()
1980 scr_stat *scp = sc_console; in sc_cnputc()
2086 sccnopen(sc_console->sc, &st, 1); in sc_cngetc()
2090 sccnclose(sc_console->sc, &st); in sc_cngetc()
2095 sccnclose(sc_console->sc, &st); in sc_cngetc()
2114 scp = sc_console->sc->cur_scp; /* XXX */ in sc_cngetc_locked()
2197 else if (sc_console != NULL) in scrn_timer()
2198 sc = sc_console->sc; in scrn_timer()
2820 if ((sc_console == NULL) || (next_scr != sc_console->index)) { in sc_switch_scr()
3488 KASSERT(sc_console != NULL, ("sc_console != NULL")); in scshutdown()
3489 KASSERT(sc_console->sc != NULL, ("sc_console->sc != NULL")); in scshutdown()
3490 KASSERT(sc_console->sc->cur_scp != NULL, in scshutdown()
3494 if (!cold && sc_console->sc->cur_scp->index != sc_console->index && in scshutdown()
3495 sc_console->sc->cur_scp->smode.mode == VT_AUTO && in scshutdown()
3496 sc_console->smode.mode == VT_AUTO) in scshutdown()
3497 sc_switch_scr(sc_console->sc, sc_console->index); in scshutdown()
3506 KASSERT(sc_console != NULL, ("sc_console != NULL")); in scsuspend()
3507 KASSERT(sc_console->sc != NULL, ("sc_console->sc != NULL")); in scsuspend()
3508 KASSERT(sc_console->sc->cur_scp != NULL, in scsuspend()
3511 sc_susp_scr = sc_console->sc->cur_scp->index; in scsuspend()
3512 if (sc_no_suspend_vtswitch || sc_susp_scr == sc_console->index) { in scsuspend()
3518 sc_switch_scr(sc_console->sc, sc_console->index); in scsuspend()
3519 if (!sc_console->sc->switch_in_progress) in scsuspend()
3530 KASSERT(sc_console != NULL, ("sc_console != NULL")); in scresume()
3531 KASSERT(sc_console->sc != NULL, ("sc_console->sc != NULL")); in scresume()
3532 KASSERT(sc_console->sc->cur_scp != NULL, in scresume()
3537 update_font(sc_console->sc->cur_scp); in scresume()
3540 sc_switch_scr(sc_console->sc, sc_susp_scr); in scresume()
4292 if (sc_console == NULL) in sc_kattr()