Lines Matching refs:gfx_fb
107 multiboot_tag_framebuffer_t gfx_fb; variable
145 return ((uint8_t *)ptov(gfx_fb.framebuffer_common.framebuffer_addr)); in gfx_get_fb_address()
342 if (gfx_fb.framebuffer_common.framebuffer_bpp < 24) in gfx_framework_init()
498 gfx_fb.framebuffer_common.framebuffer_height) in gfxfb_blt_fill()
501 if (DestinationX + Width > gfx_fb.framebuffer_common.framebuffer_width) in gfxfb_blt_fill()
508 if (gfx_fb.framebuffer_common.framebuffer_bpp == 8) { in gfxfb_blt_fill()
512 ((1 << gfx_fb.u.fb2.framebuffer_red_mask_size) - 1)) << in gfxfb_blt_fill()
513 gfx_fb.u.fb2.framebuffer_red_field_position; in gfxfb_blt_fill()
515 ((1 << gfx_fb.u.fb2.framebuffer_green_mask_size) - 1)) << in gfxfb_blt_fill()
516 gfx_fb.u.fb2.framebuffer_green_field_position; in gfxfb_blt_fill()
518 ((1 << gfx_fb.u.fb2.framebuffer_blue_mask_size) - 1)) << in gfxfb_blt_fill()
519 gfx_fb.u.fb2.framebuffer_blue_field_position; in gfxfb_blt_fill()
522 bpp = roundup2(gfx_fb.framebuffer_common.framebuffer_bpp, 8) >> 3; in gfxfb_blt_fill()
523 pitch = gfx_fb.framebuffer_common.framebuffer_pitch; in gfxfb_blt_fill()
525 size = gfx_fb.framebuffer_common.framebuffer_height * pitch; in gfxfb_blt_fill()
581 gfx_fb.framebuffer_common.framebuffer_height) in gfxfb_blt_video_to_buffer()
584 if (SourceX + Width > gfx_fb.framebuffer_common.framebuffer_width) in gfxfb_blt_video_to_buffer()
593 bpp = roundup2(gfx_fb.framebuffer_common.framebuffer_bpp, 8) >> 3; in gfxfb_blt_video_to_buffer()
594 pitch = gfx_fb.framebuffer_common.framebuffer_pitch; in gfxfb_blt_video_to_buffer()
598 rm = (1 << gfx_fb.u.fb2.framebuffer_red_mask_size) - 1; in gfxfb_blt_video_to_buffer()
599 rp = gfx_fb.u.fb2.framebuffer_red_field_position; in gfxfb_blt_video_to_buffer()
600 gm = (1 << gfx_fb.u.fb2.framebuffer_green_mask_size) - 1; in gfxfb_blt_video_to_buffer()
601 gp = gfx_fb.u.fb2.framebuffer_green_field_position; in gfxfb_blt_video_to_buffer()
602 bm = (1 << gfx_fb.u.fb2.framebuffer_blue_mask_size) - 1; in gfxfb_blt_video_to_buffer()
603 bp = gfx_fb.u.fb2.framebuffer_blue_field_position; in gfxfb_blt_video_to_buffer()
606 gfx_fb.u.fb2.framebuffer_red_mask_size == 8 && in gfxfb_blt_video_to_buffer()
607 gfx_fb.u.fb2.framebuffer_red_field_position == 16 && in gfxfb_blt_video_to_buffer()
608 gfx_fb.u.fb2.framebuffer_green_mask_size == 8 && in gfxfb_blt_video_to_buffer()
609 gfx_fb.u.fb2.framebuffer_green_field_position == 8 && in gfxfb_blt_video_to_buffer()
610 gfx_fb.u.fb2.framebuffer_blue_mask_size == 8 && in gfxfb_blt_video_to_buffer()
611 gfx_fb.u.fb2.framebuffer_blue_field_position == 0; in gfxfb_blt_video_to_buffer()
683 gfx_fb.framebuffer_common.framebuffer_height) in gfxfb_blt_buffer_to_video()
686 if (DestinationX + Width > gfx_fb.framebuffer_common.framebuffer_width) in gfxfb_blt_buffer_to_video()
695 bpp = roundup2(gfx_fb.framebuffer_common.framebuffer_bpp, 8) >> 3; in gfxfb_blt_buffer_to_video()
696 pitch = gfx_fb.framebuffer_common.framebuffer_pitch; in gfxfb_blt_buffer_to_video()
700 rm = (1 << gfx_fb.u.fb2.framebuffer_red_mask_size) - 1; in gfxfb_blt_buffer_to_video()
701 rp = gfx_fb.u.fb2.framebuffer_red_field_position; in gfxfb_blt_buffer_to_video()
702 gm = (1 << gfx_fb.u.fb2.framebuffer_green_mask_size) - 1; in gfxfb_blt_buffer_to_video()
703 gp = gfx_fb.u.fb2.framebuffer_green_field_position; in gfxfb_blt_buffer_to_video()
704 bm = (1 << gfx_fb.u.fb2.framebuffer_blue_mask_size) - 1; in gfxfb_blt_buffer_to_video()
705 bp = gfx_fb.u.fb2.framebuffer_blue_field_position; in gfxfb_blt_buffer_to_video()
708 gfx_fb.u.fb2.framebuffer_red_mask_size == 8 && in gfxfb_blt_buffer_to_video()
709 gfx_fb.u.fb2.framebuffer_red_field_position == 16 && in gfxfb_blt_buffer_to_video()
710 gfx_fb.u.fb2.framebuffer_green_mask_size == 8 && in gfxfb_blt_buffer_to_video()
711 gfx_fb.u.fb2.framebuffer_green_field_position == 8 && in gfxfb_blt_buffer_to_video()
712 gfx_fb.u.fb2.framebuffer_blue_mask_size == 8 && in gfxfb_blt_buffer_to_video()
713 gfx_fb.u.fb2.framebuffer_blue_field_position == 0; in gfxfb_blt_buffer_to_video()
783 gfx_fb.framebuffer_common.framebuffer_height) in gfxfb_blt_video_to_video()
786 if (SourceX + Width > gfx_fb.framebuffer_common.framebuffer_width) in gfxfb_blt_video_to_video()
790 gfx_fb.framebuffer_common.framebuffer_height) in gfxfb_blt_video_to_video()
793 if (DestinationX + Width > gfx_fb.framebuffer_common.framebuffer_width) in gfxfb_blt_video_to_video()
799 bpp = roundup2(gfx_fb.framebuffer_common.framebuffer_bpp, 8) >> 3; in gfxfb_blt_video_to_video()
800 pitch = gfx_fb.framebuffer_common.framebuffer_pitch; in gfxfb_blt_video_to_video()
837 fbX = gfx_fb.framebuffer_common.framebuffer_width; in gfxfb_shadow_fill()
838 fbY = gfx_fb.framebuffer_common.framebuffer_height; in gfxfb_shadow_fill()
970 width = gfx_fb.framebuffer_common.framebuffer_width; in gfx_fb_cons_clear()
971 height = gfx_fb.framebuffer_common.framebuffer_height; in gfx_fb_cons_clear()
1000 if (sx + width > gfx_fb.framebuffer_common.framebuffer_width) in gfx_fb_cons_copy()
1001 width = gfx_fb.framebuffer_common.framebuffer_width - sx; in gfx_fb_cons_copy()
1003 if (sy + height > gfx_fb.framebuffer_common.framebuffer_height) in gfx_fb_cons_copy()
1004 height = gfx_fb.framebuffer_common.framebuffer_height - sy; in gfx_fb_cons_copy()
1006 if (dx + width > gfx_fb.framebuffer_common.framebuffer_width) in gfx_fb_cons_copy()
1007 width = gfx_fb.framebuffer_common.framebuffer_width - dx; in gfx_fb_cons_copy()
1009 if (dy + height > gfx_fb.framebuffer_common.framebuffer_height) in gfx_fb_cons_copy()
1010 height = gfx_fb.framebuffer_common.framebuffer_height - dy; in gfx_fb_cons_copy()
1030 pitch = gfx_fb.framebuffer_common.framebuffer_width; in gfx_fb_cons_copy()
1137 if ((uint32_t)da->col >= gfx_fb.framebuffer_common.framebuffer_width || in gfx_fb_cons_display()
1138 (uint32_t)da->row >= gfx_fb.framebuffer_common.framebuffer_height || in gfx_fb_cons_display()
1140 gfx_fb.framebuffer_common.framebuffer_width || in gfx_fb_cons_display()
1142 gfx_fb.framebuffer_common.framebuffer_height) in gfx_fb_cons_display()
1150 uint32_t pitch = gfx_fb.framebuffer_common.framebuffer_width; in gfx_fb_cons_display()
1257 uint32_t pitch = gfx_fb.framebuffer_common.framebuffer_width; in gfx_fb_display_cursor()
1311 if (x >= gfx_fb.framebuffer_common.framebuffer_width || in gfx_fb_setpixel()
1312 y >= gfx_fb.framebuffer_common.framebuffer_height) in gfx_fb_setpixel()
1596 if (ux1 > gfx_fb.framebuffer_common.framebuffer_width || in gfx_fb_putimage()
1597 uy1 > gfx_fb.framebuffer_common.framebuffer_height) { in gfx_fb_putimage()
1633 if (ux2 > gfx_fb.framebuffer_common.framebuffer_width || in gfx_fb_putimage()
1634 uy2 > gfx_fb.framebuffer_common.framebuffer_height) { in gfx_fb_putimage()
1655 ux2 = gfx_fb.framebuffer_common.framebuffer_width - in gfx_fb_putimage()
1665 uy2 = gfx_fb.framebuffer_common.framebuffer_height - in gfx_fb_putimage()
1802 (8 - gfx_fb.u.fb2.framebuffer_red_mask_size); in gfx_fb_putimage()
1804 (8 - gfx_fb.u.fb2.framebuffer_green_mask_size); in gfx_fb_putimage()
1806 (8 - gfx_fb.u.fb2.framebuffer_blue_mask_size); in gfx_fb_putimage()
1864 dp = gfx_fb.framebuffer_common.framebuffer_width * in gfx_get_ppi()
1865 gfx_fb.framebuffer_common.framebuffer_width + in gfx_get_ppi()
1866 gfx_fb.framebuffer_common.framebuffer_height * in gfx_get_ppi()
1867 gfx_fb.framebuffer_common.framebuffer_height; in gfx_get_ppi()
1889 if (gfx_fb.framebuffer_common.framebuffer_type == in gfx_get_font()