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_iter() local
272 if (iov_iter_count(to) < sizeof(ticks)) in timerfd_read_iter()
279 res = wait_event_interruptible_locked_irq(ctx->wqh, ctx->ticks); in timerfd_read_iter()
283 * ticks and we do not rearm the timer. Userspace must in timerfd_read_iter()
287 ctx->ticks = 0; in timerfd_read_iter()
292 if (ctx->ticks) { in timerfd_read_iter()
293 ticks = ctx->ticks; in timerfd_read_iter()
303 ticks += alarm_forward_now( in timerfd_read_iter()
307 ticks += hrtimer_forward_now(&ctx->t.tmr, in timerfd_read_iter()
313 ctx->ticks = 0; in timerfd_read_iter()
316 if (ticks) { in timerfd_read_iter()
317 res = copy_to_iter(&ticks, sizeof(ticks), to); in timerfd_read_iter()
337 "ticks: %llu\n" in timerfd_show()
342 (unsigned long long)ctx->ticks, in timerfd_show()
361 u64 ticks; in timerfd_ioctl() local
363 if (copy_from_user(&ticks, (u64 __user *)arg, sizeof(ticks))) in timerfd_ioctl()
365 if (!ticks) in timerfd_ioctl()
370 ctx->ticks = ticks; in timerfd_ioctl()
519 * We do not update "ticks" and "expired" since the timer will be in do_timerfd_settime()
556 ctx->ticks += in do_timerfd_gettime()
561 ctx->ticks += in do_timerfd_gettime()