Home
last modified time | relevance | path

Searched refs:boottime (Results 1 – 25 of 76) sorted by relevance

1234

/openbmc/u-boot/lib/efi_selftest/
H A Defi_selftest_devicepath.c13 static struct efi_boot_services *boottime; variable
72 boottime = systable->boottime; in setup()
74 ret = boottime->locate_protocol(&guid_device_path_to_text_protocol, in setup()
83 ret = boottime->allocate_pool(EFI_LOADER_DATA, in setup()
90 ret = boottime->allocate_pool(EFI_LOADER_DATA, 2 * in setup()
97 ret = boottime->allocate_pool(EFI_LOADER_DATA, 3 * in setup()
108 boottime->copy_mem(&vendor_node.guid, &guid_vendor1, in setup()
110 boottime->copy_mem(dp1, &vendor_node, in setup()
112 boottime->copy_mem(dp2, &vendor_node, in setup()
114 boottime->copy_mem(dp3, &vendor_node, in setup()
[all …]
H A Defi_selftest_tpl.c16 static struct efi_boot_services *boottime; variable
47 boottime = systable->boottime; in setup()
49 ret = boottime->create_event(EVT_TIMER | EVT_NOTIFY_SIGNAL, 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()
119 ret = boottime->set_timer(event_notify, EFI_TIMER_PERIODIC, 100000); in execute()
125 ret = boottime->set_timer(event_wait, EFI_TIMER_RELATIVE, 1000000); in execute()
131 ret = boottime->wait_for_event(1, &event_wait, &index); in execute()
[all …]
H A Defi_selftest_events.c17 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()
115 ret = boottime->set_timer(event_notify, EFI_TIMER_PERIODIC, 100000); in execute()
121 ret = boottime->set_timer(event_wait, EFI_TIMER_RELATIVE, 1000000); in execute()
129 ret = boottime->wait_for_event(1, &event_wait, &index); in execute()
134 ret = boottime->check_event(event_wait); in execute()
[all …]
H A Defi_selftest_manageprotocols.c24 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()
107 ret = boottime->install_multiple_protocol_interfaces(&handle2, in setup()
147 ret = boottime->handle_protocol(handle1, &guid3, (void **)&interface); in execute()
156 ret = boottime->handle_protocol(handle1, &guid2, (void **)&interface); in execute()
165 ret = boottime->locate_handle_buffer(ALL_HANDLES, NULL, NULL, in execute()
183 ret = boottime->free_pool(buffer); in execute()
201 ret = boottime->uninstall_multiple_protocol_interfaces( in execute()
[all …]
H A Defi_selftest_controllers.c19 static struct efi_boot_services *boottime; variable
49 ret = boottime->open_protocol_information(handle, protocol, in count_child_controllers()
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()
139 ret = boottime->install_protocol_interface( in start()
146 ret = boottime->open_protocol( in start()
171 ret = boottime->close_protocol( in disconnect_child()
178 ret = boottime->uninstall_protocol_interface( in disconnect_child()
[all …]
H A Defi_selftest_block_device.c25 static struct efi_boot_services *boottime; variable
88 boottime->copy_mem(buffer, start, buffer_size); in read_blocks()
113 boottime->copy_mem(start, buffer, buffer_size); in write_blocks()
143 ret = boottime->allocate_pool(EFI_LOADER_DATA, img.length, in decompress()
149 boottime->set_mem(buf, img.length, 0); in decompress()
158 boottime->copy_mem(buf + addr, img.lines[i].line, len); in decompress()
191 boottime = systable->boottime; in setup()
198 ret = boottime->install_protocol_interface( in setup()
206 ret = boottime->allocate_pool(EFI_LOADER_DATA, in setup()
218 boottime->copy_mem(&vendor_node.guid, &guid_vendor, in setup()
[all …]
H A Defi_selftest_watchdog.c33 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 …]
H A Defi_selftest_config_table.c14 static struct efi_boot_services *boottime; variable
51 ret = boottime->calculate_crc32(table, hdr->headersize, &res); in check_table()
76 boottime = systable->boottime; in setup()
100 ret = boottime->create_event_ex(0, TPL_NOTIFY, in execute()
109 ret = boottime->install_configuration_table(&table_guid, NULL); in execute()
119 ret = boottime->check_event(event); in execute()
136 ret = boottime->install_configuration_table(&table_guid, in execute()
143 ret = boottime->check_event(event); in execute()
174 ret = boottime->install_configuration_table(&table_guid, in execute()
181 ret = boottime->check_event(event); in execute()
[all …]
H A Defi_selftest_memory.c18 static struct efi_boot_services *boottime; variable
33 boottime = systable->boottime; in setup()
108 ret = boottime->allocate_pages(EFI_ALLOCATE_ANY_PAGES, in execute()
115 ret = boottime->allocate_pages(EFI_ALLOCATE_ANY_PAGES, in execute()
124 ret = boottime->get_memory_map(&map_size, NULL, &map_key, &desc_size, in execute()
133 ret = boottime->allocate_pool(EFI_BOOT_SERVICES_DATA, map_size, in execute()
139 ret = boottime->get_memory_map(&map_size, memory_map, &map_key, in execute()
155 ret = boottime->free_pages(p1, EFI_ST_NUM_PAGES); in execute()
160 ret = boottime->free_pages(p2, EFI_ST_NUM_PAGES); in execute()
165 ret = boottime->free_pool(memory_map); in execute()
H A Defi_selftest_devicepath_util.c12 static struct efi_boot_services *boottime; variable
32 boottime = systable->boottime; in setup()
34 ret = boottime->locate_protocol(&guid_device_path_utilities_protocol, 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()
[all …]
H A Defi_selftest_startimage_return.c23 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()
H A Defi_selftest_startimage_exit.c23 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()
H A Defi_selftest_event_groups.c16 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()
92 ret = boottime->check_event(events[j]); in execute()
106 ret = boottime->check_event(events[j]); in execute()
124 ret = boottime->close_event(events[i]); in execute()
H A Defi_selftest_snp.c66 static struct efi_boot_services *boottime; variable
108 boottime->copy_mem(p.eth_hdr.et_dest, (void *)BROADCAST_MAC, ARP_HLEN); in send_dhcp_discover()
109 boottime->copy_mem(p.eth_hdr.et_src, &net->mode->current_address, in send_dhcp_discover()
122 boottime->set_mem(&p.ip_udp.ip_dst, 4, 0xff); in send_dhcp_discover()
140 boottime->copy_mem(&p.dhcp_hdr.chaddr, in send_dhcp_discover()
184 boottime = systable->boottime; in setup()
189 ret = boottime->create_event(EVT_TIMER, TPL_CALLBACK, NULL, NULL, in setup()
198 ret = boottime->set_timer(timer, EFI_TIMER_PERIODIC, 10000000); in setup()
206 ret = boottime->locate_protocol(&efi_net_guid, NULL, (void **)&net); in setup()
304 boottime->wait_for_event(2, events, &index); in execute()
[all …]
H A Defi_selftest_loadimage.c26 static struct efi_boot_services *boottime; variable
285 boottime->copy_mem(buffer, &image[priv.file_pos], *buffer_size); in read()
329 boottime->copy_mem(buffer, file_info, in getinfo()
340 boottime->copy_mem(buffer, file_system_info, in getinfo()
384 ret = boottime->allocate_pool(EFI_LOADER_DATA, img.length, in decompress()
390 boottime->set_mem(buf, img.length, 0); in decompress()
399 boottime->copy_mem(buf + addr, img.lines[i].line, len); in decompress()
423 boottime = systable->boottime; in setup()
428 ret = boottime->install_protocol_interface in setup()
435 ret = boottime->install_protocol_interface in setup()
[all …]
H A Defi_selftest_loaded_image.c15 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()
72 ret = boottime->free_pool(protocol_buffer); in execute()
81 ret = boottime->open_protocol(image_handle, &loaded_image_protocol_guid, in execute()
H A Defi_selftest_fdt.c16 static struct efi_boot_services *boottime; variable
93 ret = boottime->allocate_pool( in get_property()
100 boottime->copy_mem(str, &pos[3], len); in get_property()
130 boottime = systable->boottime; in setup()
159 ret = boottime->free_pool(str); in execute()
171 ret = boottime->free_pool(str); in execute()
H A Defi_selftest_exitbootservices.c13 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()
70 ret = boottime->close_event(event_notify); in teardown()
H A Defi_selftest_textinput.c17 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()
H A Defi_selftest.c17 static const struct efi_boot_services *boottime; variable
40 ret = boottime->get_memory_map(&map_size, NULL, &map_key, &desc_size, in efi_st_exit_boot_services()
49 ret = boottime->allocate_pool(EFI_BOOT_SERVICES_DATA, map_size, in efi_st_exit_boot_services()
55 ret = boottime->get_memory_map(&map_size, memory_map, &map_key, in efi_st_exit_boot_services()
61 ret = boottime->exit_boot_services(handle, map_key); in efi_st_exit_boot_services()
236 boottime = systable->boottime; in efi_selftest()
242 ret = boottime->handle_protocol(image_handle, &efi_guid_loaded_image, in efi_selftest()
278 ret = boottime->allocate_pool(EFI_RUNTIME_SERVICES_DATA, sizeof(int) * in efi_selftest()
H A Defi_selftest_textinputex.c22 static struct efi_boot_services *boottime; variable
66 boottime = systable->boottime; in setup()
68 ret = boottime->locate_protocol(&text_input_ex_protocol_guid, NULL, in setup()
145 ret = boottime->wait_for_event(1, &con_in_ex->wait_for_key_ex, in execute()
158 boottime->set_watchdog_timer(300, 0, 0, NULL); in execute()
H A Defi_selftest_hii.c15 static struct efi_boot_services *boottime; variable
38 boottime = systable->boottime; in setup()
41 ret = boottime->locate_protocol(&hii_database_protocol_guid, NULL, in setup()
50 ret = boottime->locate_protocol(&hii_string_protocol_guid, NULL, in setup()
194 ret = boottime->allocate_pool(EFI_LOADER_DATA, handles_size, in test_hii_database_list_package_lists()
208 ret = boottime->free_pool(handles); in test_hii_database_list_package_lists()
226 ret = boottime->allocate_pool(EFI_LOADER_DATA, handles_size, in test_hii_database_list_package_lists()
242 ret = boottime->free_pool(handles); in test_hii_database_list_package_lists()
260 ret = boottime->allocate_pool(EFI_LOADER_DATA, handles_size, in test_hii_database_list_package_lists()
276 ret = boottime->free_pool(handles); in test_hii_database_list_package_lists()
[all …]
H A Defi_selftest_unicode_collation.c15 static struct efi_boot_services *boottime; variable
31 boottime = systable->boottime; in setup()
33 ret = boottime->locate_protocol(&unicode_collation_protocol_guid, NULL, in setup()
179 boottime->set_mem(str, sizeof(str), 0); in test_fat_to_str()
195 boottime->set_mem(fat, sizeof(fat), 0); in test_str_to_fat()
203 boottime->set_mem(fat, 16, 0); in test_str_to_fat()
H A Defi_selftest_gop.c12 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()
/openbmc/u-boot/lib/efi_driver/
H A Defi_uclass.c36 r = EFI_CALL(systab.boottime->open_protocol( in check_node_type()
70 ret = EFI_CALL(systab.boottime->open_protocol( in efi_uc_supported()
87 r = EFI_CALL(systab.boottime->close_protocol( in efi_uc_supported()
119 ret = EFI_CALL(systab.boottime->open_protocol( in efi_uc_start()
135 r = EFI_CALL(systab.boottime->close_protocol( in efi_uc_start()
166 ret = EFI_CALL(systab.boottime->close_protocol( in disconnect_child()
173 ret = EFI_CALL(systab.boottime->uninstall_protocol_interface( in disconnect_child()
219 ret = EFI_CALL(systab.boottime->open_protocol_information( in efi_uc_stop()
234 ret = EFI_CALL(systab.boottime->free_pool(entry_buffer)); in efi_uc_stop()
239 ret = EFI_CALL(systab.boottime->close_protocol( in efi_uc_stop()

1234