Lines Matching refs:text_len

371 	u16 text_len;		/* length of text buffer */  member
484 return (char *)msg + sizeof(struct printk_log) + msg->text_len; in log_dict()
566 static u32 msg_used_size(u16 text_len, u16 dict_len, u32 *pad_len) in msg_used_size() argument
570 size = sizeof(struct printk_log) + text_len + dict_len; in msg_used_size()
585 static u32 truncate_msg(u16 *text_len, u16 *trunc_msg_len, in truncate_msg() argument
593 if (*text_len > max_text_len) in truncate_msg()
594 *text_len = max_text_len; in truncate_msg()
600 return msg_used_size(*text_len + *trunc_msg_len, 0, pad_len); in truncate_msg()
607 const char *text, u16 text_len) in log_store() argument
614 size = msg_used_size(text_len, dict_len, &pad_len); in log_store()
618 size = truncate_msg(&text_len, &trunc_msg_len, in log_store()
637 memcpy(log_text(msg), text, text_len); in log_store()
638 msg->text_len = text_len; in log_store()
640 memcpy(log_text(msg) + text_len, trunc_msg, trunc_msg_len); in log_store()
641 msg->text_len += trunc_msg_len; in log_store()
662 return msg->text_len; in log_store()
737 char *text, size_t text_len) in msg_print_ext_body() argument
743 for (i = 0; i < text_len; i++) { in msg_print_ext_body()
913 log_text(msg), msg->text_len); in devkmsg_read()
1075 VMCOREINFO_OFFSET(printk_log, text_len); in log_buf_vmcoreinfo_setup()
1313 size_t text_size = msg->text_len; in msg_print_text()
1320 size_t text_len; in msg_print_text() local
1323 text_len = next - text; in msg_print_text()
1327 text_len = text_size; in msg_print_text()
1331 if (prefix_len + text_len + 1 >= size - len) in msg_print_text()
1336 memcpy(buf + len, text, text_len); in msg_print_text()
1337 len += text_len; in msg_print_text()
1341 len += prefix_len + text_len + 1; in msg_print_text()
1871 …y, int level, enum log_flags lflags, const char *dict, size_t dictlen, char *text, size_t text_len) in log_output() argument
1881 if (cont_add(caller_id, facility, level, lflags, text, text_len)) in log_output()
1882 return text_len; in log_output()
1889 if (!text_len && (lflags & LOG_CONT)) in log_output()
1894 if (cont_add(caller_id, facility, level, lflags, text, text_len)) in log_output()
1895 return text_len; in log_output()
1900 dict, dictlen, text, text_len); in log_output()
1910 size_t text_len; in vprintk_store() local
1917 text_len = vscnprintf(text, sizeof(textbuf), fmt, args); in vprintk_store()
1920 if (text_len && text[text_len-1] == '\n') { in vprintk_store()
1921 text_len--; in vprintk_store()
1939 text_len -= 2; in vprintk_store()
1951 dict, dictlen, text, text_len); in vprintk_store()
2086 char *text, size_t text_len) { return 0; } in msg_print_ext_body() argument
2458 log_text(msg), msg->text_len); in console_unlock()