Lines Matching refs:vc
328 static void newport_init(struct vc_data *vc, int init) in newport_init() argument
334 vc->vc_can_do_color = 1; in newport_init()
336 vc->vc_cols = cols; in newport_init()
337 vc->vc_rows = rows; in newport_init()
339 vc_resize(vc, cols, rows); in newport_init()
350 static void newport_clear(struct vc_data *vc, int sy, int sx, int height, in newport_clear() argument
362 (vc->vc_color & 0xf0) >> 4); in newport_clear()
365 (vc->vc_color & 0xf0) >> 4); in newport_clear()
367 (vc->vc_color & 0xf0) >> 4); in newport_clear()
371 static void newport_putc(struct vc_data *vc, int charattr, int ypos, in newport_putc() argument
376 p = &font_data[vc->vc_num][(charattr & 0xff) << 4]; in newport_putc()
400 static void newport_putcs(struct vc_data *vc, const unsigned short *s, in newport_putcs() argument
427 p = &font_data[vc->vc_num][(scr_readw(s++) & 0xff) << 4]; in newport_putcs()
441 static void newport_cursor(struct vc_data *vc, int mode) in newport_cursor() argument
458 xcurs = (vc->vc_pos - vc->vc_visible_origin) / 2; in newport_cursor()
459 ycurs = ((xcurs / vc->vc_cols) << 4) + 31; in newport_cursor()
460 xcurs = ((xcurs % vc->vc_cols) << 3) + xcurs_correction; in newport_cursor()
466 static int newport_switch(struct vc_data *vc) in newport_switch() argument
567 static int newport_font_default(struct vc_data *vc, struct console_font *op, char *name) in newport_font_default() argument
569 return newport_set_def_font(vc->vc_num, op); in newport_font_default()
572 static int newport_font_set(struct vc_data *vc, struct console_font *font, unsigned flags) in newport_font_set() argument
574 return newport_set_font(vc->vc_num, font); in newport_font_set()
577 static int newport_set_palette(struct vc_data *vc, unsigned char *table) in newport_set_palette() argument
582 static int newport_scrolldelta(struct vc_data *vc, int lines) in newport_scrolldelta() argument
588 static int newport_scroll(struct vc_data *vc, int t, int b, int dir, in newport_scroll() argument
597 if (t == 0 && b == vc->vc_rows) { in newport_scroll()
600 newport_clear_lines(vc->vc_rows - lines, in newport_scroll()
601 vc->vc_rows - 1, in newport_scroll()
602 (vc->vc_color & 0xf0) >> 4); in newport_scroll()
606 (vc->vc_color & 0xf0) >> 4); in newport_scroll()
612 count = (b - t - lines) * vc->vc_cols; in newport_scroll()
616 s = (unsigned short *) (vc->vc_origin + in newport_scroll()
617 vc->vc_size_row * (t + lines)); in newport_scroll()
618 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
619 vc->vc_size_row * t); in newport_scroll()
623 newport_putc(vc, chattr, y, x); in newport_scroll()
627 if (++x == vc->vc_cols) { in newport_scroll()
632 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
633 vc->vc_size_row * (b - lines)); in newport_scroll()
636 for (count = 0; count < (lines * vc->vc_cols); count++) { in newport_scroll()
637 if (scr_readw(d) != vc->vc_video_erase_char) { in newport_scroll()
638 newport_putc(vc, vc->vc_video_erase_char, in newport_scroll()
640 scr_writew(vc->vc_video_erase_char, d); in newport_scroll()
643 if (++x == vc->vc_cols) { in newport_scroll()
649 x = vc->vc_cols - 1; in newport_scroll()
651 s = (unsigned short *) (vc->vc_origin + in newport_scroll()
652 vc->vc_size_row * (b - lines) - 2); in newport_scroll()
653 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
654 vc->vc_size_row * b - 2); in newport_scroll()
658 newport_putc(vc, chattr, y, x); in newport_scroll()
663 x = vc->vc_cols - 1; in newport_scroll()
667 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
668 vc->vc_size_row * t); in newport_scroll()
671 for (count = 0; count < (lines * vc->vc_cols); count++) { in newport_scroll()
672 if (scr_readw(d) != vc->vc_video_erase_char) { in newport_scroll()
673 newport_putc(vc, vc->vc_video_erase_char, in newport_scroll()
675 scr_writew(vc->vc_video_erase_char, d); in newport_scroll()
678 if (++x == vc->vc_cols) { in newport_scroll()
687 static void newport_bmove(struct vc_data *vc, int sy, int sx, int dy, in newport_bmove() argument