• 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->get_ktime()); 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->get_ktime()); 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->get_ktime()); 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->get_ktime()); 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->get_ktime()); in alarm_start()
378 struct alarm_base *base = &alarm_bases[alarm->type]; in alarm_start_relative() local
380 start = ktime_add_safe(start, base->get_ktime()); 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->get_ktime()); in alarm_try_to_cancel()
475 struct alarm_base *base = &alarm_bases[alarm->type]; in __alarm_forward_now() local
476 ktime_t now = base->get_ktime(); in __alarm_forward_now()
509 struct alarm_base *base; in alarmtimer_freezerset() local
515 base = &alarm_bases[ALARM_REALTIME]; in alarmtimer_freezerset()
519 base = &alarm_bases[ALARM_BOOTTIME]; in alarmtimer_freezerset()
527 delta = ktime_sub(absexp, base->get_ktime()); in alarmtimer_freezerset()
660 struct alarm_base *base = &alarm_bases[alarm->type]; in alarm_timer_arm() local
663 expires = ktime_add_safe(expires, base->get_ktime()); in alarm_timer_arm()
696 struct alarm_base *base = &alarm_bases[clock2alarm(which_clock)]; in alarm_clock_get_timespec() local
701 base->get_timespec(tp); in alarm_clock_get_timespec()
714 struct alarm_base *base = &alarm_bases[clock2alarm(which_clock)]; in alarm_clock_get_ktime() local
719 return base->get_ktime(); in alarm_clock_get_ktime()