Home
last modified time | relevance | path

Searched refs:tm_mday (Results 1 – 25 of 176) sorted by relevance

12345678

/Linux-v5.10/drivers/rtc/
Dlib.c80 tm->tm_mday = days + 1; in rtc_time64_to_tm()
99 tm->tm_mday < 1 || in rtc_valid_tm()
100 tm->tm_mday > rtc_month_days(tm->tm_mon, in rtc_valid_tm()
118 tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_tm_to_time64()
Drtc-wm8350.c65 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()
Drtc-hym8563.c109 tm->tm_mday = bcd2bin(buf[3] & HYM8563_DAY_MASK); in hym8563_rtc_read_time()
130 buf[3] = bin2bcd(tm->tm_mday); in hym8563_rtc_set_time()
199 alm_tm->tm_mday = (buf[2] & HYM8563_ALM_BIT_DISABLE) ? in hym8563_rtc_read_alarm()
234 alm_tm->tm_mday++; in hym8563_rtc_set_alarm()
235 if (alm_tm->tm_mday > 31) in hym8563_rtc_set_alarm()
236 alm_tm->tm_mday = 0; in hym8563_rtc_set_alarm()
257 buf[2] = (alm_tm->tm_mday <= 31 && alm_tm->tm_mday >= 1) ? in hym8563_rtc_set_alarm()
258 bin2bcd(alm_tm->tm_mday) : HYM8563_ALM_BIT_DISABLE; in hym8563_rtc_set_alarm()
Drtc-m41t94.c37 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()
Drtc-spear.c178 tm->tm_mday = bin2bcd(tm->tm_mday); in tm2bcd()
188 tm->tm_mday = bcd2bin(tm->tm_mday); in bcd2tm()
215 tm->tm_mday = (date >> MDAY_SHIFT) & DAY_MASK; in spear_rtc_read_time()
241 date = (tm->tm_mday << MDAY_SHIFT) | (tm->tm_mon << MONTH_SHIFT) | in spear_rtc_set_time()
269 alm->time.tm_mday = (date >> MDAY_SHIFT) & DAY_MASK; in spear_rtc_read_alarm()
299 date = (alm->time.tm_mday << MDAY_SHIFT) | (alm->time.tm_mon << in spear_rtc_set_alarm()
Drtc-mc146818-lib.c57 time->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in mc146818_get_time()
76 time->tm_mday = bcd2bin(time->tm_mday); in mc146818_get_time()
116 day = time->tm_mday; in mc146818_set_time()
Drtc-tps80031.c82 tm->tm_mday = bcd2bin(buff[3]); in tps80031_rtc_read_time()
97 buff[3] = bin2bcd(tm->tm_mday); in tps80031_rtc_set_time()
151 buff[3] = bin2bcd(alrm->time.tm_mday); in tps80031_rtc_set_alarm()
181 alrm->time.tm_mday = bcd2bin(buff[3]); in tps80031_rtc_read_alarm()
261 (tm.tm_mday == TPS80031_RTC_POR_DAY)) { in tps80031_rtc_probe()
263 tm.tm_mday = 1; in tps80031_rtc_probe()
Drtc-pic32.c144 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()
Drtc-fm3130.c122 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()
Drtc-m41t93.c55 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()
Drtc-stm32.c241 tm->tm_mday = bin2bcd(tm->tm_mday); in tm2bcd()
259 tm->tm_mday = bcd2bin(tm->tm_mday); in bcd2tm()
284 tm->tm_mday = (dr & STM32_RTC_DR_DATE) >> STM32_RTC_DR_DATE_SHIFT; in stm32_rtc_read_time()
311 dr = ((tm->tm_mday << STM32_RTC_DR_DATE_SHIFT) & STM32_RTC_DR_DATE) | in stm32_rtc_set_time()
353 tm->tm_mday = -1; in stm32_rtc_read_alarm()
358 tm->tm_mday = -1; in stm32_rtc_read_alarm()
365 tm->tm_mday = (alrmar & STM32_RTC_ALRMXR_DATE) >> in stm32_rtc_read_alarm()
455 ((tm->tm_mday > cur_day) || in stm32_rtc_valid_alrm()
456 ((tm->tm_mday == cur_day) && in stm32_rtc_valid_alrm()
487 alrmar |= (tm->tm_mday << STM32_RTC_ALRMXR_DATE_SHIFT) & in stm32_rtc_set_alarm()
Drtc-rx4581.c154 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()
Drtc-m48t35.c72 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()
Drtc-pcf8563.c227 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()
344 tm->time.tm_mday, tm->enabled, tm->pending); in pcf8563_rtc_set_alarm()
348 buf[2] = bin2bcd(tm->time.tm_mday); in pcf8563_rtc_set_alarm()
Drtc-moxart.c155 ((tm->tm_mday / 10) << 4) | in moxart_rtc_set_time()
156 (tm->tm_mday % 10)); in moxart_rtc_set_time()
176 __func__, tm->tm_year, tm->tm_mon, tm->tm_mday, in moxart_rtc_set_time()
208 tm->tm_mday = (((v & 0x30) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time()
223 tm->tm_yday += (tm->tm_mday - 1); in moxart_rtc_read_time()
Drtc-bq4802.c65 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()
Drtc-isl12022.c139 tm->tm_mday = bcd2bin(buf[ISL12022_REG_DT] & 0x3F); in isl12022_rtc_read_time()
148 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in isl12022_rtc_read_time()
165 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in isl12022_rtc_set_time()
209 buf[ISL12022_REG_DT] = bin2bcd(tm->tm_mday); in isl12022_rtc_set_time()
Drtc-s3c.c187 rtc_tm->tm_mday = readb(info->base + S3C2410_RTCDATE); in s3c_rtc_gettime()
205 rtc_tm->tm_mday = bcd2bin(rtc_tm->tm_mday); in s3c_rtc_gettime()
240 writeb(bin2bcd(tm->tm_mday), info->base + S3C2410_RTCDATE); in s3c_rtc_settime()
264 alm_tm->tm_mday = readb(info->base + S3C2410_ALMDATE); in s3c_rtc_getalarm()
286 alm_tm->tm_mday = bcd2bin(alm_tm->tm_mday); in s3c_rtc_getalarm()
335 if (tm->tm_mday <= 31 && tm->tm_mday >= 1) { in s3c_rtc_setalarm()
337 writeb(bin2bcd(tm->tm_mday), info->base + S3C2410_ALMDATE); in s3c_rtc_setalarm()
519 rtc_tm.tm_mday = 1; in s3c_rtc_probe()
Drtc-mv.c58 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()
Drtc-ds1511.c197 day = rtc_tm->tm_mday; in ds1511_rtc_set_time()
250 rtc_tm->tm_mday = rtc_read(RTC_DOM) & 0x3f; in ds1511_rtc_read_time()
262 rtc_tm->tm_mday = bcd2bin(rtc_tm->tm_mday); in ds1511_rtc_read_time()
319 pdata->alrm_mday = alrm->time.tm_mday; in ds1511_rtc_set_alarm()
338 alrm->time.tm_mday = pdata->alrm_mday < 0 ? 0 : pdata->alrm_mday; in ds1511_rtc_read_alarm()
/Linux-v5.10/tools/testing/selftests/rtc/
Dsetdate.c47 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-v5.10/arch/powerpc/platforms/chrp/
Dtime.c108 tm.tm_mday = bin2bcd(tm.tm_mday); in chrp_set_rtc_time()
115 chrp_cmos_clock_write(tm.tm_mday,RTC_DAY_OF_MONTH); in chrp_set_rtc_time()
158 tm->tm_mday = day; in chrp_get_rtc_time()
/Linux-v5.10/arch/powerpc/platforms/maple/
Dtime.c57 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-v5.10/arch/m68k/atari/
Dtime.c165 val.day_ones = t->tm_mday % 10; in atari_mste_hwclk()
166 val.day_tens = t->tm_mday / 10; in atari_mste_hwclk()
190 t->tm_mday = val.day_ones + val.day_tens * 10; in atari_mste_hwclk()
214 day = t->tm_mday; in atari_tt_hwclk()
311 t->tm_mday = day; in atari_tt_hwclk()
/Linux-v5.10/arch/m68k/sun3/
Dintersil.c45 todintersil->day = t->tm_mday; in sun3_hwclk()
55 t->tm_mday = todintersil->day; in sun3_hwclk()

12345678