Searched refs:wf_rounded (Results 1 – 1 of 1) sorted by relevance
146 const struct pwm_waveform *wf_rounded) in pwm_check_rounding() argument151 if (wf->period_length_ns < wf_rounded->period_length_ns) in pwm_check_rounding()154 if (wf->duty_length_ns < wf_rounded->duty_length_ns) in pwm_check_rounding()157 if (wf->duty_offset_ns < wf_rounded->duty_offset_ns) in pwm_check_rounding()324 struct pwm_waveform wf_rounded; in __pwm_set_waveform() local340 err = __pwm_round_waveform_fromhw(chip, pwm, &wfhw, &wf_rounded); in __pwm_set_waveform()344 if (IS_ENABLED(CONFIG_PWM_DEBUG) && !pwm_check_rounding(wf, &wf_rounded)) in __pwm_set_waveform()347 wf_rounded.duty_length_ns, wf_rounded.period_length_ns, wf_rounded.duty_offset_ns); in __pwm_set_waveform()349 if (exact && pwmwfcmp(wf, &wf_rounded)) { in __pwm_set_waveform()352 wf_rounded.duty_length_ns, wf_rounded.period_length_ns, wf_rounded.duty_offset_ns); in __pwm_set_waveform()[all …]