Lines Matching refs:clock_rate
65 uint32_t lpuartdiv_calc(const uint64_t clock_rate, const uint16_t presc_idx, in lpuartdiv_calc() argument
70 lpuartdiv = clock_rate / LPUART_PRESCALER_TAB[presc_idx]; in lpuartdiv_calc()
78 uint32_t lpuartdiv_calc(const uint64_t clock_rate, const uint32_t baud_rate) in lpuartdiv_calc() argument
82 lpuartdiv = clock_rate * LPUART_LPUARTDIV_FREQ_MUL; in lpuartdiv_calc()
124 uint32_t clock_rate; in uart_stm32_set_baudrate() local
130 &clock_rate) < 0) { in uart_stm32_set_baudrate()
137 &clock_rate) < 0) { in uart_stm32_set_baudrate()
151 lpuartdiv = lpuartdiv_calc(clock_rate, presc_idx, baud_rate); in uart_stm32_set_baudrate()
166 lpuartdiv = lpuartdiv_calc(clock_rate, baud_rate); in uart_stm32_set_baudrate()
173 clock_rate, in uart_stm32_set_baudrate()
192 clock_rate, in uart_stm32_set_baudrate()