Lines Matching defs:con_buf
248 static int vcs_read_buf_uni(struct vc_data *vc, char *con_buf,
265 vc_uniscr_copy_line(vc, con_buf, viewed, row, col, nr);
266 con_buf += nr * 4;
276 static void vcs_read_buf_noattr(const struct vc_data *vc, char *con_buf,
287 *con_buf++ = (vcs_scr_readw(vc, org++) & 0xff);
296 static unsigned int vcs_read_buf(const struct vc_data *vc, char *con_buf,
306 con_buf[0] = min(vc->vc_rows, 0xFFu);
307 con_buf[1] = min(vc->vc_cols, 0xFFu);
308 getconsxy(vc, con_buf + 2);
320 con_buf += HEADER_SIZE;
349 con_buf16 = (u16 *)con_buf;
372 char *con_buf;
376 con_buf = (char *) __get_free_page(GFP_KERNEL);
377 if (!con_buf)
430 /* Perform the whole read into the local con_buf.
436 ret = vcs_read_buf_uni(vc, con_buf, pos, this_round,
441 vcs_read_buf_noattr(vc, con_buf, pos, this_round,
444 this_round = vcs_read_buf(vc, con_buf, pos, this_round,
456 ret = copy_to_user(buf, con_buf + skip, this_round);
474 free_page((unsigned long) con_buf);
478 static u16 *vcs_write_buf_noattr(struct vc_data *vc, const char *con_buf,
489 unsigned char c = *con_buf++;
518 static u16 *vcs_write_buf(struct vc_data *vc, const char *con_buf,
532 header[pos++] = *con_buf++;
549 c = *con_buf++;
567 w = get_unaligned(((unsigned short *)con_buf));
569 con_buf += 2;
582 c = *con_buf++;
594 char *con_buf;
605 con_buf = (char *) __get_free_page(GFP_KERNEL);
606 if (!con_buf)
643 ret = copy_from_user(con_buf, buf, this_round);
687 org = vcs_write_buf(vc, con_buf, pos, this_round,
690 org = vcs_write_buf_noattr(vc, con_buf, pos, this_round,
707 free_page((unsigned long) con_buf);