Lines Matching defs:currcons
1109 int vc_allocate(unsigned int currcons) /* return 0 on success */
1117 if (currcons >= MAX_NR_CONSOLES)
1120 if (vc_cons[currcons].d)
1133 vc_cons[currcons].d = vc;
1136 INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK);
1138 visual_init(vc, currcons, 1);
1158 vcs_make_sysfs(currcons);
1165 vc_cons[currcons].d = NULL;
1389 struct vc_data *vc_deallocate(unsigned int currcons)
1395 if (vc_cons_allocated(currcons)) {
1398 param.vc = vc = vc_cons[currcons].d;
1400 vcs_remove_sysfs(currcons);
1406 vc_cons[currcons].d = NULL;
2901 unsigned int currcons;
2917 currcons = vc->vc_num;
2918 if (!vc_cons_allocated(currcons)) {
2920 pr_warn_once("con_write: tty %d not allocated\n", currcons+1);
3100 /* printk("vt_console_print: tty %d not allocated ??\n", currcons+1); */
3385 unsigned int currcons = tty->index;
3390 ret = vc_allocate(currcons);
3394 vc = vc_cons[currcons].d;
3411 tty->winsize.ws_row = vc_cons[currcons].d->vc_rows;
3412 tty->winsize.ws_col = vc_cons[currcons].d->vc_cols;
3494 unsigned int currcons = 0, i;
3528 for (currcons = 0; currcons < MIN_NR_CONSOLES; currcons++) {
3529 vc_cons[currcons].d = vc = kzalloc(sizeof(struct vc_data), GFP_NOWAIT);
3530 INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK);
3532 visual_init(vc, currcons, 1);
3536 currcons || !vc->vc_sw->con_save_screen);
3538 currcons = fg_console = 0;
3539 master_display_fg = vc = vc_cons[currcons].d;