Lines Matching defs:gfx_state
565 efi_find_framebuffer(teken_gfx_t *gfx_state)
574 gfx_state->tg_fb_type = FB_TEXT;
623 gfx_state->tg_fb_type = FB_GOP;
624 gfx_state->tg_private = gop;
630 gfx_state->tg_fb_type = FB_UGA;
631 gfx_state->tg_private = uga;
637 switch (gfx_state->tg_fb_type) {
650 gfx_state->tg_fb.fb_addr = efifb.fb_addr;
651 gfx_state->tg_fb.fb_size = efifb.fb_size;
652 gfx_state->tg_fb.fb_height = efifb.fb_height;
653 gfx_state->tg_fb.fb_width = efifb.fb_width;
654 gfx_state->tg_fb.fb_stride = efifb.fb_stride;
655 gfx_state->tg_fb.fb_mask_red = efifb.fb_mask_red;
656 gfx_state->tg_fb.fb_mask_green = efifb.fb_mask_green;
657 gfx_state->tg_fb.fb_mask_blue = efifb.fb_mask_blue;
658 gfx_state->tg_fb.fb_mask_reserved = efifb.fb_mask_reserved;
660 gfx_state->tg_fb.fb_bpp = fls(efifb.fb_mask_red | efifb.fb_mask_green |
663 if (gfx_state->tg_shadow_fb != NULL)
664 BS->FreePages((uintptr_t)gfx_state->tg_shadow_fb,
665 gfx_state->tg_shadow_sz);
666 gfx_state->tg_shadow_sz =
670 gfx_state->tg_shadow_sz, &ptr);
671 gfx_state->tg_shadow_fb = status == EFI_SUCCESS ?