Searched refs:tr (Results 1 – 2 of 2) sorted by relevance
540 static void stm32_rtc_to_tm(uint32_t ssr, uint32_t tr, uint32_t dr, in stm32_rtc_to_tm() argument543 tm->tm_hour = ((tr & RTC_TR_HT_MASK) >> RTC_TR_HT_SHIFT) * 10 + in stm32_rtc_to_tm()544 ((tr & RTC_TR_HU_MASK) >> RTC_TR_HU_SHIFT); in stm32_rtc_to_tm()546 if (tr & RTC_TR_PM) in stm32_rtc_to_tm()552 tm->tm_sec = ((tr & RTC_TR_ST_MASK) >> RTC_TR_ST_SHIFT) * 10 + in stm32_rtc_to_tm()553 (tr & RTC_TR_SU_MASK); in stm32_rtc_to_tm()555 tm->tm_min = ((tr & RTC_TR_MNT_MASK) >> RTC_TR_MNT_SHIFT) * 10 + in stm32_rtc_to_tm()556 ((tr & RTC_TR_MNU_MASK) >> RTC_TR_MNU_SHIFT); in stm32_rtc_to_tm()659 uint32_t tr = 0; in stm32_rtc_get_time() local684 tr = io_read32(base + RTC_TR); in stm32_rtc_get_time()[all …]
139 #define PRRR_IDX(idx, tr, nos) (((tr) << (2 * (idx))) | \ argument