Home
last modified time | relevance | path

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

/linux-6.15/drivers/pwm/
H A Dcore.c63 if (wf->duty_length_ns > wf->period_length_ns) in DEFINE_GUARD()
84 .duty_cycle = wf->duty_length_ns, in pwm_wf2state()
91 .duty_cycle = wf->period_length_ns - wf->duty_length_ns, in pwm_wf2state()
106 .duty_length_ns = state->duty_cycle, in pwm_state2wf()
112 .duty_length_ns = state->period - state->duty_cycle, in pwm_state2wf()
130 if (a->duty_length_ns > b->duty_length_ns) in pwmwfcmp()
133 if (a->duty_length_ns < b->duty_length_ns) in pwmwfcmp()
154 if (wf->duty_length_ns < wf_rounded->duty_length_ns) in pwm_check_rounding()
276 wf->duty_length_ns, wf->period_length_ns, wf->duty_offset_ns); in pwm_round_waveform_might_sleep()
346 wf->duty_length_ns, wf->period_length_ns, wf->duty_offset_ns, in __pwm_set_waveform()
[all …]
H A Dpwm-axi-pwmgen.c106 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 Dpwm-stm32.c166 duty = mul_u64_u64_div_u64(wf->duty_length_ns, rate, in stm32_pwm_round_waveform_tohw()
170 if (wf->duty_length_ns && wf->duty_offset_ns && in stm32_pwm_round_waveform_tohw()
171 wf->duty_length_ns + wf->duty_offset_ns >= wf->period_length_ns) { in stm32_pwm_round_waveform_tohw()
184 pwm->hwpwm, wf->duty_length_ns, wf->period_length_ns, wf->duty_offset_ns, in stm32_pwm_round_waveform_tohw()
230 wf->duty_length_ns = in stm32_pwm_round_waveform_fromhw()
236 wf->duty_length_ns = ccr_ns; in stm32_pwm_round_waveform_fromhw()
242 wf->duty_length_ns, wf->period_length_ns, wf->duty_offset_ns); in stm32_pwm_round_waveform_fromhw()
/linux-6.15/drivers/spi/
H A Dspi-offload-trigger-pwm.c53 wf.duty_length_ns = wf.period_length_ns / 2; in spi_offload_trigger_pwm_validate()
79 wf.duty_length_ns = wf.period_length_ns / 2; in spi_offload_trigger_pwm_enable()
96 wf.duty_length_ns = 0; in spi_offload_trigger_pwm_disable()
/linux-6.15/include/trace/events/
H A Dpwm.h39 __entry->wf ## _duty_length_ns = wf->duty_length_ns; \
/linux-6.15/drivers/iio/adc/
H A Dad7625.c189 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-6.15/include/linux/
H A Dpwm.h73 u64 duty_length_ns; member