• Home
  • Raw
  • Download

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, unsigned flags) in newport_font_set() argument
574 return newport_set_font(vc->vc_num, font); in newport_font_set()
577 static bool newport_scroll(struct vc_data *vc, unsigned int t, unsigned int b, in newport_scroll() argument
586 if (t == 0 && b == vc->vc_rows) { in newport_scroll()
589 newport_clear_lines(vc->vc_rows - lines, in newport_scroll()
590 vc->vc_rows - 1, in newport_scroll()
591 (vc->state.color & 0xf0) >> 4); in newport_scroll()
595 (vc->state.color & 0xf0) >> 4); in newport_scroll()
601 count = (b - t - lines) * vc->vc_cols; in newport_scroll()
605 s = (unsigned short *) (vc->vc_origin + in newport_scroll()
606 vc->vc_size_row * (t + lines)); in newport_scroll()
607 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
608 vc->vc_size_row * t); in newport_scroll()
612 newport_putc(vc, chattr, y, x); in newport_scroll()
616 if (++x == vc->vc_cols) { in newport_scroll()
621 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
622 vc->vc_size_row * (b - lines)); in newport_scroll()
625 for (count = 0; count < (lines * vc->vc_cols); count++) { in newport_scroll()
626 if (scr_readw(d) != vc->vc_video_erase_char) { in newport_scroll()
627 newport_putc(vc, vc->vc_video_erase_char, in newport_scroll()
629 scr_writew(vc->vc_video_erase_char, d); in newport_scroll()
632 if (++x == vc->vc_cols) { in newport_scroll()
638 x = vc->vc_cols - 1; in newport_scroll()
640 s = (unsigned short *) (vc->vc_origin + in newport_scroll()
641 vc->vc_size_row * (b - lines) - 2); in newport_scroll()
642 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
643 vc->vc_size_row * b - 2); in newport_scroll()
647 newport_putc(vc, chattr, y, x); in newport_scroll()
652 x = vc->vc_cols - 1; in newport_scroll()
656 d = (unsigned short *) (vc->vc_origin + in newport_scroll()
657 vc->vc_size_row * t); in newport_scroll()
660 for (count = 0; count < (lines * vc->vc_cols); count++) { in newport_scroll()
661 if (scr_readw(d) != vc->vc_video_erase_char) { in newport_scroll()
662 newport_putc(vc, vc->vc_video_erase_char, in newport_scroll()
664 scr_writew(vc->vc_video_erase_char, d); in newport_scroll()
667 if (++x == vc->vc_cols) { in newport_scroll()
676 static void newport_save_screen(struct vc_data *vc) { } in newport_save_screen() argument