Lines Matching full:ticks
39 u64 ticks; member
69 ctx->ticks++; in timerfd_triggered()
92 * wake-up requires ctx->ticks to be non zero, therefore we increment
108 ctx->ticks++; in timerfd_clock_was_set()
199 ctx->ticks = 0; in timerfd_setup()
256 if (ctx->ticks) in timerfd_poll()
268 u64 ticks = 0; in timerfd_read_iter() local
270 if (iov_iter_count(to) < sizeof(ticks)) in timerfd_read_iter()
277 res = wait_event_interruptible_locked_irq(ctx->wqh, ctx->ticks); in timerfd_read_iter()
281 * ticks and we do not rearm the timer. Userspace must in timerfd_read_iter()
285 ctx->ticks = 0; in timerfd_read_iter()
290 if (ctx->ticks) { in timerfd_read_iter()
291 ticks = ctx->ticks; in timerfd_read_iter()
301 ticks += alarm_forward_now( in timerfd_read_iter()
305 ticks += hrtimer_forward_now(&ctx->t.tmr, in timerfd_read_iter()
311 ctx->ticks = 0; in timerfd_read_iter()
314 if (ticks) { in timerfd_read_iter()
315 res = copy_to_iter(&ticks, sizeof(ticks), to); in timerfd_read_iter()
335 "ticks: %llu\n" in timerfd_show()
340 (unsigned long long)ctx->ticks, in timerfd_show()
359 u64 ticks; in timerfd_ioctl() local
361 if (copy_from_user(&ticks, (u64 __user *)arg, sizeof(ticks))) in timerfd_ioctl()
363 if (!ticks) in timerfd_ioctl()
368 ctx->ticks = ticks; in timerfd_ioctl()
505 * We do not update "ticks" and "expired" since the timer will be in do_timerfd_settime()
543 ctx->ticks += in do_timerfd_gettime()
548 ctx->ticks += in do_timerfd_gettime()