Home
last modified time | relevance | path

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

12

/arch/x86/include/asm/
Dbootparam_utils.h20 static void sanitize_boot_params(struct boot_params *boot_params) in sanitize_boot_params() argument
36 if (boot_params->sentinel) { in sanitize_boot_params()
38 memset(&boot_params->ext_ramdisk_image, 0, in sanitize_boot_params()
39 (char *)&boot_params->efi_info - in sanitize_boot_params()
40 (char *)&boot_params->ext_ramdisk_image); in sanitize_boot_params()
41 memset(&boot_params->kbd_status, 0, in sanitize_boot_params()
42 (char *)&boot_params->hdr - in sanitize_boot_params()
43 (char *)&boot_params->kbd_status); in sanitize_boot_params()
44 memset(&boot_params->_pad7[0], 0, in sanitize_boot_params()
45 (char *)&boot_params->edd_mbr_sig_buffer[0] - in sanitize_boot_params()
[all …]
Dsetup.h67 extern struct boot_params boot_params;
Dkbdleds.h14 return boot_params.kbd_status & 0x20 ? (1 << VC_NUMLOCK) : 0; in kbd_defleds()
/arch/x86/boot/
Dmain.c19 struct boot_params boot_params __attribute__((aligned(16))); variable
39 BUILD_BUG_ON(sizeof boot_params != 4096); in copy_boot_params()
40 memcpy(&boot_params.hdr, &hdr, sizeof hdr); in copy_boot_params()
42 if (!boot_params.hdr.cmd_line_ptr && in copy_boot_params()
50 if (oldcmd->cl_offset < boot_params.hdr.setup_move_size) in copy_boot_params()
55 boot_params.hdr.cmd_line_ptr = in copy_boot_params()
72 boot_params.kbd_status = oreg.al; in keyboard_init()
95 boot_params.ist_info.signature = oreg.eax; in query_ist()
96 boot_params.ist_info.command = oreg.ebx; in query_ist()
97 boot_params.ist_info.event = oreg.ecx; in query_ist()
[all …]
Dvideo-vesa.c179 boot_params.screen_info.red_size = dac_size; in vesa_dac_set_8bits()
180 boot_params.screen_info.green_size = dac_size; in vesa_dac_set_8bits()
181 boot_params.screen_info.blue_size = dac_size; in vesa_dac_set_8bits()
182 boot_params.screen_info.rsvd_size = dac_size; in vesa_dac_set_8bits()
184 boot_params.screen_info.red_pos = 0; in vesa_dac_set_8bits()
185 boot_params.screen_info.green_pos = 0; in vesa_dac_set_8bits()
186 boot_params.screen_info.blue_pos = 0; in vesa_dac_set_8bits()
187 boot_params.screen_info.rsvd_pos = 0; in vesa_dac_set_8bits()
202 boot_params.screen_info.vesapm_seg = oreg.es; in vesa_store_pm_info()
203 boot_params.screen_info.vesapm_off = oreg.di; in vesa_store_pm_info()
[all …]
Dapm.c47 boot_params.apm_bios_info.cseg = oreg.ax; in query_apm_bios()
48 boot_params.apm_bios_info.offset = oreg.ebx; in query_apm_bios()
49 boot_params.apm_bios_info.cseg_16 = oreg.cx; in query_apm_bios()
50 boot_params.apm_bios_info.dseg = oreg.dx; in query_apm_bios()
51 boot_params.apm_bios_info.cseg_len = oreg.si; in query_apm_bios()
52 boot_params.apm_bios_info.cseg_16_len = oreg.hsi; in query_apm_bios()
53 boot_params.apm_bios_info.dseg_len = oreg.di; in query_apm_bios()
71 boot_params.apm_bios_info.version = oreg.ax; in query_apm_bios()
72 boot_params.apm_bios_info.flags = oreg.cx; in query_apm_bios()
Dvideo.c28 boot_params.screen_info.orig_x = oreg.dl; in store_cursor_position()
29 boot_params.screen_info.orig_y = oreg.dh; in store_cursor_position()
32 boot_params.screen_info.flags |= VIDEO_FLAGS_NOCURSOR; in store_cursor_position()
35 boot_params.screen_info.flags |= VIDEO_FLAGS_NOCURSOR; in store_cursor_position()
49 boot_params.screen_info.orig_video_mode = oreg.al & 0x7f; in store_video_mode()
50 boot_params.screen_info.orig_video_page = oreg.bh; in store_video_mode()
72 if (boot_params.screen_info.orig_video_mode == 0x07) { in store_mode_params()
82 boot_params.screen_info.orig_video_points = font_size; in store_mode_params()
92 boot_params.screen_info.orig_video_cols = x; in store_mode_params()
93 boot_params.screen_info.orig_video_lines = y; in store_mode_params()
[all …]
Dmemory.c24 struct e820entry *desc = boot_params.e820_map; in detect_memory_e820()
69 } while (ireg.ebx && count < ARRAY_SIZE(boot_params.e820_map)); in detect_memory_e820()
71 return boot_params.e820_entries = count; in detect_memory_e820()
94 boot_params.alt_mem_k = (oreg.bx << 6) + oreg.ax; in detect_memory_e801()
103 boot_params.alt_mem_k = oreg.ax; in detect_memory_e801()
117 boot_params.screen_info.ext_mem_k = oreg.ax; in detect_memory_88()
Dpm.c24 if (boot_params.hdr.realmode_swtch) { in realmode_switch_hook()
26 : : "m" (boot_params.hdr.realmode_swtch) in realmode_switch_hook()
124 protected_mode_jump(boot_params.hdr.code32_start, in go_to_protected_mode()
125 (u32)&boot_params + (ds() << 4)); in go_to_protected_mode()
Dmca.c33 if (len > sizeof(boot_params.sys_desc_table)) in query_mca()
34 len = sizeof(boot_params.sys_desc_table); in query_mca()
36 copy_from_fs(&boot_params.sys_desc_table, oreg.bx, len); in query_mca()
Dedd.c59 if (!(boot_params.hdr.loadflags & CAN_USE_HEAP)) in read_mbr_sig()
61 if (mbrbuf_end > (char *)(size_t)boot_params.hdr.heap_end_ptr) in read_mbr_sig()
149 edp = boot_params.eddbuf; in query_edd()
150 mbrptr = boot_params.edd_mbr_sig_buffer; in query_edd()
168 && boot_params.eddbuf_entries < EDDMAXNR) { in query_edd()
171 boot_params.eddbuf_entries++; in query_edd()
175 boot_params.edd_mbr_sig_buf_entries = devno-0x80+1; in query_edd()
Dvideo-bios.c52 if (new_mode != boot_params.screen_info.orig_video_mode) { in set_bios_mode()
56 ireg.ax = boot_params.screen_info.orig_video_mode; in set_bios_mode()
69 u8 saved_mode = boot_params.screen_info.orig_video_mode; in bios_probe()
/arch/x86/kernel/
Dasm-offsets.c64 OFFSET(BP_scratch, boot_params, scratch); in common()
65 OFFSET(BP_loadflags, boot_params, hdr.loadflags); in common()
66 OFFSET(BP_hardware_subarch, boot_params, hdr.hardware_subarch); in common()
67 OFFSET(BP_version, boot_params, hdr.version); in common()
68 OFFSET(BP_kernel_alignment, boot_params, hdr.kernel_alignment); in common()
69 OFFSET(BP_pref_address, boot_params, hdr.pref_address); in common()
70 OFFSET(BP_code32_start, boot_params, hdr.code32_start); in common()
Dsetup.c144 struct boot_params boot_params; variable
250 memcpy(edd.mbr_signature, boot_params.edd_mbr_sig_buffer, in copy_edd()
252 memcpy(edd.edd_info, boot_params.eddbuf, sizeof(edd.edd_info)); in copy_edd()
253 edd.mbr_signature_nr = boot_params.edd_mbr_sig_buf_entries; in copy_edd()
254 edd.edd_info_nr = boot_params.eddbuf_entries; in copy_edd()
304 u64 ramdisk_image = boot_params.hdr.ramdisk_image; in get_ramdisk_image()
306 ramdisk_image |= (u64)boot_params.ext_ramdisk_image << 32; in get_ramdisk_image()
312 u64 ramdisk_size = boot_params.hdr.ramdisk_size; in get_ramdisk_size()
314 ramdisk_size |= (u64)boot_params.ext_ramdisk_size << 32; in get_ramdisk_size()
377 if (!boot_params.hdr.type_of_loader || in early_reserve_initrd()
[all …]
Dkexec-bzimage64.c57 static int setup_initrd(struct boot_params *params, in setup_initrd()
69 static int setup_cmdline(struct kimage *image, struct boot_params *params, in setup_cmdline()
98 static int setup_e820_entries(struct boot_params *params) in setup_e820_entries()
116 static int setup_efi_info_memmap(struct boot_params *params, in setup_efi_info_memmap()
138 prepare_add_efi_setup_data(struct boot_params *params, in prepare_add_efi_setup_data()
163 setup_efi_state(struct boot_params *params, unsigned long params_load_addr, in setup_efi_state()
167 struct efi_info *current_ei = &boot_params.efi_info; in setup_efi_state()
198 setup_boot_parameters(struct kimage *image, struct boot_params *params, in setup_boot_parameters()
208 params->hdr.hardware_subarch = boot_params.hdr.hardware_subarch; in setup_boot_parameters()
211 memcpy(&params->screen_info, &boot_params.screen_info, in setup_boot_parameters()
[all …]
Dhead64.c119 unsigned long cmd_line_ptr = boot_params.hdr.cmd_line_ptr; in get_cmd_line_ptr()
121 cmd_line_ptr |= (u64)boot_params.ext_cmd_line_ptr << 32; in get_cmd_line_ptr()
131 memcpy(&boot_params, real_mode_data, sizeof boot_params); in copy_bootdata()
132 sanitize_boot_params(&boot_params); in copy_bootdata()
190 if (!boot_params.hdr.version) in x86_64_start_reservations()
Dhead32.c35 sanitize_boot_params(&boot_params); in i386_start_kernel()
38 switch (boot_params.hdr.hardware_subarch) { in i386_start_kernel()
Dksysfs.c26 return sprintf(buf, "0x%04x\n", boot_params.hdr.version); in version_show()
35 memcpy(buf, (void *)&boot_params + off, count); in boot_params_data_read()
45 .size = sizeof(boot_params),
75 u64 pa_data = boot_params.hdr.setup_data; in get_setup_data_paddr()
97 u64 pa_data = boot_params.hdr.setup_data; in get_setup_data_size()
272 pa_data = boot_params.hdr.setup_data; in create_setup_data_nodes()
Dkdebugfs.c120 pa_data = boot_params.hdr.setup_data; in create_setup_data_nodes()
161 .data = &boot_params,
162 .size = sizeof(boot_params),
175 &boot_params.hdr.version); in boot_params_kdebugfs_init()
Dearly_printk.c214 boot_params.screen_info.orig_video_isVGA == 1) { in setup_early_printk()
215 max_xpos = boot_params.screen_info.orig_video_cols; in setup_early_printk()
216 max_ypos = boot_params.screen_info.orig_video_lines; in setup_early_printk()
217 current_ypos = boot_params.screen_info.orig_y; in setup_early_printk()
Dtboot.c65 if (!boot_params.tboot_addr) in tboot_probe()
71 if (!e820_any_mapped(boot_params.tboot_addr, in tboot_probe()
72 boot_params.tboot_addr, E820_RESERVED)) { in tboot_probe()
84 set_fixmap(FIX_TBOOT_BASE, boot_params.tboot_addr); in tboot_probe()
88 boot_params.tboot_addr); in tboot_probe()
99 boot_params.tboot_addr); in tboot_probe()
/arch/x86/xen/
Defi.c37 strncpy((char *)&boot_params.efi_info.efi_loader_signature, "Xen", in xen_efi_init()
38 sizeof(boot_params.efi_info.efi_loader_signature)); in xen_efi_init()
39 boot_params.efi_info.efi_systab = (__u32)__pa(efi_systab_xen); in xen_efi_init()
40 boot_params.efi_info.efi_systab_hi = (__u32)(__pa(efi_systab_xen) >> 32); in xen_efi_init()
/arch/x86/platform/efi/
Dearly_printk.c34 base = boot_params.screen_info.lfb_base; in early_efi_map_fb()
35 size = boot_params.screen_info.lfb_size; in early_efi_map_fb()
51 base = boot_params.screen_info.lfb_base; in early_efi_map()
70 len = boot_params.screen_info.lfb_linelength; in early_efi_clear_scanline()
85 len = boot_params.screen_info.lfb_linelength; in early_efi_scroll_up()
86 height = boot_params.screen_info.lfb_height; in early_efi_scroll_up()
134 si = &boot_params.screen_info; in early_efi_write()
205 si = &boot_params.screen_info; in early_efi_setup()
/arch/x86/boot/compressed/
Deboot.c377 setup_efi_pci32(struct boot_params *params, void **pci_handle, in setup_efi_pci32()
484 setup_efi_pci64(struct boot_params *params, void **pci_handle, in setup_efi_pci64()
537 static void setup_efi_pci(struct boot_params *params) in setup_efi_pci()
1004 void setup_graphics(struct boot_params *boot_params) in setup_graphics() argument
1014 si = &boot_params->screen_info; in setup_graphics()
1042 struct boot_params *make_boot_params(struct efi_config *c) in make_boot_params()
1044 struct boot_params *boot_params; in make_boot_params() local
1082 (unsigned long *)&boot_params); in make_boot_params()
1088 memset(boot_params, 0x0, 0x4000); in make_boot_params()
1090 hdr = &boot_params->hdr; in make_boot_params()
[all …]
/arch/x86/kernel/cpu/microcode/
Damd_early.c46 struct boot_params *p; in find_ucode_in_initrd()
52 p = (struct boot_params *)__pa_nodebug(&boot_params); in find_ucode_in_initrd()
58 start = (void *)(boot_params.hdr.ramdisk_image + PAGE_OFFSET); in find_ucode_in_initrd()
59 size = boot_params.hdr.ramdisk_size; in find_ucode_in_initrd()
381 (cont - boot_params.hdr.ramdisk_image)); in save_microcode_in_initrd_amd()

12