Searched refs:off_cycles (Results 1 – 1 of 1) sorted by relevance
55 u64 on_cycles, off_cycles; in apple_pwm_apply() local62 off_cycles = mul_u64_u64_div_u64(fpwm->clkrate, in apple_pwm_apply()64 if (off_cycles > 0xFFFFFFFF) in apple_pwm_apply()65 off_cycles = 0xFFFFFFFF; in apple_pwm_apply()68 writel(off_cycles, fpwm->base + APPLE_PWM_OFF_CYCLES); in apple_pwm_apply()81 u32 on_cycles, off_cycles, ctrl; in apple_pwm_get_state() local87 off_cycles = readl(fpwm->base + APPLE_PWM_OFF_CYCLES); in apple_pwm_get_state()93 state->period = DIV64_U64_ROUND_UP(((u64)off_cycles + (u64)on_cycles) * in apple_pwm_get_state()