| /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-pca9685.c | 190 pwm->hwpwm, wf->duty_length_ns, wf->period_length_ns, wf->duty_offset_ns, in pca9685_round_waveform_tohw() 225 duty = (unsigned)min_t(u64, wf->duty_length_ns, period_ns) / PCA9685_QUANTUM_NS(prescale); in pca9685_round_waveform_tohw() 252 pwm->hwpwm, wf->duty_length_ns, wf->period_length_ns, wf->duty_offset_ns, in pca9685_round_waveform_tohw() 279 wf->duty_length_ns = 0; in pca9685_round_waveform_fromhw() 282 wf->duty_length_ns = wf->period_length_ns; in pca9685_round_waveform_fromhw() 288 wf->duty_length_ns = (off - on) % PCA9685_COUNTER_RANGE * PCA9685_QUANTUM_NS(prescale); in pca9685_round_waveform_fromhw() 295 wf->duty_length_ns, wf->period_length_ns, wf->duty_offset_ns); in pca9685_round_waveform_fromhw()
|
| H A D | pwm-mediatek.c | 197 cnt_duty = mul_u64_u64_div_u64(wf->duty_length_ns, clk_rate, NSEC_PER_SEC) >> clkdiv; in pwm_mediatek_round_waveform_tohw() 211 pwm->hwpwm, wf->duty_length_ns, wf->period_length_ns, clk_rate, in pwm_mediatek_round_waveform_tohw() 251 .duty_length_ns = in pwm_mediatek_round_waveform_fromhw() 267 .duty_length_ns = 0, in pwm_mediatek_round_waveform_fromhw() 273 wf->duty_length_ns, wf->period_length_ns); in pwm_mediatek_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()
|
| H A D | pwm-stm32.c | 167 duty = mul_u64_u64_div_u64(wf->duty_length_ns, rate, in stm32_pwm_round_waveform_tohw() 171 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() 231 wf->duty_length_ns = in stm32_pwm_round_waveform_fromhw() 237 wf->duty_length_ns = ccr_ns; 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()
|
| /linux/drivers/spi/ |
| H A D | spi-offload-trigger-pwm.c | 53 wf.duty_length_ns = wf.period_length_ns / 2; in spi_offload_trigger_pwm_validate() 81 wf.duty_length_ns = wf.period_length_ns / 2; in spi_offload_trigger_pwm_enable() 99 wf.duty_length_ns = 0; in spi_offload_trigger_pwm_disable()
|
| /linux/rust/kernel/ |
| H A D | pwm.rs | 36 pub duty_length_ns: u64, 50 duty_length_ns: wf.duty_length_ns, 60 duty_length_ns: wf.duty_length_ns, 31 pub duty_length_ns: u64, global() field
|
| /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 | ad7625.c | 189 cnv_wf.duty_length_ns = st->info->timing_spec->conv_high_ns; in ad7625_set_sampling_freq() 201 clk_gate_wf.duty_length_ns = DIV_ROUND_UP_ULL((u64)NSEC_PER_SEC * in ad7625_set_sampling_freq()
|
| /linux/include/linux/ |
| H A D | pwm.h | 75 u64 duty_length_ns; member
|