Lines Matching full:ticks
38 u64 ticks; member
68 ctx->ticks++; in timerfd_triggered()
93 * wake-up requires ctx->ticks to be non zero, therefore we increment
109 ctx->ticks++; in timerfd_clock_was_set()
184 ctx->ticks = 0; in timerfd_setup()
239 if (ctx->ticks) in timerfd_poll()
251 u64 ticks = 0; in timerfd_read() local
253 if (count < sizeof(ticks)) in timerfd_read()
259 res = wait_event_interruptible_locked_irq(ctx->wqh, ctx->ticks); in timerfd_read()
263 * ticks and we do not rearm the timer. Userspace must in timerfd_read()
267 ctx->ticks = 0; in timerfd_read()
272 if (ctx->ticks) { in timerfd_read()
273 ticks = ctx->ticks; in timerfd_read()
283 ticks += alarm_forward_now( in timerfd_read()
287 ticks += hrtimer_forward_now(&ctx->t.tmr, in timerfd_read()
293 ctx->ticks = 0; in timerfd_read()
296 if (ticks) in timerfd_read()
297 res = put_user(ticks, (u64 __user *) buf) ? -EFAULT: sizeof(ticks); in timerfd_read()
314 "ticks: %llu\n" in timerfd_show()
319 (unsigned long long)ctx->ticks, in timerfd_show()
338 u64 ticks; in timerfd_ioctl() local
340 if (copy_from_user(&ticks, (u64 __user *)arg, sizeof(ticks))) in timerfd_ioctl()
342 if (!ticks) in timerfd_ioctl()
347 ctx->ticks = ticks; in timerfd_ioctl()
480 * We do not update "ticks" and "expired" since the timer will be in do_timerfd_settime()
517 ctx->ticks += in do_timerfd_gettime()
522 ctx->ticks += in do_timerfd_gettime()