Searched refs:AspeedTimer (Results 1 – 2 of 2) sorted by relevance
62 static inline AspeedTimerCtrlState *timer_to_ctrl(AspeedTimer *t) in timer_to_ctrl()64 const AspeedTimer (*timers)[] = (void *)t - (t->id * sizeof(*t)); in timer_to_ctrl()68 static inline bool timer_ctrl_status(AspeedTimer *t, enum timer_ctrl_op op) in timer_ctrl_status()73 static inline bool timer_enabled(AspeedTimer *t) in timer_enabled()78 static inline bool timer_overflow_interrupt(AspeedTimer *t) in timer_overflow_interrupt()83 static inline bool timer_can_pulse(AspeedTimer *t) in timer_can_pulse()88 static inline bool timer_external_clock(AspeedTimer *t) in timer_external_clock()93 static inline uint32_t calculate_rate(struct AspeedTimer *t) in calculate_rate()101 static inline uint32_t calculate_ticks(struct AspeedTimer *t, uint64_t now_ns) in calculate_ticks()110 static uint32_t calculate_min_ticks(AspeedTimer *t, uint32_t value) in calculate_min_ticks()[all …]
38 typedef struct AspeedTimer { struct52 } AspeedTimer; argument65 AspeedTimer timers[ASPEED_TIMER_NR_TIMERS];