Lines Matching defs:con_buf
247 static int vcs_read_buf_uni(struct vc_data *vc, char *con_buf,
264 vc_uniscr_copy_line(vc, con_buf, viewed, row, col, nr);
265 con_buf += nr * 4;
275 static void vcs_read_buf_noattr(const struct vc_data *vc, char *con_buf,
286 *con_buf++ = (vcs_scr_readw(vc, org++) & 0xff);
295 static unsigned int vcs_read_buf(const struct vc_data *vc, char *con_buf,
305 con_buf[0] = min(vc->vc_rows, 0xFFu);
306 con_buf[1] = min(vc->vc_cols, 0xFFu);
307 getconsxy(vc, con_buf + 2);
319 con_buf += HEADER_SIZE;
348 con_buf16 = (u16 *)con_buf;
374 char *con_buf __free(free_page_ptr) = (char *)__get_free_page(GFP_KERNEL);
375 if (!con_buf)
427 /* Perform the whole read into the local con_buf.
433 ret = vcs_read_buf_uni(vc, con_buf, pos, this_round,
438 vcs_read_buf_noattr(vc, con_buf, pos, this_round,
441 this_round = vcs_read_buf(vc, con_buf, pos, this_round,
453 ret = copy_to_user(buf, con_buf + skip, this_round);
473 static u16 *vcs_write_buf_noattr(struct vc_data *vc, const char *con_buf,
484 unsigned char c = *con_buf++;
513 static u16 *vcs_write_buf(struct vc_data *vc, const char *con_buf,
527 header[pos++] = *con_buf++;
544 c = *con_buf++;
562 w = get_unaligned(((unsigned short *)con_buf));
564 con_buf += 2;
577 c = *con_buf++;
599 char *con_buf __free(free_page_ptr) = (char *)__get_free_page(GFP_KERNEL);
600 if (!con_buf)
633 ret = copy_from_user(con_buf, buf, this_round);
674 org = vcs_write_buf(vc, con_buf, pos, this_round,
677 org = vcs_write_buf_noattr(vc, con_buf, pos, this_round,