Lines Matching refs:cmos_read

30 static uint8_t cmos_read(uint8_t reg)  in cmos_read()  function
78 sec = cmos_read(RTC_SECONDS); in cmos_get_date_time()
79 min = cmos_read(RTC_MINUTES); in cmos_get_date_time()
80 hour = cmos_read(RTC_HOURS); in cmos_get_date_time()
81 mday = cmos_read(RTC_DAY_OF_MONTH); in cmos_get_date_time()
82 mon = cmos_read(RTC_MONTH); in cmos_get_date_time()
83 year = cmos_read(RTC_YEAR); in cmos_get_date_time()
85 if ((cmos_read(RTC_REG_B) & REG_B_DM) == 0) { in cmos_get_date_time()
97 if ((cmos_read(0x0B) & REG_B_24H) == 0) { in cmos_get_date_time()
194 g_assert_cmpint(cmos_read(RTC_HOURS), ==, 0x02); in set_year_20xx()
195 g_assert_cmpint(cmos_read(RTC_MINUTES), ==, 0x04); in set_year_20xx()
196 g_assert_cmpint(cmos_read(RTC_SECONDS), >=, 0x58); in set_year_20xx()
197 g_assert_cmpint(cmos_read(RTC_DAY_OF_MONTH), ==, 0x02); in set_year_20xx()
198 g_assert_cmpint(cmos_read(RTC_MONTH), ==, 0x02); in set_year_20xx()
199 g_assert_cmpint(cmos_read(RTC_YEAR), ==, 0x11); in set_year_20xx()
200 g_assert_cmpint(cmos_read(RTC_CENTURY), ==, 0x20); in set_year_20xx()
211 g_assert_cmpint(cmos_read(RTC_HOURS), ==, 0x02); in set_year_20xx()
212 g_assert_cmpint(cmos_read(RTC_MINUTES), ==, 0x04); in set_year_20xx()
213 g_assert_cmpint(cmos_read(RTC_SECONDS), >=, 0x58); in set_year_20xx()
214 g_assert_cmpint(cmos_read(RTC_DAY_OF_MONTH), ==, 0x02); in set_year_20xx()
215 g_assert_cmpint(cmos_read(RTC_MONTH), ==, 0x02); in set_year_20xx()
216 g_assert_cmpint(cmos_read(RTC_YEAR), ==, 0x80); in set_year_20xx()
217 g_assert_cmpint(cmos_read(RTC_CENTURY), ==, 0x20); in set_year_20xx()
223 g_assert_cmpint(cmos_read(RTC_HOURS), ==, 0x02); in set_year_20xx()
224 g_assert_cmpint(cmos_read(RTC_MINUTES), ==, 0x04); in set_year_20xx()
225 g_assert_cmpint(cmos_read(RTC_SECONDS), >=, 0x58); in set_year_20xx()
226 g_assert_cmpint(cmos_read(RTC_DAY_OF_MONTH), ==, 0x02); in set_year_20xx()
227 g_assert_cmpint(cmos_read(RTC_MONTH), ==, 0x02); in set_year_20xx()
228 g_assert_cmpint(cmos_read(RTC_YEAR), ==, 0x11); in set_year_20xx()
229 g_assert_cmpint(cmos_read(RTC_CENTURY), ==, 0x20); in set_year_20xx()
246 g_assert_cmpint(cmos_read(RTC_HOURS), ==, 0x02); in set_year_1980()
247 g_assert_cmpint(cmos_read(RTC_MINUTES), ==, 0x04); in set_year_1980()
248 g_assert_cmpint(cmos_read(RTC_SECONDS), >=, 0x58); in set_year_1980()
249 g_assert_cmpint(cmos_read(RTC_DAY_OF_MONTH), ==, 0x02); in set_year_1980()
250 g_assert_cmpint(cmos_read(RTC_MONTH), ==, 0x02); in set_year_1980()
251 g_assert_cmpint(cmos_read(RTC_YEAR), ==, 0x80); in set_year_1980()
252 g_assert_cmpint(cmos_read(RTC_CENTURY), ==, 0x19); in set_year_1980()
282 cmos_read(RTC_REG_C); in alarm_time()
288 cmos_write(RTC_REG_B, cmos_read(RTC_REG_B) | REG_B_AIE); in alarm_time()
299 g_assert((cmos_read(RTC_REG_C) & REG_C_AF) != 0); in alarm_time()
300 g_assert(cmos_read(RTC_REG_C) == 0); in alarm_time()
355 g_assert_cmpint(cmos_read(RTC_HOURS), ==, h); \
356 g_assert_cmpint(cmos_read(RTC_MINUTES), ==, m); \
357 g_assert_cmpint(cmos_read(RTC_SECONDS), ==, s); \
362 g_assert_cmpint(cmos_read(RTC_HOURS), ==, h); \
363 g_assert_cmpint(cmos_read(RTC_MINUTES), ==, min); \
364 g_assert_cmpint(cmos_read(RTC_SECONDS), ==, s); \
365 g_assert_cmpint(cmos_read(RTC_DAY_OF_MONTH), ==, d); \
366 g_assert_cmpint(cmos_read(RTC_MONTH), ==, m); \
367 g_assert_cmpint(cmos_read(RTC_YEAR), ==, (y & 0xFF)); \
368 g_assert_cmpint(cmos_read(RTC_CENTURY), ==, (y >> 8)); \
493 cmos_read(RTC_REG_C); in am_pm_alarm()
498 g_assert(cmos_read(RTC_HOURS) == 0x82); in am_pm_alarm()
499 g_assert((cmos_read(RTC_REG_C) & REG_C_AF) != 0); in am_pm_alarm()
520 cmos_read(RTC_REG_C); in am_pm_alarm()
525 g_assert(cmos_read(RTC_HOURS) == 0x82); in am_pm_alarm()
526 g_assert((cmos_read(RTC_REG_C) & REG_C_AF) != 0); in am_pm_alarm()
534 cmos_read(RTC_REG_C); in am_pm_alarm()
539 g_assert(cmos_read(RTC_HOURS) == 0x82); in am_pm_alarm()
540 g_assert((cmos_read(RTC_REG_C) & REG_C_AF) == 0); in am_pm_alarm()
555 cmos_read(reg); in fuzz_registers()
561 if (cmos_read(RTC_REG_A) & REG_A_UIP) { in register_b_set_flag()
564 g_assert_cmpint(cmos_read(RTC_REG_A) & REG_A_UIP, ==, 0); in register_b_set_flag()
578 cmos_write(RTC_REG_B, cmos_read(RTC_REG_B) & ~REG_B_SET); in register_b_set_flag()
605 g_assert_cmpint(cmos_read(RTC_REG_A) & REG_A_UIP, ==, 0); in divider_reset()
609 g_assert_cmpint(cmos_read(RTC_REG_A) & REG_A_UIP, !=, 0); in divider_reset()
611 g_assert_cmpint(cmos_read(RTC_REG_A) & REG_A_UIP, ==, 0); in divider_reset()
621 (void)cmos_read(RTC_REG_C); in uip_stuck()
623 g_assert_cmpint(cmos_read(RTC_REG_A) & REG_A_UIP, ==, 0); in uip_stuck()
633 g_assert_cmpint(cmos_read(RTC_REG_A) & REG_A_UIP, !=, 0); in uip_stuck()
638 g_assert_cmpint(cmos_read(RTC_REG_A) & REG_A_UIP, ==, 0); in uip_stuck()
652 g_assert((cmos_read(RTC_REG_C) & REG_C_PF) != 0); in wait_periodic_interrupt()
662 cmos_write(RTC_REG_B, cmos_read(RTC_REG_B) & in periodic_timer()
666 cmos_write(RTC_REG_B, cmos_read(RTC_REG_B) | REG_B_PIE); in periodic_timer()