Home
last modified time | relevance | path

Searched refs:pwmcmp (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/hw/timer/
H A Dsifive_pwm.c102 uint64_t pwmcmp = s->pwmcmp[i] & PWMCMP_MASK; in sifive_pwm_set_alarms() local
109 if (pwmcmp > pwms) { in sifive_pwm_set_alarms()
133 uint64_t pwmcmp = s->pwmcmp[i] & PWMCMP_MASK; in sifive_pwm_set_alarms() local
135 if (pwms >= pwmcmp) { in sifive_pwm_set_alarms()
256 return s->pwmcmp[0] & PWMCMP_MASK; in sifive_pwm_read()
258 return s->pwmcmp[1] & PWMCMP_MASK; in sifive_pwm_read()
260 return s->pwmcmp[2] & PWMCMP_MASK; in sifive_pwm_read()
380 s->pwmcmp[0] = 0x00000000; in sifive_pwm_reset()
381 s->pwmcmp[1] = 0x00000000; in sifive_pwm_reset()
382 s->pwmcmp[2] = 0x00000000; in sifive_pwm_reset()
[all …]
/openbmc/qemu/include/hw/timer/
H A Dsifive_pwm.h57 uint32_t pwmcmp[SIFIVE_PWM_CHANS]; member