Lines Matching refs:text_len
487 static void truncate_msg(u16 *text_len, u16 *trunc_msg_len) in truncate_msg() argument
495 if (*text_len > max_text_len) in truncate_msg()
496 *text_len = max_text_len; in truncate_msg()
500 if (*text_len >= *trunc_msg_len) in truncate_msg()
501 *text_len -= *trunc_msg_len; in truncate_msg()
577 const char *text, size_t text_len, in msg_add_ext_text() argument
584 for (i = 0; i < text_len; 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()
766 &r->text_buf[0], r->info->text_len, in devkmsg_read()
951 VMCOREINFO_OFFSET(printk_info, text_len); in log_buf_vmcoreinfo_setup()
1052 prb_rec_init_wr(&dest_r, r->info->text_len); in add_to_rb()
1057 memcpy(&dest_r.text_buf[0], &r->text_buf[0], r->info->text_len); in add_to_rb()
1058 dest_r.info->text_len = r->info->text_len; in add_to_rb()
1334 size_t text_len = r->info->text_len; in record_print_text() local
1348 if (text_len > buf_size) in record_print_text()
1349 text_len = buf_size; in record_print_text()
1360 next = memchr(text, '\n', text_len); in record_print_text()
1367 line_len = text_len; in record_print_text()
1374 if (len + prefix_len + text_len + 1 + 1 > buf_size) { in record_print_text()
1379 text_len = buf_size - len - prefix_len - 1 - 1; in record_print_text()
1383 memmove(text + prefix_len, text, text_len); in record_print_text()
1393 if (text_len == line_len) { in record_print_text()
1418 text_len -= line_len + 1; in record_print_text()
1446 return ((prefix_len * line_count) + info->text_len + 1); in get_record_print_text_size()
2089 u16 text_len; in printk_sprint() local
2091 text_len = vscnprintf(text, size, fmt, args); in printk_sprint()
2094 if (text_len && text[text_len - 1] == '\n') { in printk_sprint()
2095 text_len--; in printk_sprint()
2105 text_len -= prefix_len; in printk_sprint()
2106 memmove(text, text + prefix_len, text_len); in printk_sprint()
2110 trace_console_rcuidle(text, text_len); in printk_sprint()
2112 return text_len; in printk_sprint()
2132 u16 text_len; in vprintk_store() local
2175 text_len = printk_sprint(&r.text_buf[r.info->text_len], reserve_size, in vprintk_store()
2177 r.info->text_len += text_len; in vprintk_store()
2186 ret = text_len; in vprintk_store()
2207 text_len = printk_sprint(&r.text_buf[0], reserve_size, facility, &flags, fmt, args); in vprintk_store()
2209 memcpy(&r.text_buf[text_len], trunc_msg, trunc_msg_len); in vprintk_store()
2210 r.info->text_len = text_len + trunc_msg_len; in vprintk_store()
2225 ret = text_len + trunc_msg_len; in vprintk_store()
2330 char *text, size_t text_len, in msg_print_ext_body() argument
2732 &r.text_buf[0], r.info->text_len, &r.info->dev_info); in console_emit_next_record()