Lines Matching refs:tmr
71 volatile struct gptimer_timer_regs *tmr = ®s->timer[0]; in timer_isr() local
74 ctrl = tmr->ctrl; in timer_isr()
80 tmr->ctrl = GPTIMER_CTRL_IE | GPTIMER_CTRL_RS | in timer_isr()
94 volatile struct gptimer_timer_regs *tmr = ®s->timer[1]; in sys_clock_cycle_get_32() local
95 uint32_t counter = tmr->counter; in sys_clock_cycle_get_32()
100 static void init_downcounter(volatile struct gptimer_timer_regs *tmr) in init_downcounter() argument
102 tmr->reload = 0xFFFFFFFF; in init_downcounter()
103 tmr->ctrl = GPTIMER_CTRL_LD | GPTIMER_CTRL_RS | GPTIMER_CTRL_EN; in init_downcounter()
110 volatile struct gptimer_timer_regs *tmr = ®s->timer[0]; in sys_clock_driver_init() local
115 tmr->ctrl = GPTIMER_CTRL_IP; in sys_clock_driver_init()
116 if ((tmr->ctrl & GPTIMER_CTRL_IP) == 0) { in sys_clock_driver_init()
123 tmr->reload = 1000000U / CONFIG_SYS_CLOCK_TICKS_PER_SEC - 1; in sys_clock_driver_init()
124 tmr->ctrl = GPTIMER_CTRL_IE | GPTIMER_CTRL_LD | GPTIMER_CTRL_RS | in sys_clock_driver_init()