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()
185 ctx->ticks = 0; in timerfd_setup()
242 if (ctx->ticks) in timerfd_poll()
254 u64 ticks = 0; in timerfd_read() local
256 if (count < sizeof(ticks)) in timerfd_read()
262 res = wait_event_interruptible_locked_irq(ctx->wqh, ctx->ticks); in timerfd_read()
266 * ticks and we do not rearm the timer. Userspace must in timerfd_read()
270 ctx->ticks = 0; in timerfd_read()
275 if (ctx->ticks) { in timerfd_read()
276 ticks = ctx->ticks; in timerfd_read()
286 ticks += alarm_forward_now( in timerfd_read()
290 ticks += hrtimer_forward_now(&ctx->t.tmr, in timerfd_read()
296 ctx->ticks = 0; in timerfd_read()
299 if (ticks) in timerfd_read()
300 res = put_user(ticks, (u64 __user *) buf) ? -EFAULT: sizeof(ticks); in timerfd_read()
317 "ticks: %llu\n" in timerfd_show()
322 (unsigned long long)ctx->ticks, in timerfd_show()
341 u64 ticks; in timerfd_ioctl() local
343 if (copy_from_user(&ticks, (u64 __user *)arg, sizeof(ticks))) in timerfd_ioctl()
345 if (!ticks) in timerfd_ioctl()
350 ctx->ticks = ticks; in timerfd_ioctl()
487 * We do not update "ticks" and "expired" since the timer will be in do_timerfd_settime()
524 ctx->ticks += in do_timerfd_gettime()
529 ctx->ticks += in do_timerfd_gettime()