Searched refs:presc (Results 1 – 8 of 8) sorted by relevance
| /linux/drivers/pwm/ |
| H A D | pwm-stm32-lp.c | 96 u32 cfgr, presc; in stm32_pwm_lp_compare_channel_apply() local 111 presc = FIELD_GET(STM32_LPTIM_PRESC, cfgr); in stm32_pwm_lp_compare_channel_apply() 112 rate = clk_get_rate(priv->clk) >> presc; in stm32_pwm_lp_compare_channel_apply() 128 u32 arr, val, mask, cfgr, presc = 0; in stm32_pwm_lp_apply() local 176 presc++; in stm32_pwm_lp_apply() 177 if ((1 << presc) > STM32_LPTIM_MAX_PRESCALER) { in stm32_pwm_lp_apply() 181 div = prd >> presc; in stm32_pwm_lp_apply() 202 if ((FIELD_GET(STM32_LPTIM_PRESC, cfgr) != presc) || (arr != prd - 1)) in stm32_pwm_lp_apply() 213 if ((FIELD_GET(STM32_LPTIM_PRESC, cfgr) != presc) || in stm32_pwm_lp_apply() 215 val = FIELD_PREP(STM32_LPTIM_PRESC, presc); in stm32_pwm_lp_apply() [all …]
|
| /linux/drivers/watchdog/ |
| H A D | stm32_iwdg.c | 100 u32 tout, ptot, presc, iwdg_rlr, iwdg_ewcr, iwdg_pr, iwdg_sr; in stm32_iwdg_start() local 113 presc = DIV_ROUND_UP(tout * wdt->rate, RLR_MAX + 1); in stm32_iwdg_start() 116 presc = roundup_pow_of_two(presc); in stm32_iwdg_start() 117 iwdg_pr = presc <= 1 << PR_SHIFT ? 0 : ilog2(presc) - PR_SHIFT; in stm32_iwdg_start() 118 iwdg_rlr = ((tout * wdt->rate) / presc) - 1; in stm32_iwdg_start() 119 iwdg_ewcr = ((ptot * wdt->rate) / presc) - 1; in stm32_iwdg_start()
|
| /linux/drivers/media/dvb-frontends/ |
| H A 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()
|
| H A 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()
|
| /linux/drivers/iio/adc/ |
| H A D | stm32-adc-core.c | 185 u32 presc; member 212 u32 ckmode, presc, val; in stm32h7_adc_clk_sel() local 245 presc = stm32h7_adc_ckmodes_spec[i].presc; in stm32h7_adc_clk_sel() 276 presc = stm32h7_adc_ckmodes_spec[i].presc; in stm32h7_adc_clk_sel() 300 val |= presc << STM32H7_PRESC_SHIFT; in stm32h7_adc_clk_sel()
|
| /linux/drivers/tty/serial/ |
| H A D | stm32-usart.c | 54 .presc = UNDEF_REG, 76 .presc = UNDEF_REG, 99 .presc = 0x2c, 1162 u32 cr1, cr2, cr3, isr, brr, presc; in stm32_usart_set_termios() local 1273 for (presc = 0; presc <= USART_PRESC_MAX; presc++) { in stm32_usart_set_termios() 1274 uart_clk_pres = DIV_ROUND_CLOSEST(uart_clk, stm32_usart_presc_val[presc]); in stm32_usart_set_termios() 1298 if (ofs->presc != UNDEF_REG) { in stm32_usart_set_termios() 1300 writel_relaxed(presc, port->membase + ofs->presc); in stm32_usart_set_termios() 1301 } else if (presc) { in stm32_usart_set_termios() 1307 } else if (presc == USART_PRESC_MAX) { in stm32_usart_set_termios()
|
| H A D | stm32-usart.h | 23 u16 presc; member
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-stm32f7.c | 255 u8 presc; member 553 v->presc = p; in stm32f7_i2c_compute_timing() 591 u32 prescaler = (v->presc + 1) * i2cclk; in stm32f7_i2c_compute_timing() 632 output->presc = s->presc; in stm32f7_i2c_compute_timing() 640 output->presc, in stm32f7_i2c_compute_timing() 762 timing |= STM32F7_I2C_TIMINGR_PRESC(t->presc); in stm32f7_i2c_hw_config()
|