Lines Matching refs:t
35 } t; member
77 t.tmr); in timerfd_tmrproc()
86 t.alarm); in timerfd_alarmproc()
182 remaining = alarm_expires_remaining(&ctx->t.alarm); in timerfd_get_remaining()
184 remaining = hrtimer_expires_remaining_adjusted(&ctx->t.tmr); in timerfd_get_remaining()
205 alarm_init(&ctx->t.alarm, in timerfd_setup()
210 hrtimer_init(&ctx->t.tmr, clockid, htmode); in timerfd_setup()
211 hrtimer_set_expires(&ctx->t.tmr, texp); in timerfd_setup()
212 ctx->t.tmr.function = timerfd_tmrproc; in timerfd_setup()
220 alarm_start(&ctx->t.alarm, texp); in timerfd_setup()
222 alarm_start_relative(&ctx->t.alarm, texp); in timerfd_setup()
224 hrtimer_start(&ctx->t.tmr, texp, htmode); in timerfd_setup()
242 alarm_cancel(&ctx->t.alarm); in timerfd_release()
244 hrtimer_cancel(&ctx->t.tmr); in timerfd_release()
303 &ctx->t.alarm, ctx->tintv) - 1; in timerfd_read()
304 alarm_restart(&ctx->t.alarm); in timerfd_read()
306 ticks += hrtimer_forward_now(&ctx->t.tmr, in timerfd_read()
308 hrtimer_restart(&ctx->t.tmr); in timerfd_read()
437 alarm_init(&ctx->t.alarm, in SYSCALL_DEFINE2()
442 hrtimer_init(&ctx->t.tmr, clockid, HRTIMER_MODE_ABS); in SYSCALL_DEFINE2()
486 if (alarm_try_to_cancel(&ctx->t.alarm) >= 0) in do_timerfd_settime()
489 if (hrtimer_try_to_cancel(&ctx->t.tmr) >= 0) in do_timerfd_settime()
495 hrtimer_cancel_wait_running(&ctx->t.alarm.timer); in do_timerfd_settime()
497 hrtimer_cancel_wait_running(&ctx->t.tmr); in do_timerfd_settime()
508 alarm_forward_now(&ctx->t.alarm, ctx->tintv); in do_timerfd_settime()
510 hrtimer_forward_now(&ctx->t.tmr, ctx->tintv); in do_timerfd_settime()
526 static int do_timerfd_gettime(int ufd, struct itimerspec64 *t) in do_timerfd_gettime() argument
542 &ctx->t.alarm, ctx->tintv) - 1; in do_timerfd_gettime()
543 alarm_restart(&ctx->t.alarm); in do_timerfd_gettime()
546 hrtimer_forward_now(&ctx->t.tmr, ctx->tintv) in do_timerfd_gettime()
548 hrtimer_restart(&ctx->t.tmr); in do_timerfd_gettime()
551 t->it_value = ktime_to_timespec64(timerfd_get_remaining(ctx)); in do_timerfd_gettime()
552 t->it_interval = ktime_to_timespec64(ctx->tintv); in do_timerfd_gettime()