Lines Matching full:ticks
41 u64 ticks; member
71 ctx->ticks++; in timerfd_triggered()
96 * wake-up requires ctx->ticks to be non zero, therefore we increment
112 ctx->ticks++; in timerfd_clock_was_set()
187 ctx->ticks = 0; in timerfd_setup()
244 if (ctx->ticks) in timerfd_poll()
256 u64 ticks = 0; in timerfd_read() local
258 if (count < sizeof(ticks)) in timerfd_read()
264 res = wait_event_interruptible_locked_irq(ctx->wqh, ctx->ticks); in timerfd_read()
268 * ticks and we do not rearm the timer. Userspace must in timerfd_read()
272 ctx->ticks = 0; in timerfd_read()
277 if (ctx->ticks) { in timerfd_read()
278 ticks = ctx->ticks; in timerfd_read()
288 ticks += alarm_forward_now( in timerfd_read()
292 ticks += hrtimer_forward_now(&ctx->t.tmr, in timerfd_read()
298 ctx->ticks = 0; in timerfd_read()
301 if (ticks) in timerfd_read()
302 res = put_user(ticks, (u64 __user *) buf) ? -EFAULT: sizeof(ticks); in timerfd_read()
319 "ticks: %llu\n" in timerfd_show()
324 (unsigned long long)ctx->ticks, in timerfd_show()
343 u64 ticks; in timerfd_ioctl() local
345 if (copy_from_user(&ticks, (u64 __user *)arg, sizeof(ticks))) in timerfd_ioctl()
347 if (!ticks) in timerfd_ioctl()
352 ctx->ticks = ticks; in timerfd_ioctl()
492 * We do not update "ticks" and "expired" since the timer will be in do_timerfd_settime()
529 ctx->ticks += in do_timerfd_gettime()
534 ctx->ticks += in do_timerfd_gettime()