Home
last modified time | relevance | path

Searched refs:screen_info (Results 1 – 25 of 69) sorted by relevance

123

/Linux-v5.10/arch/x86/xen/
Dvga.c14 struct screen_info *screen_info = &boot_params.screen_info; in xen_init_vga() local
18 screen_info->orig_video_mode = 3; in xen_init_vga()
19 screen_info->orig_video_isVGA = 1; in xen_init_vga()
20 screen_info->orig_video_lines = 25; in xen_init_vga()
21 screen_info->orig_video_cols = 80; in xen_init_vga()
22 screen_info->orig_video_ega_bx = 3; in xen_init_vga()
23 screen_info->orig_video_points = 16; in xen_init_vga()
24 screen_info->orig_y = screen_info->orig_video_lines - 1; in xen_init_vga()
31 screen_info->orig_video_lines = info->u.text_mode_3.rows; in xen_init_vga()
32 screen_info->orig_video_cols = info->u.text_mode_3.columns; in xen_init_vga()
[all …]
/Linux-v5.10/arch/x86/kernel/
Dsysfb_efi.c70 void efifb_setup_from_dmi(struct screen_info *si, const char *opt) in efifb_setup_from_dmi()
103 if (screen_info.lfb_base == 0) { in efifb_set_system()
109 screen_info.lfb_base = choose_value(info->base, in efifb_set_system()
110 screen_info.lfb_base, OVERRIDE_BASE, in efifb_set_system()
137 if (screen_info.lfb_base >= start && in efifb_set_system()
138 screen_info.lfb_base < end) { in efifb_set_system()
145 screen_info.lfb_base = 0; in efifb_set_system()
149 if (screen_info.lfb_base) { in efifb_set_system()
150 screen_info.lfb_linelength = choose_value(info->stride, in efifb_set_system()
151 screen_info.lfb_linelength, OVERRIDE_STRIDE, in efifb_set_system()
[all …]
Dsysfb.c39 struct screen_info *si = &screen_info; in sysfb_init()
Dkexec-bzimage64.c203 memcpy(&params->screen_info, &screen_info, sizeof(struct screen_info)); in setup_boot_parameters()
206 params->screen_info.ext_mem_k = 0; in setup_boot_parameters()
236 params->screen_info.ext_mem_k = mem_k; in setup_boot_parameters()
239 params->screen_info.ext_mem_k = 0xfc00; /* 64M*/ in setup_boot_parameters()
/Linux-v5.10/drivers/video/fbdev/
Defifb.c101 static void efifb_copy_bmp(u8 *src, u32 *dst, int width, struct screen_info *si) in efifb_copy_bmp()
123 static bool efifb_bgrt_sanity_check(struct screen_info *si, u32 bmp_width) in efifb_bgrt_sanity_check()
134 static bool efifb_bgrt_sanity_check(struct screen_info *si, u32 bmp_width) in efifb_bgrt_sanity_check()
143 struct screen_info *si = &screen_info; in efifb_show_boot_graphics()
275 efifb_setup_from_dmi(&screen_info, this_opt); in efifb_setup()
278 screen_info.lfb_base = simple_strtoul(this_opt+5, NULL, 0); in efifb_setup()
280 screen_info.lfb_linelength = simple_strtoul(this_opt+7, NULL, 0) * 4; in efifb_setup()
282 screen_info.lfb_height = simple_strtoul(this_opt+7, NULL, 0); in efifb_setup()
284 screen_info.lfb_width = simple_strtoul(this_opt+6, NULL, 0); in efifb_setup()
297 if (screen_info.lfb_base) in fb_base_is_valid()
[all …]
Dvesafb.c251 if (screen_info.orig_video_isVGA != VIDEO_TYPE_VLFB) in vesafb_probe()
254 vga_compat = (screen_info.capabilities & 2) ? 0 : 1; in vesafb_probe()
255 vesafb_fix.smem_start = screen_info.lfb_base; in vesafb_probe()
256 vesafb_defined.bits_per_pixel = screen_info.lfb_depth; in vesafb_probe()
259 vesafb_defined.xres = screen_info.lfb_width; in vesafb_probe()
260 vesafb_defined.yres = screen_info.lfb_height; in vesafb_probe()
261 vesafb_fix.line_length = screen_info.lfb_linelength; in vesafb_probe()
273 size_total = screen_info.lfb_size * 65536; in vesafb_probe()
293 screen_info.vesapm_seg = 0; in vesafb_probe()
319 info->apertures->ranges[0].base = screen_info.lfb_base; in vesafb_probe()
[all …]
/Linux-v5.10/arch/x86/boot/
Dvideo-vesa.c177 boot_params.screen_info.red_size = dac_size; in vesa_dac_set_8bits()
178 boot_params.screen_info.green_size = dac_size; in vesa_dac_set_8bits()
179 boot_params.screen_info.blue_size = dac_size; in vesa_dac_set_8bits()
180 boot_params.screen_info.rsvd_size = dac_size; in vesa_dac_set_8bits()
182 boot_params.screen_info.red_pos = 0; in vesa_dac_set_8bits()
183 boot_params.screen_info.green_pos = 0; in vesa_dac_set_8bits()
184 boot_params.screen_info.blue_pos = 0; in vesa_dac_set_8bits()
185 boot_params.screen_info.rsvd_pos = 0; in vesa_dac_set_8bits()
200 boot_params.screen_info.vesapm_seg = oreg.es; in vesa_store_pm_info()
201 boot_params.screen_info.vesapm_off = oreg.di; in vesa_store_pm_info()
[all …]
Dvideo.c30 boot_params.screen_info.orig_x = oreg.dl; in store_cursor_position()
31 boot_params.screen_info.orig_y = oreg.dh; in store_cursor_position()
34 boot_params.screen_info.flags |= VIDEO_FLAGS_NOCURSOR; in store_cursor_position()
37 boot_params.screen_info.flags |= VIDEO_FLAGS_NOCURSOR; in store_cursor_position()
51 boot_params.screen_info.orig_video_mode = oreg.al & 0x7f; in store_video_mode()
52 boot_params.screen_info.orig_video_page = oreg.bh; in store_video_mode()
74 if (boot_params.screen_info.orig_video_mode == 0x07) { in store_mode_params()
84 boot_params.screen_info.orig_video_points = font_size; in store_mode_params()
94 boot_params.screen_info.orig_video_cols = x; in store_mode_params()
95 boot_params.screen_info.orig_video_lines = y; in store_mode_params()
[all …]
Dvideo-bios.c50 if (new_mode != boot_params.screen_info.orig_video_mode) { in set_bios_mode()
54 ireg.ax = boot_params.screen_info.orig_video_mode; in set_bios_mode()
67 u8 saved_mode = boot_params.screen_info.orig_video_mode; in bios_probe()
/Linux-v5.10/drivers/firmware/efi/
Defi-init.c65 struct screen_info *si; in init_screen_info()
74 screen_info = *si; in init_screen_info()
78 screen_info.orig_video_cols = 80; in init_screen_info()
79 screen_info.orig_video_lines = 25; in init_screen_info()
82 if (screen_info.orig_video_isVGA == VIDEO_TYPE_EFI && in init_screen_info()
83 memblock_is_map_memory(screen_info.lfb_base)) in init_screen_info()
84 memblock_mark_nomap(screen_info.lfb_base, screen_info.lfb_size); in init_screen_info()
281 u64 fb_base = screen_info.lfb_base; in efifb_overlaps_pci_range()
283 if (screen_info.capabilities & VIDEO_CAPABILITY_64BIT_BASE) in efifb_overlaps_pci_range()
284 fb_base |= (u64)(unsigned long)screen_info.ext_lfb_base << 32; in efifb_overlaps_pci_range()
[all …]
Dearlycon.c36 efi_fb = memremap(fb_base, screen_info.lfb_size, in efi_earlycon_remap_fb()
76 len = screen_info.lfb_linelength; in efi_earlycon_clear_scanline()
91 len = screen_info.lfb_linelength; in efi_earlycon_scroll_up()
92 height = screen_info.lfb_height; in efi_earlycon_scroll_up()
137 struct screen_info *si; in efi_earlycon_write()
142 si = &screen_info; in efi_earlycon_write()
210 struct screen_info *si; in efi_earlycon_setup()
214 if (screen_info.orig_video_isVGA != VIDEO_TYPE_EFI) in efi_earlycon_setup()
217 fb_base = screen_info.lfb_base; in efi_earlycon_setup()
218 if (screen_info.capabilities & VIDEO_CAPABILITY_64BIT_BASE) in efi_earlycon_setup()
[all …]
/Linux-v5.10/arch/arm/kernel/
Datags_parse.c75 screen_info.orig_x = tag->u.videotext.x; in parse_tag_videotext()
76 screen_info.orig_y = tag->u.videotext.y; in parse_tag_videotext()
77 screen_info.orig_video_page = tag->u.videotext.video_page; in parse_tag_videotext()
78 screen_info.orig_video_mode = tag->u.videotext.video_mode; in parse_tag_videotext()
79 screen_info.orig_video_cols = tag->u.videotext.video_cols; in parse_tag_videotext()
80 screen_info.orig_video_ega_bx = tag->u.videotext.video_ega_bx; in parse_tag_videotext()
81 screen_info.orig_video_lines = tag->u.videotext.video_lines; in parse_tag_videotext()
82 screen_info.orig_video_isVGA = tag->u.videotext.video_isvga; in parse_tag_videotext()
83 screen_info.orig_video_points = tag->u.videotext.video_points; in parse_tag_videotext()
/Linux-v5.10/arch/x86/include/asm/
Dsysfb.h73 bool parse_mode(const struct screen_info *si,
75 int create_simplefb(const struct screen_info *si,
80 static inline bool parse_mode(const struct screen_info *si, in parse_mode()
86 static inline int create_simplefb(const struct screen_info *si, in create_simplefb()
/Linux-v5.10/drivers/video/console/
Dvgacon.c187 if (screen_info.orig_video_isVGA == VIDEO_TYPE_VLFB || in vgacon_startup()
188 screen_info.orig_video_isVGA == VIDEO_TYPE_EFI) { in vgacon_startup()
199 if ((screen_info.orig_video_lines == 0) || in vgacon_startup()
200 (screen_info.orig_video_cols == 0)) in vgacon_startup()
204 if ((screen_info.orig_video_mode == 0x0D) || /* 320x200/4 */ in vgacon_startup()
205 (screen_info.orig_video_mode == 0x0E) || /* 640x200/4 */ in vgacon_startup()
206 (screen_info.orig_video_mode == 0x10) || /* 640x350/4 */ in vgacon_startup()
207 (screen_info.orig_video_mode == 0x12) || /* 640x480/4 */ in vgacon_startup()
208 (screen_info.orig_video_mode == 0x6A)) /* 800x600/4 (VESA) */ in vgacon_startup()
211 vga_video_num_lines = screen_info.orig_video_lines; in vgacon_startup()
[all …]
/Linux-v5.10/arch/riscv/include/asm/
Defi.h42 #define alloc_screen_info(x...) (&screen_info)
44 static inline void free_screen_info(struct screen_info *si) in free_screen_info()
48 static inline void efifb_setup_from_dmi(struct screen_info *si, const char *opt) in efifb_setup_from_dmi()
/Linux-v5.10/arch/x86/boot/compressed/
Dmisc.c126 x = boot_params->screen_info.orig_x; in __putstr()
127 y = boot_params->screen_info.orig_y; in __putstr()
148 boot_params->screen_info.orig_x = x; in __putstr()
149 boot_params->screen_info.orig_y = y; in __putstr()
359 if (boot_params->screen_info.orig_video_mode == 7) { in extract_kernel()
367 lines = boot_params->screen_info.orig_video_lines; in extract_kernel()
368 cols = boot_params->screen_info.orig_video_cols; in extract_kernel()
/Linux-v5.10/arch/arm/mach-footbridge/
Dcats-hw.c83 screen_info.orig_video_lines = 25; in fixup_cats()
84 screen_info.orig_video_points = 16; in fixup_cats()
85 screen_info.orig_y = 24; in fixup_cats()
/Linux-v5.10/arch/arm/include/asm/
Defi.h52 struct screen_info *alloc_screen_info(void);
53 void free_screen_info(struct screen_info *si);
55 static inline void efifb_setup_from_dmi(struct screen_info *si, const char *opt) in efifb_setup_from_dmi()
/Linux-v5.10/arch/arm64/include/asm/
Defi.h88 #define alloc_screen_info(x...) &screen_info
90 static inline void free_screen_info(struct screen_info *si) in free_screen_info()
94 static inline void efifb_setup_from_dmi(struct screen_info *si, const char *opt) in efifb_setup_from_dmi()
/Linux-v5.10/arch/hexagon/kernel/
Dscreen_info.c3 struct screen_info screen_info; variable
/Linux-v5.10/include/linux/
Dscreen_info.h7 extern struct screen_info screen_info;
/Linux-v5.10/arch/ia64/kernel/
Dsetup.c89 struct screen_info screen_info; variable
480 memset(&screen_info, 0, sizeof(screen_info)); in screen_info_setup()
498 screen_info.orig_x = orig_x; in screen_info_setup()
499 screen_info.orig_y = orig_y; in screen_info_setup()
500 screen_info.orig_video_cols = num_cols; in screen_info_setup()
501 screen_info.orig_video_lines = num_rows; in screen_info_setup()
502 screen_info.orig_video_points = font_height; in screen_info_setup()
503 screen_info.orig_video_mode = 3; /* XXX fake */ in screen_info_setup()
504 screen_info.orig_video_isVGA = 1; /* XXX fake */ in screen_info_setup()
505 screen_info.orig_video_ega_bx = 3; /* XXX fake */ in screen_info_setup()
/Linux-v5.10/drivers/firmware/efi/libstub/
Darm32-stub.c81 struct screen_info *alloc_screen_info(void) in alloc_screen_info()
83 struct screen_info *si; in alloc_screen_info()
107 void free_screen_info(struct screen_info *si) in free_screen_info()
/Linux-v5.10/arch/riscv/kernel/
Dsetup.c35 struct screen_info screen_info __section(".data") = {
/Linux-v5.10/drivers/video/fbdev/intelfb/
Dintelfbdrv.c792 screen_info.orig_video_isVGA != VIDEO_TYPE_VLFB) { in intelfb_pci_register()
803 if (screen_info.orig_video_isVGA == VIDEO_TYPE_VLFB) in intelfb_pci_register()
947 dinfo->initial_fb_base = screen_info.lfb_base; in get_initial_mode()
948 dinfo->initial_video_ram = screen_info.lfb_size * KB(64); in get_initial_mode()
949 dinfo->initial_pitch = screen_info.lfb_linelength; in get_initial_mode()
953 var->xres = screen_info.lfb_width; in get_initial_mode()
954 var->yres = screen_info.lfb_height; in get_initial_mode()
955 var->bits_per_pixel = screen_info.lfb_depth; in get_initial_mode()
956 switch (screen_info.lfb_depth) { in get_initial_mode()
991 var->red.offset = screen_info.red_pos; in get_initial_mode()
[all …]

123