/Linux-v5.10/arch/m68k/atari/ |
D | time.c | 200 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0; in atari_tt_hwclk() local 217 wday = t->tm_wday + (t->tm_wday >= 0); in atari_tt_hwclk() 236 if (wday >= 0) in atari_tt_hwclk() 237 wday = bin2bcd(wday); in atari_tt_hwclk() 269 wday = RTC_READ( RTC_DAY_OF_WEEK ); in atari_tt_hwclk() 278 if (wday >= 0) RTC_WRITE( RTC_DAY_OF_WEEK, wday ); in atari_tt_hwclk() 298 wday = bcd2bin(wday); in atari_tt_hwclk() 314 t->tm_wday = wday - 1; in atari_tt_hwclk()
|
/Linux-v5.10/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-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 | 794 int wday, ret; in mcp794xx_set_alarm() local 799 wday = mcp794xx_alm_weekday(dev, &t->time); in mcp794xx_set_alarm() 800 if (wday < 0) in mcp794xx_set_alarm() 801 return wday; in mcp794xx_set_alarm() 819 regs[6] = wday; in mcp794xx_set_alarm()
|
/Linux-v5.10/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-v5.10/arch/m68k/mac/ |
D | misc.c | 558 int days, rem, y, wday, yday; in unmktime() local 576 wday = (4 + days) % 7; /* Day in the week. Not currently used */ in unmktime() 577 if (wday < 0) wday += 7; in unmktime()
|
/Linux-v5.10/net/netfilter/ |
D | nft_meta.c | 41 u8 wday; in nft_meta_weekday() local 45 wday = (4 + dse) % NFT_META_DAYS_PER_WEEK; in nft_meta_weekday() 47 return wday; in nft_meta_weekday()
|