Lines Matching refs:raw_dty
107 u32 *raw_dty) in stm32_pwm_raw_capture() argument
143 *raw_dty = 0; in stm32_pwm_raw_capture()
145 *raw_dty = priv->capture[3] - priv->capture[0]; in stm32_pwm_raw_capture()
147 *raw_dty = priv->max_arr - priv->capture[0] + priv->capture[3]; in stm32_pwm_raw_capture()
149 if (*raw_dty > *raw_prd) { in stm32_pwm_raw_capture()
156 *raw_dty -= *raw_prd; in stm32_pwm_raw_capture()
173 u32 raw_prd = 0, raw_dty = 0; in stm32_pwm_capture() local
219 ret = stm32_pwm_raw_capture(priv, pwm, tmo_ms, &raw_prd, &raw_dty); in stm32_pwm_capture()
241 &raw_dty); in stm32_pwm_capture()
268 ret = stm32_pwm_raw_capture(priv, pwm, tmo_ms, &raw_prd, &raw_dty); in stm32_pwm_capture()
272 if (raw_dty >= (raw_prd >> icpsc)) { in stm32_pwm_capture()
299 raw_dty = (raw_prd >> icpsc) - (raw_prd - raw_dty); in stm32_pwm_capture()
305 dty = (unsigned long long)raw_dty * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture()