Lines Matching refs:boot_params
130 static void setup_efi_pci(struct boot_params *params) in setup_efi_pci()
195 static void retrieve_apple_device_properties(struct boot_params *boot_params) in retrieve_apple_device_properties() argument
235 data = (struct setup_data *)(unsigned long)boot_params->hdr.setup_data; in retrieve_apple_device_properties()
237 boot_params->hdr.setup_data = (unsigned long)new; in retrieve_apple_device_properties()
247 static void setup_quirks(struct boot_params *boot_params) in setup_quirks() argument
254 retrieve_apple_device_properties(boot_params); in setup_quirks()
344 void setup_graphics(struct boot_params *boot_params) in setup_graphics() argument
354 si = &boot_params->screen_info; in setup_graphics()
382 struct boot_params *make_boot_params(struct efi_config *c) in make_boot_params()
384 struct boot_params *boot_params; in make_boot_params() local
417 (unsigned long *)&boot_params); in make_boot_params()
423 memset(boot_params, 0x0, 0x4000); in make_boot_params()
425 hdr = &boot_params->hdr; in make_boot_params()
426 bi = &boot_params->apm_bios_info; in make_boot_params()
448 boot_params->ext_cmd_line_ptr = (u64)(unsigned long)cmdline_ptr >> 32; in make_boot_params()
478 boot_params->ext_ramdisk_image = (u64)ramdisk_addr >> 32; in make_boot_params()
479 boot_params->ext_ramdisk_size = (u64)ramdisk_size >> 32; in make_boot_params()
481 return boot_params; in make_boot_params()
486 efi_free(sys_table, 0x4000, (unsigned long)boot_params); in make_boot_params()
491 static void add_e820ext(struct boot_params *params, in add_e820ext()
512 setup_e820(struct boot_params *params, struct setup_data *e820ext, u32 e820ext_size) in setup_e820()
632 static efi_status_t allocate_e820(struct boot_params *params, in allocate_e820()
667 struct boot_params *boot_params; member
696 static efi_status_t exit_boot(struct boot_params *boot_params, void *handle) in exit_boot() argument
713 priv.boot_params = boot_params; in exit_boot()
714 priv.efi = &boot_params->efi_info; in exit_boot()
716 status = allocate_e820(boot_params, &e820ext, &e820ext_size); in exit_boot()
727 boot_params->alt_mem_k = 32 * 1024; in exit_boot()
729 status = setup_e820(boot_params, e820ext, e820ext_size); in exit_boot()
740 struct boot_params *
741 efi_main(struct efi_config *c, struct boot_params *boot_params) in efi_main() argument
744 struct setup_header *hdr = &boot_params->hdr; in efi_main()
773 ((u64)boot_params->ext_cmd_line_ptr << 32)); in efi_main()
780 if (boot_params->secure_boot == efi_secureboot_mode_unset) in efi_main()
781 boot_params->secure_boot = efi_get_secureboot(sys_table); in efi_main()
787 setup_graphics(boot_params); in efi_main()
789 setup_efi_pci(boot_params); in efi_main()
791 setup_quirks(boot_params); in efi_main()
828 status = exit_boot(boot_params, handle); in efi_main()
921 return boot_params; in efi_main()