Lines Matching refs:tm_year
46 atm->ui32Century = ((tm->tm_year <= 99) || (tm->tm_year >= 200)); in rtc_time_to_ambiq_time_set()
48 atm->ui32CenturyBit = ((tm->tm_year > 99) && (tm->tm_year < 200)); in rtc_time_to_ambiq_time_set()
50 atm->ui32Year = tm->tm_year; in rtc_time_to_ambiq_time_set()
51 if (tm->tm_year > 99) { in rtc_time_to_ambiq_time_set()
52 atm->ui32Year = tm->tm_year % 100; in rtc_time_to_ambiq_time_set()
74 tm->tm_year = atm->ui32Year; in ambiq_time_to_rtc_time_set()
77 tm->tm_year += 100; in ambiq_time_to_rtc_time_set()
79 tm->tm_year += 200; in ambiq_time_to_rtc_time_set()
83 tm->tm_year += 200; in ambiq_time_to_rtc_time_set()
85 tm->tm_year += 100; in ambiq_time_to_rtc_time_set()
118 if (timeptr->tm_year + TM_YEAR_REF > AMBIQ_RTC_YEAR_MAX) { in ambiq_rtc_set_time()
126 timeptr->tm_year, timeptr->tm_mon, timeptr->tm_mday, timeptr->tm_wday, in ambiq_rtc_set_time()
165 timeptr->tm_year, timeptr->tm_mon, timeptr->tm_mday, timeptr->tm_wday, in ambiq_rtc_get_time()