Home
last modified time | relevance | path

Searched refs:boot_params (Results 1 – 25 of 66) sorted by relevance

123

/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 …]
Dmain.c18 struct boot_params boot_params __attribute__((aligned(16))); variable
38 BUILD_BUG_ON(sizeof(boot_params) != 4096); in copy_boot_params()
39 memcpy(&boot_params.hdr, &hdr, sizeof(hdr)); in copy_boot_params()
41 if (!boot_params.hdr.cmd_line_ptr && in copy_boot_params()
49 if (oldcmd->cl_offset < boot_params.hdr.setup_move_size) in copy_boot_params()
54 boot_params.hdr.cmd_line_ptr = in copy_boot_params()
71 boot_params.kbd_status = oreg.al; in keyboard_init()
94 boot_params.ist_info.signature = oreg.eax; in query_ist()
95 boot_params.ist_info.command = oreg.ebx; in query_ist()
96 boot_params.ist_info.event = oreg.ecx; in query_ist()
[all …]
Dapm.c45 boot_params.apm_bios_info.cseg = oreg.ax; in query_apm_bios()
46 boot_params.apm_bios_info.offset = oreg.ebx; in query_apm_bios()
47 boot_params.apm_bios_info.cseg_16 = oreg.cx; in query_apm_bios()
48 boot_params.apm_bios_info.dseg = oreg.dx; in query_apm_bios()
49 boot_params.apm_bios_info.cseg_len = oreg.si; in query_apm_bios()
50 boot_params.apm_bios_info.cseg_16_len = oreg.hsi; in query_apm_bios()
51 boot_params.apm_bios_info.dseg_len = oreg.di; in query_apm_bios()
69 boot_params.apm_bios_info.version = oreg.ax; in query_apm_bios()
70 boot_params.apm_bios_info.flags = oreg.cx; in query_apm_bios()
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 …]
Dmemory.c22 struct boot_e820_entry *desc = boot_params.e820_table; in detect_memory_e820()
67 } while (ireg.ebx && count < ARRAY_SIZE(boot_params.e820_table)); in detect_memory_e820()
69 boot_params.e820_entries = count; in detect_memory_e820()
92 boot_params.alt_mem_k = (oreg.bx << 6) + oreg.ax; in detect_memory_e801()
101 boot_params.alt_mem_k = oreg.ax; in detect_memory_e801()
113 boot_params.screen_info.ext_mem_k = oreg.ax; in detect_memory_88()
Dedd.c57 if (!(boot_params.hdr.loadflags & CAN_USE_HEAP)) in read_mbr_sig()
59 if (mbrbuf_end > (char *)(size_t)boot_params.hdr.heap_end_ptr) in read_mbr_sig()
147 edp = boot_params.eddbuf; in query_edd()
148 mbrptr = boot_params.edd_mbr_sig_buffer; in query_edd()
166 && boot_params.eddbuf_entries < EDDMAXNR) { in query_edd()
169 boot_params.eddbuf_entries++; in query_edd()
173 boot_params.edd_mbr_sig_buf_entries = devno-0x80+1; in query_edd()
Dpm.c22 if (boot_params.hdr.realmode_swtch) { in realmode_switch_hook()
24 : : "m" (boot_params.hdr.realmode_swtch) in realmode_switch_hook()
122 protected_mode_jump(boot_params.hdr.code32_start, in go_to_protected_mode()
123 (u32)&boot_params + (ds() << 4)); in go_to_protected_mode()
/Linux-v5.10/drivers/firmware/efi/libstub/
Dx86-stub.c105 static void setup_efi_pci(struct boot_params *params) in setup_efi_pci()
164 static void retrieve_apple_device_properties(struct boot_params *boot_params) in retrieve_apple_device_properties() argument
204 data = (struct setup_data *)(unsigned long)boot_params->hdr.setup_data; in retrieve_apple_device_properties()
206 boot_params->hdr.setup_data = (unsigned long)new; in retrieve_apple_device_properties()
216 static void setup_quirks(struct boot_params *boot_params) in setup_quirks() argument
223 retrieve_apple_device_properties(boot_params); in setup_quirks()
308 static void setup_graphics(struct boot_params *boot_params) in setup_graphics() argument
318 si = &boot_params->screen_info; in setup_graphics()
344 void startup_32(struct boot_params *boot_params);
348 struct boot_params *boot_params);
[all …]
/Linux-v5.10/arch/x86/include/asm/
Dbootparam_utils.h26 .start = offsetof(struct boot_params, struct_member), \
27 .len = sizeof_mbr(struct boot_params, struct_member), \
35 static void sanitize_boot_params(struct boot_params *boot_params) in sanitize_boot_params() argument
51 if (boot_params->sentinel) { in sanitize_boot_params()
52 static struct boot_params scratch; in sanitize_boot_params()
53 char *bp_base = (char *)boot_params; in sanitize_boot_params()
86 memcpy(boot_params, save_base, sizeof(*boot_params)); in sanitize_boot_params()
Dsetup.h51 extern unsigned long __startup_64(unsigned long physaddr, struct boot_params *bp);
77 extern struct boot_params boot_params;
83 !!(boot_params.hdr.loadflags & KASLR_FLAG); in kaslr_enabled()
Dmem_encrypt.h41 void __init sme_encrypt_kernel(struct boot_params *bp);
42 void __init sme_enable(struct boot_params *bp);
73 static inline void __init sme_encrypt_kernel(struct boot_params *bp) { } in sme_encrypt_kernel()
74 static inline void __init sme_enable(struct boot_params *bp) { } in sme_enable()
/Linux-v5.10/arch/x86/kernel/
Dsetup.c75 struct boot_params boot_params; variable
186 memcpy(edd.mbr_signature, boot_params.edd_mbr_sig_buffer, in copy_edd()
188 memcpy(edd.edd_info, boot_params.eddbuf, sizeof(edd.edd_info)); in copy_edd()
189 edd.mbr_signature_nr = boot_params.edd_mbr_sig_buf_entries; in copy_edd()
190 edd.edd_info_nr = boot_params.eddbuf_entries; in copy_edd()
240 u64 ramdisk_image = boot_params.hdr.ramdisk_image; in get_ramdisk_image()
242 ramdisk_image |= (u64)boot_params.ext_ramdisk_image << 32; in get_ramdisk_image()
251 u64 ramdisk_size = boot_params.hdr.ramdisk_size; in get_ramdisk_size()
253 ramdisk_size |= (u64)boot_params.ext_ramdisk_size << 32; in get_ramdisk_size()
295 if (!boot_params.hdr.type_of_loader || in early_reserve_initrd()
[all …]
Dkexec-bzimage64.c55 static int setup_initrd(struct boot_params *params, in setup_initrd()
67 static int setup_cmdline(struct kimage *image, struct boot_params *params, in setup_cmdline()
97 static int setup_e820_entries(struct boot_params *params) in setup_e820_entries()
114 static int setup_efi_info_memmap(struct boot_params *params, in setup_efi_info_memmap()
136 prepare_add_efi_setup_data(struct boot_params *params, in prepare_add_efi_setup_data()
160 setup_efi_state(struct boot_params *params, unsigned long params_load_addr, in setup_efi_state()
164 struct efi_info *current_ei = &boot_params.efi_info; in setup_efi_state()
173 params->secure_boot = boot_params.secure_boot; in setup_efi_state()
190 setup_boot_parameters(struct kimage *image, struct boot_params *params, in setup_boot_parameters()
200 params->hdr.hardware_subarch = boot_params.hdr.hardware_subarch; in setup_boot_parameters()
[all …]
Dasm-offsets.c80 OFFSET(BP_scratch, boot_params, scratch); in common()
81 OFFSET(BP_secure_boot, boot_params, secure_boot); in common()
82 OFFSET(BP_loadflags, boot_params, hdr.loadflags); in common()
83 OFFSET(BP_hardware_subarch, boot_params, hdr.hardware_subarch); in common()
84 OFFSET(BP_version, boot_params, hdr.version); in common()
85 OFFSET(BP_kernel_alignment, boot_params, hdr.kernel_alignment); in common()
86 OFFSET(BP_init_size, boot_params, hdr.init_size); in common()
87 OFFSET(BP_pref_address, boot_params, hdr.pref_address); in common()
Dima_arch.c9 extern struct boot_params boot_params;
60 sb_mode = boot_params.secure_boot; in arch_ima_get_secureboot()
Dhead64.c137 struct boot_params *bp) in __startup_64()
426 unsigned long cmd_line_ptr = boot_params.hdr.cmd_line_ptr; in get_cmd_line_ptr()
428 cmd_line_ptr |= (u64)boot_params.ext_cmd_line_ptr << 32; in get_cmd_line_ptr()
444 memcpy(&boot_params, real_mode_data, sizeof(boot_params)); in copy_bootdata()
445 sanitize_boot_params(&boot_params); in copy_bootdata()
513 if (!boot_params.hdr.version) in x86_64_start_reservations()
518 switch (boot_params.hdr.hardware_subarch) { in x86_64_start_reservations()
/Linux-v5.10/arch/x86/boot/compressed/
Dmisc.c45 struct boot_params *boot_params; variable
126 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()
352 boot_params = rmode; in extract_kernel()
355 boot_params->hdr.loadflags &= ~KASLR_FLAG; in extract_kernel()
357 sanitize_boot_params(boot_params); in extract_kernel()
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()
[all …]
Dpgtable_64.c35 extern struct boot_params *boot_params;
56 signature = (char *)&boot_params->efi_info.efi_loader_signature; in find_trampoline_placement()
72 for (i = boot_params->e820_entries - 1; i >= 0; i--) { in find_trampoline_placement()
75 entry = &boot_params->e820_table[i]; in find_trampoline_placement()
113 boot_params = rmode; in paging_prepare()
Dkaslr.c70 hash = rotate_xor(hash, boot_params, sizeof(*boot_params)); in get_boot_seed()
390 unsigned long init_size = boot_params->hdr.init_size; in mem_avoid_init()
402 initrd_start = (u64)boot_params->ext_ramdisk_image << 32; in mem_avoid_init()
403 initrd_start |= boot_params->hdr.ramdisk_image; in mem_avoid_init()
404 initrd_size = (u64)boot_params->ext_ramdisk_size << 32; in mem_avoid_init()
405 initrd_size |= boot_params->hdr.ramdisk_size; in mem_avoid_init()
420 mem_avoid[MEM_AVOID_BOOTPARAMS].start = (unsigned long)boot_params; in mem_avoid_init()
421 mem_avoid[MEM_AVOID_BOOTPARAMS].size = sizeof(*boot_params); in mem_avoid_init()
454 ptr = (struct setup_data *)(unsigned long)boot_params->hdr.setup_data; in mem_avoid_overlap()
686 struct efi_info *e = &boot_params->efi_info; in process_efi_entries()
[all …]
/Linux-v5.10/Documentation/ABI/testing/
Dsysfs-kernel-boot_params1 What: /sys/kernel/boot_params
4 Description: The /sys/kernel/boot_params directory contains two
9 If there's no setup_data in boot_params the subdirectory will
12 "data" file is the binary representation of struct boot_params.
18 structure in boot_params. setup_data is maintained in kernel
26 The whole boot_params directory structure is like below::
28 /sys/kernel/boot_params
/Linux-v5.10/arch/x86/xen/
Defi.c149 void __init xen_efi_init(struct boot_params *boot_params) in xen_efi_init() argument
158 strncpy((char *)&boot_params->efi_info.efi_loader_signature, "Xen", in xen_efi_init()
159 sizeof(boot_params->efi_info.efi_loader_signature)); in xen_efi_init()
160 boot_params->efi_info.efi_systab = (__u32)__pa(efi_systab_xen); in xen_efi_init()
161 boot_params->efi_info.efi_systab_hi = (__u32)(__pa(efi_systab_xen) >> 32); in xen_efi_init()
163 boot_params->secure_boot = xen_efi_get_secureboot(); in xen_efi_init()
Denlighten_pvh.c26 void __init xen_pvh_init(struct boot_params *boot_params) in xen_pvh_init() argument
39 xen_efi_init(boot_params); in xen_pvh_init()
42 void __init mem_map_via_hcall(struct boot_params *boot_params_p) in mem_map_via_hcall()
Dxen-ops.h124 extern void xen_efi_init(struct boot_params *boot_params);
126 static inline void __init xen_efi_init(struct boot_params *boot_params) in xen_efi_init() argument
/Linux-v5.10/arch/x86/platform/pvh/
Denlighten.c22 struct boot_params pvh_bootparams __section(".data");
39 void __init __weak mem_map_via_hcall(struct boot_params *ptr __maybe_unused) in mem_map_via_hcall()
104 void __init __weak xen_pvh_init(struct boot_params *boot_params) in xen_pvh_init() argument
/Linux-v5.10/arch/x86/mm/
Dmem_encrypt.c144 struct boot_params *boot_data; in sme_unmap_bootdata()
151 boot_data = (struct boot_params *)real_mode_data; in sme_unmap_bootdata()
154 __sme_early_map_unmap_mem(real_mode_data, sizeof(boot_params), false); in sme_unmap_bootdata()
164 struct boot_params *boot_data; in sme_map_bootdata()
170 __sme_early_map_unmap_mem(real_mode_data, sizeof(boot_params), true); in sme_map_bootdata()
173 boot_data = (struct boot_params *)real_mode_data; in sme_map_bootdata()

123