Home
last modified time | relevance | path

Searched refs:tm_mon (Results 1 – 25 of 130) sorted by relevance

123456

/linux-4.19.296/drivers/rtc/
Drtc-pic32.c151 rtc_tm->tm_mon = readb(base + PIC32_RTCMON); in pic32_rtc_gettime()
168 rtc_tm->tm_mon = bcd2bin(rtc_tm->tm_mon) - 1; 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()
201 writeb(bin2bcd(tm->tm_mon + 1), base + PIC32_RTCMON); in pic32_rtc_settime()
219 alm_tm->tm_mon = readb(base + PIC32_ALRMMON); in pic32_rtc_getalarm()
229 1900 + alm_tm->tm_year, alm_tm->tm_mon, alm_tm->tm_mday, in pic32_rtc_getalarm()
236 alm_tm->tm_mon = bcd2bin(alm_tm->tm_mon) - 1; in pic32_rtc_getalarm()
252 1900 + tm->tm_year, tm->tm_mon + 1, tm->tm_mday, in pic32_rtc_setalarm()
Drtc-wm8350.c67 tm->tm_mon = ((time1[2] & WM8350_RTC_MTH_MASK) in wm8350_rtc_readtime()
76 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, in wm8350_rtc_readtime()
107 time[2] |= (tm->tm_mon + 1) << WM8350_RTC_MTH_SHIFT; in wm8350_rtc_settime()
173 tm->tm_mon = time[2] & WM8350_RTC_ALMMTH_MASK; in wm8350_rtc_readalarm()
174 if (tm->tm_mon == WM8350_RTC_ALMMTH_MASK) in wm8350_rtc_readalarm()
175 tm->tm_mon = -1; in wm8350_rtc_readalarm()
177 tm->tm_mon = (tm->tm_mon >> WM8350_RTC_ALMMTH_SHIFT) - 1; in wm8350_rtc_readalarm()
282 if (tm->tm_mon != -1) in wm8350_rtc_setalarm()
283 time[2] |= (tm->tm_mon + 1) << WM8350_RTC_ALMMTH_SHIFT; in wm8350_rtc_setalarm()
Drtc-lib.c83 tm->tm_mon = month; in rtc_time64_to_tm()
101 || ((unsigned)tm->tm_mon) >= 12 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-mc146818-lib.c57 time->tm_mon = CMOS_READ(RTC_MONTH); in mc146818_get_time()
76 time->tm_mon = bcd2bin(time->tm_mon); in mc146818_get_time()
95 time->tm_mon--; in mc146818_get_time()
114 mon = time->tm_mon + 1; /* tm_mon starts at zero */ in mc146818_set_time()
Drtc-rk808.c70 return (tm->tm_year + 1900) - 2016 + (tm->tm_mon + 1 > 11 ? 1 : 0); in nov2dec_transitions()
88 if (tm->tm_mon + 1 == 11) in gregorian_to_rockchip()
137 tm->tm_mon = (bcd2bin(rtc_data[4] & MONTHS_REG_MSK)) - 1; 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()
164 rtc_data[4] = bin2bcd(tm->tm_mon + 1); in rk808_rtc_set_time()
209 alrm->time.tm_mon = (bcd2bin(alrm_data[4] & MONTHS_REG_MSK)) - 1; in rk808_rtc_readalarm()
220 1900 + alrm->time.tm_year, alrm->time.tm_mon + 1, in rk808_rtc_readalarm()
265 1900 + alrm->time.tm_year, alrm->time.tm_mon + 1, in rk808_rtc_setalarm()
274 alrm_data[4] = bin2bcd(alrm->time.tm_mon + 1); in rk808_rtc_setalarm()
Drtc-at91rm9200.c137 tm->tm_mon = bcd2bin((date & AT91_RTC_MONTH) >> 16) - 1; 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()
186 | bin2bcd(tm->tm_mon + 1) << 16 /* tm_mon starts at zero */ in at91_rtc_settime()
213 tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, in at91_rtc_readalarm()
228 tm.tm_mon = alrm->time.tm_mon; in at91_rtc_setalarm()
241 bin2bcd(tm.tm_mon + 1) << 16 /* tm_mon starts at zero */ in at91_rtc_setalarm()
251 tm.tm_year, tm.tm_mon, tm.tm_mday, tm.tm_hour, in at91_rtc_setalarm()
Drtc-s3c.c204 rtc_tm->tm_mon = readb(info->base + S3C2410_RTCMON); in s3c_rtc_gettime()
222 rtc_tm->tm_mon = bcd2bin(rtc_tm->tm_mon); in s3c_rtc_gettime()
230 1900 + rtc_tm->tm_year, rtc_tm->tm_mon, rtc_tm->tm_mday, in s3c_rtc_gettime()
233 rtc_tm->tm_mon -= 1; in s3c_rtc_gettime()
245 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, in s3c_rtc_settime()
263 writeb(bin2bcd(tm->tm_mon + 1), info->base + S3C2410_RTCMON); in s3c_rtc_settime()
285 alm_tm->tm_mon = readb(info->base + S3C2410_ALMMON); in s3c_rtc_getalarm()
297 1900 + alm_tm->tm_year, alm_tm->tm_mon, alm_tm->tm_mday, in s3c_rtc_getalarm()
314 alm_tm->tm_mon = bcd2bin(alm_tm->tm_mon); in s3c_rtc_getalarm()
315 alm_tm->tm_mon -= 1; in s3c_rtc_getalarm()
[all …]
Drtc-moxart.c154 (((tm->tm_mon + 1) / 10) << 4) | in moxart_rtc_set_time()
155 ((tm->tm_mon + 1) % 10)); in moxart_rtc_set_time()
179 __func__, tm->tm_year, tm->tm_mon, tm->tm_mday, in moxart_rtc_set_time()
214 tm->tm_mon = (((v & 0x10) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time()
215 tm->tm_mon--; in moxart_rtc_read_time()
225 tm->tm_yday = day_of_year[tm->tm_mon]; in moxart_rtc_read_time()
227 if (tm->tm_mon >= 2) { in moxart_rtc_read_time()
Drtc-m48t35.c66 tm->tm_mon = readb(&priv->reg->month); in m48t35_read_time()
75 tm->tm_mon = bcd2bin(tm->tm_mon); in m48t35_read_time()
86 tm->tm_mon--; in m48t35_read_time()
98 mon = tm->tm_mon + 1; /* tm_mon starts at zero */ in m48t35_set_time()
Drtc-fm3130.c128 t->tm_mon = bcd2bin(tmp) - 1; in fm3130_get_time()
137 t->tm_mon, t->tm_year, t->tm_wday); in fm3130_get_time()
153 t->tm_mon, t->tm_year, t->tm_wday); in fm3130_set_time()
161 buf[FM3130_RTC_MONTHS] = bin2bcd(t->tm_mon + 1); in fm3130_set_time()
220 tm->tm_mon = bcd2bin(fm3130->regs[FM3130_ALARM_MONTHS] & 0x1F); in fm3130_read_alarm()
222 if (tm->tm_mon > 0) in fm3130_read_alarm()
223 tm->tm_mon -= 1; /* RTC is 1-12, tm_mon is 0-11 */ in fm3130_read_alarm()
229 tm->tm_mon, tm->tm_year, tm->tm_wday); in fm3130_read_alarm()
254 tm->tm_mon, tm->tm_year, tm->tm_wday); in fm3130_set_alarm()
269 (tm->tm_mon != -1) ? bin2bcd(tm->tm_mon + 1) : 0x80; in fm3130_set_alarm()
Drtc-mt6397.c148 tm->tm_mon = data[RTC_OFFSET_MTH]; in __mtk_rtc_read_time()
176 tm->tm_mon--; in mtk_rtc_read_time()
196 tm->tm_mon++; in mtk_rtc_set_time()
202 data[RTC_OFFSET_MTH] = tm->tm_mon; in mtk_rtc_set_time()
248 tm->tm_mon = data[RTC_OFFSET_MTH] & RTC_AL_MTH_MASK; in mtk_rtc_read_alarm()
252 tm->tm_mon--; in mtk_rtc_read_alarm()
268 tm->tm_mon++; in mtk_rtc_set_alarm()
285 (tm->tm_mon & RTC_AL_MTH_MASK)); in mtk_rtc_set_alarm()
Drtc-m41t94.c41 tm->tm_mon, tm->tm_year, tm->tm_wday); in m41t94_set_time()
49 buf[M41T94_REG_MONTH] = bin2bcd(tm->tm_mon + 1); in m41t94_set_time()
91 tm->tm_mon = bcd2bin(spi_w8r8(spi, M41T94_REG_MONTH)) - 1; in m41t94_read_time()
100 tm->tm_mon, tm->tm_year, tm->tm_wday); in m41t94_read_time()
Drtc-bq4802.c65 tm->tm_mon = p->read(p, 0x09); in bq4802_read_time()
78 tm->tm_mon = bcd2bin(tm->tm_mon); in bq4802_read_time()
86 tm->tm_mon--; in bq4802_read_time()
102 mon = tm->tm_mon + 1; /* tm_mon starts at zero */ in bq4802_set_time()
Drtc-spear.c179 tm->tm_mon = bin2bcd(tm->tm_mon + 1); in tm2bcd()
189 tm->tm_mon = bcd2bin(tm->tm_mon) - 1; in bcd2tm()
216 tm->tm_mon = (date >> MONTH_SHIFT) & MONTH_MASK; in spear_rtc_read_time()
241 date = (tm->tm_mday << MDAY_SHIFT) | (tm->tm_mon << MONTH_SHIFT) | in spear_rtc_set_time()
270 alm->time.tm_mon = (date >> MONTH_SHIFT) & MONTH_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.c209 data[5] = (data[5] & MCP795_LP_BIT) | bin2bcd(tim->tm_mon + 1); in mcp795_set_time()
237 tim->tm_year + 1900, tim->tm_mon, tim->tm_mday, in mcp795_set_time()
258 tim->tm_mon = bcd2bin(data[5] & 0x1F) - 1; in mcp795_read_time()
262 tim->tm_year + 1900, tim->tm_mon, tim->tm_mday, in mcp795_read_time()
309 tmp[5] = (tmp[5] & 0xE0) | bin2bcd(alm->time.tm_mon + 1); in mcp795_set_alarm()
323 alm->time.tm_mon, alm->time.tm_mday, alm->time.tm_wday, in mcp795_set_alarm()
343 alm->time.tm_mon = bcd2bin(data[5] & 0x1F) - 1; in mcp795_read_alarm()
349 alm->time.tm_mon, alm->time.tm_mday, alm->time.tm_wday, in mcp795_read_alarm()
Drtc-tps80031.c83 tm->tm_mon = bcd2bin(buff[4]) - 1; in tps80031_rtc_read_time()
98 buff[4] = bin2bcd(tm->tm_mon + 1); in tps80031_rtc_set_time()
152 buff[4] = bin2bcd(alrm->time.tm_mon + 1); in tps80031_rtc_set_alarm()
182 alrm->time.tm_mon = bcd2bin(buff[4]) - 1; in tps80031_rtc_read_alarm()
260 (tm.tm_mon == (TPS80031_RTC_POR_MONTH - 1)) && in tps80031_rtc_probe()
264 tm.tm_mon = 1; in tps80031_rtc_probe()
Drtc-proc.c56 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday); in rtc_proc_show()
80 if ((unsigned int)alrm.time.tm_mon <= 11) in rtc_proc_show()
81 seq_printf(seq, "%02d-", alrm.time.tm_mon + 1); in rtc_proc_show()
Drtc-m41t93.c59 tm->tm_mon, tm->tm_year, tm->tm_wday); in m41t93_set_time()
97 data[M41T93_REG_MON] = bin2bcd(tm->tm_mon + 1); in m41t93_set_time()
150 tm->tm_mon = bcd2bin(buf[M41T93_REG_MON]) - 1; in m41t93_get_time()
160 tm->tm_mon, tm->tm_year, tm->tm_wday); in m41t93_get_time()
Drtc-rx8581.c117 tm->tm_mon = bcd2bin(date[RX8581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ 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()
150 buf[RX8581_REG_MO] = bin2bcd(tm->tm_mon + 1); in rx8581_rtc_set_time()
Drtc-rx4581.c163 tm->tm_mon = bcd2bin(date[RX4581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ 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()
199 buf[RX4581_REG_MO+1] = bin2bcd(tm->tm_mon + 1); in rx4581_set_datetime()
Drtc-rx6110.c119 tm->tm_mday, tm->tm_mon, tm->tm_year); in rx6110_rtc_tm_to_data()
134 data[RTC_MONTH] = bin2bcd(tm->tm_mon + 1); in rx6110_rtc_tm_to_data()
154 tm->tm_mon = bcd2bin(data[RTC_MONTH] & 0x1f) - 1; 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-da9052.c84 rtc_tm->tm_mon = (v[0][3] & DA9052_RTC_MONTH) - 1; in da9052_read_alarm()
122 rtc_tm->tm_mon += 1; in da9052_set_alarm()
133 v[2] = rtc_tm->tm_mon; in da9052_set_alarm()
184 rtc_tm->tm_mon = (v[0][4] & DA9052_RTC_MONTH) - 1; in da9052_rtc_read_time()
219 v[4] = tm->tm_mon + 1; in da9052_rtc_set_time()
Drtc-isl12022.c144 tm->tm_mon = bcd2bin(buf[ISL12022_REG_MO] & 0x1F) - 1; in isl12022_rtc_read_time()
151 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in isl12022_rtc_read_time()
168 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in isl12022_rtc_set_time()
215 buf[ISL12022_REG_MO] = bin2bcd(tm->tm_mon + 1); in isl12022_rtc_set_time()
Drtc-rtd119x.c117 tm->tm_mon = 0; in rtd119x_rtc_read_time()
118 while (day >= rtc_month_days(tm->tm_mon, year)) { in rtd119x_rtc_read_time()
119 day -= rtc_month_days(tm->tm_mon, year); in rtd119x_rtc_read_time()
120 tm->tm_mon++; in rtd119x_rtc_read_time()
/linux-4.19.296/drivers/base/power/
Dtrace.c94 .tm_mon = 5, // June - counting from zero in set_magic_time()
103 time.tm_mon = (n % 12); in set_magic_time()
124 time.tm_mon + 1, time.tm_mday, time.tm_year % 100); in read_magic_time()
128 val += time.tm_mon * 100; /* 12 months */ in read_magic_time()

123456