Lines Matching refs:c
550 static void append_char(char **pp, char *e, char c) in append_char() argument
553 *(*pp)++ = c; in append_char()
590 unsigned char c = text[i]; in msg_add_ext_text() local
592 if (c < ' ' || c >= 127 || c == '\\') in msg_add_ext_text()
593 p += scnprintf(p, e - p, "\\x%02x", c); in msg_add_ext_text()
595 append_char(&p, e, c); in msg_add_ext_text()
2375 struct console_cmdline *c; in __add_preferred_console() local
2382 for (i = 0, c = console_cmdline; in __add_preferred_console()
2383 i < MAX_CMDLINECONSOLES && c->name[0]; in __add_preferred_console()
2384 i++, c++) { in __add_preferred_console()
2385 if (strcmp(c->name, name) == 0 && c->index == idx) { in __add_preferred_console()
2389 c->user_specified = true; in __add_preferred_console()
2397 strlcpy(c->name, name, sizeof(c->name)); in __add_preferred_console()
2398 c->options = options; in __add_preferred_console()
2399 c->user_specified = user_specified; in __add_preferred_console()
2400 braille_set_options(c, brl_options); in __add_preferred_console()
2402 c->index = idx; in __add_preferred_console()
2810 struct console *c; in console_unblank() local
2824 for_each_console(c) in console_unblank()
2825 if ((c->flags & CON_ENABLED) && c->unblank) in console_unblank()
2826 c->unblank(); in console_unblank()
2858 struct console *c; in console_device() local
2862 for_each_console(c) { in console_device()
2863 if (!c->device) in console_device()
2865 driver = c->device(c, index); in console_device()
2917 struct console_cmdline *c; in try_enable_new_console() local
2920 for (i = 0, c = console_cmdline; in try_enable_new_console()
2921 i < MAX_CMDLINECONSOLES && c->name[0]; in try_enable_new_console()
2922 i++, c++) { in try_enable_new_console()
2923 if (c->user_specified != user_specified) in try_enable_new_console()
2926 newcon->match(newcon, c->name, c->index, c->options) != 0) { in try_enable_new_console()
2928 BUILD_BUG_ON(sizeof(c->name) != sizeof(newcon->name)); in try_enable_new_console()
2929 if (strcmp(c->name, newcon->name) != 0) in try_enable_new_console()
2932 newcon->index != c->index) in try_enable_new_console()
2935 newcon->index = c->index; in try_enable_new_console()
2937 if (_braille_register_console(newcon, c)) in try_enable_new_console()
2941 (err = newcon->setup(newcon, c->options)) != 0) in try_enable_new_console()
2957 if (newcon->flags & CON_ENABLED && c->user_specified == user_specified) in try_enable_new_console()