Lines Matching refs:gfx_state

122 teken_gfx_t gfx_state = { 0 };  variable
201 return (ptov((uint32_t)gfx_state.tg_fb.fb_addr)); in gfx_get_fb_address()
294 roff = ffs(gfx_state.tg_fb.fb_mask_red) - 1; in gfx_fb_color_map()
295 goff = ffs(gfx_state.tg_fb.fb_mask_green) - 1; in gfx_fb_color_map()
296 boff = ffs(gfx_state.tg_fb.fb_mask_blue) - 1; in gfx_fb_color_map()
297 bpp = roundup2(gfx_state.tg_fb.fb_bpp, 8) >> 3; in gfx_fb_color_map()
300 rmask = gfx_state.tg_fb.fb_mask_red >> roff; in gfx_fb_color_map()
305 gmask = gfx_state.tg_fb.fb_mask_green >> goff; in gfx_fb_color_map()
310 bmask = gfx_state.tg_fb.fb_mask_blue >> boff; in gfx_fb_color_map()
432 if (DestinationY + Height > gfx_state.tg_fb.fb_height) in gfxfb_blt_fill()
435 if (DestinationX + Width > gfx_state.tg_fb.fb_width) in gfxfb_blt_fill()
442 roff = ffs(gfx_state.tg_fb.fb_mask_red) - 1; in gfxfb_blt_fill()
443 goff = ffs(gfx_state.tg_fb.fb_mask_green) - 1; in gfxfb_blt_fill()
444 boff = ffs(gfx_state.tg_fb.fb_mask_blue) - 1; in gfxfb_blt_fill()
446 if (gfx_state.tg_fb.fb_bpp == 8) { in gfxfb_blt_fill()
450 (gfx_state.tg_fb.fb_mask_red >> roff)) << roff; in gfxfb_blt_fill()
452 (gfx_state.tg_fb.fb_mask_green >> goff)) << goff; in gfxfb_blt_fill()
454 (gfx_state.tg_fb.fb_mask_blue >> boff)) << boff; in gfxfb_blt_fill()
457 bpp = roundup2(gfx_state.tg_fb.fb_bpp, 8) >> 3; in gfxfb_blt_fill()
458 pitch = gfx_state.tg_fb.fb_stride * bpp; in gfxfb_blt_fill()
460 size = gfx_state.tg_fb.fb_size; in gfxfb_blt_fill()
516 gfx_state.tg_fb.fb_height) in gfxfb_blt_video_to_buffer()
519 if (SourceX + Width > gfx_state.tg_fb.fb_width) in gfxfb_blt_video_to_buffer()
528 bpp = roundup2(gfx_state.tg_fb.fb_bpp, 8) >> 3; in gfxfb_blt_video_to_buffer()
529 pitch = gfx_state.tg_fb.fb_stride * bpp; in gfxfb_blt_video_to_buffer()
533 rp = ffs(gfx_state.tg_fb.fb_mask_red) - 1; in gfxfb_blt_video_to_buffer()
534 gp = ffs(gfx_state.tg_fb.fb_mask_green) - 1; in gfxfb_blt_video_to_buffer()
535 bp = ffs(gfx_state.tg_fb.fb_mask_blue) - 1; in gfxfb_blt_video_to_buffer()
536 rm = gfx_state.tg_fb.fb_mask_red >> rp; in gfxfb_blt_video_to_buffer()
537 gm = gfx_state.tg_fb.fb_mask_green >> gp; in gfxfb_blt_video_to_buffer()
538 bm = gfx_state.tg_fb.fb_mask_blue >> bp; in gfxfb_blt_video_to_buffer()
616 gfx_state.tg_fb.fb_height) in gfxfb_blt_buffer_to_video()
619 if (DestinationX + Width > gfx_state.tg_fb.fb_width) in gfxfb_blt_buffer_to_video()
628 bpp = roundup2(gfx_state.tg_fb.fb_bpp, 8) >> 3; in gfxfb_blt_buffer_to_video()
629 pitch = gfx_state.tg_fb.fb_stride * bpp; in gfxfb_blt_buffer_to_video()
633 rp = ffs(gfx_state.tg_fb.fb_mask_red) - 1; in gfxfb_blt_buffer_to_video()
634 gp = ffs(gfx_state.tg_fb.fb_mask_green) - 1; in gfxfb_blt_buffer_to_video()
635 bp = ffs(gfx_state.tg_fb.fb_mask_blue) - 1; in gfxfb_blt_buffer_to_video()
636 rm = gfx_state.tg_fb.fb_mask_red >> rp; in gfxfb_blt_buffer_to_video()
637 gm = gfx_state.tg_fb.fb_mask_green >> gp; in gfxfb_blt_buffer_to_video()
638 bm = gfx_state.tg_fb.fb_mask_blue >> bp; in gfxfb_blt_buffer_to_video()
714 gfx_state.tg_fb.fb_height) in gfxfb_blt_video_to_video()
717 if (SourceX + Width > gfx_state.tg_fb.fb_width) in gfxfb_blt_video_to_video()
721 gfx_state.tg_fb.fb_height) in gfxfb_blt_video_to_video()
724 if (DestinationX + Width > gfx_state.tg_fb.fb_width) in gfxfb_blt_video_to_video()
730 bpp = roundup2(gfx_state.tg_fb.fb_bpp, 8) >> 3; in gfxfb_blt_video_to_video()
731 pitch = gfx_state.tg_fb.fb_stride * bpp; in gfxfb_blt_video_to_video()
762 if (gfx_state.tg_shadow_fb == NULL) in gfxfb_shadow_fill()
765 fbX = gfx_state.tg_fb.fb_width; in gfxfb_shadow_fill()
766 fbY = gfx_state.tg_fb.fb_height; in gfxfb_shadow_fill()
782 gfx_state.tg_shadow_fb[off + x] = *BltBuffer; in gfxfb_shadow_fill()
796 EFI_GRAPHICS_OUTPUT *gop = gfx_state.tg_private; in gfxfb_blt()
1373 if (gfx_state.tg_shadow_fb != NULL) { in gfx_fb_cons_display()
1374 uint32_t pitch = gfx_state.tg_fb.fb_width; in gfx_fb_cons_display()
1379 buf = (void *)(gfx_state.tg_shadow_fb + in gfx_fb_cons_display()
1380 (y - gfx_state.tg_origin.tp_row) * pitch + in gfx_fb_cons_display()
1381 x - gfx_state.tg_origin.tp_col); in gfx_fb_cons_display()
1394 if (gfx_state.tg_glyph_size != GlyphBufferSize) in gfx_fb_cons_display()
1447 ap = teken_get_curattr(&gfx_state.tg_teken); in gfx_fb_getcolor()
1467 if (gfx_state.tg_fb_type == FB_TEXT) in gfx_fb_setpixel()
1472 if (x >= gfx_state.tg_fb.fb_width || in gfx_fb_setpixel()
1473 y >= gfx_state.tg_fb.fb_height) in gfx_fb_setpixel()
1488 if (gfx_state.tg_fb_type == FB_TEXT) in gfx_fb_drawrect()
1510 if (gfx_state.tg_fb_type == FB_TEXT) in gfx_fb_line()
1567 if (gfx_state.tg_fb_type == FB_TEXT) in gfx_fb_bezier()
1640 if (gfx_state.tg_fb_type == FB_TEXT) in gfx_term_drawrect()
1643 vf_width = gfx_state.tg_font.vf_width; in gfx_term_drawrect()
1644 vf_height = gfx_state.tg_font.vf_height; in gfx_term_drawrect()
1663 term_image_display(&gfx_state, &r); in gfx_term_drawrect()
1668 x1 = (ux1 + 1) * vf_width + gfx_state.tg_origin.tp_col; in gfx_term_drawrect()
1669 y1 = uy1 * vf_height + gfx_state.tg_origin.tp_row + yshift; in gfx_term_drawrect()
1670 x2 = ux2 * vf_width + gfx_state.tg_origin.tp_col; in gfx_term_drawrect()
1672 y2 = uy2 * vf_height + gfx_state.tg_origin.tp_row; in gfx_term_drawrect()
1679 x1 = ux1 * vf_width + gfx_state.tg_origin.tp_col + xshift; in gfx_term_drawrect()
1680 y1 = uy1 * vf_height + gfx_state.tg_origin.tp_row; in gfx_term_drawrect()
1682 y2 = uy2 * vf_height + gfx_state.tg_origin.tp_row; in gfx_term_drawrect()
1684 x1 = ux2 * vf_width + gfx_state.tg_origin.tp_col; in gfx_term_drawrect()
1689 x1 = ux1 * vf_width + gfx_state.tg_origin.tp_col + xshift; in gfx_term_drawrect()
1690 y1 = uy1 * vf_height + gfx_state.tg_origin.tp_row; in gfx_term_drawrect()
1693 x2 = ux1 * vf_width + gfx_state.tg_origin.tp_col; in gfx_term_drawrect()
1695 y2 = uy1 * vf_height + gfx_state.tg_origin.tp_row + yshift; in gfx_term_drawrect()
1700 x1 = ux1 * vf_width + gfx_state.tg_origin.tp_col; in gfx_term_drawrect()
1702 y1 = uy2 * vf_height + gfx_state.tg_origin.tp_row; in gfx_term_drawrect()
1704 x2 = ux1 * vf_width + gfx_state.tg_origin.tp_col + xshift; in gfx_term_drawrect()
1705 y2 = uy2 * vf_height + gfx_state.tg_origin.tp_row; in gfx_term_drawrect()
1710 x1 = ux2 * vf_width + gfx_state.tg_origin.tp_col; in gfx_term_drawrect()
1711 y1 = uy1 * vf_height + gfx_state.tg_origin.tp_row + yshift; in gfx_term_drawrect()
1712 x2 = ux2 * vf_width + gfx_state.tg_origin.tp_col; in gfx_term_drawrect()
1714 y2 = uy1 * vf_height + gfx_state.tg_origin.tp_row; in gfx_term_drawrect()
1720 x1 = ux2 * vf_width + gfx_state.tg_origin.tp_col; in gfx_term_drawrect()
1721 y1 = uy2 * vf_height + gfx_state.tg_origin.tp_row; in gfx_term_drawrect()
1723 x2 = ux2 * vf_width + gfx_state.tg_origin.tp_col; in gfx_term_drawrect()
1725 y2 = uy2 * vf_height + gfx_state.tg_origin.tp_row; in gfx_term_drawrect()
1749 if (gfx_state.tg_fb_type == FB_TEXT) { in gfx_fb_putimage()
1761 if (ux1 > gfx_state.tg_fb.fb_width || in gfx_fb_putimage()
1762 uy1 > gfx_state.tg_fb.fb_height) { in gfx_fb_putimage()
1798 if (ux2 > gfx_state.tg_fb.fb_width || in gfx_fb_putimage()
1799 uy2 > gfx_state.tg_fb.fb_height) { in gfx_fb_putimage()
1820 ux2 = gfx_state.tg_fb.fb_width - gfx_state.tg_origin.tp_col; in gfx_fb_putimage()
1829 uy2 = gfx_state.tg_fb.fb_height - gfx_state.tg_origin.tp_row; in gfx_fb_putimage()
1849 rect.tr_begin.tp_col = ux1 / gfx_state.tg_font.vf_width; in gfx_fb_putimage()
1850 rect.tr_begin.tp_row = uy1 / gfx_state.tg_font.vf_height; in gfx_fb_putimage()
1851 rect.tr_end.tp_col = (ux1 + fwidth) / gfx_state.tg_font.vf_width; in gfx_fb_putimage()
1852 rect.tr_end.tp_row = (uy1 + fheight) / gfx_state.tg_font.vf_height; in gfx_fb_putimage()
1858 term_image_display(&gfx_state, &rect); in gfx_fb_putimage()
1887 rs = 8 - (fls(gfx_state.tg_fb.fb_mask_red) - in gfx_fb_putimage()
1888 ffs(gfx_state.tg_fb.fb_mask_red) + 1); in gfx_fb_putimage()
1889 gs = 8 - (fls(gfx_state.tg_fb.fb_mask_green) - in gfx_fb_putimage()
1890 ffs(gfx_state.tg_fb.fb_mask_green) + 1); in gfx_fb_putimage()
1891 bs = 8 - (fls(gfx_state.tg_fb.fb_mask_blue) - in gfx_fb_putimage()
1892 ffs(gfx_state.tg_fb.fb_mask_blue) + 1); in gfx_fb_putimage()
2039 dp = gfx_state.tg_fb.fb_width * in gfx_get_ppi()
2040 gfx_state.tg_fb.fb_width + in gfx_get_ppi()
2041 gfx_state.tg_fb.fb_height * in gfx_get_ppi()
2042 gfx_state.tg_fb.fb_height; in gfx_get_ppi()
2065 if (gfx_state.tg_fb_type == FB_TEXT) in gfx_get_font()
2198 teken_input(&gfx_state.tg_teken, clear, sizeof(clear)); in cons_clear()
2199 gfx_state.tg_functions->tf_param(&gfx_state, TP_SHOWCURSOR, 0); in cons_clear()
2726 cons_update_mode(gfx_state.tg_fb_type != FB_TEXT); in font_set()
2775 (void) cons_update_mode(gfx_state.tg_fb_type != FB_TEXT); in autoload_font()
2835 (void) cons_update_mode(gfx_state.tg_fb_type != FB_TEXT); in command_font()
2861 (void) cons_update_mode(gfx_state.tg_fb_type != FB_TEXT); in command_font()
2974 if (gfx_state.tg_font.vf_width == fl->font_data->vfbd_width && in build_font_module()
2975 gfx_state.tg_font.vf_height == fl->font_data->vfbd_height) { in build_font_module()