Lines Matching refs:gfx_state
510 ap = teken_get_defattr(&gfx_state.tg_teken); in efi_set_colors()
529 teken_set_defattr(&gfx_state.tg_teken, &a); in efi_set_colors()
532 teken_input(&gfx_state.tg_teken, "\e[2J", 4); in efi_set_colors()
875 if (gfx_state.tg_fb_type == FB_TEXT) in env_screen_nounset()
887 teken_set_defattr(&gfx_state.tg_teken, &attr); in cons_draw_frame()
889 gfx_fb_drawrect(0, 0, gfx_state.tg_fb.fb_width, in cons_draw_frame()
890 gfx_state.tg_origin.tp_row, 1); in cons_draw_frame()
892 gfx_state.tg_fb.fb_height - gfx_state.tg_origin.tp_row - 1, in cons_draw_frame()
893 gfx_state.tg_fb.fb_width, gfx_state.tg_fb.fb_height, 1); in cons_draw_frame()
894 gfx_fb_drawrect(0, gfx_state.tg_origin.tp_row, in cons_draw_frame()
895 gfx_state.tg_origin.tp_col, in cons_draw_frame()
896 gfx_state.tg_fb.fb_height - gfx_state.tg_origin.tp_row - 1, 1); in cons_draw_frame()
898 gfx_state.tg_fb.fb_width - gfx_state.tg_origin.tp_col - 1, in cons_draw_frame()
899 gfx_state.tg_origin.tp_row, gfx_state.tg_fb.fb_width, in cons_draw_frame()
900 gfx_state.tg_fb.fb_height, 1); in cons_draw_frame()
903 teken_set_defattr(&gfx_state.tg_teken, &attr); in cons_draw_frame()
923 if (efi_find_framebuffer(&gfx_state) == 0 && use_gfx_mode) { in cons_update_mode()
926 roff = ffs(gfx_state.tg_fb.fb_mask_red) - 1; in cons_update_mode()
927 goff = ffs(gfx_state.tg_fb.fb_mask_green) - 1; in cons_update_mode()
928 boff = ffs(gfx_state.tg_fb.fb_mask_blue) - 1; in cons_update_mode()
931 gfx_state.tg_fb.fb_mask_red >> roff, roff, in cons_update_mode()
932 gfx_state.tg_fb.fb_mask_green >> goff, goff, in cons_update_mode()
933 gfx_state.tg_fb.fb_mask_blue >> boff, boff); in cons_update_mode()
939 gfx_state.tg_fb_type = FB_TEXT; in cons_update_mode()
964 gfx_state.tg_cursor_visible = false; in cons_update_mode()
966 if (gfx_state.tg_fb_type == FB_TEXT) { in cons_update_mode()
968 gfx_state.tg_functions = &tf; in cons_update_mode()
976 fb_height = gfx_state.tg_fb.fb_height; in cons_update_mode()
977 fb_width = gfx_state.tg_fb.fb_width; in cons_update_mode()
997 gfx_state.tg_tp.tp_row = 25; in cons_update_mode()
998 gfx_state.tg_tp.tp_col = 80; in cons_update_mode()
999 setup_font(&gfx_state, fb_height, fb_width); in cons_update_mode()
1000 rows = gfx_state.tg_tp.tp_row; in cons_update_mode()
1001 cols = gfx_state.tg_tp.tp_col; in cons_update_mode()
1003 gfx_state.tg_origin.tp_row = (fb_height - in cons_update_mode()
1004 (rows * gfx_state.tg_font.vf_height)) / 2; in cons_update_mode()
1005 gfx_state.tg_origin.tp_col = (fb_width - in cons_update_mode()
1006 (cols * gfx_state.tg_font.vf_width)) / 2; in cons_update_mode()
1009 gfx_state.tg_glyph_size = gfx_state.tg_font.vf_height * in cons_update_mode()
1010 gfx_state.tg_font.vf_width * 4; in cons_update_mode()
1011 free(gfx_state.tg_glyph); in cons_update_mode()
1012 gfx_state.tg_glyph = malloc(gfx_state.tg_glyph_size); in cons_update_mode()
1013 if (gfx_state.tg_glyph == NULL) in cons_update_mode()
1016 gfx_state.tg_functions = &tfx; in cons_update_mode()
1024 gfx_state.tg_fb.fb_bpp); in cons_update_mode()
1030 gfx_state.tg_tp.tp_row = rows; in cons_update_mode()
1031 gfx_state.tg_tp.tp_col = cols; in cons_update_mode()
1033 teken_init(&gfx_state.tg_teken, gfx_state.tg_functions, in cons_update_mode()
1034 &gfx_state); in cons_update_mode()
1039 teken_set_winsize(&gfx_state.tg_teken, in cons_update_mode()
1040 &gfx_state.tg_tp); in cons_update_mode()
1041 a = teken_get_defattr(&gfx_state.tg_teken); in cons_update_mode()
1055 teken_set_defattr(&gfx_state.tg_teken, &attr); in cons_update_mode()
1084 teken_set_defattr(&gfx_state.tg_teken, &attr); in cons_update_mode()
1092 teken_input(&gfx_state.tg_teken, "\e[2J", 4); in cons_update_mode()
1093 gfx_state.tg_functions->tf_param(&gfx_state, in cons_update_mode()
1116 if (cons_update_mode(gfx_state.tg_fb_type != FB_TEXT)) in efi_cons_init()
1229 teken_input(&gfx_state.tg_teken, &ch, sizeof (ch)); in efi_cons_putchar()