Lines Matching refs:timer_config
47 unsigned long timer_config; in constant_set_state_oneshot() local
51 timer_config = csr_read64(LOONGARCH_CSR_TCFG); in constant_set_state_oneshot()
52 timer_config |= CSR_TCFG_EN; in constant_set_state_oneshot()
53 timer_config &= ~CSR_TCFG_PERIOD; in constant_set_state_oneshot()
54 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_oneshot()
63 unsigned long timer_config; in constant_set_state_oneshot_stopped() local
67 timer_config = csr_read64(LOONGARCH_CSR_TCFG); in constant_set_state_oneshot_stopped()
68 timer_config &= ~CSR_TCFG_EN; in constant_set_state_oneshot_stopped()
69 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_oneshot_stopped()
79 unsigned long timer_config; in constant_set_state_periodic() local
84 timer_config = period & CSR_TCFG_VAL; in constant_set_state_periodic()
85 timer_config |= (CSR_TCFG_PERIOD | CSR_TCFG_EN); in constant_set_state_periodic()
86 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_set_state_periodic()
100 unsigned long timer_config; in constant_timer_next_event() local
103 timer_config = delta | CSR_TCFG_EN; in constant_timer_next_event()
104 csr_write64(timer_config, LOONGARCH_CSR_TCFG); in constant_timer_next_event()