Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/pwm/
Dpwm-stm32-lp.c40 u32 val, mask, cfgr, presc = 0; in stm32_pwm_lp_apply() local
70 presc++; in stm32_pwm_lp_apply()
71 if ((1 << presc) > STM32_LPTIM_MAX_PRESCALER) { in stm32_pwm_lp_apply()
75 div = prd >> presc; in stm32_pwm_lp_apply()
94 if ((FIELD_GET(STM32_LPTIM_PRESC, cfgr) != presc) || in stm32_pwm_lp_apply()
96 val = FIELD_PREP(STM32_LPTIM_PRESC, presc); in stm32_pwm_lp_apply()
165 u32 val, presc, prd; in stm32_pwm_lp_get_state() local
175 presc = FIELD_GET(STM32_LPTIM_PRESC, val); in stm32_pwm_lp_get_state()
180 tmp = (tmp << presc) * NSEC_PER_SEC; in stm32_pwm_lp_get_state()
185 tmp = (tmp << presc) * NSEC_PER_SEC; in stm32_pwm_lp_get_state()
/Linux-v6.6/drivers/watchdog/
Dstm32_iwdg.c89 u32 tout, presc, iwdg_rlr, iwdg_pr, iwdg_sr; in stm32_iwdg_start() local
97 presc = DIV_ROUND_UP(tout * wdt->rate, RLR_MAX + 1); in stm32_iwdg_start()
100 presc = roundup_pow_of_two(presc); in stm32_iwdg_start()
101 iwdg_pr = presc <= 1 << PR_SHIFT ? 0 : ilog2(presc) - PR_SHIFT; in stm32_iwdg_start()
102 iwdg_rlr = ((tout * wdt->rate) / presc) - 1; in stm32_iwdg_start()
/Linux-v6.6/drivers/media/dvb-frontends/
Dstv6110.c252 u32 divider, ref, p, presc, i, result_freq, vco_freq; in stv6110_set_frequency() local
269 presc = 0; in stv6110_set_frequency()
272 presc = 1; in stv6110_set_frequency()
275 presc = 0; in stv6110_set_frequency()
278 presc = 1; in stv6110_set_frequency()
286 priv->regs[RSTV6110_TUNING2] |= (presc << 5); in stv6110_set_frequency()
Ddib0070.c258 u8 presc; member
401 FBDiv = (VCOF_kHz / state->current_tune_table_index->presc / FREF); in dib0070_tune_digital()
402 Rest = (VCOF_kHz / state->current_tune_table_index->presc) - FBDiv * FREF; in dib0070_tune_digital()
/Linux-v6.6/drivers/iio/adc/
Dstm32-adc-core.c184 u32 presc; member
211 u32 ckmode, presc, val; in stm32h7_adc_clk_sel() local
244 presc = stm32h7_adc_ckmodes_spec[i].presc; in stm32h7_adc_clk_sel()
275 presc = stm32h7_adc_ckmodes_spec[i].presc; in stm32h7_adc_clk_sel()
299 val |= presc << STM32H7_PRESC_SHIFT; in stm32h7_adc_clk_sel()
/Linux-v6.6/include/linux/platform_data/
Dtouchscreen-s3c2410.h11 int presc; member
/Linux-v6.6/drivers/spi/
Dspi-stm32-qspi.c97 u32 presc; member
372 cr |= FIELD_PREP(CR_PRESC_MASK, flash->presc); in stm32_qspi_send()
646 u32 presc, mode; in stm32_qspi_setup() local
669 presc = DIV_ROUND_UP(qspi->clk_rate, spi->max_speed_hz) - 1; in stm32_qspi_setup()
673 flash->presc = presc; in stm32_qspi_setup()
/Linux-v6.6/drivers/i2c/busses/
Di2c-stm32f7.c249 u8 presc; member
538 v->presc = p; in stm32f7_i2c_compute_timing()
576 u32 prescaler = (v->presc + 1) * i2cclk; in stm32f7_i2c_compute_timing()
617 output->presc = s->presc; in stm32f7_i2c_compute_timing()
625 output->presc, in stm32f7_i2c_compute_timing()
743 timing |= STM32F7_I2C_TIMINGR_PRESC(t->presc); in stm32f7_i2c_hw_config()