Lines Matching refs:deadline
545 zx_status_t platform_set_oneshot_timer(zx_time_t deadline) {
548 if (deadline < 0) {
549 deadline = 0;
551 deadline = discrete_time_roundup(deadline);
552 DEBUG_ASSERT(deadline > 0);
555 // Check if the deadline would overflow the TSC.
557 if (UINT64_MAX / deadline < tsc_ticks_per_ns) {
562 const uint64_t tsc_deadline = u64_mul_u64_fp32_64(deadline, tsc_per_ns);
563 LTRACEF("Scheduling oneshot timer: %" PRIu64 " deadline\n", tsc_deadline);
569 if (now >= deadline) {
575 const zx_duration_t interval = zx_time_sub_time(deadline, now);