Home
last modified time | relevance | path

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

/linux/drivers/pwm/
H A Dcore.c74 if (wf->duty_offset_ns && wf->duty_offset_ns >= wf->period_length_ns) in DEFINE_GUARD()
83 if (wf->duty_length_ns + wf->duty_offset_ns < wf->period_length_ns) in pwm_wf2state()
111 .duty_offset_ns = 0, in pwm_state2wf()
117 .duty_offset_ns = state->duty_cycle, in pwm_state2wf()
140 if (a->duty_offset_ns > b->duty_offset_ns) in pwmwfcmp()
143 if (a->duty_offset_ns < b->duty_offset_ns) in pwmwfcmp()
161 if (wf->duty_offset_ns < wf_rounded->duty_offset_ns) in pwm_check_rounding()
271 wf_req.duty_length_ns, wf_req.period_length_ns, wf_req.duty_offset_ns, ret_tohw); in pwm_round_waveform_might_sleep()
279 wf_req.duty_length_ns, wf_req.period_length_ns, wf_req.duty_offset_ns, ret_fromhw); in pwm_round_waveform_might_sleep()
284 wf_req.duty_length_ns, wf_req.period_length_ns, wf_req.duty_offset_ns, in pwm_round_waveform_might_sleep()
[all …]
H A Dpwm_th1520.rs159 && wf.duty_offset_ns > 0 in round_waveform_tohw()
160 && wf.duty_offset_ns >= wf.period_length_ns.saturating_sub(wf.duty_length_ns); in round_waveform_tohw()
180 wf.duty_offset_ns, in round_waveform_tohw()
217 wf.duty_offset_ns = 0; in round_waveform_fromhw()
225 wf.duty_offset_ns = cycles_to_ns(duty_cycles, rate_hz); in round_waveform_fromhw()
H A Dpwm-axi-pwmgen.c109 mul_u64_u32_div(wf->duty_offset_ns, ddata->clk_rate_hz, NSEC_PER_SEC), in axi_pwmgen_round_waveform_tohw()
115 pwm->hwpwm, wf->duty_length_ns, wf->period_length_ns, wf->duty_offset_ns, in axi_pwmgen_round_waveform_tohw()
133 wf->duty_offset_ns = DIV64_U64_ROUND_UP((u64)wfhw->duty_offset_cnt * NSEC_PER_SEC, in axi_pwmgen_round_waveform_fromhw()
H A Dpwm-stm32.c171 if (wf->duty_length_ns && wf->duty_offset_ns && in stm32_pwm_round_waveform_tohw()
172 wf->duty_length_ns + wf->duty_offset_ns >= wf->period_length_ns) { in stm32_pwm_round_waveform_tohw()
186 pwm->hwpwm, wf->duty_length_ns, wf->period_length_ns, wf->duty_offset_ns, in stm32_pwm_round_waveform_tohw()
235 wf->duty_offset_ns = ccr_ns; in stm32_pwm_round_waveform_fromhw()
238 wf->duty_offset_ns = 0; in stm32_pwm_round_waveform_fromhw()
248 wf->duty_length_ns, wf->period_length_ns, wf->duty_offset_ns); in stm32_pwm_round_waveform_fromhw()
H A Dpwm-argon-fan-hat.c45 wf->duty_offset_ns = 0; in argon_fan_hat_round_waveform_fromhw()
H A Dpwm-max7360.c93 wf->duty_offset_ns = 0; in max7360_pwm_round_waveform_fromhw()
/linux/include/uapi/linux/
H A Dpwm.h23 __u64 duty_offset_ns; member
/linux/include/trace/events/
H A Dpwm.h40 __entry->wf ## _duty_offset_ns = wf->duty_offset_ns