Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/pwm/
H A Dpwm-stm32.c175 unsigned int psc = 0, icpsc, scale; in stm32_pwm_capture() local
253 for (icpsc = 0; icpsc < MAX_TIM_ICPSC ; icpsc++) { in stm32_pwm_capture()
255 if (raw_prd >= (priv->max_arr - 0x1000) >> (icpsc + 1)) in stm32_pwm_capture()
257 if (prd >= (tmo_ms * NSEC_PER_MSEC) >> (icpsc + 2)) in stm32_pwm_capture()
261 if (!icpsc) in stm32_pwm_capture()
268 FIELD_PREP(TIM_CCMR_IC1PSC, icpsc) | in stm32_pwm_capture()
269 FIELD_PREP(TIM_CCMR_IC2PSC, icpsc)); in stm32_pwm_capture()
275 if (raw_dty >= (raw_prd >> icpsc)) { in stm32_pwm_capture()
[all...]
/kernel/linux/linux-6.6/drivers/pwm/
H A Dpwm-stm32.c175 unsigned int psc = 0, icpsc, scale; in stm32_pwm_capture() local
257 for (icpsc = 0; icpsc < MAX_TIM_ICPSC ; icpsc++) { in stm32_pwm_capture()
259 if (raw_prd >= (priv->max_arr - 0x1000) >> (icpsc + 1)) in stm32_pwm_capture()
261 if (prd >= (tmo_ms * NSEC_PER_MSEC) >> (icpsc + 2)) in stm32_pwm_capture()
265 if (!icpsc) in stm32_pwm_capture()
272 FIELD_PREP(TIM_CCMR_IC1PSC, icpsc) | in stm32_pwm_capture()
273 FIELD_PREP(TIM_CCMR_IC2PSC, icpsc)); in stm32_pwm_capture()
279 if (raw_dty >= (raw_prd >> icpsc)) { in stm32_pwm_capture()
[all...]

Completed in 2 milliseconds