Home
last modified time | relevance | path

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

/openbmc/linux/drivers/pwm/
H A Dpwm-stm32.c34 u32 max_arr; member
142 *raw_prd = priv->max_arr - priv->capture[0] + priv->capture[2]; in stm32_pwm_raw_capture()
150 *raw_dty = priv->max_arr - priv->capture[0] + priv->capture[3]; in stm32_pwm_raw_capture()
202 while ((div > priv->max_arr) && (psc < MAX_TIM_PSC)) { in stm32_pwm_capture()
207 regmap_write(priv->regmap, TIM_ARR, priv->max_arr); in stm32_pwm_capture()
236 u32 max_arr = priv->max_arr - 0x1000; /* arbitrary margin */ in stm32_pwm_capture() local
238 scale = max_arr / min(max_arr, raw_prd); in stm32_pwm_capture()
240 scale = priv->max_arr; /* bellow resolution, use max scale */ in stm32_pwm_capture()
259 if (raw_prd >= (priv->max_arr - 0x1000) >> (icpsc + 1)) in stm32_pwm_capture()
339 while (div > priv->max_arr) { in stm32_pwm_config()
[all …]
/openbmc/linux/drivers/counter/
H A Dstm32-timer-cnt.c34 u32 max_arr; member
170 if (ceiling > priv->max_arr) in stm32_count_ceiling_write()
339 priv->max_arr = ddata->max_arr; in stm32_timer_cnt_probe()
/openbmc/linux/drivers/iio/trigger/
H A Dstm32-timer-trigger.c93 u32 max_arr; member
136 while (div > priv->max_arr) { in stm32_timer_start()
797 priv->max_arr = ddata->max_arr; in stm32_timer_trigger_probe()
/openbmc/linux/include/linux/mfd/
H A Dstm32-timers.h124 u32 max_arr; member
/openbmc/linux/drivers/mfd/
H A Dstm32-timers.c172 regmap_read(ddata->regmap, TIM_ARR, &ddata->max_arr); in stm32_timers_get_arr_size()