Searched refs:RTC_DAY (Results 1 – 6 of 6) sorted by relevance
48 #define RTC_DAY 0x3 macro118 0x07 < data[RTC_DAY] || 0x00 == data[RTC_DAY] || in rtc_validate()132 data[RTC_DAY] = 0x02; in rtc_validate()159 tmp->tm_wday = bcd2bin(data[RTC_DAY] & 0x07) - 1; in rtc_get()188 data[RTC_DAY] = bin2bcd(tmp->tm_wday + 1) & 0x07; in rtc_set()
30 #define RTC_DAY 4 macro67 writeb(bin2bcd(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY); in ds1742_rtc_set_time()95 week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK; in ds1742_rtc_read_time()180 if (!(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG)) in ds1742_rtc_probe()
35 #define RTC_DAY (RTC_OFFSET + 12) macro83 writeb(bin2bcd(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY); in ds1553_rtc_set_time()111 week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK; in ds1553_rtc_read_time()
38 #define RTC_DAY (RTC_OFFSET + 12) macro83 writeb(bin2bcd(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY); in stk17ta8_rtc_set_time()113 week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK; in stk17ta8_rtc_read_time()
32 RTC_DAY = 3, enumerator175 tm->tm_mday = data[RTC_DAY] & config->rtc_count_day_mask; in da9063_data_to_tm()190 data[RTC_DAY] = tm->tm_mday & config->rtc_count_day_mask; in da9063_tm_to_data()
20 #define RTC_DAY 6 macro