Lines Matching refs:currcons
753 int vc_allocate(unsigned int currcons) /* return 0 on success */ in vc_allocate() argument
757 if (currcons >= MAX_NR_CONSOLES) in vc_allocate()
759 if (!vc_cons[currcons].d) { in vc_allocate()
764 if (currcons >= MAX_NR_USER_CONSOLES && !capable(CAP_SYS_RESOURCE)) in vc_allocate()
776 vc_cons[currcons].d = vc; in vc_allocate()
778 INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK); in vc_allocate()
779 visual_init(vc, currcons, 1); in vc_allocate()
785 vc_cons[currcons].d = NULL; in vc_allocate()
795 vcs_make_sysfs(currcons); in vc_allocate()
995 struct vc_data *vc_deallocate(unsigned int currcons) in vc_deallocate() argument
1001 if (vc_cons_allocated(currcons)) { in vc_deallocate()
1004 param.vc = vc = vc_cons[currcons].d; in vc_deallocate()
1006 vcs_remove_sysfs(currcons); in vc_deallocate()
1011 vc_cons[currcons].d = NULL; in vc_deallocate()
2167 unsigned int currcons; in do_con_write() local
2190 currcons = vc->vc_num; in do_con_write()
2191 if (!vc_cons_allocated(currcons)) { in do_con_write()
2193 pr_warn_once("con_write: tty %d not allocated\n", currcons+1); in do_con_write()
2849 unsigned int currcons = tty->index; in con_install() local
2854 ret = vc_allocate(currcons); in con_install()
2858 vc = vc_cons[currcons].d; in con_install()
2874 tty->winsize.ws_row = vc_cons[currcons].d->vc_rows; in con_install()
2875 tty->winsize.ws_col = vc_cons[currcons].d->vc_cols; in con_install()
2950 unsigned int currcons = 0, i; in con_init() local
2983 for (currcons = 0; currcons < MIN_NR_CONSOLES; currcons++) { in con_init()
2984 vc_cons[currcons].d = vc = kzalloc(sizeof(struct vc_data), GFP_NOWAIT); in con_init()
2985 INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK); in con_init()
2987 visual_init(vc, currcons, 1); in con_init()
2990 currcons || !vc->vc_sw->con_save_screen); in con_init()
2992 currcons = fg_console = 0; in con_init()
2993 master_display_fg = vc = vc_cons[currcons].d; in con_init()