/linux-master/drivers/rtc/ |
H A D | lib_test.c | 9 static void advance_date(int *year, int *month, int *mday, int *yday) argument 11 if (*mday != rtc_month_days(*month - 1, *year)) { 12 ++*mday; 17 *mday = 1; 44 int mday = 1; local 58 year, month, mday, yday, days 62 KUNIT_ASSERT_EQ_MSG(test, mday, result.tm_mday, FAIL_MSG); 65 advance_date(&year, &month, &mday, &yday);
|
H A D | rtc-ds1685.c | 137 * @mday: day of month. 142 ds1685_rtc_check_mday(struct ds1685_priv *rtc, u8 mday) argument 145 if (mday < 0x01 || mday > 0x31 || (mday & 0x0f) > 0x09) 148 if (mday < 1 || mday > 31) 265 u8 seconds, minutes, hours, wday, mday, month, years; local 273 mday = rtc->read(rtc, RTC_MDAY); 292 tm->tm_mday = ds1685_rtc_bcd2bin(rtc, mday, RTC_MDAY_BCD_MAS 312 u8 ctrlb, seconds, minutes, hours, wday, mday, month, years, century; local 388 u8 seconds, minutes, hours, mday, ctrlb, ctrlc; local 446 u8 ctrlb, seconds, minutes, hours, mday; local [all...] |
H A D | rtc-m48t59.c | 198 u8 mday, hour, min, sec; local 217 mday = tm->tm_mday; 218 mday = (mday >= 1 && mday <= 31) ? bin2bcd(mday) : 0xff; 219 if (mday == 0xff) 220 mday = M48T59_READ(M48T59_MDAY); 235 M48T59_WRITE(mday, M48T59_ALARM_DATE);
|
H A D | rtc-ds1216.c | 21 u8 mday; member in struct:ds1216_regs 96 tm->tm_mday = bcd2bin(regs.mday & 0x3f); 124 regs.mday = bin2bcd(tm->tm_mday);
|
H A D | rtc-mt7622.c | 155 u32 year, mon, mday, wday, hour, min, sec; local 168 mday = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_DOM)); 177 tm->tm_mday = mday;
|
H A D | rtc-cmos.c | 475 unsigned char mon, mday, hrs, min, sec; member in struct:cmos_set_alarm_callback_param 498 CMOS_WRITE(p->mday, p->cmos->day_alrm); 535 p.mday = t->time.tm_mday; 547 p.mday = (p.mday >= 1 && p.mday <= 31) ? bin2bcd(p.mday) : 0xff;
|
/linux-master/arch/m68k/sun3x/ |
H A D | time.h | 14 volatile unsigned char mday; member in struct:mostek_dt
|
H A D | time.c | 54 h->mday = bin2bcd(t->tm_mday); 64 t->tm_mday = bcd2bin(h->mday);
|
/linux-master/kernel/time/ |
H A D | time_test.c | 29 static void advance_date(long *year, int *month, int *mday, int *yday) argument 31 if (*mday != last_day_of_month(*year, *month)) { 32 ++*mday; 37 *mday = 1;
|
/linux-master/arch/powerpc/platforms/maple/ |
H A D | time.c | 80 int sec, min, hour, mon, mday, year; local 96 mday = tm->tm_mday; 104 mday = bin2bcd(mday); 111 maple_clock_write(mday, RTC_DAY_OF_MONTH);
|