Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/pwm/
H A 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()
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()
/OK3568_Linux_fs/kernel/drivers/watchdog/
H A Dstm32_iwdg.c90 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()
/OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/
H A 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()
H A 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()
/OK3568_Linux_fs/kernel/drivers/iio/adc/
H A Dstm32-adc-core.c176 u32 presc; member
203 u32 ckmode, presc, val; in stm32h7_adc_clk_sel() local
231 presc = stm32h7_adc_ckmodes_spec[i].presc; in stm32h7_adc_clk_sel()
251 presc = stm32h7_adc_ckmodes_spec[i].presc; in stm32h7_adc_clk_sel()
272 val |= presc << STM32H7_PRESC_SHIFT; in stm32h7_adc_clk_sel()
/OK3568_Linux_fs/u-boot/drivers/i2c/
H A Dstm32f7_i2c.c187 u8 presc; member
540 v->presc = p; in stm32_i2c_compute_solutions()
595 u32 prescaler = (v->presc + 1) * i2cclk; in stm32_i2c_choose_solution()
682 output->presc = s->presc; in stm32_i2c_compute_timing()
689 __func__, output->presc, in stm32_i2c_compute_timing()
766 timing |= STM32_I2C_TIMINGR_PRESC(t.presc); in stm32_i2c_hw_config()
/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-stm32-qspi.c96 u32 presc; member
363 cr |= FIELD_PREP(CR_PRESC_MASK, flash->presc); in stm32_qspi_send()
461 u32 presc; in stm32_qspi_setup() local
476 presc = DIV_ROUND_UP(qspi->clk_rate, spi->max_speed_hz) - 1; in stm32_qspi_setup()
481 flash->presc = presc; in stm32_qspi_setup()
/OK3568_Linux_fs/kernel/include/linux/platform_data/
H A Dtouchscreen-s3c2410.h11 int presc; member
/OK3568_Linux_fs/kernel/drivers/i2c/busses/
H A Di2c-stm32f7.c251 u8 presc; member
518 v->presc = p; in stm32f7_i2c_compute_timing()
556 u32 prescaler = (v->presc + 1) * i2cclk; in stm32f7_i2c_compute_timing()
597 output->presc = s->presc; in stm32f7_i2c_compute_timing()
605 output->presc, in stm32f7_i2c_compute_timing()
716 timing |= STM32F7_I2C_TIMINGR_PRESC(t->presc); in stm32f7_i2c_hw_config()
/OK3568_Linux_fs/kernel/arch/arm/mach-s3c/
H A Dmach-smartq.c165 .presc = 99,
H A Dmach-gta02.c441 .presc = 0xff, /* slow as we can go */
H A Dmach-h1940.c177 .presc = 49,
H A Dmach-rx1950.c645 .presc = 49,
H A Ddevs.c948 .presc = 49,