Lines Matching refs:currcons
1053 int vc_allocate(unsigned int currcons) /* return 0 on success */ in vc_allocate() argument
1061 if (currcons >= MAX_NR_CONSOLES) in vc_allocate()
1064 if (vc_cons[currcons].d) in vc_allocate()
1077 vc_cons[currcons].d = vc; in vc_allocate()
1080 INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK); in vc_allocate()
1082 visual_init(vc, currcons, true); in vc_allocate()
1102 vcs_make_sysfs(currcons); in vc_allocate()
1109 vc_cons[currcons].d = NULL; in vc_allocate()
1328 struct vc_data *vc_deallocate(unsigned int currcons) in vc_deallocate() argument
1334 if (vc_cons_allocated(currcons)) { in vc_deallocate()
1337 param.vc = vc = vc_cons[currcons].d; in vc_deallocate()
1339 vcs_remove_sysfs(currcons); in vc_deallocate()
1345 vc_cons[currcons].d = NULL; in vc_deallocate()
3130 unsigned int currcons; in do_con_write() local
3139 currcons = vc->vc_num; in do_con_write()
3140 if (!vc_cons_allocated(currcons)) { in do_con_write()
3142 pr_warn_once("con_write: tty %d not allocated\n", currcons+1); in do_con_write()
3595 unsigned int currcons = tty->index; in con_install() local
3600 ret = vc_allocate(currcons); in con_install()
3604 vc = vc_cons[currcons].d; in con_install()
3621 tty->winsize.ws_row = vc_cons[currcons].d->vc_rows; in con_install()
3622 tty->winsize.ws_col = vc_cons[currcons].d->vc_cols; in con_install()
3707 unsigned int currcons = 0, i; in con_init() local
3741 for (currcons = 0; currcons < MIN_NR_CONSOLES; currcons++) { in con_init()
3742 vc_cons[currcons].d = vc = kzalloc(sizeof(struct vc_data), GFP_NOWAIT); in con_init()
3743 INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK); in con_init()
3745 visual_init(vc, currcons, true); in con_init()
3748 vc_init(vc, currcons || !vc->vc_sw->con_save_screen); in con_init()
3750 currcons = fg_console = 0; in con_init()
3751 master_display_fg = vc = vc_cons[currcons].d; in con_init()