Lines Matching +full:one +full:- +full:shot
1 // SPDX-License-Identifier: GPL-2.0+
38 * One with EVT_NOTIFY_SIGNAL, the other with EVT_NOTIFY_WAIT.
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()
101 * while waiting for 100 ms single shot timer.
103 * Run a 100 ms single shot timer and check that it is called once
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()
127 /* Set some arbitrary non-zero value to make change detectable. */ in execute()
129 ret = boottime->wait_for_event(1, &event_wait, &index); in execute()
134 ret = boottime->check_event(event_wait); in execute()
149 ret = boottime->set_timer(event_notify, EFI_TIMER_STOP, 0); in execute()
156 ret = boottime->set_timer(event_notify, EFI_TIMER_RELATIVE, 100000); in execute()
162 ret = boottime->set_timer(event_wait, EFI_TIMER_PERIODIC, 1000000); in execute()
167 ret = boottime->wait_for_event(1, &event_wait, &index); in execute()
173 efi_st_printf("Notification count single shot: %u\n", in execute()
175 efi_st_error("Single shot timer failed\n"); in execute()
178 ret = boottime->wait_for_event(1, &event_wait, &index); in execute()
189 ret = boottime->set_timer(event_wait, EFI_TIMER_STOP, 0); in execute()