Lines Matching refs:timer_config
49 unsigned long timer_config; in constant_set_state_oneshot() local
53 timer_config = csr_read64(LOONGARCH_CSR_TCFG); in constant_set_state_oneshot()
54 timer_config |= CSR_TCFG_EN; in constant_set_state_oneshot()
55 timer_config &= ~CSR_TCFG_PERIOD; in constant_set_state_oneshot()
56 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_oneshot()
66 unsigned long timer_config; in constant_set_state_periodic() local
71 timer_config = period & CSR_TCFG_VAL; in constant_set_state_periodic()
72 timer_config |= (CSR_TCFG_PERIOD | CSR_TCFG_EN); in constant_set_state_periodic()
73 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_periodic()
82 unsigned long timer_config; in constant_set_state_shutdown() local
86 timer_config = csr_read64(LOONGARCH_CSR_TCFG); in constant_set_state_shutdown()
87 timer_config &= ~CSR_TCFG_EN; in constant_set_state_shutdown()
88 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_shutdown()
97 unsigned long timer_config; in constant_timer_next_event() local
100 timer_config = delta | CSR_TCFG_EN; in constant_timer_next_event()
101 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_timer_next_event()