Lines Matching refs:timer_config
50 unsigned long timer_config; in constant_set_state_oneshot() local
54 timer_config = csr_read(LOONGARCH_CSR_TCFG); in constant_set_state_oneshot()
55 timer_config |= CSR_TCFG_EN; in constant_set_state_oneshot()
56 timer_config &= ~CSR_TCFG_PERIOD; in constant_set_state_oneshot()
57 csr_write(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_oneshot()
66 unsigned long timer_config; in constant_set_state_periodic() local
72 timer_config = period & CSR_TCFG_VAL; in constant_set_state_periodic()
73 timer_config |= (CSR_TCFG_PERIOD | CSR_TCFG_EN); in constant_set_state_periodic()
74 csr_write(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_periodic()
83 unsigned long timer_config; in constant_set_state_shutdown() local
87 timer_config = csr_read(LOONGARCH_CSR_TCFG); in constant_set_state_shutdown()
88 timer_config &= ~CSR_TCFG_EN; in constant_set_state_shutdown()
89 csr_write(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_shutdown()
98 unsigned long timer_config; in constant_timer_next_event() local
101 timer_config = delta | CSR_TCFG_EN; in constant_timer_next_event()
102 csr_write(timer_config, LOONGARCH_CSR_TCFG); in constant_timer_next_event()