/linux-6.6.21/drivers/rtc/ |
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
D | rtc-stm32.c | 244 tm->tm_mday = bin2bcd(tm->tm_mday); in tm2bcd() 262 tm->tm_mday = bcd2bin(tm->tm_mday); in bcd2tm() 287 tm->tm_mday = (dr & STM32_RTC_DR_DATE) >> STM32_RTC_DR_DATE_SHIFT; in stm32_rtc_read_time() 314 dr = ((tm->tm_mday << STM32_RTC_DR_DATE_SHIFT) & STM32_RTC_DR_DATE) | in stm32_rtc_set_time() 356 tm->tm_mday = -1; in stm32_rtc_read_alarm() 361 tm->tm_mday = -1; in stm32_rtc_read_alarm() 368 tm->tm_mday = (alrmar & STM32_RTC_ALRMXR_DATE) >> in stm32_rtc_read_alarm() 463 - now.tm_mday in stm32_rtc_valid_alrm() 464 + min(rtc_month_days(next_month, next_year), now.tm_mday); in stm32_rtc_valid_alrm() 492 alrmar |= (tm->tm_mday << STM32_RTC_ALRMXR_DATE_SHIFT) & in stm32_rtc_set_alarm()
|
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()
|
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()
|
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()
|
D | rtc-ds1511.c | 191 day = rtc_tm->tm_mday; in ds1511_rtc_set_time() 244 rtc_tm->tm_mday = rtc_read(RTC_DOM) & 0x3f; in ds1511_rtc_read_time() 256 rtc_tm->tm_mday = bcd2bin(rtc_tm->tm_mday); in ds1511_rtc_read_time() 313 pdata->alrm_mday = alrm->time.tm_mday; in ds1511_rtc_set_alarm() 332 alrm->time.tm_mday = pdata->alrm_mday < 0 ? 0 : pdata->alrm_mday; in ds1511_rtc_read_alarm()
|
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()
|
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()
|
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()
|
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()
|
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()
|
/linux-6.6.21/tools/testing/selftests/rtc/ |
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-6.6.21/arch/powerpc/platforms/chrp/ |
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-6.6.21/arch/powerpc/platforms/maple/ |
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-6.6.21/arch/m68k/atari/ |
D | time.c | 166 val.day_ones = t->tm_mday % 10; in atari_mste_hwclk() 167 val.day_tens = t->tm_mday / 10; in atari_mste_hwclk() 191 t->tm_mday = val.day_ones + val.day_tens * 10; in atari_mste_hwclk() 215 day = t->tm_mday; in atari_tt_hwclk() 312 t->tm_mday = day; in atari_tt_hwclk()
|
/linux-6.6.21/arch/m68k/sun3/ |
D | intersil.c | 45 todintersil->day = t->tm_mday; in sun3_hwclk() 55 t->tm_mday = todintersil->day; in sun3_hwclk()
|