Home
last modified time | relevance | path

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

123456

/linux-4.19.296/drivers/rtc/
Drtc-pic32.c152 rtc_tm->tm_mday = readb(base + PIC32_RTCDAY); in pic32_rtc_gettime()
167 rtc_tm->tm_mday = bcd2bin(rtc_tm->tm_mday); in pic32_rtc_gettime()
174 1900 + rtc_tm->tm_year, rtc_tm->tm_mon, rtc_tm->tm_mday, in pic32_rtc_gettime()
188 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, in pic32_rtc_settime()
200 writeb(bin2bcd(tm->tm_mday), base + PIC32_RTCDAY); in pic32_rtc_settime()
220 alm_tm->tm_mday = readb(base + PIC32_ALRMDAY); in pic32_rtc_getalarm()
229 1900 + alm_tm->tm_year, alm_tm->tm_mon, alm_tm->tm_mday, in pic32_rtc_getalarm()
235 alm_tm->tm_mday = bcd2bin(alm_tm->tm_mday); in pic32_rtc_getalarm()
252 1900 + tm->tm_year, tm->tm_mon + 1, tm->tm_mday, in pic32_rtc_setalarm()
Drtc-lib.c84 tm->tm_mday = days + 1; in rtc_time64_to_tm()
102 || tm->tm_mday < 1 in rtc_valid_tm()
103 || tm->tm_mday > rtc_month_days(tm->tm_mon, tm->tm_year + 1900) in rtc_valid_tm()
119 return mktime64(tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, in rtc_tm_to_time64()
Drtc-proc.c56 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday); in rtc_proc_show()
84 if (alrm.time.tm_mday && (unsigned int)alrm.time.tm_mday <= 31) in rtc_proc_show()
85 seq_printf(seq, "%02d\n", alrm.time.tm_mday); in rtc_proc_show()
Drtc-at91rm9200.c138 tm->tm_mday = bcd2bin((date & AT91_RTC_DATE) >> 24); in at91_rtc_decodetime()
147 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, tm->tm_year); in at91_rtc_readtime()
151 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, in at91_rtc_readtime()
165 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, in at91_rtc_settime()
188 | bin2bcd(tm->tm_mday) << 24); in at91_rtc_settime()
213 tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, in at91_rtc_readalarm()
229 tm.tm_mday = alrm->time.tm_mday; in at91_rtc_setalarm()
242 | bin2bcd(tm.tm_mday) << 24 in at91_rtc_setalarm()
251 tm.tm_year, tm.tm_mon, tm.tm_mday, tm.tm_hour, in at91_rtc_setalarm()
Drtc-rk808.c89 tm->tm_mday++; /* This may result in 31! */ in gregorian_to_rockchip()
136 tm->tm_mday = bcd2bin(rtc_data[3] & DAYS_REG_MSK); in rk808_rtc_readtime()
142 1900 + tm->tm_year, tm->tm_mon + 1, tm->tm_mday, in rk808_rtc_readtime()
157 1900 + tm->tm_year, tm->tm_mon + 1, tm->tm_mday, in rk808_rtc_set_time()
163 rtc_data[3] = bin2bcd(tm->tm_mday); in rk808_rtc_set_time()
208 alrm->time.tm_mday = bcd2bin(alrm_data[3] & DAYS_REG_MSK); in rk808_rtc_readalarm()
221 alrm->time.tm_mday, alrm->time.tm_wday, alrm->time.tm_hour, in rk808_rtc_readalarm()
266 alrm->time.tm_mday, alrm->time.tm_wday, alrm->time.tm_hour, in rk808_rtc_setalarm()
273 alrm_data[3] = bin2bcd(alrm->time.tm_mday); in rk808_rtc_setalarm()
Drtc-wm8350.c70 tm->tm_mday = (time1[2] & WM8350_RTC_DATE_MASK); in wm8350_rtc_readtime()
76 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, in wm8350_rtc_readtime()
106 time[2] = tm->tm_mday; in wm8350_rtc_settime()
179 tm->tm_mday = (time[2] & WM8350_RTC_ALMDATE_MASK); in wm8350_rtc_readalarm()
180 if (tm->tm_mday == WM8350_RTC_ALMDATE_MASK) in wm8350_rtc_readalarm()
181 tm->tm_mday = -1; in wm8350_rtc_readalarm()
277 if (tm->tm_mday != -1) in wm8350_rtc_setalarm()
278 time[2] |= tm->tm_mday; in wm8350_rtc_setalarm()
Drtc-m41t94.c40 tm->tm_hour, tm->tm_mday, in m41t94_set_time()
48 buf[M41T94_REG_DAY] = bin2bcd(tm->tm_mday); in m41t94_set_time()
90 tm->tm_mday = bcd2bin(spi_w8r8(spi, M41T94_REG_DAY)); in m41t94_read_time()
99 tm->tm_hour, tm->tm_mday, in m41t94_read_time()
Drtc-s3c.c203 rtc_tm->tm_mday = readb(info->base + S3C2410_RTCDATE); in s3c_rtc_gettime()
221 rtc_tm->tm_mday = bcd2bin(rtc_tm->tm_mday); in s3c_rtc_gettime()
230 1900 + rtc_tm->tm_year, rtc_tm->tm_mon, rtc_tm->tm_mday, in s3c_rtc_gettime()
245 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, in s3c_rtc_settime()
262 writeb(bin2bcd(tm->tm_mday), info->base + S3C2410_RTCDATE); in s3c_rtc_settime()
286 alm_tm->tm_mday = readb(info->base + S3C2410_ALMDATE); in s3c_rtc_getalarm()
297 1900 + alm_tm->tm_year, alm_tm->tm_mon, alm_tm->tm_mday, in s3c_rtc_getalarm()
311 alm_tm->tm_mday = bcd2bin(alm_tm->tm_mday); in s3c_rtc_getalarm()
333 1900 + tm->tm_year, tm->tm_mon + 1, tm->tm_mday, in s3c_rtc_setalarm()
363 if (tm->tm_mday <= 31 && tm->tm_mday >= 1) { in s3c_rtc_setalarm()
[all …]
Drtc-hym8563.c116 tm->tm_mday = bcd2bin(buf[3] & HYM8563_DAY_MASK); in hym8563_rtc_read_time()
138 buf[3] = bin2bcd(tm->tm_mday); in hym8563_rtc_set_time()
209 alm_tm->tm_mday = (buf[2] & HYM8563_ALM_BIT_DISABLE) ? in hym8563_rtc_read_alarm()
244 alm_tm->tm_mday++; in hym8563_rtc_set_alarm()
245 if (alm_tm->tm_mday > 31) in hym8563_rtc_set_alarm()
246 alm_tm->tm_mday = 0; in hym8563_rtc_set_alarm()
267 buf[2] = (alm_tm->tm_mday <= 31 && alm_tm->tm_mday >= 1) ? in hym8563_rtc_set_alarm()
268 bin2bcd(alm_tm->tm_mday) : HYM8563_ALM_BIT_DISABLE; in hym8563_rtc_set_alarm()
Drtc-mc146818-lib.c56 time->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in mc146818_get_time()
75 time->tm_mday = bcd2bin(time->tm_mday); in mc146818_get_time()
115 day = time->tm_mday; in mc146818_set_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-mcp795.c208 data[4] = bin2bcd(tim->tm_mday); in mcp795_set_time()
237 tim->tm_year + 1900, tim->tm_mon, tim->tm_mday, in mcp795_set_time()
257 tim->tm_mday = bcd2bin(data[4] & 0x3F); in mcp795_read_time()
262 tim->tm_year + 1900, tim->tm_mon, tim->tm_mday, in mcp795_read_time()
308 tmp[4] = (tmp[4] & 0xC0) | bin2bcd(alm->time.tm_mday); in mcp795_set_alarm()
323 alm->time.tm_mon, alm->time.tm_mday, alm->time.tm_wday, in mcp795_set_alarm()
342 alm->time.tm_mday = bcd2bin(data[4] & 0x3F); in mcp795_read_alarm()
349 alm->time.tm_mon, alm->time.tm_mday, alm->time.tm_wday, in mcp795_read_alarm()
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-fm3130.c126 t->tm_mday = bcd2bin(fm3130->regs[FM3130_RTC_DATE] & 0x3f); in fm3130_get_time()
136 t->tm_hour, t->tm_mday, in fm3130_get_time()
152 t->tm_hour, t->tm_mday, in fm3130_set_time()
160 buf[FM3130_RTC_DATE] = bin2bcd(t->tm_mday); in fm3130_set_time()
219 tm->tm_mday = bcd2bin(fm3130->regs[FM3130_ALARM_DATE] & 0x3F); in fm3130_read_alarm()
228 tm->tm_hour, tm->tm_mday, in fm3130_read_alarm()
253 tm->tm_hour, tm->tm_mday, in fm3130_set_alarm()
266 (tm->tm_mday != -1) ? bin2bcd(tm->tm_mday) : 0x80; in fm3130_set_alarm()
Drtc-m48t35.c65 tm->tm_mday = readb(&priv->reg->date); in m48t35_read_time()
74 tm->tm_mday = bcd2bin(tm->tm_mday); in m48t35_read_time()
99 day = tm->tm_mday; in m48t35_set_time()
Drtc-m41t93.c58 tm->tm_hour, tm->tm_mday, in m41t93_set_time()
95 data[M41T93_REG_DAY] = bin2bcd(tm->tm_mday); in m41t93_set_time()
149 tm->tm_mday = bcd2bin(buf[M41T93_REG_DAY]); in m41t93_get_time()
159 tm->tm_hour, tm->tm_mday, in m41t93_get_time()
Drtc-m48t59.c80 tm->tm_mday = bcd2bin(M48T59_READ(M48T59_MDAY)); in m48t59_rtc_read_time()
103 tm->tm_year + 1900, tm->tm_mon, tm->tm_mday, in m48t59_rtc_read_time()
122 year + 1900, tm->tm_mon, tm->tm_mday, in m48t59_rtc_set_time()
135 M48T59_WRITE((bin2bcd(tm->tm_mday) & 0x3F), M48T59_MDAY); in m48t59_rtc_set_time()
182 tm->tm_mday = bcd2bin(M48T59_READ(M48T59_ALARM_DATE)); in m48t59_rtc_readalarm()
192 tm->tm_year + 1900, tm->tm_mon, tm->tm_mday, in m48t59_rtc_readalarm()
224 mday = tm->tm_mday; in m48t59_rtc_setalarm()
252 year + 1900, tm->tm_mon, tm->tm_mday, in m48t59_rtc_setalarm()
Drtc-rx8581.c116 tm->tm_mday = bcd2bin(date[RX8581_REG_DM] & 0x3F); in rx8581_rtc_read_time()
124 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rx8581_rtc_read_time()
140 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rx8581_rtc_set_time()
147 buf[RX8581_REG_DM] = bin2bcd(tm->tm_mday); in rx8581_rtc_set_time()
Drtc-rx4581.c162 tm->tm_mday = bcd2bin(date[RX4581_REG_DM] & 0x3F); in rx4581_get_datetime()
173 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rx4581_get_datetime()
188 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rx4581_set_datetime()
196 buf[RX4581_REG_DM+1] = bin2bcd(tm->tm_mday); in rx4581_set_datetime()
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-rx6110.c119 tm->tm_mday, tm->tm_mon, tm->tm_year); in rx6110_rtc_tm_to_data()
133 data[RTC_MDAY] = bin2bcd(tm->tm_mday); in rx6110_rtc_tm_to_data()
153 tm->tm_mday = bcd2bin(data[RTC_MDAY] & 0x3f); in rx6110_data_to_rtc_tm()
159 tm->tm_mday, tm->tm_mon, tm->tm_year); in rx6110_data_to_rtc_tm()
253 tm->tm_mday, tm->tm_mon, tm->tm_year); in rx6110_get_time()
Drtc-moxart.c158 ((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()
Drtc-pcf8563.c231 tm->tm_mday = bcd2bin(buf[PCF8563_REG_DM] & 0x3F); in pcf8563_get_datetime()
245 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in pcf8563_get_datetime()
259 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in pcf8563_set_datetime()
266 buf[PCF8563_REG_DM] = bin2bcd(tm->tm_mday); in pcf8563_set_datetime()
347 tm->time.tm_mday = bcd2bin(buf[2] & 0x3F); in pcf8563_rtc_read_alarm()
356 tm->time.tm_hour, tm->time.tm_mday, tm->time.tm_wday, in pcf8563_rtc_read_alarm()
379 tm->time.tm_mday, tm->enabled, tm->pending); in pcf8563_rtc_set_alarm()
383 buf[2] = bin2bcd(tm->time.tm_mday); in pcf8563_rtc_set_alarm()
Drtc-bq4802.c64 tm->tm_mday = p->read(p, 0x06); in bq4802_read_time()
77 tm->tm_mday = bcd2bin(tm->tm_mday); in bq4802_read_time()
103 day = tm->tm_mday; in bq4802_set_time()
/linux-4.19.296/drivers/base/power/
Dtrace.c93 .tm_mday = 7, in set_magic_time()
105 time.tm_mday = (n % 28) + 1; in set_magic_time()
124 time.tm_mon + 1, time.tm_mday, time.tm_year % 100); in read_magic_time()
129 val += (time.tm_mday-1) * 100 * 12; /* 28 month-days */ in read_magic_time()

123456