Lines Matching refs:vc

88 	struct vc_data *vc = param->vc;
109 if (currcons != vc->vc_num)
202 * vcs_size - return size for a VC in @vc
203 * @vc: which VC
209 static int vcs_size(const struct vc_data *vc, bool attr, bool unicode)
215 size = vc->vc_rows * vc->vc_cols;
231 struct vc_data *vc;
235 vc = vcs_vc(inode, NULL);
236 if (!vc) {
241 size = vcs_size(vc, use_attributes(inode), use_unicode(inode));
248 static int vcs_read_buf_uni(struct vc_data *vc, char *con_buf,
251 unsigned int nr, row, col, maxcol = vc->vc_cols;
254 ret = vc_uniscr_check(vc);
265 vc_uniscr_copy_line(vc, con_buf, viewed, row, col, nr);
276 static void vcs_read_buf_noattr(const struct vc_data *vc, char *con_buf,
280 unsigned int col, maxcol = vc->vc_cols;
282 org = screen_pos(vc, pos, viewed);
287 *con_buf++ = (vcs_scr_readw(vc, org++) & 0xff);
289 org = screen_pos(vc, pos, viewed);
296 static unsigned int vcs_read_buf(const struct vc_data *vc, char *con_buf,
301 unsigned int col, maxcol = vc->vc_cols;
306 con_buf[0] = min(vc->vc_rows, 0xFFu);
307 con_buf[1] = min(vc->vc_cols, 0xFFu);
308 getconsxy(vc, con_buf + 2);
341 org = screen_pos(vc, pos, viewed);
352 *con_buf16++ = vcs_scr_readw(vc, org++);
355 org = screen_pos(vc, pos, viewed);
368 struct vc_data *vc;
406 vc = vcs_vc(inode, &viewed);
407 if (!vc) {
416 size = vcs_size(vc, attr, uni_mode);
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,
478 static u16 *vcs_write_buf_noattr(struct vc_data *vc, const char *con_buf,
482 unsigned int col, maxcol = vc->vc_cols;
484 *org0 = org = screen_pos(vc, pos, viewed);
492 vcs_scr_writew(vc,
493 (vcs_scr_readw(vc, org) & 0xff00) | c, org);
496 org = screen_pos(vc, pos, viewed);
518 static u16 *vcs_write_buf(struct vc_data *vc, const char *con_buf,
522 unsigned int col, maxcol = vc->vc_cols;
529 getconsxy(vc, header + 2);
535 putconsxy(vc, header + 2);
544 *org0 = org = screen_pos(vc, pos/2, viewed);
550 vcs_scr_writew(vc, vc_compile_le16(c, vcs_scr_readw(vc, org)),
555 org = screen_pos(vc, pos/2, viewed);
568 vcs_scr_writew(vc, w, org++);
572 org = screen_pos(vc, pos, viewed);
583 vcs_scr_writew(vc, vc_compile_le16(vcs_scr_readw(vc, org) >> 8, c),
593 struct vc_data *vc;
618 vc = vcs_vc(inode, &viewed);
619 if (!vc)
622 size = vcs_size(vc, attr, false);
659 /* The vc might have been freed or vcs_size might have changed
663 vc = vcs_vc(inode, &viewed);
664 if (!vc) {
670 size = vcs_size(vc, attr, false);
687 org = vcs_write_buf(vc, con_buf, pos, this_round,
690 org = vcs_write_buf_noattr(vc, con_buf, pos, this_round,
698 update_region(vc, (unsigned long)(org0), org - org0);
703 vcs_scr_updated(vc);
790 .name = "vc",