Lines Matching refs:vc
92 struct vc_data *vc = param->vc; in vcs_notifier() local
104 if (currcons != vc->vc_num) in vcs_notifier()
193 struct vc_data *vc; in vcs_size() local
197 vc = vcs_vc(inode, NULL); in vcs_size()
198 if (!vc) in vcs_size()
201 size = vc->vc_rows * vc->vc_cols; in vcs_size()
229 struct vc_data *vc; in vcs_read() local
251 vc = vcs_vc(inode, &viewed); in vcs_read()
252 if (!vc) in vcs_read()
300 maxcol = vc->vc_cols; in vcs_read()
304 ret = vc_uniscr_check(vc); in vcs_read()
308 row = p / vc->vc_cols; in vcs_read()
314 vc_uniscr_copy_line(vc, con_buf0, viewed, in vcs_read()
323 org = screen_pos(vc, p, viewed); in vcs_read()
327 *con_buf0++ = (vcs_scr_readw(vc, org++) & 0xff); in vcs_read()
329 org = screen_pos(vc, p, viewed); in vcs_read()
338 con_buf0[0] = (char)vc->vc_rows; in vcs_read()
339 con_buf0[1] = (char)vc->vc_cols; in vcs_read()
340 getconsxy(vc, con_buf0 + 2); in vcs_read()
376 org = screen_pos(vc, p, viewed); in vcs_read()
386 *tmp_buf++ = vcs_scr_readw(vc, org++); in vcs_read()
389 org = screen_pos(vc, p, viewed); in vcs_read()
431 struct vc_data *vc; in vcs_write() local
453 vc = vcs_vc(inode, &viewed); in vcs_write()
454 if (!vc) in vcs_write()
514 maxcol = vc->vc_cols; in vcs_write()
517 org0 = org = screen_pos(vc, p, viewed); in vcs_write()
525 vcs_scr_writew(vc, in vcs_write()
526 (vcs_scr_readw(vc, org) & 0xff00) | c, org); in vcs_write()
529 org = screen_pos(vc, p, viewed); in vcs_write()
538 getconsxy(vc, header + 2); in vcs_write()
544 putconsxy(vc, header + 2); in vcs_write()
549 org0 = org = screen_pos(vc, p/2, viewed); in vcs_write()
556 vcs_scr_writew(vc, c | in vcs_write()
557 (vcs_scr_readw(vc, org) & 0xff00), org); in vcs_write()
559 vcs_scr_writew(vc, (c << 8) | in vcs_write()
560 (vcs_scr_readw(vc, org) & 0xff), org); in vcs_write()
565 org = screen_pos(vc, p/2, viewed); in vcs_write()
576 vcs_scr_writew(vc, w, org++); in vcs_write()
580 org = screen_pos(vc, p, viewed); in vcs_write()
590 vcs_scr_writew(vc, (vcs_scr_readw(vc, org) & 0xff) | (c << 8), org); in vcs_write()
592 vcs_scr_writew(vc, (vcs_scr_readw(vc, org) & 0xff00) | c, org); in vcs_write()
601 update_region(vc, (unsigned long)(org0), org - org0); in vcs_write()
606 vcs_scr_updated(vc); in vcs_write()