Home
last modified time | relevance | path

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

/linux/drivers/pwm/
H A Dpwm-apple.c54 u64 on_cycles, off_cycles; in apple_pwm_apply() local
61 off_cycles = mul_u64_u64_div_u64(fpwm->clkrate, in apple_pwm_apply()
63 if (off_cycles > 0xFFFFFFFF) in apple_pwm_apply()
64 off_cycles = 0xFFFFFFFF; in apple_pwm_apply()
67 writel(off_cycles, fpwm->base + APPLE_PWM_OFF_CYCLES); in apple_pwm_apply()
80 u32 on_cycles, off_cycles, ctrl; in apple_pwm_get_state() local
86 off_cycles = readl(fpwm->base + APPLE_PWM_OFF_CYCLES); in apple_pwm_get_state()
92 state->period = DIV64_U64_ROUND_UP(((u64)off_cycles + (u64)on_cycles) * in apple_pwm_get_state()