Searched refs:duty_length_ns (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/pwm/ |
| H A D | pwm-max7360.c | 69 if (wf->duty_length_ns >= MAX7360_PWM_PERIOD_NS) { in max7360_pwm_round_waveform_tohw() 72 duty_steps = (u32)wf->duty_length_ns * MAX7360_PWM_STEPS / MAX7360_PWM_PERIOD_NS; in max7360_pwm_round_waveform_tohw() 96 wf->duty_length_ns = MAX7360_PWM_PERIOD_NS; in max7360_pwm_round_waveform_fromhw() 98 wf->duty_length_ns = DIV_ROUND_UP(wfhw->duty_steps * MAX7360_PWM_PERIOD_NS, in max7360_pwm_round_waveform_fromhw() 101 wf->duty_length_ns = 0; in max7360_pwm_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/drivers/spi/ |
| H A D | spi-offload-trigger-pwm.c | 52 wf.duty_length_ns = wf.period_length_ns / 2; in spi_offload_trigger_pwm_validate() 80 wf.duty_length_ns = wf.period_length_ns / 2; in spi_offload_trigger_pwm_enable() 98 wf.duty_length_ns = 0; in spi_offload_trigger_pwm_disable()
|
| /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 | 188 cnv_wf.duty_length_ns = st->info->timing_spec->conv_high_ns; in ad7625_set_sampling_freq() 200 clk_gate_wf.duty_length_ns = DIV_ROUND_UP_ULL((u64)NSEC_PER_SEC * in ad7625_set_sampling_freq()
|
| /linux/drivers/hwmon/ |
| H A D | adt7470.c | 907 if (wf->duty_length_ns == 0) { in adt7470_pwm_round_waveform_tohw() 926 if (wf->duty_length_ns >= actual_period) { in adt7470_pwm_round_waveform_tohw() 929 wfhw->val = mul_u64_u64_div_u64(wf->duty_length_ns, in adt7470_pwm_round_waveform_tohw() 947 wf->duty_length_ns = DIV_ROUND_UP_ULL((u64)wfhw->val * wf->period_length_ns, in adt7470_pwm_round_waveform_fromhw()
|