/u-boot/lib/efi_selftest/ |
A D | efi_selftest_devicepath.c | 13 static struct efi_boot_services *boottime; variable 121 boottime = systable->boottime; in setup() 279 ret = boottime->free_pool(dp1); in teardown() 286 ret = boottime->free_pool(dp2); in teardown() 293 ret = boottime->free_pool(dp3); in teardown() 355 ret = boottime->free_pool(string); in execute() 365 ret = boottime->free_pool(handles); in execute() 386 ret = boottime->free_pool(string); in execute() 402 ret = boottime->free_pool(string); in execute() 421 ret = boottime->free_pool(string); in execute() [all …]
|
A D | efi_selftest_tpl.c | 16 static struct efi_boot_services *boottime; variable 47 boottime = systable->boottime; in setup() 57 ret = boottime->create_event(EVT_TIMER | EVT_NOTIFY_WAIT, in setup() 78 ret = boottime->close_event(event_notify); in teardown() 86 ret = boottime->close_event(event_wait); in teardown() 93 boottime->restore_tpl(TPL_APPLICATION); in teardown() 131 ret = boottime->wait_for_event(1, &event_wait, &index); in execute() 136 ret = boottime->check_event(event_wait); in execute() 159 old_tpl = boottime->raise_tpl(TPL_CALLBACK); in execute() 178 ret = boottime->check_event(event_wait); in execute() [all …]
|
A D | efi_selftest_events.c | 17 static struct efi_boot_services *boottime; variable 49 boottime = systable->boottime; in setup() 51 ret = boottime->create_event(EVT_TIMER | EVT_NOTIFY_SIGNAL, in setup() 58 ret = boottime->create_event(EVT_TIMER | EVT_NOTIFY_WAIT, in setup() 79 ret = boottime->close_event(event_notify); in teardown() 87 ret = boottime->close_event(event_wait); in teardown() 129 ret = boottime->wait_for_event(1, &event_wait, &index); in execute() 134 ret = boottime->check_event(event_wait); in execute() 167 ret = boottime->wait_for_event(1, &event_wait, &index); in execute() 178 ret = boottime->wait_for_event(1, &event_wait, &index); in execute() [all …]
|
A D | efi_selftest_open_protocol.c | 22 static struct efi_boot_services *boottime; variable 42 boottime = systable->boottime; in setup() 44 ret = boottime->install_protocol_interface(&handle1, &guid1, in setup() 103 ret = boottime->open_protocol_information(handle1, &guid1, in execute() 115 ret = boottime->free_pool(entry_buffer); in execute() 125 ret = boottime->open_protocol_information(handle1, &guid1, in execute() 143 ret = boottime->free_pool(entry_buffer); in execute() 148 ret = boottime->open_protocol(handle1, &guid1, &interface, in execute() 155 ret = boottime->open_protocol_information(handle1, &guid1, in execute() 173 ret = boottime->free_pool(entry_buffer); in execute() [all …]
|
A D | efi_selftest_manageprotocols.c | 24 static struct efi_boot_services *boottime; variable 82 boottime = systable->boottime; in setup() 84 ret = boottime->install_protocol_interface(&handle1, &guid3, in setup() 96 ret = boottime->install_protocol_interface(&handle1, &guid1, in setup() 183 ret = boottime->free_pool(buffer); in execute() 201 ret = boottime->uninstall_multiple_protocol_interfaces( in execute() 248 ret = boottime->locate_handle(BY_PROTOCOL, &guid1, NULL, in execute() 270 ret = boottime->free_pool(buffer); in execute() 292 ret = boottime->uninstall_multiple_protocol_interfaces( in execute() 325 ret = boottime->protocols_per_handle(handle1, in execute() [all …]
|
A D | efi_selftest_controllers.c | 19 static struct efi_boot_services *boottime; variable 60 ret = boottime->free_pool(entry_buffer); in count_child_controllers() 82 ret = boottime->open_protocol( in supported() 95 ret = boottime->close_protocol( in supported() 121 ret = boottime->open_protocol( in start() 146 ret = boottime->open_protocol( in start() 171 ret = boottime->close_protocol( in disconnect_child() 220 ret = boottime->open_protocol_information( in stop() 237 ret = boottime->free_pool(entry_buffer); in stop() 242 ret = boottime->close_protocol( in stop() [all …]
|
A D | efi_selftest_register_notify.c | 29 static struct efi_boot_services *boottime; variable 77 boottime = systable->boottime; in setup() 79 ret = boottime->create_event(EVT_NOTIFY_SIGNAL, in setup() 87 ret = boottime->register_protocol_notify(&guid1, event, in setup() 106 ret = boottime->close_event(event); in teardown() 127 ret = boottime->install_protocol_interface(&handle1, &guid1, in execute() 146 ret = boottime->free_pool(context.handles); in execute() 182 ret = boottime->free_pool(context.handles); in execute() 207 ret = boottime->free_pool(context.handles); in execute() 213 ret = boottime->uninstall_multiple_protocol_interfaces in execute() [all …]
|
A D | efi_selftest_watchdog.c | 33 static struct efi_boot_services *boottime; variable 53 ret = boottime->set_watchdog_timer(1, 0, 0, NULL); in notify() 75 boottime = systable->boottime; in setup() 79 ret = boottime->create_event(EVT_TIMER | EVT_NOTIFY_SIGNAL, in setup() 87 ret = boottime->create_event(EVT_TIMER | EVT_NOTIFY_WAIT, in setup() 136 ret = boottime->set_watchdog_timer(300, 0, 0, NULL); in teardown() 142 ret = boottime->close_event(event_notify); in teardown() 150 ret = boottime->close_event(event_wait); in teardown() 177 ret = boottime->set_watchdog_timer(1, 0, 0, NULL); in execute() 184 ret = boottime->set_timer(event_notify, EFI_TIMER_PERIODIC, in execute() [all …]
|
A D | efi_selftest_mem.c | 15 static struct efi_boot_services *boottime; variable 27 boottime = systable->boottime; in setup() 44 ret = boottime->calculate_crc32(c1, 16, &crc32); in execute() 53 boottime->copy_mem(&c1[5], &c1[3], 8); in execute() 58 boottime->copy_mem(&c2[3], &c2[5], 8); in execute() 63 boottime->set_mem(&c1[3], 8, 'x'); in execute()
|
A D | efi_selftest_startimage_exit.c | 23 static struct efi_boot_services *boottime; variable 56 ret = boottime->allocate_pool(EFI_LOADER_DATA, img.length, in decompress() 62 boottime->set_mem(buf, img.length, 0); in decompress() 71 boottime->copy_mem(buf + addr, img.lines[i].line, len); in decompress() 88 boottime = systable->boottime; in setup() 106 r = boottime->free_pool(image); in teardown() 130 ret = boottime->load_image(false, image_handle, NULL, image, in execute() 136 ret = boottime->start_image(handle, &exit_data_size, &exit_data); in execute() 146 ret = boottime->free_pool(exit_data); in execute()
|
A D | efi_selftest_config_table.c | 15 static struct efi_boot_services *boottime; variable 52 ret = boottime->calculate_crc32(table, hdr->headersize, &res); in check_table() 77 boottime = systable->boottime; in setup() 101 ret = boottime->create_event_ex(0, TPL_NOTIFY, in execute() 120 ret = boottime->check_event(event); in execute() 137 ret = boottime->install_configuration_table(&table_guid, in execute() 144 ret = boottime->check_event(event); in execute() 175 ret = boottime->install_configuration_table(&table_guid, in execute() 182 ret = boottime->check_event(event); in execute() 226 ret = boottime->check_event(event); in execute() [all …]
|
A D | efi_selftest_startimage_return.c | 23 static struct efi_boot_services *boottime; variable 56 ret = boottime->allocate_pool(EFI_LOADER_DATA, img.length, in decompress() 62 boottime->set_mem(buf, img.length, 0); in decompress() 71 boottime->copy_mem(buf + addr, img.lines[i].line, len); in decompress() 88 boottime = systable->boottime; in setup() 106 r = boottime->free_pool(image); in teardown() 127 ret = boottime->load_image(false, image_handle, NULL, image, in execute() 133 ret = boottime->start_image(handle, NULL, NULL); in execute()
|
A D | efi_selftest_memory.c | 18 static struct efi_boot_services *boottime; variable 33 boottime = systable->boottime; in setup() 113 ret = boottime->allocate_pages(EFI_ALLOCATE_ANY_PAGES, in execute() 120 ret = boottime->allocate_pages(EFI_ALLOCATE_ANY_PAGES, in execute() 129 ret = boottime->get_memory_map(&map_size, NULL, &map_key, &desc_size, in execute() 138 ret = boottime->allocate_pool(EFI_BOOT_SERVICES_DATA, map_size, in execute() 144 ret = boottime->get_memory_map(&map_size, memory_map, &map_key, in execute() 160 ret = boottime->free_pages(p1, EFI_ST_NUM_PAGES); in execute() 165 ret = boottime->free_pages(p2, EFI_ST_NUM_PAGES); in execute() 170 ret = boottime->free_pool(memory_map); in execute()
|
A D | efi_selftest_block_device.c | 26 static struct efi_boot_services *boottime; variable 150 boottime->set_mem(buf, img.length, 0); in decompress() 192 boottime = systable->boottime; in setup() 199 ret = boottime->install_protocol_interface( in setup() 221 boottime->copy_mem(dp, &vendor_node, in setup() 257 r = boottime->uninstall_protocol_interface( in teardown() 268 r = boottime->free_pool(image); in teardown() 324 ret = boottime->locate_handle_buffer( in execute() 348 ret = boottime->free_pool(handles); in execute() 461 boottime->set_mem(buf, sizeof(buf), 0); in execute() [all …]
|
A D | efi_selftest_event_groups.c | 16 static struct efi_boot_services *boottime; variable 46 boottime = systable->boottime; in setup() 67 ret = boottime->create_event_ex(0, TPL_NOTIFY, in execute() 77 ret = boottime->signal_event(events[i]); in execute() 91 ret = boottime->check_event(events[j]); in execute() 105 ret = boottime->check_event(events[j]); in execute() 123 ret = boottime->close_event(events[i]); in execute()
|
A D | efi_selftest_load_file.c | 39 static struct efi_boot_services *boottime; variable 185 boottime->set_mem(buf, img.length, 0); in decompress() 194 boottime->copy_mem(buf + addr, img.lines[i].line, len); in decompress() 295 boottime = systable->boottime; in efi_st_load_file_setup() 300 ret = boottime->install_multiple_protocol_interfaces( in efi_st_load_file_setup() 311 ret = boottime->install_multiple_protocol_interfaces( in efi_st_load_file_setup() 336 ret = boottime->uninstall_multiple_protocol_interfaces( in efi_st_load_file_teardown() 365 ret = boottime->free_pool(image); in efi_st_load_file_teardown() 403 ret = boottime->unload_image(handle); in efi_st_load_file_execute() 422 ret = boottime->unload_image(handle); in efi_st_load_file_execute() [all …]
|
A D | efi_selftest_exception.c | 43 static struct efi_boot_services *boottime; variable 76 ret = boottime->allocate_pool(EFI_LOADER_DATA, img.length, in decompress() 82 boottime->set_mem(buf, img.length, 0); in decompress() 91 boottime->copy_mem(buf + addr, img.lines[i].line, len); in decompress() 108 boottime = systable->boottime; in setup() 128 ret = boottime->load_image(false, image_handle, &dp.dp, image, in execute() 134 ret = boottime->start_image(handle, NULL, NULL); in execute()
|
A D | efi_selftest_devicepath_util.c | 12 static struct efi_boot_services *boottime; variable 32 boottime = systable->boottime; in setup() 72 ret = boottime->free_pool(node); in create_single_node_device_path() 131 ret = boottime->free_pool(dp1); in execute() 160 ret = boottime->free_pool(dp2); in execute() 179 ret = boottime->free_pool(dp1); in execute() 208 ret = boottime->free_pool(dp2); in execute() 213 ret = boottime->free_pool(dp3); in execute() 240 ret = boottime->free_pool(dp2); in execute() 261 ret = boottime->free_pool(dp2); in execute() [all …]
|
A D | efi_selftest_loaded_image.c | 15 static struct efi_boot_services *boottime; variable 27 boottime = systable->boottime; in setup() 50 ret = boottime->protocols_per_handle(image_handle, &protocol_buffer, in execute() 71 ret = boottime->free_pool(protocol_buffer); in execute() 80 ret = boottime->open_protocol(image_handle, &loaded_image_protocol_guid, in execute()
|
A D | efi_selftest_textinput.c | 17 static struct efi_boot_services *boottime; variable 29 boottime = systable->boottime; in setup() 62 ret = boottime->wait_for_event(1, &con_in->wait_for_key, in execute() 75 boottime->set_watchdog_timer(300, 0, 0, NULL); in execute()
|
A D | efi_selftest_set_virtual_address_map.c | 13 static const struct efi_boot_services *boottime; variable 85 boottime = systable->boottime; in setup() 88 ret = boottime->create_event(EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE, in setup() 96 ret = boottime->get_memory_map(&map_size, NULL, &map_key, &desc_size, in setup() 105 ret = boottime->allocate_pool(EFI_BOOT_SERVICES_DATA, map_size, in setup() 111 ret = boottime->get_memory_map(&map_size, memory_map, &map_key, in setup() 117 ret = boottime->allocate_pages(EFI_ALLOCATE_ANY_PAGES, in setup() 123 ret = boottime->allocate_pages(EFI_ALLOCATE_ANY_PAGES, in setup()
|
A D | efi_selftest_rng.c | 15 static struct efi_boot_services *boottime; variable 28 boottime = systable->boottime; in setup() 50 ret = boottime->locate_protocol(&efi_rng_guid, NULL, (void **)&rng); in execute() 67 ret = boottime->allocate_pool(EFI_LOADER_DATA, size, in execute() 103 ret = boottime->free_pool(algo_list); in execute()
|
A D | efi_selftest_exitbootservices.c | 13 static struct efi_boot_services *boottime; variable 44 boottime = systable->boottime; in setup() 47 ret = boottime->create_event(EVT_SIGNAL_EXIT_BOOT_SERVICES, in setup()
|
A D | efi_selftest_gop.c | 12 static struct efi_boot_services *boottime; variable 28 boottime = systable->boottime; in setup() 30 ret = boottime->locate_protocol(&efi_gop_guid, NULL, (void **)&gop); in setup() 83 ret = boottime->free_pool(info); in execute()
|
A D | efi_selftest_tcg2.c | 13 static struct efi_boot_services *boottime; variable 26 boottime = systable->boottime; in efi_st_tcg2_setup() 44 ret = boottime->locate_protocol(&guid_tcg2, NULL, (void **)&tcg2); in efi_st_tcg2_execute()
|