Searched refs:period_length_ns (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/spi/ |
| H A D | spi-offload-trigger-pwm.c | 50 wf.period_length_ns = DIV_ROUND_UP_ULL(NSEC_PER_SEC, periodic->frequency_hz); in spi_offload_trigger_pwm_validate() 52 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() 78 wf.period_length_ns = DIV_ROUND_UP_ULL(NSEC_PER_SEC, periodic->frequency_hz); in spi_offload_trigger_pwm_enable() 80 wf.duty_length_ns = wf.period_length_ns / 2; in spi_offload_trigger_pwm_enable()
|
| /linux/drivers/pwm/ |
| H A D | pwm-max7360.c | 78 wfhw->enabled = !!wf->period_length_ns; in max7360_pwm_round_waveform_tohw() 80 if (wf->period_length_ns && wf->period_length_ns < MAX7360_PWM_PERIOD_NS) in max7360_pwm_round_waveform_tohw() 91 wf->period_length_ns = wfhw->enabled ? MAX7360_PWM_PERIOD_NS : 0; in max7360_pwm_round_waveform_fromhw()
|
| 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()
|
| /linux/include/uapi/linux/ |
| H A D | pwm.h | 21 __u64 period_length_ns; member
|
| /linux/drivers/iio/adc/ |
| H A D | ad7625.c | 182 cnv_wf.period_length_ns = clamp(target, 100UL, 10UL * NSEC_PER_USEC); in ad7625_set_sampling_freq() 198 clk_gate_wf.period_length_ns = cnv_wf.period_length_ns; in ad7625_set_sampling_freq()
|
| /linux/include/trace/events/ |
| H A D | pwm.h | 38 __entry->wf ## _period_length_ns = wf->period_length_ns; \
|
| /linux/drivers/hwmon/ |
| H A D | adt7470.c | 922 if (actual_period > wf->period_length_ns) in adt7470_pwm_round_waveform_tohw() 945 wf->period_length_ns = DIV_ROUND_UP_ULL(NSEC_PER_SEC, data->pwm_freq); in adt7470_pwm_round_waveform_fromhw() 947 wf->duty_length_ns = DIV_ROUND_UP_ULL((u64)wfhw->val * wf->period_length_ns, in adt7470_pwm_round_waveform_fromhw()
|