Lines Matching refs:rate

275 	uint32_t *rate, uint32_t slow_clock, uint32_t sysclk, uint32_t clk_sys)  in get_apb0_periph_clkrate()  argument
281 *rate = slow_clock; in get_apb0_periph_clkrate()
297 *rate = sysclk; in get_apb0_periph_clkrate()
302 *rate = clk_sys; in get_apb0_periph_clkrate()
309 *rate /= (pclken->div + 1); in get_apb0_periph_clkrate()
316 uint32_t *rate, uint32_t clk_sys) in get_apb1_periph_clkrate() argument
321 *rate = clk_sys; in get_apb1_periph_clkrate()
328 *rate = CLOCK_FREQ_16MHZ; in get_apb1_periph_clkrate()
331 *rate = CLOCK_FREQ_32MHZ; in get_apb1_periph_clkrate()
341 *rate = CLOCK_FREQ_16MHZ; in get_apb1_periph_clkrate()
344 *rate = CLOCK_FREQ_32MHZ; in get_apb1_periph_clkrate()
348 *rate = CLOCK_FREQ_64MHZ; in get_apb1_periph_clkrate()
360 *rate = CLOCK_FREQ_16MHZ; in get_apb1_periph_clkrate()
367 *rate = CLOCK_FREQ_16MHZ; in get_apb1_periph_clkrate()
371 *rate = CLOCK_FREQ_16MHZ; in get_apb1_periph_clkrate()
376 *rate = CLOCK_FREQ_16MHZ; in get_apb1_periph_clkrate()
380 *rate = CLOCK_FREQ_16MHZ; in get_apb1_periph_clkrate()
383 *rate = STM32_LSE_FREQ; in get_apb1_periph_clkrate()
395 *rate /= (pclken->div + 1); in get_apb1_periph_clkrate()
403 uint32_t *rate) in stm32_clock_control_get_subsys_rate() argument
465 *rate = clk_sys; in stm32_clock_control_get_subsys_rate()
468 return get_apb0_periph_clkrate(pclken, rate, slow_clock, in stm32_clock_control_get_subsys_rate()
471 return get_apb1_periph_clkrate(pclken, rate, clk_sys); in stm32_clock_control_get_subsys_rate()
473 *rate = sysclk; in stm32_clock_control_get_subsys_rate()
476 *rate = STM32_LSE_FREQ; in stm32_clock_control_get_subsys_rate()
479 *rate = clk_lsi; in stm32_clock_control_get_subsys_rate()
482 *rate = slow_clock; in stm32_clock_control_get_subsys_rate()
485 *rate = CLOCK_FREQ_16MHZ; in stm32_clock_control_get_subsys_rate()
488 *rate = CLOCK_FREQ_32MHZ; in stm32_clock_control_get_subsys_rate()
505 *rate /= (pclken->div + 1); in stm32_clock_control_get_subsys_rate()