Lines Matching refs:vc

88 	struct vc_data *vc = param->vc;  in vcs_notifier()  local
109 if (currcons != vc->vc_num) in vcs_notifier()
209 static int vcs_size(const struct vc_data *vc, bool attr, bool unicode) in vcs_size() argument
215 size = vc->vc_rows * vc->vc_cols; in vcs_size()
231 struct vc_data *vc; in vcs_lseek() local
235 vc = vcs_vc(inode, NULL); in vcs_lseek()
236 if (!vc) { in vcs_lseek()
241 size = vcs_size(vc, use_attributes(inode), use_unicode(inode)); in vcs_lseek()
248 static int vcs_read_buf_uni(struct vc_data *vc, char *con_buf, in vcs_read_buf_uni() argument
251 unsigned int nr, row, col, maxcol = vc->vc_cols; in vcs_read_buf_uni()
254 ret = vc_uniscr_check(vc); in vcs_read_buf_uni()
265 vc_uniscr_copy_line(vc, con_buf, viewed, row, col, nr); 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
280 unsigned int col, maxcol = vc->vc_cols; in vcs_read_buf_noattr()
282 org = screen_pos(vc, pos, viewed); in vcs_read_buf_noattr()
287 *con_buf++ = (vcs_scr_readw(vc, org++) & 0xff); in vcs_read_buf_noattr()
289 org = screen_pos(vc, pos, viewed); 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
301 unsigned int col, maxcol = vc->vc_cols; in vcs_read_buf()
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()
341 org = screen_pos(vc, pos, viewed); in vcs_read_buf()
352 *con_buf16++ = vcs_scr_readw(vc, org++); in vcs_read_buf()
355 org = screen_pos(vc, pos, viewed); in vcs_read_buf()
368 struct vc_data *vc; in vcs_read() local
406 vc = vcs_vc(inode, &viewed); in vcs_read()
407 if (!vc) { in vcs_read()
416 size = vcs_size(vc, attr, uni_mode); 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()
478 static u16 *vcs_write_buf_noattr(struct vc_data *vc, const char *con_buf, in vcs_write_buf_noattr() argument
482 unsigned int col, maxcol = vc->vc_cols; in vcs_write_buf_noattr()
484 *org0 = org = screen_pos(vc, pos, viewed); in vcs_write_buf_noattr()
492 vcs_scr_writew(vc, in vcs_write_buf_noattr()
493 (vcs_scr_readw(vc, org) & 0xff00) | c, org); in vcs_write_buf_noattr()
496 org = screen_pos(vc, pos, viewed); in vcs_write_buf_noattr()
518 static u16 *vcs_write_buf(struct vc_data *vc, const char *con_buf, in vcs_write_buf() argument
522 unsigned int col, maxcol = vc->vc_cols; in vcs_write_buf()
529 getconsxy(vc, header + 2); in vcs_write_buf()
535 putconsxy(vc, header + 2); in vcs_write_buf()
544 *org0 = org = screen_pos(vc, pos/2, viewed); in vcs_write_buf()
550 vcs_scr_writew(vc, vc_compile_le16(c, vcs_scr_readw(vc, org)), in vcs_write_buf()
555 org = screen_pos(vc, pos/2, viewed); in vcs_write_buf()
568 vcs_scr_writew(vc, w, org++); in vcs_write_buf()
572 org = screen_pos(vc, pos, viewed); in vcs_write_buf()
583 vcs_scr_writew(vc, vc_compile_le16(vcs_scr_readw(vc, org) >> 8, c), in vcs_write_buf()
593 struct vc_data *vc; in vcs_write() local
618 vc = vcs_vc(inode, &viewed); in vcs_write()
619 if (!vc) in vcs_write()
622 size = vcs_size(vc, attr, false); in vcs_write()
663 vc = vcs_vc(inode, &viewed); in vcs_write()
664 if (!vc) { in vcs_write()
670 size = vcs_size(vc, attr, false); in vcs_write()
687 org = vcs_write_buf(vc, con_buf, pos, this_round, in vcs_write()
690 org = vcs_write_buf_noattr(vc, con_buf, pos, this_round, in vcs_write()
698 update_region(vc, (unsigned long)(org0), org - org0); in vcs_write()
703 vcs_scr_updated(vc); in vcs_write()