Home
last modified time | relevance | path

Searched refs:RTC_DAY (Results 1 – 6 of 6) sorted by relevance

/openbmc/u-boot/drivers/rtc/
H A Dm41t60.c48 #define RTC_DAY 0x3 macro
118 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()
/openbmc/linux/drivers/rtc/
H A Drtc-ds1742.c30 #define RTC_DAY 4 macro
67 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()
H A Drtc-ds1553.c35 #define RTC_DAY (RTC_OFFSET + 12) macro
83 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()
H A Drtc-stk17ta8.c38 #define RTC_DAY (RTC_OFFSET + 12) macro
83 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()
H A Drtc-da9063.c32 RTC_DAY = 3, enumerator
175 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()
/openbmc/linux/include/linux/rtc/
H A Dds1286.h20 #define RTC_DAY 6 macro