Home
last modified time | relevance | path

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

/drivers/rtc/
Drtc-mv.c71 unsigned int year, month, day, hour, minute, second, wday; in mv_rtc_read_time() local
79 wday = (rtc_time >> RTC_WDAY_OFFS) & 0x7; in mv_rtc_read_time()
89 tm->tm_wday = bcd2bin(wday); in mv_rtc_read_time()
102 unsigned int year, month, day, hour, minute, second, wday; in mv_rtc_read_alarm() local
110 wday = (rtc_time >> RTC_WDAY_OFFS) & 0x7; in mv_rtc_read_alarm()
120 alm->time.tm_wday = bcd2bin(wday); in mv_rtc_read_alarm()
Drtc-ds1216.c20 u8 wday; member
95 tm->tm_wday = (regs.wday & 7) - 1; in ds1216_rtc_read_time()
122 regs.wday &= ~7; in ds1216_rtc_set_time()
123 regs.wday |= tm->tm_wday; in ds1216_rtc_set_time()
Drtc-rzn1.c187 unsigned int min, hour, wday, delta_days; in rzn1_rtc_read_alarm() local
198 wday = readl(rtc->base + RZN1_RTC_ALW); in rzn1_rtc_read_alarm()
203 delta_days = ((fls(wday) - 1) - tm->tm_wday + 7) % 7; in rzn1_rtc_read_alarm()
204 tm->tm_wday = fls(wday) - 1; in rzn1_rtc_read_alarm()
222 unsigned int days_ahead, wday; in rzn1_rtc_set_alarm() local
237 wday = (tm_now.tm_wday + days_ahead) % 7; in rzn1_rtc_set_alarm()
241 writel(BIT(wday), rtc->base + RZN1_RTC_ALW); in rzn1_rtc_set_alarm()
Drtc-pl031.c120 int wday = tm->tm_wday; in pl031_stv2_tm_to_time() local
123 if (wday < -1 || wday > 6) { in pl031_stv2_tm_to_time()
126 } else if (wday == -1) { in pl031_stv2_tm_to_time()
131 wday = calc_tm.tm_wday; in pl031_stv2_tm_to_time()
138 | ((wday + 1) << RTC_WDAY_SHIFT) in pl031_stv2_tm_to_time()
Drtc-wilco-ec.c134 int wday = tm->tm_wday == 6 ? 0 : tm->tm_wday + 1; in wilco_ec_rtc_write() local
146 rtc.weekday = bin2bcd(wday); in wilco_ec_rtc_write()
Drtc-mt7622.c155 u32 year, mon, mday, wday, hour, min, sec; in mtk_rtc_get_alarm_or_time() local
167 wday = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_DOW)); in mtk_rtc_get_alarm_or_time()
176 tm->tm_wday = wday; in mtk_rtc_get_alarm_or_time()
Drtc-ds1685.c265 u8 seconds, minutes, hours, wday, mday, month, years; in ds1685_rtc_read_time() local
272 wday = rtc->read(rtc, RTC_WDAY); in ds1685_rtc_read_time()
290 tm->tm_wday = (ds1685_rtc_bcd2bin(rtc, wday, RTC_WDAY_MASK, in ds1685_rtc_read_time()
312 u8 ctrlb, seconds, minutes, hours, wday, mday, month, years, century; in ds1685_rtc_set_time() local
321 wday = ds1685_rtc_bin2bcd(rtc, (tm->tm_wday + 1), RTC_WDAY_MASK, in ds1685_rtc_set_time()
345 (tm->tm_sec >= 60) || (wday > 7)) in ds1685_rtc_set_time()
362 rtc->write(rtc, RTC_WDAY, wday); in ds1685_rtc_set_time()
Drtc-ds1307.c779 int wday, ret; in mcp794xx_set_alarm() local
781 wday = mcp794xx_alm_weekday(dev, &t->time); in mcp794xx_set_alarm()
782 if (wday < 0) in mcp794xx_set_alarm()
783 return wday; in mcp794xx_set_alarm()
801 regs[6] = wday; in mcp794xx_set_alarm()