Searched refs:duty_length_ns (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/pwm/ |
| H A D | pwm-max7360.c | 70 if (wf->duty_length_ns >= MAX7360_PWM_PERIOD_NS) { in max7360_pwm_round_waveform_tohw() 73 duty_steps = (u32)wf->duty_length_ns * MAX7360_PWM_STEPS / MAX7360_PWM_PERIOD_NS; in max7360_pwm_round_waveform_tohw() 97 wf->duty_length_ns = MAX7360_PWM_PERIOD_NS; in max7360_pwm_round_waveform_fromhw() 99 wf->duty_length_ns = DIV_ROUND_UP(wfhw->duty_steps * MAX7360_PWM_PERIOD_NS, in max7360_pwm_round_waveform_fromhw() 102 wf->duty_length_ns = 0; in max7360_pwm_round_waveform_fromhw()
|
| H A D | core.c | 67 if (wf->duty_length_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() 88 .duty_cycle = wf->duty_length_ns, in pwm_wf2state() 95 .duty_cycle = wf->period_length_ns - wf->duty_length_ns, in pwm_wf2state() 110 .duty_length_ns = state->duty_cycle, in pwm_state2wf() 116 .duty_length_ns = state->period - state->duty_cycle, in pwm_state2wf() 134 if (a->duty_length_ns > b->duty_length_ns) in pwmwfcmp() 137 if (a->duty_length_ns < b->duty_length_ns) in pwmwfcmp() 158 if (wf->duty_length_ns < wf_rounded->duty_length_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() [all …]
|
| H A D | pwm-argon-fan-hat.c | 28 if (wf->duty_length_ns > ARGON40_FAN_HAT_PERIOD_NS) in argon_fan_hat_round_waveform_tohw() 31 *wfhw = mul_u64_u64_div_u64(wf->duty_length_ns, 100, ARGON40_FAN_HAT_PERIOD_NS); in argon_fan_hat_round_waveform_tohw() 44 wf->duty_length_ns = DIV64_U64_ROUND_UP(wf->period_length_ns * *wfhw, 100); in argon_fan_hat_round_waveform_fromhw()
|
| H A D | pwm-axi-pwmgen.c | 106 mul_u64_u32_div(wf->duty_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() 130 wf->duty_length_ns = DIV64_U64_ROUND_UP((u64)wfhw->duty_cycle_cnt * NSEC_PER_SEC, in axi_pwmgen_round_waveform_fromhw()
|
| /linux/include/uapi/linux/ |
| H A D | pwm.h | 22 __u64 duty_length_ns; member
|
| /linux/include/trace/events/ |
| H A D | pwm.h | 39 __entry->wf ## _duty_length_ns = wf->duty_length_ns; \
|
| /linux/drivers/iio/adc/ |
| H A D | ad4030.c | 637 cnv_wf.duty_length_ns = target; in ad4030_update_conversion_rate() 642 } while (cnv_wf.duty_length_ns < AD4030_TCNVH_NS); in ad4030_update_conversion_rate()
|