Searched refs:presc (Results 1 – 7 of 7) sorted by relevance
/drivers/pwm/ |
D | pwm-stm32-lp.c | 40 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() 166 u32 val, presc, prd; in stm32_pwm_lp_get_state() local 176 presc = FIELD_GET(STM32_LPTIM_PRESC, val); in stm32_pwm_lp_get_state() 181 tmp = (tmp << presc) * NSEC_PER_SEC; in stm32_pwm_lp_get_state() 186 tmp = (tmp << presc) * NSEC_PER_SEC; in stm32_pwm_lp_get_state()
|
/drivers/watchdog/ |
D | stm32_iwdg.c | 90 u32 tout, presc, iwdg_rlr, iwdg_pr, iwdg_sr; in stm32_iwdg_start() local 98 presc = DIV_ROUND_UP(tout * wdt->rate, RLR_MAX + 1); in stm32_iwdg_start() 101 presc = roundup_pow_of_two(presc); in stm32_iwdg_start() 102 iwdg_pr = presc <= 1 << PR_SHIFT ? 0 : ilog2(presc) - PR_SHIFT; in stm32_iwdg_start() 103 iwdg_rlr = ((tout * wdt->rate) / presc) - 1; in stm32_iwdg_start()
|
/drivers/media/dvb-frontends/ |
D | stv6110.c | 252 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()
|
D | dib0070.c | 258 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()
|
/drivers/iio/adc/ |
D | stm32-adc-core.c | 176 u32 presc; member 203 u32 ckmode, presc, val; in stm32h7_adc_clk_sel() local 236 presc = stm32h7_adc_ckmodes_spec[i].presc; in stm32h7_adc_clk_sel() 267 presc = stm32h7_adc_ckmodes_spec[i].presc; in stm32h7_adc_clk_sel() 291 val |= presc << STM32H7_PRESC_SHIFT; in stm32h7_adc_clk_sel()
|
/drivers/spi/ |
D | spi-stm32-qspi.c | 97 u32 presc; member 382 cr |= FIELD_PREP(CR_PRESC_MASK, flash->presc); in stm32_qspi_send() 578 u32 presc; in stm32_qspi_setup() local 593 presc = DIV_ROUND_UP(qspi->clk_rate, spi->max_speed_hz) - 1; in stm32_qspi_setup() 597 flash->presc = presc; in stm32_qspi_setup()
|
/drivers/i2c/busses/ |
D | i2c-stm32f7.c | 249 u8 presc; member 532 v->presc = p; in stm32f7_i2c_compute_timing() 570 u32 prescaler = (v->presc + 1) * i2cclk; in stm32f7_i2c_compute_timing() 611 output->presc = s->presc; in stm32f7_i2c_compute_timing() 619 output->presc, in stm32f7_i2c_compute_timing() 737 timing |= STM32F7_I2C_TIMINGR_PRESC(t->presc); in stm32f7_i2c_hw_config()
|