Searched refs:dty (Results 1 – 4 of 4) sorted by relevance
| /OK3568_Linux_fs/kernel/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 308 dty = (unsigned long long)raw_dty * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture() 309 result->duty_cycle = DIV_ROUND_UP_ULL(dty, rate); in stm32_pwm_capture() 325 unsigned long long prd, div, dty; in stm32_pwm_config() local 365 dty = prd * duty_ns; in stm32_pwm_config() 366 do_div(dty, period_ns); in stm32_pwm_config() 368 write_ccrx(priv, ch, dty); in stm32_pwm_config()
|
| H A D | pwm-sun4i.c | 170 u32 *dty, u32 *prd, unsigned int *prsclr, in sun4i_pwm_calculate() argument 225 *dty = div; in sun4i_pwm_calculate()
|
| /OK3568_Linux_fs/u-boot/arch/m68k/include/asm/coldfire/ |
| H A D | pwm.h | 44 u8 dty[4]; /* 0x18 Channel n Duty */ 48 u8 dty[8]; /* 0x1C Channel n Duty */
|