Lines Matching refs:con
48 static int (*earlycon_orig_exit)(struct console *con);
462 struct console *con; in kgdboc_earlycon_pre_exp_handler() local
478 for_each_console_srcu(con) { in kgdboc_earlycon_pre_exp_handler()
479 if (con == kgdboc_earlycon_io_ops.cons) in kgdboc_earlycon_pre_exp_handler()
483 if (con) in kgdboc_earlycon_pre_exp_handler()
490 static int kgdboc_earlycon_deferred_exit(struct console *con) in kgdboc_earlycon_deferred_exit() argument
499 con->exit = earlycon_orig_exit; in kgdboc_earlycon_deferred_exit()
541 struct console *con; in kgdboc_earlycon_init() local
558 for_each_console(con) { in kgdboc_earlycon_init()
559 if (con->write && con->read && in kgdboc_earlycon_init()
560 (con->flags & (CON_BOOT | CON_ENABLED)) && in kgdboc_earlycon_init()
561 (!opt || !opt[0] || strcmp(con->name, opt) == 0)) in kgdboc_earlycon_init()
565 if (!con) { in kgdboc_earlycon_init()
587 kgdboc_earlycon_io_ops.cons = con; in kgdboc_earlycon_init()
588 pr_info("Going to register kgdb with earlycon '%s'\n", con->name); in kgdboc_earlycon_init()
594 earlycon_orig_exit = con->exit; in kgdboc_earlycon_init()
595 con->exit = kgdboc_earlycon_deferred_exit; in kgdboc_earlycon_init()