Lines Matching refs:regb
864 uint8_t regb; in read_rtc() local
875 regb = DS1287_DATA_REG; in read_rtc()
876 if (regb != 0xc8) { in read_rtc()
880 "incorrect (exp 0xc8, obs %x)", regb); in read_rtc()
890 regb = DS1287_DATA_REG; in read_rtc()
891 DS1287_DATA_REG = (regb | RTC_SET); in read_rtc()
939 DS1287_DATA_REG = regb; in read_rtc()
976 uint8_t regb; in write_rtc_time() local
987 regb = DS1287_DATA_REG; in write_rtc_time()
988 if (regb != 0xc8) { in write_rtc_time()
992 "incorrect (exp 0xc8, obs %x)", regb); in write_rtc_time()
1003 regb = DS1287_DATA_REG; in write_rtc_time()
1005 DS1287_DATA_REG = (regb | RTC_SET); in write_rtc_time()
1028 DS1287_DATA_REG = regb; in write_rtc_time()