Lines Matching full:ticks
39 u64 ticks; member
69 ctx->ticks++; in timerfd_triggered()
94 * wake-up requires ctx->ticks to be non zero, therefore we increment
110 ctx->ticks++; in timerfd_clock_was_set()
201 ctx->ticks = 0; in timerfd_setup()
258 if (ctx->ticks) in timerfd_poll()
270 u64 ticks = 0; in timerfd_read() local
272 if (count < sizeof(ticks)) in timerfd_read()
278 res = wait_event_interruptible_locked_irq(ctx->wqh, ctx->ticks); in timerfd_read()
282 * ticks and we do not rearm the timer. Userspace must in timerfd_read()
286 ctx->ticks = 0; in timerfd_read()
291 if (ctx->ticks) { in timerfd_read()
292 ticks = ctx->ticks; in timerfd_read()
302 ticks += alarm_forward_now( in timerfd_read()
306 ticks += hrtimer_forward_now(&ctx->t.tmr, in timerfd_read()
312 ctx->ticks = 0; in timerfd_read()
315 if (ticks) in timerfd_read()
316 res = put_user(ticks, (u64 __user *) buf) ? -EFAULT: sizeof(ticks); in timerfd_read()
333 "ticks: %llu\n" in timerfd_show()
338 (unsigned long long)ctx->ticks, in timerfd_show()
357 u64 ticks; in timerfd_ioctl() local
359 if (copy_from_user(&ticks, (u64 __user *)arg, sizeof(ticks))) in timerfd_ioctl()
361 if (!ticks) in timerfd_ioctl()
366 ctx->ticks = ticks; in timerfd_ioctl()
503 * We do not update "ticks" and "expired" since the timer will be in do_timerfd_settime()
540 ctx->ticks += in do_timerfd_gettime()
545 ctx->ticks += in do_timerfd_gettime()