/linux-6.3-rc2/drivers/rtc/ |
A D | lib_test.c | 9 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()
|
A D | rtc-ds1685.c | 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() 273 mday = rtc->read(rtc, RTC_MDAY); in ds1685_rtc_read_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() 388 u8 seconds, minutes, hours, mday, ctrlb, ctrlc; in ds1685_rtc_read_alarm() local 396 mday = rtc->read(rtc, RTC_MDAY_ALARM); in ds1685_rtc_read_alarm() 402 ret = ds1685_rtc_check_mday(rtc, mday); in ds1685_rtc_read_alarm() 446 u8 ctrlb, seconds, minutes, hours, mday; in ds1685_rtc_set_alarm() local 464 ret = ds1685_rtc_check_mday(rtc, mday); in ds1685_rtc_set_alarm() [all …]
|
A D | rtc-m48t59.c | 198 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()
|
A D | rtc-ds1216.c | 21 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()
|
A D | rtc-mt7622.c | 155 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()
|
A D | rtc-cmos.c | 475 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-6.3-rc2/kernel/time/ |
A D | time_test.c | 29 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-6.3-rc2/arch/powerpc/platforms/maple/ |
A D | time.c | 80 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-6.3-rc2/arch/m68k/sun3x/ |
A D | time.c | 54 h->mday = bin2bcd(t->tm_mday); in sun3x_hwclk() 64 t->tm_mday = bcd2bin(h->mday); in sun3x_hwclk()
|
A D | time.h | 14 volatile unsigned char mday; member
|