Lines Matching refs:SiFivePwmState
69 static inline uint64_t sifive_pwm_ns_to_ticks(SiFivePwmState *s, in sifive_pwm_ns_to_ticks()
75 static inline uint64_t sifive_pwm_ticks_to_ns(SiFivePwmState *s, in sifive_pwm_ticks_to_ns()
81 static inline uint64_t sifive_pwm_compute_scale(SiFivePwmState *s) in sifive_pwm_compute_scale()
86 static void sifive_pwm_set_alarms(SiFivePwmState *s) in sifive_pwm_set_alarms()
147 static void sifive_pwm_interrupt(SiFivePwmState *s, int num) in sifive_pwm_interrupt()
195 SiFivePwmState *s = opaque; in sifive_pwm_interrupt_0()
202 SiFivePwmState *s = opaque; in sifive_pwm_interrupt_1()
209 SiFivePwmState *s = opaque; in sifive_pwm_interrupt_2()
216 SiFivePwmState *s = opaque; in sifive_pwm_interrupt_3()
224 SiFivePwmState *s = opaque; in sifive_pwm_read()
275 SiFivePwmState *s = opaque; in sifive_pwm_write()
376 SiFivePwmState *s = SIFIVE_PWM(dev); in sifive_pwm_reset()
399 VMSTATE_TIMER_ARRAY(timer, SiFivePwmState, 4),
400 VMSTATE_UINT64(tick_offset, SiFivePwmState),
401 VMSTATE_UINT32(pwmcfg, SiFivePwmState),
402 VMSTATE_UINT32_ARRAY(pwmcmp, SiFivePwmState, 4),
409 DEFINE_PROP_UINT64("clock-frequency", struct SiFivePwmState,
416 SiFivePwmState *s = SIFIVE_PWM(obj); in sifive_pwm_init()
430 SiFivePwmState *s = SIFIVE_PWM(dev); in sifive_pwm_realize()
458 .instance_size = sizeof(SiFivePwmState),