Home
last modified time | relevance | path

Searched refs:wday (Results 1 – 3 of 3) sorted by relevance

/drivers/rtc/
Drtc-mv.c73 unsigned int year, month, day, hour, minute, second, wday; in mv_rtc_read_time() local
81 wday = (rtc_time >> RTC_WDAY_OFFS) & 0x7; in mv_rtc_read_time()
91 tm->tm_wday = bcd2bin(wday); in mv_rtc_read_time()
104 unsigned int year, month, day, hour, minute, second, wday; in mv_rtc_read_alarm() local
112 wday = (rtc_time >> RTC_WDAY_OFFS) & 0x7; in mv_rtc_read_alarm()
122 alm->time.tm_wday = bcd2bin(wday); in mv_rtc_read_alarm()
Drtc-ds1216.c21 u8 wday; member
97 tm->tm_wday = (regs.wday & 7) - 1; in ds1216_rtc_read_time()
125 regs.wday &= ~7; in ds1216_rtc_set_time()
126 regs.wday |= tm->tm_wday; in ds1216_rtc_set_time()
Drtc-pl031.c121 int wday = tm->tm_wday; in pl031_stv2_tm_to_time() local
124 if (wday < -1 || wday > 6) { in pl031_stv2_tm_to_time()
127 } else if (wday == -1) { in pl031_stv2_tm_to_time()
134 wday = calc_tm.tm_wday; in pl031_stv2_tm_to_time()
141 | ((wday + 1) << RTC_WDAY_SHIFT) in pl031_stv2_tm_to_time()