Searched refs:dty (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/pwm/ |
H A 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()
|
H A 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 372 dty = prd * duty_ns; in stm32_pwm_config() 373 do_div(dty, period_ns); in stm32_pwm_config() 375 write_ccrx(priv, ch, dty); in stm32_pwm_config()
|
H A D | pwm-sun4i.c | 172 u32 *dty, u32 *prd, unsigned int *prsclr, in sun4i_pwm_calculate() argument 227 *dty = div; in sun4i_pwm_calculate()
|
/openbmc/u-boot/arch/m68k/include/asm/coldfire/ |
H A D | pwm.h | 43 u8 dty[4]; /* 0x18 Channel n Duty */ 47 u8 dty[8]; /* 0x1C Channel n Duty */
|