Lines Matching full:vc

327 static void newport_init(struct vc_data *vc, bool 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, unsigned int sy, unsigned int sx, 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, u16 charattr, unsigned 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 u16 *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, bool enable) in newport_cursor() argument
455 xcurs = (vc->vc_pos - vc->vc_visible_origin) / 2; in newport_cursor()
456 ycurs = ((xcurs / vc->vc_cols) << 4) + 31; in newport_cursor()
457 xcurs = ((xcurs % vc->vc_cols) << 3) + xcurs_correction; in newport_cursor()
462 static bool newport_switch(struct vc_data *vc) in newport_switch() argument
567 static int newport_font_default(struct vc_data *vc, struct console_font *op, in newport_font_default() argument
570 return newport_set_def_font(vc->vc_num, op); in newport_font_default()
573 static int newport_font_set(struct vc_data *vc, const struct console_font *font, in newport_font_set() argument
576 return newport_set_font(vc->vc_num, font, vpitch); in newport_font_set()
579 static bool newport_scroll(struct vc_data *vc, unsigned int t, unsigned int b, in newport_scroll() argument
588 if (t == 0 && b == vc->vc_rows) { in newport_scroll()
591 newport_clear_lines(vc->vc_rows - lines, in newport_scroll()
592 vc->vc_rows - 1, in newport_scroll()
593 (vc->state.color & 0xf0) >> 4); in newport_scroll()
597 (vc->state.color & 0xf0) >> 4); in newport_scroll()
603 count = (b - t - lines) * vc->vc_cols; in newport_scroll()
607 s = (unsigned short *) (vc->vc_origin + in newport_scroll()
608 vc->vc_size_row * (t + lines)); in newport_scroll()
609 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
610 vc->vc_size_row * t); in newport_scroll()
614 newport_putc(vc, chattr, y, x); in newport_scroll()
618 if (++x == vc->vc_cols) { in newport_scroll()
623 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
624 vc->vc_size_row * (b - lines)); in newport_scroll()
627 for (count = 0; count < (lines * vc->vc_cols); count++) { in newport_scroll()
628 if (scr_readw(d) != vc->vc_video_erase_char) { in newport_scroll()
629 newport_putc(vc, vc->vc_video_erase_char, in newport_scroll()
631 scr_writew(vc->vc_video_erase_char, d); in newport_scroll()
634 if (++x == vc->vc_cols) { in newport_scroll()
640 x = vc->vc_cols - 1; in newport_scroll()
642 s = (unsigned short *) (vc->vc_origin + in newport_scroll()
643 vc->vc_size_row * (b - lines) - 2); in newport_scroll()
644 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
645 vc->vc_size_row * b - 2); in newport_scroll()
649 newport_putc(vc, chattr, y, x); in newport_scroll()
654 x = vc->vc_cols - 1; in newport_scroll()
658 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
659 vc->vc_size_row * t); in newport_scroll()
662 for (count = 0; count < (lines * vc->vc_cols); count++) { in newport_scroll()
663 if (scr_readw(d) != vc->vc_video_erase_char) { in newport_scroll()
664 newport_putc(vc, vc->vc_video_erase_char, in newport_scroll()
666 scr_writew(vc->vc_video_erase_char, d); in newport_scroll()
669 if (++x == vc->vc_cols) { in newport_scroll()
678 static void newport_save_screen(struct vc_data *vc) { } in newport_save_screen() argument