Lines Matching refs:con_buf

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