Lines Matching refs:timr
594 static void alarm_timer_rearm(struct k_itimer *timr) in alarm_timer_rearm() argument
596 struct alarm *alarm = &timr->it.alarm.alarmtimer; in alarm_timer_rearm()
598 timr->it_overrun += alarm_forward_now(alarm, timr->it_interval); in alarm_timer_rearm()
607 static s64 alarm_timer_forward(struct k_itimer *timr, ktime_t now) in alarm_timer_forward() argument
609 struct alarm *alarm = &timr->it.alarm.alarmtimer; in alarm_timer_forward()
611 return alarm_forward(alarm, timr->it_interval, now); in alarm_timer_forward()
619 static ktime_t alarm_timer_remaining(struct k_itimer *timr, ktime_t now) in alarm_timer_remaining() argument
621 struct alarm *alarm = &timr->it.alarm.alarmtimer; in alarm_timer_remaining()
630 static int alarm_timer_try_to_cancel(struct k_itimer *timr) in alarm_timer_try_to_cancel() argument
632 return alarm_try_to_cancel(&timr->it.alarm.alarmtimer); in alarm_timer_try_to_cancel()
643 static void alarm_timer_wait_running(struct k_itimer *timr) in alarm_timer_wait_running() argument
645 hrtimer_cancel_wait_running(&timr->it.alarm.alarmtimer.timer); in alarm_timer_wait_running()
655 static void alarm_timer_arm(struct k_itimer *timr, ktime_t expires, in alarm_timer_arm() argument
658 struct alarm *alarm = &timr->it.alarm.alarmtimer; in alarm_timer_arm()
666 alarm_start(&timr->it.alarm.alarmtimer, expires); in alarm_timer_arm()