Home
last modified time | relevance | path

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

/linux/drivers/rtc/
H A Drtc-stm32.c972 unsigned int prer, pred_a, pred_s, pred_a_max, pred_s_max, cr; in stm32_rtc_init()
989 pred_s = (rate / (pred_a + 1)) - 1; in stm32_rtc_init()
991 if (pred_s <= pred_s_max && ((pred_s + 1) * (pred_a + 1)) == rate) in stm32_rtc_init()
996 pred_s = (rate / (pred_a + 1)) - 1; in stm32_rtc_init()
998 if (((pred_s + 1) * (pred_a + 1)) == rate) in stm32_rtc_init()
1007 if (pred_s > pred_s_max || pred_a > pred_a_max) { in stm32_rtc_init()
1009 pred_s = (rate / (pred_a + 1)) - 1; in stm32_rtc_init()
1012 (rate < ((pred_a + 1) * (pred_s + 1))) ? in stm32_rtc_init()
1021 pred_s in stm32_rtc_init()
974 unsigned int prer, pred_a, pred_s, pred_a_max, pred_s_max, cr; stm32_rtc_init() local
[all...]