Lines Matching refs:timer_config
48 unsigned long timer_config; in constant_set_state_oneshot() local
52 timer_config = csr_read64(LOONGARCH_CSR_TCFG); in constant_set_state_oneshot()
53 timer_config |= CSR_TCFG_EN; in constant_set_state_oneshot()
54 timer_config &= ~CSR_TCFG_PERIOD; in constant_set_state_oneshot()
55 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_oneshot()
65 unsigned long timer_config; in constant_set_state_periodic() local
70 timer_config = period & CSR_TCFG_VAL; in constant_set_state_periodic()
71 timer_config |= (CSR_TCFG_PERIOD | CSR_TCFG_EN); in constant_set_state_periodic()
72 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_periodic()
81 unsigned long timer_config; in constant_set_state_shutdown() local
85 timer_config = csr_read64(LOONGARCH_CSR_TCFG); in constant_set_state_shutdown()
86 timer_config &= ~CSR_TCFG_EN; in constant_set_state_shutdown()
87 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_shutdown()
96 unsigned long timer_config; in constant_timer_next_event() local
99 timer_config = delta | CSR_TCFG_EN; in constant_timer_next_event()
100 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_timer_next_event()