Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/drivers/rtc/
H A Dm41t60.c51 #define RTC_DAY 0x3 macro
121 0x07 < data[RTC_DAY] || 0x00 == data[RTC_DAY] || in rtc_validate()
135 data[RTC_DAY] = 0x02; in rtc_validate()
162 tmp->tm_wday = bcd2bin(data[RTC_DAY] & 0x07) - 1; in rtc_get()
191 data[RTC_DAY] = bin2bcd(tmp->tm_wday + 1) & 0x07; in rtc_set()
/OK3568_Linux_fs/kernel/drivers/rtc/
H A Drtc-ds1742.c31 #define RTC_DAY 4 macro
68 writeb(bin2bcd(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY); in ds1742_rtc_set_time()
96 week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK; in ds1742_rtc_read_time()
182 if (!(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG)) in ds1742_rtc_probe()
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-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-da9063.c31 RTC_DAY = 3, enumerator
174 tm->tm_mday = data[RTC_DAY] & config->rtc_count_day_mask; in da9063_data_to_tm()
189 data[RTC_DAY] = tm->tm_mday & config->rtc_count_day_mask; in da9063_tm_to_data()
/OK3568_Linux_fs/kernel/include/linux/rtc/
H A Dds1286.h20 #define RTC_DAY 6 macro