Searched refs:duty_pt (Results 1 – 1 of 1) sorted by relevance
155 u32 duty_pt, val; in aspeed_pwm_get_state() local165 duty_pt = FIELD_GET(PWM_ASPEED_DUTY_CYCLE_FALLING_POINT, val); in aspeed_pwm_get_state()175 if (clk_en && duty_pt) { in aspeed_pwm_get_state()176 dividend = (u64)NSEC_PER_SEC * (div_l + 1) * duty_pt in aspeed_pwm_get_state()191 u32 hwpwm = pwm->hwpwm, duty_pt, val; in aspeed_pwm_apply() local223 duty_pt = div64_u64(state->duty_cycle * priv->clk_rate, in aspeed_pwm_apply()226 state->duty_cycle, duty_pt); in aspeed_pwm_apply()239 if (duty_pt == 0) { in aspeed_pwm_apply()244 if (duty_pt >= (PWM_ASPEED_FIXED_PERIOD + 1)) in aspeed_pwm_apply()245 duty_pt = 0; in aspeed_pwm_apply()[all …]