Home
last modified time | relevance | path

Searched refs:icpsc (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/drivers/pwm/
Dpwm-stm32.c160 unsigned int psc = 0, icpsc, scale; in stm32_pwm_capture() local
242 for (icpsc = 0; icpsc < MAX_TIM_ICPSC ; icpsc++) { in stm32_pwm_capture()
244 if (raw_prd >= (priv->max_arr - 0x1000) >> (icpsc + 1)) in stm32_pwm_capture()
246 if (prd >= (tmo_ms * NSEC_PER_MSEC) >> (icpsc + 2)) in stm32_pwm_capture()
250 if (!icpsc) in stm32_pwm_capture()
257 FIELD_PREP(TIM_CCMR_IC1PSC, icpsc) | in stm32_pwm_capture()
258 FIELD_PREP(TIM_CCMR_IC2PSC, icpsc)); in stm32_pwm_capture()
264 if (raw_dty >= (raw_prd >> icpsc)) { in stm32_pwm_capture()
291 raw_dty = (raw_prd >> icpsc) - (raw_prd - raw_dty); in stm32_pwm_capture()
296 result->period = DIV_ROUND_UP_ULL(prd, rate << icpsc); in stm32_pwm_capture()