Lines Matching refs:tick_offset
96 s->tick_offset) & PWMCOUNT_MASK; in sifive_pwm_set_alarms()
128 uint64_t pwmcount = (s->tick_offset) & PWMCOUNT_MASK; in sifive_pwm_set_alarms()
168 s->tick_offset = now; in sifive_pwm_interrupt()
171 s->tick_offset = 0; in sifive_pwm_interrupt()
180 ((now & PWMCOUNT_MASK) < (s->tick_offset & PWMCOUNT_MASK))) { in sifive_pwm_interrupt()
189 s->tick_offset = (now - s->tick_offset) & PWMCOUNT_MASK; in sifive_pwm_interrupt()
235 cur_time = s->tick_offset; in sifive_pwm_read()
247 cur_time = s->tick_offset; in sifive_pwm_read()
328 s->tick_offset = (now - s->tick_offset) & PWMCOUNT_MASK; in sifive_pwm_write()
341 s->tick_offset = new_offset; in sifive_pwm_write()
351 s->tick_offset = new_offset; in sifive_pwm_write()
385 s->tick_offset = sifive_pwm_ns_to_ticks(s, now); in sifive_pwm_reset()
400 VMSTATE_UINT64(tick_offset, SiFivePwmState),