Home
last modified time | relevance | path

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

/linux/drivers/pwm/
H A Dpwm-stm32.c478 unsigned long tmo_ms, u32 *raw_prd, in stm32_pwm_raw_capture() argument
510 *raw_prd = priv->capture[2] - priv->capture[0]; in stm32_pwm_raw_capture()
512 *raw_prd = priv->max_arr - priv->capture[0] + priv->capture[2]; in stm32_pwm_raw_capture()
522 if (*raw_dty > *raw_prd) { in stm32_pwm_raw_capture()
529 *raw_dty -= *raw_prd; in stm32_pwm_raw_capture()
546 u32 raw_prd = 0, raw_dty = 0; in stm32_pwm_capture() local
596 ret = stm32_pwm_raw_capture(chip, pwm, tmo_ms, &raw_prd, &raw_dty); in stm32_pwm_capture()
605 if (raw_prd) { in stm32_pwm_capture()
608 scale = max_arr / min(max_arr, raw_prd); in stm32_pwm_capture()
617 ret = stm32_pwm_raw_capture(chip, pwm, tmo_ms, &raw_prd, in stm32_pwm_capture()
[all …]