Searched refs:period_length_ns (Results 1 – 7 of 7) sorted by relevance
| /linux-6.15/drivers/spi/ |
| H A D | spi-offload-trigger-pwm.c | 51 wf.period_length_ns = DIV_ROUND_UP_ULL(NSEC_PER_SEC, periodic->frequency_hz); in spi_offload_trigger_pwm_validate() 53 wf.duty_length_ns = wf.period_length_ns / 2; in spi_offload_trigger_pwm_validate() 59 periodic->frequency_hz = DIV_ROUND_UP_ULL(NSEC_PER_SEC, wf.period_length_ns); in spi_offload_trigger_pwm_validate() 77 wf.period_length_ns = DIV_ROUND_UP_ULL(NSEC_PER_SEC, periodic->frequency_hz); in spi_offload_trigger_pwm_enable() 79 wf.duty_length_ns = wf.period_length_ns / 2; in spi_offload_trigger_pwm_enable()
|
| /linux-6.15/drivers/pwm/ |
| H A D | core.c | 60 if (wf->period_length_ns > S64_MAX) in DEFINE_GUARD() 78 if (wf->period_length_ns) { in pwm_wf2state() 83 .period = wf->period_length_ns, in pwm_wf2state() 90 .period = wf->period_length_ns, in pwm_wf2state() 105 .period_length_ns = state->period, in pwm_state2wf() 111 .period_length_ns = state->period, in pwm_state2wf() 117 .period_length_ns = 0, in pwm_state2wf() 124 if (a->period_length_ns > b->period_length_ns) in pwmwfcmp() 127 if (a->period_length_ns < b->period_length_ns) in pwmwfcmp() 148 if (!wf->period_length_ns) in pwm_check_rounding() [all …]
|
| H A D | pwm-axi-pwmgen.c | 80 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 D | pwm-stm32.c | 73 if (wf->period_length_ns == 0) { in stm32_pwm_round_waveform_tohw() 106 arr = mul_u64_u64_div_u64(wf->period_length_ns, rate, in stm32_pwm_round_waveform_tohw() 139 u64 psc = mul_u64_u64_div_u64(wf->period_length_ns, rate, in stm32_pwm_round_waveform_tohw() 145 arr = mul_u64_u64_div_u64(wf->period_length_ns, rate, 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() 223 …wf->period_length_ns = stm32_pwm_mul_u64_u64_div_u64_roundup(((u64)wfhw->psc + 1) * (wfhw->arr + 1… 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() 246 .period_length_ns = 0, in stm32_pwm_round_waveform_fromhw()
|
| /linux-6.15/drivers/iio/adc/ |
| H A D | ad7625.c | 183 cnv_wf.period_length_ns = clamp(target, 100, 10 * KILO); in ad7625_set_sampling_freq() 199 clk_gate_wf.period_length_ns = cnv_wf.period_length_ns; in ad7625_set_sampling_freq()
|
| /linux-6.15/include/trace/events/ |
| H A D | pwm.h | 38 __entry->wf ## _period_length_ns = wf->period_length_ns; \
|
| /linux-6.15/include/linux/ |
| H A D | pwm.h | 72 u64 period_length_ns; member
|