Lines Matching refs:vc
327 static void newport_init(struct vc_data *vc, int init) in newport_init() argument
333 vc->vc_can_do_color = 1; in newport_init()
335 vc->vc_cols = cols; in newport_init()
336 vc->vc_rows = rows; in newport_init()
338 vc_resize(vc, cols, rows); in newport_init()
349 static void newport_clear(struct vc_data *vc, int sy, int sx, int height, in newport_clear() argument
361 (vc->state.color & 0xf0) >> 4); in newport_clear()
364 (vc->state.color & 0xf0) >> 4); in newport_clear()
366 (vc->state.color & 0xf0) >> 4); in newport_clear()
370 static void newport_putc(struct vc_data *vc, int charattr, int ypos, in newport_putc() argument
375 p = &font_data[vc->vc_num][(charattr & 0xff) << 4]; in newport_putc()
399 static void newport_putcs(struct vc_data *vc, const unsigned short *s, in newport_putcs() argument
426 p = &font_data[vc->vc_num][(scr_readw(s++) & 0xff) << 4]; in newport_putcs()
440 static void newport_cursor(struct vc_data *vc, int mode) in newport_cursor() argument
457 xcurs = (vc->vc_pos - vc->vc_visible_origin) / 2; in newport_cursor()
458 ycurs = ((xcurs / vc->vc_cols) << 4) + 31; in newport_cursor()
459 xcurs = ((xcurs % vc->vc_cols) << 3) + xcurs_correction; in newport_cursor()
465 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, in newport_font_set() argument
575 return newport_set_font(vc->vc_num, font, vpitch); in newport_font_set()
578 static bool newport_scroll(struct vc_data *vc, unsigned int t, unsigned int b, in newport_scroll() argument
587 if (t == 0 && b == vc->vc_rows) { in newport_scroll()
590 newport_clear_lines(vc->vc_rows - lines, in newport_scroll()
591 vc->vc_rows - 1, in newport_scroll()
592 (vc->state.color & 0xf0) >> 4); in newport_scroll()
596 (vc->state.color & 0xf0) >> 4); in newport_scroll()
602 count = (b - t - lines) * vc->vc_cols; in newport_scroll()
606 s = (unsigned short *) (vc->vc_origin + in newport_scroll()
607 vc->vc_size_row * (t + lines)); in newport_scroll()
608 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
609 vc->vc_size_row * t); in newport_scroll()
613 newport_putc(vc, chattr, y, x); in newport_scroll()
617 if (++x == vc->vc_cols) { in newport_scroll()
622 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
623 vc->vc_size_row * (b - lines)); in newport_scroll()
626 for (count = 0; count < (lines * vc->vc_cols); count++) { in newport_scroll()
627 if (scr_readw(d) != vc->vc_video_erase_char) { in newport_scroll()
628 newport_putc(vc, vc->vc_video_erase_char, in newport_scroll()
630 scr_writew(vc->vc_video_erase_char, d); in newport_scroll()
633 if (++x == vc->vc_cols) { in newport_scroll()
639 x = vc->vc_cols - 1; in newport_scroll()
641 s = (unsigned short *) (vc->vc_origin + in newport_scroll()
642 vc->vc_size_row * (b - lines) - 2); in newport_scroll()
643 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
644 vc->vc_size_row * b - 2); in newport_scroll()
648 newport_putc(vc, chattr, y, x); in newport_scroll()
653 x = vc->vc_cols - 1; in newport_scroll()
657 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
658 vc->vc_size_row * t); in newport_scroll()
661 for (count = 0; count < (lines * vc->vc_cols); count++) { in newport_scroll()
662 if (scr_readw(d) != vc->vc_video_erase_char) { in newport_scroll()
663 newport_putc(vc, vc->vc_video_erase_char, in newport_scroll()
665 scr_writew(vc->vc_video_erase_char, d); in newport_scroll()
668 if (++x == vc->vc_cols) { in newport_scroll()
677 static void newport_save_screen(struct vc_data *vc) { } in newport_save_screen() argument