Lines Matching refs:text
577 const char *text, size_t text_len, in msg_add_ext_text() argument
585 unsigned char c = text[i]; in msg_add_ext_text()
614 char *text, size_t text_len, in msg_print_ext_body() argument
619 len = msg_add_ext_text(buf, size, text, text_len, '\n'); in msg_print_ext_body()
1336 char *text = r->text_buf; in record_print_text() local
1360 next = memchr(text, '\n', text_len); in record_print_text()
1362 line_len = next - text; in record_print_text()
1383 memmove(text + prefix_len, text, text_len); in record_print_text()
1384 memcpy(text, prefix, prefix_len); in record_print_text()
1398 text[prefix_len + line_len] = '\n'; in record_print_text()
1406 text += prefix_len + line_len + 1; in record_print_text()
1498 char *text; in syslog_print() local
1502 text = kmalloc(CONSOLE_LOG_MAX, GFP_KERNEL); in syslog_print()
1503 if (!text) in syslog_print()
1506 prb_rec_init_rd(&r, &info, text, CONSOLE_LOG_MAX); in syslog_print()
1579 err = copy_to_user(buf, text + skip, n); in syslog_print()
1594 kfree(text); in syslog_print()
1602 char *text; in syslog_print_all() local
1607 text = kmalloc(CONSOLE_LOG_MAX, GFP_KERNEL); in syslog_print_all()
1608 if (!text) in syslog_print_all()
1619 prb_rec_init_rd(&r, &info, text, CONSOLE_LOG_MAX); in syslog_print_all()
1632 if (copy_to_user(buf + len, text, textlen)) in syslog_print_all()
1647 kfree(text); in syslog_print_all()
1931 static void call_console_driver(struct console *con, const char *text, size_t len, in call_console_driver() argument
1944 con->write(con, text, len); in call_console_driver()
2056 u16 printk_parse_prefix(const char *text, int *level, in printk_parse_prefix() argument
2062 while (*text) { in printk_parse_prefix()
2063 kern_level = printk_get_level(text); in printk_parse_prefix()
2078 text += 2; in printk_parse_prefix()
2085 static u16 printk_sprint(char *text, u16 size, int facility, in printk_sprint() argument
2091 text_len = vscnprintf(text, size, fmt, args); in printk_sprint()
2094 if (text_len && text[text_len - 1] == '\n') { in printk_sprint()
2103 prefix_len = printk_parse_prefix(text, NULL, NULL); in printk_sprint()
2106 memmove(text, text + prefix_len, text_len); in printk_sprint()
2110 trace_console_rcuidle(text, text_len); in printk_sprint()
2330 char *text, size_t text_len, in msg_print_ext_body() argument
2334 static void call_console_driver(struct console *con, const char *text, size_t len, in call_console_driver() argument
2696 static bool console_emit_next_record(struct console *con, char *text, char *ext_text, in console_emit_next_record() argument
2706 prb_rec_init_rd(&r, &info, text, CONSOLE_LOG_MAX); in console_emit_next_record()
2734 write_text = text; in console_emit_next_record()
2790 static char text[CONSOLE_LOG_MAX]; in console_flush_all() local
2810 progress = console_emit_next_record(con, &text[0], in console_flush_all()
2814 progress = console_emit_next_record(con, &text[0], in console_flush_all()