Searched refs:wday (Results 1 – 3 of 3) sorted by relevance
/drivers/rtc/ |
D | rtc-mv.c | 73 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()
|
D | rtc-ds1216.c | 21 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()
|
D | rtc-pl031.c | 121 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()
|