Home
last modified time | relevance | path

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

/DragonStub/apps/
H A Ddragon_stub-main.c12 EFI_STATUS status; in efi_main() local
26 status = efi_bs_call(HandleProtocol, image_handle, &LoadedImageProtocol, in efi_main()
29 if (EFI_ERROR(status)) { in efi_main()
30 efi_err("Could not open loaded image protocol: %d\n", status); in efi_main()
31 return status; in efi_main()
36 status = efi_handle_cmdline(loaded_image, &cmdline_ptr); in efi_main()
38 if (EFI_ERROR(status)) { in efi_main()
39 efi_err("Could not get command line: %d\n", status); in efi_main()
40 return status; in efi_main()
48 status = find_payload(image_handle, loaded_image, &payload); in efi_main()
[all …]
H A Dfdt.c75 int status; in update_fdt() local
96 status = fdt_open_into(orig_fdt, fdt, new_fdt_size); in update_fdt()
98 status = fdt_create_empty_tree(fdt, new_fdt_size); in update_fdt()
99 if (status == 0) { in update_fdt()
108 if (status != 0) in update_fdt()
124 status = node; in update_fdt()
130 status = fdt_setprop(fdt, node, "bootargs", cmdline_ptr, in update_fdt()
132 if (status) in update_fdt()
140 status = fdt_setprop_var(fdt, node, "linux,uefi-system-table", in update_fdt()
142 if (status) in update_fdt()
[all …]
H A Dmem.c24 efi_status_t status; in efi_get_memory_map() local
28 status = efi_bs_call(GetMemoryMap, &tmp.map_size, NULL, &tmp.map_key, in efi_get_memory_map()
30 if (status != EFI_BUFFER_TOO_SMALL) in efi_get_memory_map()
34 status = efi_bs_call(AllocatePool, memtype, sizeof(*m) + size, in efi_get_memory_map()
36 if (status != EFI_SUCCESS) in efi_get_memory_map()
37 return status; in efi_get_memory_map()
46 status = efi_bs_call(InstallConfigurationTable, &tbl_guid, m); in efi_get_memory_map()
47 if (status != EFI_SUCCESS) in efi_get_memory_map()
52 status = efi_bs_call(GetMemoryMap, &m->map_size, m->map, &m->map_key, in efi_get_memory_map()
54 if (status != EFI_SUCCESS) in efi_get_memory_map()
[all …]
H A Dhelper.c45 efi_status_t status; in efi_measure_tagged_event() local
56 status = efi_bs_call(AllocatePool, EfiLoaderData, size, in efi_measure_tagged_event()
58 if (status != EFI_SUCCESS) in efi_measure_tagged_event()
79 status = efi_call_proto(tcg2, hash_log_extend_event, 0, in efi_measure_tagged_event()
83 if (status != EFI_SUCCESS) in efi_measure_tagged_event()
90 efi_warn("Failed to measure data for event %d: 0x%lx\n", event, status); in efi_measure_tagged_event()
91 return status; in efi_measure_tagged_event()
141 efi_status_t status; in efi_convert_cmdline() local
203 status = efi_bs_call(AllocatePool, EfiLoaderData, options_bytes, in efi_convert_cmdline()
205 if (status != EFI_SUCCESS) in efi_convert_cmdline()
[all …]
H A Dstub.c53 EFI_STATUS status; in efi_handle_cmdline() local
79 status = efi_parse_options(cmdline); in efi_handle_cmdline()
80 if (status != EFI_SUCCESS) { in efi_handle_cmdline()
91 return status; in efi_handle_cmdline()
156 efi_status_t status = init_efi_program_info(loaded_image); in find_payload() local
157 if (status != EFI_SUCCESS) { in find_payload()
159 return status; in find_payload()
164 status = find_elf(&info); in find_payload()
165 if (status != EFI_SUCCESS) { in find_payload()
168 return status; in find_payload()
[all …]
H A Delf.c171 efi_status_t status; in check_image_region() local
175 status = efi_get_memory_map(&map, false); in check_image_region()
176 if (status != EFI_SUCCESS) in check_image_region()
215 efi_status_t status; in efi_remap_image_all_rwx() local
223 status = efi_bs_call(LocateProtocol, &guid, NULL, (void **)&memattr); in efi_remap_image_all_rwx()
224 if (status != EFI_SUCCESS) in efi_remap_image_all_rwx()
228 status = memattr->get_memory_attributes(memattr, image_base, alloc_size, in efi_remap_image_all_rwx()
230 if (status != EFI_SUCCESS) { in efi_remap_image_all_rwx()
233 status); in efi_remap_image_all_rwx()
243 status = memattr->clear_memory_attributes( in efi_remap_image_all_rwx()
[all …]
H A Driscv-stub.c54 efi_status_t status; in get_boot_hartid_from_efi() local
56 status = efi_bs_call(LocateProtocol, &boot_protocol_guid, NULL, in get_boot_hartid_from_efi()
58 if (status != EFI_SUCCESS) in get_boot_hartid_from_efi()
59 return status; in get_boot_hartid_from_efi()
66 efi_status_t status = -1; in check_platform_features() local
69 status = get_boot_hartid_from_efi(); in check_platform_features()
70 if (status != EFI_SUCCESS) { in check_platform_features()
H A Drandom.c35 efi_status_t status; in efi_get_random_bytes() local
38 status = efi_bs_call(LocateProtocol, &rng_proto, NULL, (void **)&rng); in efi_get_random_bytes()
39 if (status != EFI_SUCCESS) in efi_get_random_bytes()
40 return status; in efi_get_random_bytes()
H A Dalignedmem.c27 efi_status_t status; in efi_allocate_pages_aligned() local
39 status = efi_bs_call(AllocatePages, EFI_ALLOCATE_MAX_ADDRESS, in efi_allocate_pages_aligned()
42 if (status != EFI_SUCCESS) in efi_allocate_pages_aligned()
43 return status; in efi_allocate_pages_aligned()
H A Dsecureboot.c21 efi_status_t status; in efi_get_secureboot() local
38 status = get_efi_var(shim_MokSBState_name, &shim_guid, &attr, &size, in efi_get_secureboot()
42 if (status != EFI_SUCCESS) in efi_get_secureboot()
/DragonStub/lib/
H A Dentry.c63 EFI_STATUS status; in _entry() local
67 status = efi_main(image, systab); in _entry()
70 return status; in _entry()
/DragonStub/inc/dragonstub/
H A Dlinux-efi.h410 typedef void efi_reset_system_t(int reset_type, efi_status_t status,
432 efi_status_t status; in efi_get_secureboot_mode() local
436 status = get_var(L"SecureBoot", &EFI_GLOBAL_VARIABLE_GUID, NULL, &size, in efi_get_secureboot_mode()
438 if (status == EFI_NOT_FOUND) in efi_get_secureboot_mode()
440 if (status != EFI_SUCCESS) in efi_get_secureboot_mode()
/DragonStub/
H A DChangeLog85 of make targets in 'status'
1017 Please add the following status codes to <efierr.h>
1218 to "int". Return error status if relocation fails for some
1224 non-zero exit status.
H A DLICENSE255 of preserving the free status of all derivatives of our free software and