Lines Matching refs:ctmr
81 struct cpu_timer *ctmr) in cpu_timer_enqueue() argument
83 ctmr->head = head; in cpu_timer_enqueue()
84 return timerqueue_add(head, &ctmr->node); in cpu_timer_enqueue()
87 static inline bool cpu_timer_queued(struct cpu_timer *ctmr) in cpu_timer_queued() argument
89 return !!ctmr->head; in cpu_timer_queued()
92 static inline bool cpu_timer_dequeue(struct cpu_timer *ctmr) in cpu_timer_dequeue() argument
94 if (cpu_timer_queued(ctmr)) { in cpu_timer_dequeue()
95 timerqueue_del(ctmr->head, &ctmr->node); in cpu_timer_dequeue()
96 ctmr->head = NULL; in cpu_timer_dequeue()
102 static inline u64 cpu_timer_getexpires(struct cpu_timer *ctmr) in cpu_timer_getexpires() argument
104 return ctmr->node.expires; in cpu_timer_getexpires()
107 static inline void cpu_timer_setexpires(struct cpu_timer *ctmr, u64 exp) in cpu_timer_setexpires() argument
109 ctmr->node.expires = exp; in cpu_timer_setexpires()