Searched refs:dty (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.6/drivers/pwm/ |
D | pwm-stm32-lp.c | 38 unsigned long long prd, div, dty; in stm32_pwm_lp_apply() local 80 dty = prd * state->duty_cycle; in stm32_pwm_lp_apply() 81 do_div(dty, state->period); in stm32_pwm_lp_apply() 124 ret = regmap_write(priv->regmap, STM32_LPTIM_CMP, prd - (1 + dty)); in stm32_pwm_lp_apply()
|
D | pwm-stm32.c | 173 unsigned long long prd, div, dty; in stm32_pwm_capture() local 312 dty = (unsigned long long)raw_dty * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture() 313 result->duty_cycle = DIV_ROUND_UP_ULL(dty, rate); in stm32_pwm_capture() 329 unsigned long long prd, div, dty; in stm32_pwm_config() local 369 dty = prd * duty_ns; in stm32_pwm_config() 370 do_div(dty, period_ns); in stm32_pwm_config() 372 write_ccrx(priv, ch, dty); in stm32_pwm_config()
|
D | pwm-sun4i.c | 172 u32 *dty, u32 *prd, unsigned int *prsclr, in sun4i_pwm_calculate() argument 227 *dty = div; in sun4i_pwm_calculate()
|