Searched refs:dty (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/drivers/pwm/ |
D | pwm-stm32-lp.c | 37 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()
|
D | pwm-stm32.c | 158 unsigned long long prd, div, dty; in stm32_pwm_capture() local 297 dty = (unsigned long long)raw_dty * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture() 298 result->duty_cycle = DIV_ROUND_UP_ULL(dty, rate); in stm32_pwm_capture() 314 unsigned long long prd, dty; in stm32_pwm_config() local 368 dty = mul_u64_u64_div_u64(duty_ns, clk_get_rate(priv->clk), in stm32_pwm_config() 371 regmap_write(priv->regmap, TIM_CCRx(ch + 1), dty); in stm32_pwm_config() 496 u64 dty, prd; in stm32_pwm_get_state() local 522 dty = (u64)NSEC_PER_SEC * (psc + 1) * ccr; in stm32_pwm_get_state() 523 state->duty_cycle = DIV_ROUND_UP_ULL(dty, rate); in stm32_pwm_get_state()
|
D | pwm-sun4i.c | 171 u32 *dty, u32 *prd, unsigned int *prsclr, in sun4i_pwm_calculate() argument 226 *dty = div; in sun4i_pwm_calculate()
|