Searched refs:rel_dc (Results 1 – 1 of 1) sorted by relevance
232 int ret, rel_dc; in mc33xs2410_pwm_apply() local252 rel_dc = div64_u64(duty_cycle * 256, period) - 1; in mc33xs2410_pwm_apply()253 if (rel_dc >= 0) in mc33xs2410_pwm_apply()254 wr_val[1] = rel_dc; in mc33xs2410_pwm_apply()262 if (state->polarity == PWM_POLARITY_INVERSED && rel_dc >= 0) in mc33xs2410_pwm_apply()270 !(state->polarity == PWM_POLARITY_NORMAL && rel_dc < 0)) in mc33xs2410_pwm_apply()