/linux-6.1.9/arch/m68k/atari/ |
D | time.c | 201 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0; in atari_tt_hwclk() local 218 wday = t->tm_wday + (t->tm_wday >= 0); in atari_tt_hwclk() 237 if (wday >= 0) in atari_tt_hwclk() 238 wday = bin2bcd(wday); in atari_tt_hwclk() 270 wday = RTC_READ( RTC_DAY_OF_WEEK ); in atari_tt_hwclk() 279 if (wday >= 0) RTC_WRITE( RTC_DAY_OF_WEEK, wday ); in atari_tt_hwclk() 299 wday = bcd2bin(wday); in atari_tt_hwclk() 315 t->tm_wday = wday - 1; in atari_tt_hwclk()
|
/linux-6.1.9/drivers/rtc/ |
D | rtc-ds1216.c | 20 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()
|
D | rtc-mv.c | 71 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()
|
D | rtc-rzn1.c | 187 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()
|
D | rtc-pl031.c | 120 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()
|
D | rtc-wilco-ec.c | 134 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()
|
D | rtc-mt7622.c | 155 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()
|
D | rtc-ds1685.c | 265 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()
|
D | rtc-ds1307.c | 778 int wday, ret; in mcp794xx_set_alarm() local 780 wday = mcp794xx_alm_weekday(dev, &t->time); in mcp794xx_set_alarm() 781 if (wday < 0) in mcp794xx_set_alarm() 782 return wday; in mcp794xx_set_alarm() 800 regs[6] = wday; in mcp794xx_set_alarm()
|
/linux-6.1.9/arch/m68k/sun3x/ |
D | time.c | 53 h->wday = bin2bcd(t->tm_wday); in sun3x_hwclk() 63 t->tm_wday = bcd2bin(h->wday); in sun3x_hwclk()
|
D | time.h | 13 volatile unsigned char wday; member
|
/linux-6.1.9/arch/m68k/mac/ |
D | misc.c | 557 int days, rem, y, wday, yday; in unmktime() local 575 wday = (4 + days) % 7; /* Day in the week. Not currently used */ in unmktime() 576 if (wday < 0) wday += 7; in unmktime()
|
/linux-6.1.9/net/netfilter/ |
D | nft_meta.c | 40 u8 wday; in nft_meta_weekday() local 44 wday = (4 + dse) % NFT_META_DAYS_PER_WEEK; in nft_meta_weekday() 46 return wday; in nft_meta_weekday()
|