Home
last modified time | relevance | path

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

/openbmc/qemu/tests/qtest/
H A Dm48t59-test.c81 static int tm_cmp(struct tm *lhs, struct tm *rhs) in tm_cmp() function
184 if (tm_cmp(&date[0], &date[1]) == 0) { in bcd_check_time()
186 } else if (tm_cmp(&date[1], &date[2]) == 0) { in bcd_check_time()
188 } else if (tm_cmp(&date[2], &date[3]) == 0) { in bcd_check_time()
194 if (!(tm_cmp(&start, datep) <= 0 && tm_cmp(datep, &end) <= 0)) { in bcd_check_time()
H A Drtc-test.c42 static int tm_cmp(struct tm *lhs, struct tm *rhs) in tm_cmp() function
151 if (tm_cmp(&date[0], &date[1]) == 0) { in check_time()
153 } else if (tm_cmp(&date[1], &date[2]) == 0) { in check_time()
155 } else if (tm_cmp(&date[2], &date[3]) == 0) { in check_time()
161 if (!(tm_cmp(&start, datep) <= 0 && tm_cmp(datep, &end) <= 0)) { in check_time()