Lines Matching refs:newcon

2486 void register_console(struct console *newcon)  in register_console()  argument
2495 if (WARN(bcon == newcon, in register_console()
2504 if (console_drivers && newcon->flags & CON_BOOT) { in register_console()
2509 newcon->name, newcon->index); in register_console()
2527 if (newcon->index < 0) in register_console()
2528 newcon->index = 0; in register_console()
2529 if (newcon->setup == NULL || in register_console()
2530 newcon->setup(newcon, NULL) == 0) { in register_console()
2531 newcon->flags |= CON_ENABLED; in register_console()
2532 if (newcon->device) { in register_console()
2533 newcon->flags |= CON_CONSDEV; in register_console()
2546 if (!newcon->match || in register_console()
2547 newcon->match(newcon, c->name, c->index, c->options) != 0) { in register_console()
2549 BUILD_BUG_ON(sizeof(c->name) != sizeof(newcon->name)); in register_console()
2550 if (strcmp(c->name, newcon->name) != 0) in register_console()
2552 if (newcon->index >= 0 && in register_console()
2553 newcon->index != c->index) in register_console()
2555 if (newcon->index < 0) in register_console()
2556 newcon->index = c->index; in register_console()
2558 if (_braille_register_console(newcon, c)) in register_console()
2561 if (newcon->setup && in register_console()
2562 newcon->setup(newcon, c->options) != 0) in register_console()
2566 newcon->flags |= CON_ENABLED; in register_console()
2568 newcon->flags |= CON_CONSDEV; in register_console()
2574 if (!(newcon->flags & CON_ENABLED)) in register_console()
2583 if (bcon && ((newcon->flags & (CON_CONSDEV | CON_BOOT)) == CON_CONSDEV)) in register_console()
2584 newcon->flags &= ~CON_PRINTBUFFER; in register_console()
2591 if ((newcon->flags & CON_CONSDEV) || console_drivers == NULL) { in register_console()
2592 newcon->next = console_drivers; in register_console()
2593 console_drivers = newcon; in register_console()
2594 if (newcon->next) in register_console()
2595 newcon->next->flags &= ~CON_CONSDEV; in register_console()
2597 newcon->next = console_drivers->next; in register_console()
2598 console_drivers->next = newcon; in register_console()
2601 if (newcon->flags & CON_EXTENDED) in register_console()
2605 if (newcon->flags & CON_PRINTBUFFER) { in register_console()
2620 exclusive_console = newcon; in register_console()
2633 (newcon->flags & CON_BOOT) ? "boot" : "" , in register_console()
2634 newcon->name, newcon->index); in register_console()
2636 ((newcon->flags & (CON_CONSDEV | CON_BOOT)) == CON_CONSDEV) && in register_console()