Lines Matching refs:prd
37 unsigned long long prd, div, dty; in stm32_pwm_lp_apply() local
67 prd = div; in stm32_pwm_lp_apply()
74 div = prd >> presc; in stm32_pwm_lp_apply()
76 prd = div; in stm32_pwm_lp_apply()
79 dty = prd * state->duty_cycle; in stm32_pwm_lp_apply()
119 ret = regmap_write(priv->regmap, STM32_LPTIM_ARR, prd - 1); in stm32_pwm_lp_apply()
123 ret = regmap_write(priv->regmap, STM32_LPTIM_CMP, prd - (1 + dty)); in stm32_pwm_lp_apply()
164 u32 val, presc, prd; in stm32_pwm_lp_get_state() local
177 regmap_read(priv->regmap, STM32_LPTIM_ARR, &prd); in stm32_pwm_lp_get_state()
178 tmp = prd + 1; in stm32_pwm_lp_get_state()
183 tmp = prd - val; in stm32_pwm_lp_get_state()