Lines Matching +full:key +full:- +full:code
1 // SPDX-License-Identifier: GPL-2.0+
8 * The unicode character and the scan code are printed for text
28 * efi_key_notify_function() - key notification function
30 * This function is called when the registered key is hit.
32 * @key_data: next key
33 * Return: status code
55 .key = { in setup()
66 boottime = systable->boottime; in setup()
68 ret = boottime->locate_protocol(&text_input_ex_protocol_guid, NULL, in setup()
77 ret = con_in_ex->register_key_notify(con_in_ex, &key_data, in setup()
102 ret = con_in_ex->unregister_key_notify in teardown()
129 ret = con_in_ex->reset(con_in_ex, true); in execute()
134 ret = con_in_ex->read_key_stroke_ex(con_in_ex, &input_key); in execute()
144 /* Wait for next key */ in execute()
145 ret = boottime->wait_for_event(1, &con_in_ex->wait_for_key_ex, in execute()
151 ret = con_in_ex->read_key_stroke_ex(con_in_ex, &input_key); in execute()
158 boottime->set_watchdog_timer(300, 0, 0, NULL); in execute()
160 efi_st_printf("Unicode char %u (%ps), scan code %u (", in execute()
161 (unsigned int)input_key.key.unicode_char, in execute()
162 efi_st_translate_char(input_key.key.unicode_char), in execute()
163 (unsigned int)input_key.key.scan_code); in execute()
185 efi_st_translate_code(input_key.key.scan_code)); in execute()