Lines Matching refs:regs
25 timer->regs = (void *)((uintptr_t) config.vaddr + (TIMER_BASE + TIMER_REG_START * 4 - TIMER_MAP_BASE));
27 timer->regs->mux = TIMER_A_EN | (TIMESTAMP_TIMEBASE_1_US << TIMER_E_INPUT_CLK) |
30 timer->regs->timer_e = 0;
37 uint64_t initial_high = timer->regs->timer_e_hi;
38 uint64_t low = timer->regs->timer_e;
39 uint64_t high = timer->regs->timer_e_hi;
41 low = timer->regs->timer_e;
52 timer->regs->mux |= TIMER_A_MODE;
54 timer->regs->mux &= ~TIMER_A_MODE;
57 timer->regs->timer_a = timeout;
60 timer->regs->mux |= TIMER_A_EN;
67 timer->regs->mux &= ~TIMER_A_EN;