Home
last modified time | relevance | path

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

/linux/drivers/pwm/
H A Dcore.c150 const struct pwm_waveform *wf_rounded) in pwm_check_rounding() argument
155 if (wf->period_length_ns < wf_rounded->period_length_ns) in pwm_check_rounding()
158 if (wf->duty_length_ns < wf_rounded->duty_length_ns) in pwm_check_rounding()
161 if (wf->duty_offset_ns < wf_rounded->duty_offset_ns) in pwm_check_rounding()
336 struct pwm_waveform wf_rounded; in __pwm_set_waveform() local
352 err = __pwm_round_waveform_fromhw(chip, pwm, &wfhw, &wf_rounded); in __pwm_set_waveform()
356 if (IS_ENABLED(CONFIG_PWM_DEBUG) && (ret_tohw == 0) != pwm_check_rounding(wf, &wf_rounded)) in __pwm_set_waveform()
359 wf_rounded.duty_length_ns, wf_rounded.period_length_ns, wf_rounded.duty_offset_ns, ret_tohw); in __pwm_set_waveform()
361 if (exact && pwmwfcmp(wf, &wf_rounded)) { in __pwm_set_waveform()
364 wf_rounded.duty_length_ns, wf_rounded.period_length_ns, wf_rounded.duty_offset_ns); in __pwm_set_waveform()
[all …]