Lines Matching refs:text
411 const char *text, u16 text_len) in log_store() argument
441 memcpy(log_text(msg), text, text_len); in log_store()
1042 const char *text = log_text(msg); in msg_print_text() local
1060 const char *next = memchr(text, '\n', text_size); in msg_print_text()
1064 text_len = next - text; in msg_print_text()
1066 text_size -= next - text; in msg_print_text()
1078 memcpy(buf + len, text, text_len); in msg_print_text()
1092 text = next; in msg_print_text()
1093 } while (text); in msg_print_text()
1100 char *text; in syslog_print() local
1104 text = kmalloc(LOG_LINE_MAX + PREFIX_MAX, GFP_KERNEL); in syslog_print()
1105 if (!text) in syslog_print()
1127 n = msg_print_text(msg, syslog_prev, true, text, in syslog_print()
1147 if (copy_to_user(buf, text + skip, n)) { in syslog_print()
1158 kfree(text); in syslog_print()
1164 char *text; in syslog_print_all() local
1167 text = kmalloc(LOG_LINE_MAX + PREFIX_MAX, GFP_KERNEL); in syslog_print_all()
1168 if (!text) in syslog_print_all()
1221 textlen = msg_print_text(msg, prev, true, text, in syslog_print_all()
1232 if (copy_to_user(buf + len, text, textlen)) in syslog_print_all()
1253 kfree(text); in syslog_print_all()
1393 static void call_console_drivers(int level, const char *text, size_t len) in call_console_drivers() argument
1397 trace_console(text, len); in call_console_drivers()
1414 con->write(con, text, len); in call_console_drivers()
1552 static bool cont_add(int facility, int level, const char *text, size_t len) in cont_add() argument
1573 memcpy(cont.buf + cont.len, text, len); in cont_add()
1582 static size_t cont_print_text(char *text, size_t size) in cont_print_text() argument
1588 textlen += print_time(cont.ts_nsec, text); in cont_print_text()
1596 memcpy(text + textlen, cont.buf + cont.cons, len); in cont_print_text()
1603 text[textlen++] = '\n'; in cont_print_text()
1616 char *text = textbuf; in vprintk_emit() local
1676 text_len = vscnprintf(text, sizeof(textbuf), fmt, args); in vprintk_emit()
1679 if (text_len && text[text_len-1] == '\n') { in vprintk_emit()
1686 int kern_level = printk_get_level(text); in vprintk_emit()
1689 const char *end_of_header = printk_skip_level(text); in vprintk_emit()
1703 text_len -= end_of_header - text; in vprintk_emit()
1704 text = (char *)end_of_header; in vprintk_emit()
1723 if (cont_add(facility, level, text, text_len)) in vprintk_emit()
1728 dict, dictlen, text, text_len); in vprintk_emit()
1742 stored = cont_add(facility, level, text, in vprintk_emit()
1751 dict, dictlen, text, text_len); in vprintk_emit()
1895 static void call_console_drivers(int level, const char *text, size_t len) {} in call_console_drivers() argument
1898 static size_t cont_print_text(char *text, size_t size) { return 0; } in cont_print_text() argument
2127 static void console_cont_flush(char *text, size_t size) in console_cont_flush() argument
2145 len = cont_print_text(text, size); in console_cont_flush()
2148 call_console_drivers(cont.level, text, len); in console_cont_flush()
2172 static char text[LOG_LINE_MAX + PREFIX_MAX]; in console_unlock() local
2197 console_cont_flush(text, sizeof(text)); in console_unlock()
2211 len = sprintf(text, "** %u printk messages dropped ** ", in console_unlock()
2245 text + len, sizeof(text) - len); in console_unlock()
2252 call_console_drivers(level, text, len); in console_unlock()