/linux/drivers/rtc/ |
H A D | rtc-optee.c | 26 u32 tm_mday; member 86 tm->tm_mday = optee_tm->tm_mday; in optee_rtc_readtime() 90 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, tm->tm_year); in optee_rtc_readtime() 107 optee_tm.tm_mday = tm->tm_mday; in optee_rtc_settime() 224 rtc->range_min = mktime64(tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, in optee_rtc_read_info() 227 rtc->range_max = mktime64(tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, in optee_rtc_read_info()
|
H A D | lib.c | 132 tm->tm_mday = (int) day; in rtc_time64_to_tm() 152 tm->tm_mday < 1 || in rtc_valid_tm() 153 tm->tm_mday > rtc_month_days(tm->tm_mon, in rtc_valid_tm() 171 tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_tm_to_time64()
|
H A D | rtc-wm8350.c | 65 tm->tm_mday = (time1[2] & WM8350_RTC_DATE_MASK); in wm8350_rtc_readtime() 71 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, in wm8350_rtc_readtime() 101 time[2] = tm->tm_mday; in wm8350_rtc_settime() 174 tm->tm_mday = (time[2] & WM8350_RTC_ALMDATE_MASK); in wm8350_rtc_readalarm() 175 if (tm->tm_mday == WM8350_RTC_ALMDATE_MASK) in wm8350_rtc_readalarm() 176 tm->tm_mday = -1; in wm8350_rtc_readalarm() 272 if (tm->tm_mday != -1) in wm8350_rtc_setalarm() 273 time[2] |= tm->tm_mday; in wm8350_rtc_setalarm()
|
H A D | rtc-rzn1.c | 73 tm->tm_mday = readl(rtc->base + RZN1_RTC_DAYC); in rzn1_rtc_get_time_snapshot() 113 tm->tm_mday = bcd2bin(tm->tm_mday); in rzn1_rtc_read_time() 130 tm->tm_mday = bin2bcd(tm->tm_mday); in rzn1_rtc_set_time() 151 writel(tm->tm_mday, rtc->base + RZN1_RTC_DAY); in rzn1_rtc_set_time() 236 days_ahead = tm->tm_mday - tm_now.tm_mday; in rzn1_rtc_set_alarm()
|
H A D | rtc-spear.c | 175 tm->tm_mday = bin2bcd(tm->tm_mday); in tm2bcd() 185 tm->tm_mday = bcd2bin(tm->tm_mday); in bcd2tm() 214 tm->tm_mday = (date >> MDAY_SHIFT) & DAY_MASK; in spear_rtc_read_time() 240 date = (tm->tm_mday << MDAY_SHIFT) | (tm->tm_mon << MONTH_SHIFT) | in spear_rtc_set_time() 268 alm->time.tm_mday = (date >> MDAY_SHIFT) & DAY_MASK; in spear_rtc_read_alarm() 298 date = (alm->time.tm_mday << MDAY_SHIFT) | (alm->time.tm_mon << in spear_rtc_set_alarm()
|
H A D | rtc-m41t94.c | 37 tm->tm_hour, tm->tm_mday, in m41t94_set_time() 45 buf[M41T94_REG_DAY] = bin2bcd(tm->tm_mday); in m41t94_set_time() 87 tm->tm_mday = bcd2bin(spi_w8r8(spi, M41T94_REG_DAY)); in m41t94_read_time() 96 tm->tm_hour, tm->tm_mday, in m41t94_read_time()
|
H A D | rtc-s3c.c | 142 tm->tm_mday = readb(info->base + S3C2410_RTCDATE); in s3c_rtc_read_time() 162 tm->tm_mday = bcd2bin(tm->tm_mday); in s3c_rtc_read_time() 181 writeb(bin2bcd(tm->tm_mday), info->base + S3C2410_RTCDATE); in s3c_rtc_write_time() 239 alm_tm->tm_mday = readb(info->base + S3C2410_ALMDATE); in s3c_rtc_getalarm() 261 alm_tm->tm_mday = bcd2bin(alm_tm->tm_mday); in s3c_rtc_getalarm() 310 if (tm->tm_mday <= 31 && tm->tm_mday >= 1) { in s3c_rtc_setalarm() 312 writeb(bin2bcd(tm->tm_mday), info->base + S3C2410_ALMDATE); in s3c_rtc_setalarm()
|
H A D | rtc-fm3130.c | 122 t->tm_mday = bcd2bin(fm3130->regs[FM3130_RTC_DATE] & 0x3f); in fm3130_get_time() 132 t->tm_hour, t->tm_mday, in fm3130_get_time() 148 t->tm_hour, t->tm_mday, in fm3130_set_time() 156 buf[FM3130_RTC_DATE] = bin2bcd(t->tm_mday); in fm3130_set_time() 214 tm->tm_mday = bcd2bin(fm3130->regs[FM3130_ALARM_DATE] & 0x3F); in fm3130_read_alarm() 223 tm->tm_hour, tm->tm_mday, in fm3130_read_alarm() 248 tm->tm_hour, tm->tm_mday, in fm3130_set_alarm() 261 (tm->tm_mday != -1) ? bin2bcd(tm->tm_mday) : 0x80; in fm3130_set_alarm()
|
H A D | rtc-pic32.c | 144 rtc_tm->tm_mday = readb(base + PIC32_RTCDAY); in pic32_rtc_gettime() 159 rtc_tm->tm_mday = bcd2bin(rtc_tm->tm_mday); in pic32_rtc_gettime() 182 writeb(bin2bcd(tm->tm_mday), base + PIC32_RTCDAY); in pic32_rtc_settime() 202 alm_tm->tm_mday = readb(base + PIC32_ALRMDAY); in pic32_rtc_getalarm() 214 alm_tm->tm_mday = bcd2bin(alm_tm->tm_mday); in pic32_rtc_getalarm()
|
H A D | rtc-ds1511.c | 102 day = rtc_tm->tm_mday; in ds1511_rtc_set_time() 146 rtc_tm->tm_mday = rtc_read(DS1511_DOM) & 0x3f; in ds1511_rtc_read_time() 158 rtc_tm->tm_mday = bcd2bin(rtc_tm->tm_mday); in ds1511_rtc_read_time() 187 rtc_write(bin2bcd(alrm->time.tm_mday) & 0x3f, DS1511_AM4_DATE); in ds1511_rtc_set_alarm() 201 alrm->time.tm_mday = bcd2bin(rtc_read(DS1511_AM4_DATE) & 0x3f); in ds1511_rtc_read_alarm()
|
H A D | rtc-m41t93.c | 55 tm->tm_hour, tm->tm_mday, in m41t93_set_time() 92 data[M41T93_REG_DAY] = bin2bcd(tm->tm_mday); in m41t93_set_time() 146 tm->tm_mday = bcd2bin(buf[M41T93_REG_DAY]); in m41t93_get_time() 156 tm->tm_hour, tm->tm_mday, in m41t93_get_time()
|
H A D | rtc-moxart.c | 158 ((tm->tm_mday / 10) << 4) | in moxart_rtc_set_time() 159 (tm->tm_mday % 10)); in moxart_rtc_set_time() 179 __func__, tm->tm_year, tm->tm_mon, tm->tm_mday, in moxart_rtc_set_time() 211 tm->tm_mday = (((v & 0x30) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time() 226 tm->tm_yday += (tm->tm_mday - 1); in moxart_rtc_read_time()
|
H A D | rtc-rx4581.c | 154 tm->tm_mday = bcd2bin(date[RX4581_REG_DM] & 0x3F); in rx4581_get_datetime() 165 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rx4581_get_datetime() 180 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rx4581_set_datetime() 188 buf[RX4581_REG_DM+1] = bin2bcd(tm->tm_mday); in rx4581_set_datetime()
|
H A D | rtc-m48t35.c | 72 tm->tm_mday = readb(&priv->reg->date); in m48t35_read_time() 81 tm->tm_mday = bcd2bin(tm->tm_mday); in m48t35_read_time() 106 day = tm->tm_mday; in m48t35_set_time()
|
H A D | rtc-bq4802.c | 65 tm->tm_mday = p->read(p, 0x06); in bq4802_read_time() 78 tm->tm_mday = bcd2bin(tm->tm_mday); in bq4802_read_time() 104 day = tm->tm_mday; in bq4802_set_time()
|
H A D | rtc-mc146818-lib.c | 124 p->time->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in mc146818_get_time_callback() 170 time->tm_mday = bcd2bin(time->tm_mday); in mc146818_get_time() 225 day = time->tm_mday; in mc146818_set_time()
|
H A D | rtc-mv.c | 58 rtc_reg = (bin2bcd(tm->tm_mday) << RTC_MDAY_OFFS) | in mv_rtc_set_time() 88 tm->tm_mday = bcd2bin(day); in mv_rtc_read_time() 119 alm->time.tm_mday = bcd2bin(day); in mv_rtc_read_alarm() 148 if (alm->time.tm_mday >= 0) in mv_rtc_set_alarm() 149 rtc_reg = (RTC_ALARM_VALID | bin2bcd(alm->time.tm_mday)) in mv_rtc_set_alarm()
|
H A D | rtc-pcf8563.c | 227 tm->tm_mday = bcd2bin(buf[PCF8563_REG_DM] & 0x3F); in pcf8563_rtc_read_time() 239 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in pcf8563_rtc_read_time() 254 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in pcf8563_rtc_set_time() 261 buf[PCF8563_REG_DM] = bin2bcd(tm->tm_mday); in pcf8563_rtc_set_time() 312 tm->time.tm_mday = bcd2bin(buf[2] & 0x3F); in pcf8563_rtc_read_alarm() 321 tm->time.tm_hour, tm->time.tm_mday, tm->time.tm_wday, in pcf8563_rtc_read_alarm() 335 buf[2] = bin2bcd(tm->time.tm_mday); in pcf8563_rtc_set_alarm()
|
H A D | rtc-vt8500.c | 112 tm->tm_mday = bcd2bin(date & DATE_DAY_MASK); in vt8500_rtc_read_time() 127 | (bin2bcd(tm->tm_mday)) in vt8500_rtc_set_time() 147 alrm->time.tm_mday = bcd2bin((alarm & ALARM_DAY_MASK) >> ALARM_DAY_S); in vt8500_rtc_read_alarm() 163 | (bin2bcd(alrm->time.tm_mday) << ALARM_DAY_S) in vt8500_rtc_set_alarm()
|
H A D | rtc-cmos.c | 271 time->tm_mday = CMOS_READ(p->cmos->day_alrm) & 0x3f; in cmos_read_alarm_callback() 272 if (!time->tm_mday) in cmos_read_alarm_callback() 273 time->tm_mday = -1; in cmos_read_alarm_callback() 328 if (((unsigned)t->time.tm_mday) <= 0x31) in cmos_read_alarm() 329 t->time.tm_mday = bcd2bin(t->time.tm_mday); in cmos_read_alarm() 331 t->time.tm_mday = -1; in cmos_read_alarm() 438 if (max_date.tm_mday > max_mday) in cmos_validate_alarm() 439 max_date.tm_mday = max_mday; in cmos_validate_alarm() 457 if (max_date.tm_mday > max_mday) in cmos_validate_alarm() 458 max_date.tm_mday = max_mday; in cmos_validate_alarm() [all …]
|
/linux/tools/testing/selftests/rtc/ |
H A D | setdate.c | 47 sscanf(date, "%d-%d-%d", &new.tm_mday, &new.tm_mon, &new.tm_year); in main() 53 new.tm_mday, new.tm_mon + 1, new.tm_year + 1900, in main() 72 current.tm_mday, current.tm_mon + 1, current.tm_year + 1900, in main()
|
/linux/arch/powerpc/platforms/chrp/ |
H A D | time.c | 106 tm.tm_mday = bin2bcd(tm.tm_mday); in chrp_set_rtc_time() 113 chrp_cmos_clock_write(tm.tm_mday,RTC_DAY_OF_MONTH); in chrp_set_rtc_time() 156 tm->tm_mday = day; in chrp_get_rtc_time()
|
/linux/arch/powerpc/platforms/maple/ |
H A D | time.c | 57 tm->tm_mday = maple_clock_read(RTC_DAY_OF_MONTH); in maple_get_rtc_time() 67 tm->tm_mday = bcd2bin(tm->tm_mday); in maple_get_rtc_time() 96 mday = tm->tm_mday; in maple_set_rtc_time()
|
/linux/arch/m68k/atari/ |
H A D | time.c | 168 val.day_ones = t->tm_mday % 10; in atari_mste_hwclk() 169 val.day_tens = t->tm_mday / 10; in atari_mste_hwclk() 193 t->tm_mday = val.day_ones + val.day_tens * 10; in atari_mste_hwclk() 217 day = t->tm_mday; in atari_tt_hwclk() 314 t->tm_mday = day; in atari_tt_hwclk()
|
/linux/arch/m68k/sun3/ |
H A D | intersil.c | 46 todintersil->day = t->tm_mday; in sun3_hwclk() 56 t->tm_mday = todintersil->day; in sun3_hwclk()
|