/external/linux-kselftest/tools/testing/selftests/rtc/ |
D | rtctest.c | 168 struct rtc_wkalrm alarm = { 0 }; in TEST_F() local 175 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F() 178 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; in TEST_F() 179 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F() 181 alarm.enabled = 1; in TEST_F() 183 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm); in TEST_F() 190 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm); in TEST_F() 194 alarm.time.tm_mday, alarm.time.tm_mon + 1, in TEST_F() 195 alarm.time.tm_year + 1900, alarm.time.tm_hour, in TEST_F() 196 alarm.time.tm_min, alarm.time.tm_sec); in TEST_F() [all …]
|
/external/grpc-grpc/test/cpp/common/ |
D | alarm_test.cc | 37 Alarm alarm; in TEST() local 38 alarm.Set(&cq, grpc_timeout_seconds_to_deadline(1), junk); in TEST() 57 Alarm alarm; in TEST() local 60 alarm.experimental().Set( in TEST() 75 Alarm alarm; in TEST() local 78 alarm.experimental().Set(grpc_timeout_seconds_to_deadline(0), [c](bool ok) { in TEST() 92 Alarm alarm; in TEST() local 95 alarm.experimental().Set( in TEST() 116 Alarm alarm; in TEST() local 118 std::thread t1([&alarm, &cq, &junk] { in TEST() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | slow_operation_alarm.cc | 45 auto* alarm = *it; in AlarmLoop() local 47 if (alarm->deadline() <= now) { in AlarmLoop() 50 alarm->counter() == nullptr ? 0 : alarm->counter()->fetch_add(1); in AlarmLoop() 55 LOG(ERROR) << alarm->msg(); in AlarmLoop() 75 void ScheduleAlarm(SlowOperationAlarm* alarm) { in ScheduleAlarm() argument 84 outstanding_alarms->push_back(alarm); in ScheduleAlarm() 88 void UnscheduleAlarm(const SlowOperationAlarm* alarm) { in UnscheduleAlarm() argument 91 auto it = absl::c_find(*outstanding_alarms, alarm); in UnscheduleAlarm()
|
/external/grpc-grpc/src/cpp/common/ |
D | alarm.cc | 63 AlarmImpl* alarm = static_cast<AlarmImpl*>(arg); in Set() local 64 alarm->Ref(); in Set() 66 alarm->cq_, alarm, error, in Set() 68 arg, &alarm->completion_); in Set() 81 AlarmImpl* alarm = static_cast<AlarmImpl*>(arg); in Set() local 82 alarm->callback_(error == GRPC_ERROR_NONE); in Set() 83 alarm->Unref(); in Set()
|
/external/autotest/client/cros/power/ |
D | sys_power.py | 257 alarm, wakeup_count = prepare_wakeup(seconds) 258 rtc.set_wake_alarm(alarm) 267 if e.errno == errno.EBUSY and rtc.get_seconds() >= alarm: 278 check_wakeup(alarm) 290 alarm, _ = prepare_wakeup(seconds) 291 rtc.set_wake_alarm(alarm) 292 while rtc.get_seconds() < alarm: 303 return alarm
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
D | 9-1.c | 57 alarm(10); in main() 59 ret = alarm(10); in main() 75 ret = alarm(10); in main() 96 alarm(0); in main()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/signal/ |
D | signal.c | 66 alarm(0); /* Disable any pending */ in test_signal() 67 alarm(2); in test_signal() 82 alarm(0); /* Disable any pending */ in test_signal() 84 alarm(TIMEOUT); in test_signal()
|
D | signal_tm.c | 68 alarm(0); /* Disable any pending */ in test_signal_tm() 70 alarm(TIMEOUT); in test_signal_tm()
|
/external/ltp/testcases/kernel/syscalls/alarm/ |
D | alarm03.c | 25 TEST(alarm(100)); in verify_alarm() 29 TEST(alarm(0)); in verify_alarm() 42 TEST(alarm(0)); in verify_alarm()
|
D | alarm06.c | 43 alarm(2); in verify_alarm() 46 ret = alarm(0); in verify_alarm()
|
D | alarm05.c | 28 ret = alarm(10); in run() 36 ret = alarm(1); in run()
|
D | alarm02.c | 36 ret = alarm(tc->sec); in verify_alarm() 44 TEST(alarm(0)); in verify_alarm()
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl15.c | 148 alarm(60); in dochild1() 151 alarm((unsigned)0); in dochild1() 223 alarm(60); in dofork() 226 alarm((unsigned)0); in dofork() 299 alarm(60); in dochild2() 302 alarm((unsigned)0); in dochild2() 479 alarm(60); in run_test() 482 alarm((unsigned)0); in run_test()
|
/external/python/cpython2/Doc/library/ |
D | signal.rst | 42 of execution. Any thread can perform an :func:`alarm`, :func:`getsignal`, 135 .. function:: alarm(time) 138 sent to the process in *time* seconds. Any previously scheduled alarm is 139 canceled (only one alarm can be scheduled at any time). The returned value is 140 then the number of seconds before any previously set alarm was to have been 141 delivered. If *time* is zero, no alarm is scheduled, and any scheduled alarm is 142 canceled. If the return value is zero, no alarm is currently scheduled. (See 143 the Unix man page :manpage:`alarm(2)`.) Availability: Unix. 169 :func:`alarm`) and after that every *interval* seconds. The interval 253 Here is a minimal example program. It uses the :func:`alarm` function to limit [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_threadsignals.py | 60 signal.alarm(1) 63 signal.alarm(0) 97 signal.alarm(1) 107 signal.alarm(0) 138 signal.alarm(1) 145 signal.alarm(0)
|
/external/igt-gpu-tools/tests/ |
D | drm_read.c | 77 alarm(0); in setup() 97 alarm(0); in teardown() 107 alarm(1); in test_invalid_buffer() 131 alarm(1); in test_fault_buffer() 144 alarm(1); in test_empty() 161 alarm(3); in test_short_buffer()
|
/external/ltp/testcases/kernel/syscalls/kill/ |
D | kill02.c | 311 (void)alarm(TIMEOUT); in parent_rout() 316 (void)alarm(TIMEOUT); in parent_rout() 320 (void)alarm(0); /*Reset the alarm clock. */ in parent_rout() 433 (void)alarm(TIMEOUT); in parent_rout() 537 (void)alarm(TIMEOUT - 40); in child1_rout() 541 (void)alarm(TIMEOUT - 40); in child1_rout() 545 (void)alarm(0); /*Reset the alarm clock. */ in child1_rout()
|
/external/iputils/ |
D | tftpd.c | 186 alarm(0); in main() 379 alarm(rexmtval); /* read the ack */ in sendfile() 381 alarm(0); in sendfile() 444 alarm(rexmtval); in recvfile() 446 alarm(0); in recvfile() 482 alarm(rexmtval); in recvfile() 484 alarm(0); in recvfile()
|
/external/llvm/lib/Support/Unix/ |
D | Watchdog.inc | 22 alarm(seconds); 28 alarm(0);
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/Unix/ |
D | Watchdog.inc | 22 alarm(seconds); 28 alarm(0);
|
/external/linux-kselftest/tools/testing/selftests/prctl/ |
D | disable-tsc-ctxt-sw-stress-test.c | 52 alarm(10); in segvtask() 73 alarm(10); in rdtsctask()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/Unix/ |
D | Watchdog.inc | 24 alarm(seconds); 30 alarm(0);
|
/external/ltp/testcases/kernel/syscalls/rt_sigsuspend/ |
D | rt_sigsuspend01.c | 37 alarm(1); in verify_rt_sigsuspend() 41 alarm(0); in verify_rt_sigsuspend()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | tcp_client_custom.cc | 40 grpc_timer alarm; member 90 grpc_timer_cancel(&connect->alarm); in custom_connect_callback() 145 grpc_timer_init(&connect->alarm, deadline, &connect->on_alarm); in tcp_connect()
|
/external/u-boot/arch/arm/dts/ |
D | kirkwood-lsxl.dtsi | 37 pmx_led_alarm: pmx-led-alarm { 146 alarm { 147 label = "lsxl:red:alarm"; 178 alarm-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
|