• Home
  • Raw
  • Download

Lines Matching refs:base

160 static void alarmtimer_enqueue(struct alarm_base *base, struct alarm *alarm)  in alarmtimer_enqueue()  argument
163 timerqueue_del(&base->timerqueue, &alarm->node); in alarmtimer_enqueue()
165 timerqueue_add(&base->timerqueue, &alarm->node); in alarmtimer_enqueue()
178 static void alarmtimer_dequeue(struct alarm_base *base, struct alarm *alarm) in alarmtimer_dequeue() argument
183 timerqueue_del(&base->timerqueue, &alarm->node); in alarmtimer_dequeue()
200 struct alarm_base *base = &alarm_bases[alarm->type]; in alarmtimer_fired() local
205 spin_lock_irqsave(&base->lock, flags); in alarmtimer_fired()
206 alarmtimer_dequeue(base, alarm); in alarmtimer_fired()
207 spin_unlock_irqrestore(&base->lock, flags); in alarmtimer_fired()
210 restart = alarm->function(alarm, base->gettime()); in alarmtimer_fired()
212 spin_lock_irqsave(&base->lock, flags); in alarmtimer_fired()
215 alarmtimer_enqueue(base, alarm); in alarmtimer_fired()
218 spin_unlock_irqrestore(&base->lock, flags); in alarmtimer_fired()
220 trace_alarmtimer_fired(alarm, base->gettime()); in alarmtimer_fired()
227 struct alarm_base *base = &alarm_bases[alarm->type]; in alarm_expires_remaining() local
228 return ktime_sub(alarm->node.expires, base->gettime()); in alarm_expires_remaining()
264 struct alarm_base *base = &alarm_bases[i]; in alarmtimer_suspend() local
268 spin_lock_irqsave(&base->lock, flags); in alarmtimer_suspend()
269 next = timerqueue_getnext(&base->timerqueue); in alarmtimer_suspend()
270 spin_unlock_irqrestore(&base->lock, flags); in alarmtimer_suspend()
273 delta = ktime_sub(next->expires, base->gettime()); in alarmtimer_suspend()
358 struct alarm_base *base = &alarm_bases[alarm->type]; in alarm_start() local
361 spin_lock_irqsave(&base->lock, flags); in alarm_start()
363 alarmtimer_enqueue(base, alarm); in alarm_start()
365 spin_unlock_irqrestore(&base->lock, flags); in alarm_start()
367 trace_alarmtimer_start(alarm, base->gettime()); in alarm_start()
378 struct alarm_base *base = &alarm_bases[alarm->type]; in alarm_start_relative() local
380 start = ktime_add_safe(start, base->gettime()); in alarm_start_relative()
387 struct alarm_base *base = &alarm_bases[alarm->type]; in alarm_restart() local
390 spin_lock_irqsave(&base->lock, flags); in alarm_restart()
393 alarmtimer_enqueue(base, alarm); in alarm_restart()
394 spin_unlock_irqrestore(&base->lock, flags); in alarm_restart()
407 struct alarm_base *base = &alarm_bases[alarm->type]; in alarm_try_to_cancel() local
411 spin_lock_irqsave(&base->lock, flags); in alarm_try_to_cancel()
414 alarmtimer_dequeue(base, alarm); in alarm_try_to_cancel()
415 spin_unlock_irqrestore(&base->lock, flags); in alarm_try_to_cancel()
417 trace_alarmtimer_cancel(alarm, base->gettime()); in alarm_try_to_cancel()
475 struct alarm_base *base = &alarm_bases[alarm->type]; in alarm_forward_now() local
477 return alarm_forward(alarm, base->gettime(), interval); in alarm_forward_now()
485 struct alarm_base *base; in alarmtimer_freezerset() local
491 base = &alarm_bases[ALARM_REALTIME]; in alarmtimer_freezerset()
495 base = &alarm_bases[ALARM_BOOTTIME]; in alarmtimer_freezerset()
503 delta = ktime_sub(absexp, base->gettime()); in alarmtimer_freezerset()
632 struct alarm_base *base = &alarm_bases[alarm->type]; in alarm_timer_arm() local
635 expires = ktime_add_safe(expires, base->gettime()); in alarm_timer_arm()
668 struct alarm_base *base = &alarm_bases[clock2alarm(which_clock)]; in alarm_clock_get() local
673 *tp = ktime_to_timespec64(base->gettime()); in alarm_clock_get()