Home
last modified time | relevance | path

Searched refs:bmp_width (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/video/fbdev/
H A Defifb.c133 static bool efifb_bgrt_sanity_check(struct screen_info *si, u32 bmp_width) in efifb_bgrt_sanity_check() argument
139 u32 expected_xoffset = (si->lfb_width - bmp_width) / 2; in efifb_bgrt_sanity_check()
144 static bool efifb_bgrt_sanity_check(struct screen_info *si, u32 bmp_width) in efifb_bgrt_sanity_check() argument
152 u32 bmp_width, bmp_height, bmp_pitch, dst_x, y, src_y; in efifb_show_boot_graphics() local
203 bmp_width = dib_header->width; in efifb_show_boot_graphics()
205 bmp_pitch = round_up(3 * bmp_width, 4); in efifb_show_boot_graphics()
211 if ((bgrt_tab.image_offset_x + bmp_width) > si->lfb_width || in efifb_show_boot_graphics()
215 if (!efifb_bgrt_sanity_check(si, bmp_width)) in efifb_show_boot_graphics()
237 (u32 *)dst + dst_x, bmp_width, si); in efifb_show_boot_graphics()
238 dst_x += bmp_width; in efifb_show_boot_graphics()