Lines Matching refs:vc
92 struct vc_data *vc = param->vc; in vcs_notifier() local
113 if (currcons != vc->vc_num) in vcs_notifier()
211 struct vc_data *vc; in vcs_size() local
215 vc = vcs_vc(inode, NULL); in vcs_size()
216 if (!vc) in vcs_size()
219 size = vc->vc_rows * vc->vc_cols; in vcs_size()
247 struct vc_data *vc; in vcs_read() local
269 vc = vcs_vc(inode, &viewed); in vcs_read()
270 if (!vc) in vcs_read()
318 maxcol = vc->vc_cols; in vcs_read()
322 ret = vc_uniscr_check(vc); in vcs_read()
326 row = p / vc->vc_cols; in vcs_read()
332 vc_uniscr_copy_line(vc, con_buf0, viewed, in vcs_read()
341 org = screen_pos(vc, p, viewed); in vcs_read()
345 *con_buf0++ = (vcs_scr_readw(vc, org++) & 0xff); in vcs_read()
347 org = screen_pos(vc, p, viewed); in vcs_read()
357 con_buf0[0] = min(vc->vc_rows, 0xFFu); in vcs_read()
358 con_buf0[1] = min(vc->vc_cols, 0xFFu); in vcs_read()
359 getconsxy(vc, con_buf0 + 2); in vcs_read()
395 org = screen_pos(vc, p, viewed); in vcs_read()
405 *tmp_buf++ = vcs_scr_readw(vc, org++); in vcs_read()
408 org = screen_pos(vc, p, viewed); in vcs_read()
450 struct vc_data *vc; in vcs_write() local
472 vc = vcs_vc(inode, &viewed); in vcs_write()
473 if (!vc) in vcs_write()
533 maxcol = vc->vc_cols; in vcs_write()
536 org0 = org = screen_pos(vc, p, viewed); in vcs_write()
544 vcs_scr_writew(vc, in vcs_write()
545 (vcs_scr_readw(vc, org) & 0xff00) | c, org); in vcs_write()
548 org = screen_pos(vc, p, viewed); in vcs_write()
557 getconsxy(vc, header + 2); in vcs_write()
563 putconsxy(vc, header + 2); in vcs_write()
568 org0 = org = screen_pos(vc, p/2, viewed); in vcs_write()
575 vcs_scr_writew(vc, c | in vcs_write()
576 (vcs_scr_readw(vc, org) & 0xff00), org); in vcs_write()
578 vcs_scr_writew(vc, (c << 8) | in vcs_write()
579 (vcs_scr_readw(vc, org) & 0xff), org); in vcs_write()
584 org = screen_pos(vc, p/2, viewed); in vcs_write()
595 vcs_scr_writew(vc, w, org++); in vcs_write()
599 org = screen_pos(vc, p, viewed); in vcs_write()
609 vcs_scr_writew(vc, (vcs_scr_readw(vc, org) & 0xff) | (c << 8), org); in vcs_write()
611 vcs_scr_writew(vc, (vcs_scr_readw(vc, org) & 0xff00) | c, org); in vcs_write()
620 update_region(vc, (unsigned long)(org0), org - org0); in vcs_write()
625 vcs_scr_updated(vc); in vcs_write()