Lines Matching refs:newcon
2648 void register_console(struct console *newcon) in register_console() argument
2658 if (WARN(bcon == newcon, in register_console()
2667 if (console_drivers && newcon->flags & CON_BOOT) { in register_console()
2672 newcon->name, newcon->index); in register_console()
2690 if (newcon->index < 0) in register_console()
2691 newcon->index = 0; in register_console()
2692 if (newcon->setup == NULL || in register_console()
2693 newcon->setup(newcon, NULL) == 0) { in register_console()
2694 newcon->flags |= CON_ENABLED; in register_console()
2695 if (newcon->device) { in register_console()
2696 newcon->flags |= CON_CONSDEV; in register_console()
2709 if (!newcon->match || in register_console()
2710 newcon->match(newcon, c->name, c->index, c->options) != 0) { in register_console()
2712 BUILD_BUG_ON(sizeof(c->name) != sizeof(newcon->name)); in register_console()
2713 if (strcmp(c->name, newcon->name) != 0) in register_console()
2715 if (newcon->index >= 0 && in register_console()
2716 newcon->index != c->index) in register_console()
2718 if (newcon->index < 0) in register_console()
2719 newcon->index = c->index; in register_console()
2721 if (_braille_register_console(newcon, c)) in register_console()
2724 if (newcon->setup && in register_console()
2725 newcon->setup(newcon, c->options) != 0) in register_console()
2729 newcon->flags |= CON_ENABLED; in register_console()
2731 newcon->flags |= CON_CONSDEV; in register_console()
2737 if (!(newcon->flags & CON_ENABLED)) in register_console()
2746 if (bcon && ((newcon->flags & (CON_CONSDEV | CON_BOOT)) == CON_CONSDEV)) in register_console()
2747 newcon->flags &= ~CON_PRINTBUFFER; in register_console()
2754 if ((newcon->flags & CON_CONSDEV) || console_drivers == NULL) { in register_console()
2755 newcon->next = console_drivers; in register_console()
2756 console_drivers = newcon; in register_console()
2757 if (newcon->next) in register_console()
2758 newcon->next->flags &= ~CON_CONSDEV; in register_console()
2760 newcon->next = console_drivers->next; in register_console()
2761 console_drivers->next = newcon; in register_console()
2764 if (newcon->flags & CON_EXTENDED) in register_console()
2767 if (newcon->flags & CON_PRINTBUFFER) { in register_console()
2784 exclusive_console = newcon; in register_console()
2799 (newcon->flags & CON_BOOT) ? "boot" : "" , in register_console()
2800 newcon->name, newcon->index); in register_console()
2802 ((newcon->flags & (CON_CONSDEV | CON_BOOT)) == CON_CONSDEV) && in register_console()