Home
last modified time | relevance | path

Searched refs:mday (Results 1 – 10 of 10) sorted by relevance

/linux-5.19.10/drivers/rtc/
Dlib_test.c9 static void advance_date(int *year, int *month, int *mday, int *yday) in advance_date() argument
11 if (*mday != rtc_month_days(*month - 1, *year)) { in advance_date()
12 ++*mday; in advance_date()
17 *mday = 1; in advance_date()
44 int mday = 1; in rtc_time64_to_tm_test_date_range() local
58 year, month, mday, yday, days in rtc_time64_to_tm_test_date_range()
62 KUNIT_ASSERT_EQ_MSG(test, mday, result.tm_mday, FAIL_MSG); in rtc_time64_to_tm_test_date_range()
65 advance_date(&year, &month, &mday, &yday); in rtc_time64_to_tm_test_date_range()
Drtc-ds1685.c142 ds1685_rtc_check_mday(struct ds1685_priv *rtc, u8 mday) in ds1685_rtc_check_mday() argument
145 if (mday < 0x01 || mday > 0x31 || (mday & 0x0f) > 0x09) in ds1685_rtc_check_mday()
148 if (mday < 1 || mday > 31) in ds1685_rtc_check_mday()
265 u8 seconds, minutes, hours, wday, mday, month, years; in ds1685_rtc_read_time() local
273 mday = rtc->read(rtc, RTC_MDAY); in ds1685_rtc_read_time()
292 tm->tm_mday = ds1685_rtc_bcd2bin(rtc, mday, RTC_MDAY_BCD_MASK, in ds1685_rtc_read_time()
312 u8 ctrlb, seconds, minutes, hours, wday, mday, month, years, century; in ds1685_rtc_set_time() local
323 mday = ds1685_rtc_bin2bcd(rtc, tm->tm_mday, RTC_MDAY_BIN_MASK, in ds1685_rtc_set_time()
338 if ((tm->tm_mon > 11) || (mday == 0)) in ds1685_rtc_set_time()
363 rtc->write(rtc, RTC_MDAY, mday); in ds1685_rtc_set_time()
[all …]
Drtc-m48t59.c198 u8 mday, hour, min, sec; in m48t59_rtc_setalarm() local
217 mday = tm->tm_mday; in m48t59_rtc_setalarm()
218 mday = (mday >= 1 && mday <= 31) ? bin2bcd(mday) : 0xff; in m48t59_rtc_setalarm()
219 if (mday == 0xff) in m48t59_rtc_setalarm()
220 mday = M48T59_READ(M48T59_MDAY); in m48t59_rtc_setalarm()
235 M48T59_WRITE(mday, M48T59_ALARM_DATE); in m48t59_rtc_setalarm()
Drtc-ds1216.c21 u8 mday; member
96 tm->tm_mday = bcd2bin(regs.mday & 0x3f); in ds1216_rtc_read_time()
124 regs.mday = bin2bcd(tm->tm_mday); in ds1216_rtc_set_time()
Drtc-mt7622.c155 u32 year, mon, mday, wday, hour, min, sec; in mtk_rtc_get_alarm_or_time() local
168 mday = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_DOM)); in mtk_rtc_get_alarm_or_time()
177 tm->tm_mday = mday; in mtk_rtc_get_alarm_or_time()
Drtc-cmos.c475 unsigned char mon, mday, hrs, min, sec; member
498 CMOS_WRITE(p->mday, p->cmos->day_alrm); in cmos_set_alarm_callback()
535 p.mday = t->time.tm_mday; in cmos_set_alarm()
547 p.mday = (p.mday >= 1 && p.mday <= 31) ? bin2bcd(p.mday) : 0xff; in cmos_set_alarm()
/linux-5.19.10/kernel/time/
Dtime_test.c29 static void advance_date(long *year, int *month, int *mday, int *yday) in advance_date() argument
31 if (*mday != last_day_of_month(*year, *month)) { in advance_date()
32 ++*mday; in advance_date()
37 *mday = 1; in advance_date()
/linux-5.19.10/arch/powerpc/platforms/maple/
Dtime.c80 int sec, min, hour, mon, mday, year; in maple_set_rtc_time() local
96 mday = tm->tm_mday; in maple_set_rtc_time()
104 mday = bin2bcd(mday); in maple_set_rtc_time()
111 maple_clock_write(mday, RTC_DAY_OF_MONTH); in maple_set_rtc_time()
/linux-5.19.10/arch/m68k/sun3x/
Dtime.c54 h->mday = bin2bcd(t->tm_mday); in sun3x_hwclk()
64 t->tm_mday = bcd2bin(h->mday); in sun3x_hwclk()
Dtime.h14 volatile unsigned char mday; member