Home
last modified time | relevance | path

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

/linux/drivers/pwm/
H A Dcore.c64 if (wf->period_length_ns > S64_MAX) in DEFINE_GUARD()
67 if (wf->duty_length_ns > wf->period_length_ns) in DEFINE_GUARD()
74 if (wf->duty_offset_ns && wf->duty_offset_ns >= wf->period_length_ns) in DEFINE_GUARD()
82 if (wf->period_length_ns) { in pwm_wf2state()
83 if (wf->duty_length_ns + wf->duty_offset_ns < wf->period_length_ns) in pwm_wf2state()
87 .period = wf->period_length_ns, in pwm_wf2state()
94 .period = wf->period_length_ns, in pwm_wf2state()
95 .duty_cycle = wf->period_length_ns - wf->duty_length_ns, in pwm_wf2state()
109 .period_length_ns = state->period, in pwm_state2wf()
115 .period_length_ns = state->period, in pwm_state2wf()
[all …]
H A Dpwm-max7360.c79 wfhw->enabled = !!wf->period_length_ns; in max7360_pwm_round_waveform_tohw()
81 if (wf->period_length_ns && wf->period_length_ns < MAX7360_PWM_PERIOD_NS) in max7360_pwm_round_waveform_tohw()
92 wf->period_length_ns = wfhw->enabled ? MAX7360_PWM_PERIOD_NS : 0; in max7360_pwm_round_waveform_fromhw()
H A Dpwm-axi-pwmgen.c80 if (wf->period_length_ns == 0) { in axi_pwmgen_round_waveform_tohw()
89 mul_u64_u32_div(wf->period_length_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()
127 wf->period_length_ns = DIV64_U64_ROUND_UP((u64)wfhw->period_cnt * NSEC_PER_SEC, in axi_pwmgen_round_waveform_fromhw()
H A Dpwm-argon-fan-hat.c43 wf->period_length_ns = ARGON40_FAN_HAT_PERIOD_NS; in argon_fan_hat_round_waveform_fromhw()
44 wf->duty_length_ns = DIV64_U64_ROUND_UP(wf->period_length_ns * *wfhw, 100); in argon_fan_hat_round_waveform_fromhw()
/linux/include/uapi/linux/
H A Dpwm.h21 __u64 period_length_ns; member
/linux/include/trace/events/
H A Dpwm.h38 __entry->wf ## _period_length_ns = wf->period_length_ns; \
/linux/drivers/iio/adc/
H A Dad4030.c627 cnv_wf.period_length_ns = DIV_ROUND_CLOSEST(NSEC_PER_SEC, cnv_rate_hz); in ad4030_update_conversion_rate()
649 if (!in_range(cnv_wf.period_length_ns, AD4030_TCYC_NS, INT_MAX)) in ad4030_update_conversion_rate()