Lines Matching refs:tm
59 static void rtc_post_restore (struct rtc_time *tm, unsigned int sec) in rtc_post_restore() argument
61 time_t t = rtc_mktime(tm) + sec; in rtc_post_restore()
118 struct rtc_time tm; in rtc_post_test() local
120 tm.tm_year = ynl; in rtc_post_test()
121 tm.tm_mon = i + 1; in rtc_post_test()
122 tm.tm_mday = daysnl[i]; in rtc_post_test()
123 tm.tm_hour = 23; in rtc_post_test()
124 tm.tm_min = 59; in rtc_post_test()
125 tm.tm_sec = 59; in rtc_post_test()
126 t = rtc_mktime(&tm); in rtc_post_test()
127 rtc_to_tm(t, &tm); in rtc_post_test()
128 rtc_set (&tm); in rtc_post_test()
138 rtc_get (&tm); in rtc_post_test()
139 if (tm.tm_mon == i + 1) { in rtc_post_test()
149 struct rtc_time tm; in rtc_post_test() local
151 tm.tm_year = yl; in rtc_post_test()
152 tm.tm_mon = i + 1; in rtc_post_test()
153 tm.tm_mday = daysl[i]; in rtc_post_test()
154 tm.tm_hour = 23; in rtc_post_test()
155 tm.tm_min = 59; in rtc_post_test()
156 tm.tm_sec = 59; in rtc_post_test()
157 t = rtc_mktime(&tm); in rtc_post_test()
159 rtc_to_tm(t, &tm); in rtc_post_test()
160 rtc_set (&tm); in rtc_post_test()
170 rtc_get (&tm); in rtc_post_test()
171 if (tm.tm_mon == i + 1) { in rtc_post_test()