Home
last modified time | relevance | path

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

/linux-6.15/drivers/pwm/
H A Dpwm-stm32-lp.c37 unsigned long long prd, div, dty; in stm32_pwm_lp_apply() local
79 dty = prd * state->duty_cycle; in stm32_pwm_lp_apply()
80 do_div(dty, state->period); in stm32_pwm_lp_apply()
123 ret = regmap_write(priv->regmap, STM32_LPTIM_CMP, prd - (1 + dty)); in stm32_pwm_lp_apply()
H A Dpwm-sun4i.c171 u32 *dty, u32 *prd, unsigned int *prsclr, in sun4i_pwm_calculate() argument
226 *dty = div; in sun4i_pwm_calculate()
H A Dpwm-stm32.c537 unsigned long long prd, div, dty; in stm32_pwm_capture() local
676 dty = (unsigned long long)raw_dty * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture()
677 result->duty_cycle = DIV_ROUND_UP_ULL(dty, rate); in stm32_pwm_capture()