Lines Matching refs:currcons

761 int vc_allocate(unsigned int currcons)	/* return 0 on success */  in vc_allocate()  argument
765 if (currcons >= MAX_NR_CONSOLES) in vc_allocate()
767 if (!vc_cons[currcons].d) { in vc_allocate()
772 if (currcons >= MAX_NR_USER_CONSOLES && !capable(CAP_SYS_RESOURCE)) in vc_allocate()
784 vc_cons[currcons].d = vc; in vc_allocate()
786 INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK); in vc_allocate()
787 visual_init(vc, currcons, 1); in vc_allocate()
793 vc_cons[currcons].d = NULL; in vc_allocate()
803 vcs_make_sysfs(currcons); in vc_allocate()
998 struct vc_data *vc_deallocate(unsigned int currcons) in vc_deallocate() argument
1004 if (vc_cons_allocated(currcons)) { in vc_deallocate()
1007 param.vc = vc = vc_cons[currcons].d; in vc_deallocate()
1009 vcs_remove_sysfs(currcons); in vc_deallocate()
1014 vc_cons[currcons].d = NULL; in vc_deallocate()
2182 unsigned int currcons; in do_con_write() local
2205 currcons = vc->vc_num; in do_con_write()
2206 if (!vc_cons_allocated(currcons)) { in do_con_write()
2208 pr_warn_once("con_write: tty %d not allocated\n", currcons+1); in do_con_write()
2864 unsigned int currcons = tty->index; in con_install() local
2869 ret = vc_allocate(currcons); in con_install()
2873 vc = vc_cons[currcons].d; in con_install()
2889 tty->winsize.ws_row = vc_cons[currcons].d->vc_rows; in con_install()
2890 tty->winsize.ws_col = vc_cons[currcons].d->vc_cols; in con_install()
2965 unsigned int currcons = 0, i; in con_init() local
2998 for (currcons = 0; currcons < MIN_NR_CONSOLES; currcons++) { in con_init()
2999 vc_cons[currcons].d = vc = kzalloc(sizeof(struct vc_data), GFP_NOWAIT); in con_init()
3000 INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK); in con_init()
3002 visual_init(vc, currcons, 1); in con_init()
3005 currcons || !vc->vc_sw->con_save_screen); in con_init()
3007 currcons = fg_console = 0; in con_init()
3008 master_display_fg = vc = vc_cons[currcons].d; in con_init()