Searched refs:dty (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/drivers/pwm/ |
D | pwm-stm32-lp.c | 37 unsigned long long prd, div, dty; in stm32_pwm_lp_apply() local 73 dty = prd * state->duty_cycle; in stm32_pwm_lp_apply() 74 do_div(dty, state->period); in stm32_pwm_lp_apply() 117 ret = regmap_write(priv->regmap, STM32_LPTIM_CMP, prd - (1 + dty)); in stm32_pwm_lp_apply()
|
D | pwm-stm32.c | 170 unsigned long long prd, div, dty; in stm32_pwm_capture() local 305 dty = (unsigned long long)raw_dty * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture() 306 result->duty_cycle = DIV_ROUND_UP_ULL(dty, rate); in stm32_pwm_capture() 322 unsigned long long prd, div, dty; in stm32_pwm_config() local 362 dty = prd * duty_ns; in stm32_pwm_config() 363 do_div(dty, period_ns); in stm32_pwm_config() 365 write_ccrx(priv, ch, dty); in stm32_pwm_config()
|
D | pwm-sun4i.c | 150 u32 *dty, u32 *prd, unsigned int *prsclr) in sun4i_pwm_calculate() argument 193 *dty = div; in sun4i_pwm_calculate() 199 div = (u64)pval * NSEC_PER_SEC * *dty; in sun4i_pwm_calculate()
|