Searched refs:tm_mon (Results 1 - 163 of 163) sorted by relevance

/linux-4.4.14/drivers/rtc/
H A Drtc-bq4802.c66 tm->tm_mon = p->read(p, 0x09); bq4802_read_time()
79 tm->tm_mon = bcd2bin(tm->tm_mon); bq4802_read_time()
87 tm->tm_mon--; bq4802_read_time()
104 mon = tm->tm_mon + 1; /* tm_mon starts at zero */ bq4802_set_time()
H A Drtc-m48t35.c68 tm->tm_mon = readb(&priv->reg->month); m48t35_read_time()
77 tm->tm_mon = bcd2bin(tm->tm_mon); m48t35_read_time()
88 tm->tm_mon--; m48t35_read_time()
100 mon = tm->tm_mon + 1; /* tm_mon starts at zero */ m48t35_set_time()
H A Drtc-m48t86.c59 /* tm_mon is 0-11 */ m48t86_rtc_read_time()
60 tm->tm_mon = ops->readbyte(M48T86_REG_MONTH) - 1; m48t86_rtc_read_time()
69 /* tm_mon is 0-11 */ m48t86_rtc_read_time()
70 tm->tm_mon = bcd2bin(ops->readbyte(M48T86_REG_MONTH)) - 1; m48t86_rtc_read_time()
101 ops->writebyte(tm->tm_mon + 1, M48T86_REG_MONTH); m48t86_rtc_set_time()
110 ops->writebyte(bin2bcd(tm->tm_mon + 1), M48T86_REG_MONTH); m48t86_rtc_set_time()
H A Drtc-lib.c85 tm->tm_mon = month; rtc_time64_to_tm()
103 || ((unsigned)tm->tm_mon) >= 12 rtc_valid_tm()
105 || tm->tm_mday > rtc_month_days(tm->tm_mon, tm->tm_year + 1900) rtc_valid_tm()
121 return mktime64(tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, rtc_tm_to_time64()
H A Drtc-m41t94.c41 tm->tm_mon, tm->tm_year, tm->tm_wday); m41t94_set_time()
49 buf[M41T94_REG_MONTH] = bin2bcd(tm->tm_mon + 1); m41t94_set_time()
91 tm->tm_mon = bcd2bin(spi_w8r8(spi, M41T94_REG_MONTH)) - 1; m41t94_read_time()
100 tm->tm_mon, tm->tm_year, tm->tm_wday); m41t94_read_time()
H A Drtc-tile.c36 tm->tm_mon = hvtm.tm_mon; read_rtc_time()
60 hvtm.tm_mon = tm->tm_mon; set_rtc_time()
H A Drtc-moxart.c154 (((tm->tm_mon + 1) / 10) << 4) | moxart_rtc_set_time()
155 ((tm->tm_mon + 1) % 10)); moxart_rtc_set_time()
177 dev_dbg(dev, "%s: success tm_year=%d tm_mon=%d\n" moxart_rtc_set_time()
179 __func__, tm->tm_year, tm->tm_mon, tm->tm_mday, moxart_rtc_set_time()
214 tm->tm_mon = (((v & 0x10) >> 4) * 10) + (v & 0x0F); moxart_rtc_read_time()
215 tm->tm_mon--; moxart_rtc_read_time()
225 tm->tm_yday = day_of_year[tm->tm_mon]; moxart_rtc_read_time()
227 if (tm->tm_mon >= 2) { moxart_rtc_read_time()
H A Drtc-mcp795.c110 data[5] = (data[5] & 0x10) | (tim->tm_mon / 10) | (tim->tm_mon % 10); mcp795_set_time()
123 tim->tm_year + 1900, tim->tm_mon, tim->tm_mday, mcp795_set_time()
143 tim->tm_mon = ((data[5] & 0x10) >> 4) * 10 + (data[5] & 0x0f); mcp795_read_time()
147 tim->tm_year + 1900, tim->tm_mon, tim->tm_mday, mcp795_read_time()
H A Drtc-wm8350.c69 tm->tm_mon = ((time1[2] & WM8350_RTC_MTH_MASK) wm8350_rtc_readtime()
78 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, wm8350_rtc_readtime()
109 time[2] |= (tm->tm_mon + 1) << WM8350_RTC_MTH_SHIFT; wm8350_rtc_settime()
175 tm->tm_mon = time[2] & WM8350_RTC_ALMMTH_MASK; wm8350_rtc_readalarm()
176 if (tm->tm_mon == WM8350_RTC_ALMMTH_MASK) wm8350_rtc_readalarm()
177 tm->tm_mon = -1; wm8350_rtc_readalarm()
179 tm->tm_mon = (tm->tm_mon >> WM8350_RTC_ALMMTH_SHIFT) - 1; wm8350_rtc_readalarm()
284 if (tm->tm_mon != -1) wm8350_rtc_setalarm()
285 time[2] |= (tm->tm_mon + 1) << WM8350_RTC_ALMMTH_SHIFT; wm8350_rtc_setalarm()
H A Drtc-at91rm9200.c141 tm->tm_mon = bcd2bin((date & AT91_RTC_MONTH) >> 16) - 1; at91_rtc_decodetime()
151 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, tm->tm_year); at91_rtc_readtime()
155 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, at91_rtc_readtime()
169 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, at91_rtc_settime()
190 | bin2bcd(tm->tm_mon + 1) << 16 /* tm_mon starts at zero */ at91_rtc_settime()
211 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, tm->tm_year); at91_rtc_readalarm()
218 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, at91_rtc_readalarm()
235 tm.tm_mon = alrm->time.tm_mon; at91_rtc_setalarm()
248 bin2bcd(tm.tm_mon + 1) << 16 /* tm_mon starts at zero */ at91_rtc_setalarm()
258 at91_alarm_year, tm.tm_mon, tm.tm_mday, tm.tm_hour, at91_rtc_setalarm()
H A Drtc-s3c.c174 rtc_tm->tm_mon = readb(info->base + S3C2410_RTCMON); s3c_rtc_gettime()
192 rtc_tm->tm_mon = bcd2bin(rtc_tm->tm_mon); s3c_rtc_gettime()
200 1900 + rtc_tm->tm_year, rtc_tm->tm_mon, rtc_tm->tm_mday, s3c_rtc_gettime()
203 rtc_tm->tm_mon -= 1; s3c_rtc_gettime()
214 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, s3c_rtc_settime()
230 writeb(bin2bcd(tm->tm_mon + 1), info->base + S3C2410_RTCMON); s3c_rtc_settime()
249 alm_tm->tm_mon = readb(info->base + S3C2410_ALMMON); s3c_rtc_getalarm()
261 1900 + alm_tm->tm_year, alm_tm->tm_mon, alm_tm->tm_mday, s3c_rtc_getalarm()
286 alm_tm->tm_mon = bcd2bin(alm_tm->tm_mon); s3c_rtc_getalarm()
287 alm_tm->tm_mon -= 1; s3c_rtc_getalarm()
289 alm_tm->tm_mon = -1; s3c_rtc_getalarm()
309 1900 + tm->tm_year, tm->tm_mon + 1, tm->tm_mday, s3c_rtc_setalarm()
337 if (tm->tm_mon < 12 && tm->tm_mon >= 0) { s3c_rtc_setalarm()
339 writeb(bin2bcd(tm->tm_mon + 1), info->base + S3C2410_ALMMON); s3c_rtc_setalarm()
532 rtc_tm.tm_mon = 0; s3c_rtc_probe()
H A Drtc-mt6397.c140 tm->tm_mon = data[RTC_OFFSET_MTH]; __mtk_rtc_read_time()
167 /* HW register start mon from one, but tm_mon start from zero. */ mtk_rtc_read_time()
168 tm->tm_mon--; mtk_rtc_read_time()
188 tm->tm_mon++; mtk_rtc_set_time()
194 data[RTC_OFFSET_MTH] = tm->tm_mon; mtk_rtc_set_time()
240 tm->tm_mon = data[RTC_OFFSET_MTH]; mtk_rtc_read_alarm()
244 tm->tm_mon--; mtk_rtc_read_alarm()
260 tm->tm_mon++; mtk_rtc_set_alarm()
266 data[RTC_OFFSET_MTH] = tm->tm_mon; mtk_rtc_set_alarm()
H A Drtc-fm3130.c128 t->tm_mon = bcd2bin(tmp) - 1; fm3130_get_time()
137 t->tm_mon, t->tm_year, t->tm_wday); fm3130_get_time()
154 t->tm_mon, t->tm_year, t->tm_wday); fm3130_set_time()
162 buf[FM3130_RTC_MONTHS] = bin2bcd(t->tm_mon + 1); fm3130_set_time()
221 tm->tm_mon = bcd2bin(fm3130->regs[FM3130_ALARM_MONTHS] & 0x1F); fm3130_read_alarm()
223 if (tm->tm_mon > 0) fm3130_read_alarm()
224 tm->tm_mon -= 1; /* RTC is 1-12, tm_mon is 0-11 */ fm3130_read_alarm()
230 tm->tm_mon, tm->tm_year, tm->tm_wday); fm3130_read_alarm()
255 tm->tm_mon, tm->tm_year, tm->tm_wday); fm3130_set_alarm()
270 (tm->tm_mon != -1) ? bin2bcd(tm->tm_mon + 1) : 0x80; fm3130_set_alarm()
H A Drtc-proc.c56 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday); rtc_proc_show()
80 if ((unsigned int)alrm.time.tm_mon <= 11) rtc_proc_show()
81 seq_printf(seq, "%02d-", alrm.time.tm_mon + 1); rtc_proc_show()
H A Drtc-m41t93.c59 tm->tm_mon, tm->tm_year, tm->tm_wday); m41t93_set_time()
97 data[M41T93_REG_MON] = bin2bcd(tm->tm_mon + 1); m41t93_set_time()
150 tm->tm_mon = bcd2bin(buf[M41T93_REG_MON]) - 1; m41t93_get_time()
160 tm->tm_mon, tm->tm_year, tm->tm_wday); m41t93_get_time()
H A Drtc-tps80031.c83 tm->tm_mon = bcd2bin(buff[4]) - 1; tps80031_rtc_read_time()
98 buff[4] = bin2bcd(tm->tm_mon + 1); tps80031_rtc_set_time()
152 buff[4] = bin2bcd(alrm->time.tm_mon + 1); tps80031_rtc_set_alarm()
182 alrm->time.tm_mon = bcd2bin(buff[4]) - 1; tps80031_rtc_read_alarm()
260 (tm.tm_mon == (TPS80031_RTC_POR_MONTH - 1)) && tps80031_rtc_probe()
264 tm.tm_mon = 1; tps80031_rtc_probe()
H A Drtc-m48t59.c81 /* tm_mon is 0-11 */ m48t59_rtc_read_time()
82 tm->tm_mon = bcd2bin(M48T59_READ(M48T59_MONTH)) - 1; m48t59_rtc_read_time()
106 tm->tm_year + 1900, tm->tm_mon, tm->tm_mday, m48t59_rtc_read_time()
126 year + 1900, tm->tm_mon, tm->tm_mday, m48t59_rtc_set_time()
140 /* tm_mon is 0-11 */ m48t59_rtc_set_time()
141 M48T59_WRITE((bin2bcd(tm->tm_mon + 1) & 0x1F), M48T59_MONTH); m48t59_rtc_set_time()
180 /* tm_mon is 0-11 */ m48t59_rtc_readalarm()
181 tm->tm_mon = bcd2bin(M48T59_READ(M48T59_MONTH)) - 1; m48t59_rtc_readalarm()
197 tm->tm_year + 1900, tm->tm_mon, tm->tm_mday, m48t59_rtc_readalarm()
258 year + 1900, tm->tm_mon, tm->tm_mday, m48t59_rtc_setalarm()
H A Drtc-rk808.c70 return (tm->tm_year + 1900) - 2016 + (tm->tm_mon + 1 > 11 ? 1 : 0); nov2dec_transitions()
88 if (tm->tm_mon + 1 == 11) gregorian_to_rockchip()
137 tm->tm_mon = (bcd2bin(rtc_data[4] & MONTHS_REG_MSK)) - 1; rk808_rtc_readtime()
142 1900 + tm->tm_year, tm->tm_mon + 1, tm->tm_mday, rk808_rtc_readtime()
157 1900 + tm->tm_year, tm->tm_mon + 1, tm->tm_mday, rk808_rtc_set_time()
164 rtc_data[4] = bin2bcd(tm->tm_mon + 1); rk808_rtc_set_time()
209 alrm->time.tm_mon = (bcd2bin(alrm_data[4] & MONTHS_REG_MSK)) - 1; rk808_rtc_readalarm()
220 1900 + alrm->time.tm_year, alrm->time.tm_mon + 1, rk808_rtc_readalarm()
265 1900 + alrm->time.tm_year, alrm->time.tm_mon + 1, rk808_rtc_setalarm()
274 alrm_data[4] = bin2bcd(alrm->time.tm_mon + 1); rk808_rtc_setalarm()
H A Drtc-da9052.c84 rtc_tm->tm_mon = (v[0][3] & DA9052_RTC_MONTH) - 1; da9052_read_alarm()
121 rtc_tm->tm_mon += 1; da9052_set_alarm()
132 v[2] = rtc_tm->tm_mon; da9052_set_alarm()
183 rtc_tm->tm_mon = (v[0][4] & DA9052_RTC_MONTH) - 1; da9052_rtc_read_time()
219 v[4] = tm->tm_mon + 1; da9052_rtc_set_time()
H A Drtc-da9055.c73 rtc_tm->tm_mon = (v[3] & DA9055_RTC_ALM_MONTH) - 1; da9055_read_alarm()
87 rtc_tm->tm_mon += 1; da9055_set_alarm()
104 DA9055_RTC_ALM_MONTH, rtc_tm->tm_mon); da9055_set_alarm()
154 rtc_tm->tm_mon = (v[4] & DA9055_RTC_MONTH) - 1; da9055_rtc_read_time()
174 v[4] = tm->tm_mon + 1; da9055_rtc_set_time()
H A Drtc-mv.c62 (bin2bcd(tm->tm_mon + 1) << RTC_MONTH_OFFS) | mv_rtc_set_time()
93 tm->tm_mon = bcd2bin(month) - 1; mv_rtc_read_time()
124 alm->time.tm_mon = bcd2bin(month) - 1; mv_rtc_read_alarm()
161 if (alm->time.tm_mon >= 0) mv_rtc_set_alarm()
162 rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_mon + 1)) mv_rtc_set_alarm()
H A Drtc-ds1302.c151 tm->tm_mon = bcd2bin(ds1302_readbyte(RTC_ADDR_MON)) - 1; ds1302_rtc_read_time()
161 tm->tm_mday, tm->tm_mon + 1, tm->tm_year, tm->tm_wday); ds1302_rtc_read_time()
177 ds1302_writebyte(RTC_ADDR_MON, bin2bcd(tm->tm_mon + 1)); ds1302_rtc_set_time()
H A Drtc-msm6242.c140 tm->tm_mon = msm6242_read(priv, MSM6242_MONTH10) * 10 + msm6242_read_time()
183 msm6242_write(priv, (tm->tm_mon + 1) / 10, MSM6242_MONTH10); msm6242_set_time()
184 msm6242_write(priv, (tm->tm_mon + 1) % 10, MSM6242_MONTH1); msm6242_set_time()
H A Drtc-r9701.c88 dt->tm_mon = bcd2bin(buf[4]) - 1; /* RMONCNT */ r9701_get_datetime()
110 ret = ret ? ret : write_reg(dev, RMONCNT, bin2bcd(dt->tm_mon + 1)); r9701_set_datetime()
147 dt.tm_mon = 0; r9701_probe()
H A Drtc-ds1286.c191 tm->tm_mon = ds1286_rtc_read(priv, RTC_MONTH) & 0x1f; ds1286_read_time()
201 tm->tm_mon = bcd2bin(tm->tm_mon); ds1286_read_time()
214 tm->tm_mon--; ds1286_read_time()
228 mon = tm->tm_mon + 1; /* tm_mon starts at zero */ ds1286_set_time()
H A Drtc-ds1216.c99 tm->tm_mon = bcd2bin(regs.month & 0x1f); ds1216_rtc_read_time()
128 regs.month = bin2bcd(tm->tm_mon); ds1216_rtc_set_time()
H A Drtc-em3027.c77 tm->tm_mon = bcd2bin(buf[5]); em3027_get_time()
100 buf[6] = bin2bcd(tm->tm_mon); em3027_set_time()
H A Drtc-max6902.c74 dt->tm_mon = bcd2bin(buf[4]) - 1; max6902_read_time()
103 max6902_set_reg(dev, MAX6902_REG_MONTH, bin2bcd(dt->tm_mon + 1)); max6902_set_time()
H A Drtc-spear.c181 tm->tm_mon = bin2bcd(tm->tm_mon + 1); tm2bcd()
193 tm->tm_mon = bcd2bin(tm->tm_mon) - 1; bcd2tm()
220 tm->tm_mon = (date >> MONTH_SHIFT) & MONTH_MASK; spear_rtc_read_time()
246 date = (tm->tm_mday << MDAY_SHIFT) | (tm->tm_mon << MONTH_SHIFT) | spear_rtc_set_time()
275 alm->time.tm_mon = (date >> MONTH_SHIFT) & MONTH_MASK; spear_rtc_read_alarm()
305 date = (alm->time.tm_mday << MDAY_SHIFT) | (alm->time.tm_mon << spear_rtc_set_alarm()
H A Drtc-sh.c376 tm->tm_mon = bcd2bin(readb(rtc->regbase + RMONCNT)) - 1; sh_rtc_read_time()
408 tm->tm_mday, tm->tm_mon + 1, tm->tm_year, tm->tm_wday); sh_rtc_read_time()
433 writeb(bin2bcd(tm->tm_mon + 1), rtc->regbase + RMONCNT); sh_rtc_set_time()
482 tm->tm_mon = sh_rtc_read_alarm_value(rtc, RMONAR); sh_rtc_read_alarm()
483 if (tm->tm_mon > 0) sh_rtc_read_alarm()
484 tm->tm_mon -= 1; /* RTC is 1-12, tm_mon is 0-11 */ sh_rtc_read_alarm()
514 if (tm->tm_mon >= 0xff) sh_rtc_check_alarm()
515 tm->tm_mon = -1; sh_rtc_check_alarm()
528 tm->tm_mon >= 12 || sh_rtc_check_alarm()
564 mon = tm->tm_mon; sh_rtc_set_alarm()
H A Dhctosys.c57 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, rtc_hctosys()
H A Drtc-isl12022.c145 tm->tm_mon = bcd2bin(buf[ISL12022_REG_MO] & 0x1F) - 1; isl12022_get_datetime()
152 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); isl12022_get_datetime()
168 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); isl12022_set_datetime()
215 buf[ISL12022_REG_MO] = bin2bcd(tm->tm_mon + 1); isl12022_set_datetime()
H A Drtc-lp8788.c130 tm->tm_mon = data[LPTIME_MON] - LP8788_MONTH_OFFSET; lp8788_rtc_read_time()
155 data[LPTIME_MON] = tm->tm_mon + LP8788_MONTH_OFFSET; lp8788_rtc_set_time()
184 tm->tm_mon = data[LPTIME_MON] - LP8788_MONTH_OFFSET; lp8788_read_alarm()
210 data[LPTIME_MON] = tm->tm_mon + LP8788_MONTH_OFFSET; lp8788_set_alarm()
H A Drtc-lpc24xx.c87 rtc_writel(rtc, LPC24XX_MONTH, tm->tm_mon); lpc24xx_rtc_set_time()
108 tm->tm_mon = CT1_MONTH(ct1); lpc24xx_rtc_read_time()
127 tm->tm_mon = rtc_readl(rtc, LPC24XX_ALMON); lpc24xx_rtc_read_alarm()
150 rtc_writel(rtc, LPC24XX_ALMON, tm->tm_mon); lpc24xx_rtc_set_alarm()
H A Drtc-pcf2123.c157 tm->tm_mon = bcd2bin(rxbuf[5] & 0x1F) - 1; /* rtc mn 1-12 */ pcf2123_rtc_read_time()
166 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); pcf2123_rtc_read_time()
181 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); pcf2123_rtc_set_time()
198 txbuf[6] = bin2bcd((tm->tm_mon + 1) & 0x1F); /* rtc mn 1-12 */ pcf2123_rtc_set_time()
H A Drtc-pcf2127.c89 tm->tm_mon = bcd2bin(buf[PCF2127_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ pcf2127_get_datetime()
98 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); pcf2127_get_datetime()
112 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); pcf2127_set_datetime()
125 buf[i++] = bin2bcd(tm->tm_mon + 1); pcf2127_set_datetime()
H A Drtc-pcf50633.c74 rtc->tm_mon = bcd2bin(pcf->time[PCF50633_TI_MONTH]) - 1; pcf2rtc_time()
85 pcf->time[PCF50633_TI_MONTH] = bin2bcd(rtc->tm_mon + 1); rtc2pcf_time()
135 tm->tm_mday, tm->tm_mon, tm->tm_year, pcf50633_rtc_read_time()
150 tm->tm_mday, tm->tm_mon, tm->tm_year, pcf50633_rtc_set_time()
H A Drtc-puv3.c94 rtc_tm->tm_year, rtc_tm->tm_mon, rtc_tm->tm_mday, puv3_rtc_gettime()
105 tm->tm_year, tm->tm_mon, tm->tm_mday, puv3_rtc_settime()
124 alm_tm->tm_year, alm_tm->tm_mon, alm_tm->tm_mday, puv3_rtc_getalarm()
137 tm->tm_mday & 0xff, tm->tm_mon & 0xff, tm->tm_year & 0xff, puv3_rtc_setalarm()
H A Drtc-rc5t583.c87 tm->tm_mon = bcd2bin(rtc_data[5]) - 1; rc5t583_rtc_read_time()
104 rtc_data[5] = bin2bcd(tm->tm_mon + 1); rc5t583_rtc_set_time()
134 alm->time.tm_mon = bcd2bin(alarm_data[3]) - 1; rc5t583_rtc_read_alarm()
161 alarm_data[3] = bin2bcd(alm->time.tm_mon + 1); rc5t583_rtc_set_alarm()
H A Drtc-rx4581.c163 tm->tm_mon = bcd2bin(date[RX4581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ rx4581_get_datetime()
173 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); rx4581_get_datetime()
192 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); rx4581_set_datetime()
203 buf[RX4581_REG_MO+1] = bin2bcd(tm->tm_mon + 1); rx4581_set_datetime()
H A Drtc-tps65910.c81 tm->tm_mon = bcd2bin(rtc_data[4]) - 1; tps65910_rtc_read_time()
97 rtc_data[4] = bin2bcd(tm->tm_mon + 1); tps65910_rtc_set_time()
146 alm->time.tm_mon = bcd2bin(alarm_data[4]) - 1; tps65910_rtc_read_alarm()
173 alarm_data[4] = bin2bcd(alm->time.tm_mon + 1); tps65910_rtc_set_alarm()
H A Drtc-v3020.c230 dt->tm_mon = bcd2bin(tmp) - 1; v3020_read_time()
241 dev_dbg(dev, "tm_mon : %i\n", dt->tm_mon); v3020_read_time()
266 v3020_set_reg(chip, V3020_MONTH, bin2bcd(dt->tm_mon + 1)); v3020_set_time()
H A Drtc-davinci.c258 tm->tm_mon = mon; convertfromdays()
281 *days += rtc_year_days(tm->tm_mday, tm->tm_mon, 1900 + tm->tm_year); convert2days()
427 if (alm->time.tm_mday <= 0 && alm->time.tm_mon < 0 davinci_rtc_set_alarm()
436 alm->time.tm_mon = tm.tm_mon; davinci_rtc_set_alarm()
443 alm->time.tm_mon = tm.tm_mon; davinci_rtc_set_alarm()
H A Drtc-ds1511.c201 mon = rtc_tm->tm_mon + 1; /* tm_mon starts at zero */ ds1511_rtc_set_time()
211 if (day > rtc_month_days(rtc_tm->tm_mon, rtc_tm->tm_year)) ds1511_rtc_set_time()
257 rtc_tm->tm_mon = rtc_read(RTC_MON) & 0x1f; ds1511_rtc_read_time()
269 rtc_tm->tm_mon = bcd2bin(rtc_tm->tm_mon); ds1511_rtc_read_time()
280 rtc_tm->tm_mon--; ds1511_rtc_read_time()
H A Drtc-isl12057.c103 tm->tm_mon = bcd2bin(regs[ISL12057_REG_RTC_MO] & 0x1f) - 1; /* ditto */ isl12057_rtc_regs_to_tm()
132 regs[ISL12057_REG_RTC_MO] = bin2bcd(tm->tm_mon + 1) | century_bit; isl12057_rtc_tm_to_regs()
279 alarm_tm->tm_mon = rtc_tm.tm_mon; isl12057_rtc_read_alarm()
290 if (alarm_tm->tm_mon == 11) { isl12057_rtc_read_alarm()
291 alarm_tm->tm_mon = 0; isl12057_rtc_read_alarm()
294 alarm_tm->tm_mon += 1; isl12057_rtc_read_alarm()
345 if (rtc_tm.tm_mon == 11) { /* handle year wrapping */ isl12057_rtc_set_alarm()
346 rtc_tm.tm_mon = 0; isl12057_rtc_set_alarm()
349 rtc_tm.tm_mon += 1; isl12057_rtc_set_alarm()
H A Drtc-s5m.c129 tm->tm_mon = (data[RTC_MONTH] & 0x0f) - 1; s5m8767_data_to_tm()
147 data[RTC_MONTH] = tm->tm_mon + 1; s5m8767_tm_to_data()
297 tm->tm_mon = bcd2bin(data[RTC_MONTH]); s5m8763_data_to_tm()
309 data[RTC_MONTH] = bin2bcd(tm->tm_mon); s5m8763_tm_to_data()
352 1900 + tm->tm_year, 1 + tm->tm_mon, tm->tm_mday, s5m_rtc_read_time()
381 1900 + tm->tm_year, 1 + tm->tm_mon, tm->tm_mday, s5m_rtc_set_time()
434 1900 + alrm->time.tm_year, 1 + alrm->time.tm_mon, s5m_rtc_read_alarm()
457 1900 + tm.tm_year, 1 + tm.tm_mon, tm.tm_mday, s5m_rtc_stop_alarm()
501 1900 + tm.tm_year, 1 + tm.tm_mon, tm.tm_mday, s5m_rtc_start_alarm()
561 1900 + alrm->time.tm_year, 1 + alrm->time.tm_mon, s5m_rtc_set_alarm()
H A Drtc-s35390a.c159 tm->tm_min, tm->tm_hour, tm->tm_mday, tm->tm_mon, tm->tm_year, s35390a_set_datetime()
163 buf[S35390A_BYTE_MONTH] = bin2bcd(tm->tm_mon + 1); s35390a_set_datetime()
198 tm->tm_mon = bcd2bin(buf[S35390A_BYTE_MONTH]) - 1; s35390a_get_datetime()
203 tm->tm_min, tm->tm_hour, tm->tm_mday, tm->tm_mon, tm->tm_year, s35390a_get_datetime()
218 alm->time.tm_mon, alm->time.tm_year, alm->time.tm_wday); s35390a_set_alarm()
H A Drtc-omap.c271 tm->tm_mon = bin2bcd(tm->tm_mon + 1); tm2bcd()
287 tm->tm_mon = bcd2bin(tm->tm_mon) - 1; bcd2tm()
298 tm->tm_mon = rtc_read(rtc, OMAP_RTC_MONTHS_REG); omap_rtc_read_time_raw()
329 rtc_write(rtc, OMAP_RTC_MONTHS_REG, tm->tm_mon); omap_rtc_set_time()
353 alm->time.tm_mon = rtc_read(rtc, OMAP_RTC_ALARM_MONTHS_REG); omap_rtc_read_alarm()
379 rtc_write(rtc, OMAP_RTC_ALARM_MONTHS_REG, alm->time.tm_mon); omap_rtc_set_alarm()
451 rtc_write(rtc, OMAP_RTC_ALARM2_MONTHS_REG, tm.tm_mon); omap_rtc_power_off()
H A Drtc-sunxi.c214 alrm_tm->tm_mon = SUNXI_DATE_GET_MON_VALUE(date); sunxi_rtc_getalarm()
218 alrm_tm->tm_mon -= 1; sunxi_rtc_getalarm()
252 rtc_tm->tm_mon = SUNXI_DATE_GET_MON_VALUE(date); sunxi_rtc_gettime()
256 rtc_tm->tm_mon -= 1; sunxi_rtc_gettime()
362 rtc_tm->tm_mon += 1; sunxi_rtc_settime()
365 SUNXI_DATE_SET_MON_VALUE(rtc_tm->tm_mon) | sunxi_rtc_settime()
H A Drtc-ds1347.c73 dt->tm_mon = bcd2bin(buf[4]) - 1; ds1347_read_time()
90 buf[5] = bin2bcd(dt->tm_mon + 1); ds1347_set_time()
H A Drtc-ds1390.c152 dt->tm_mon = bcd2bin(chip->txrx_buf[5] & 0x7f) - 1; ds1390_read_time()
171 chip->txrx_buf[6] = bin2bcd(dt->tm_mon + 1) | ds1390_set_time()
H A Drtc-ds3234.c75 dt->tm_mon = bcd2bin(buf[5] & 0x1f) - 1; /* 0 = Jan */ ds3234_read_time()
92 ds3234_set_reg(dev, DS3234_REG_MONTH, bin2bcd(dt->tm_mon + 1)); ds3234_set_time()
H A Drtc-efi.c61 eft->month = wtime->tm_mon + 1; convert_to_efi_time()
94 wtime->tm_mon = eft->month - 1; convert_from_efi_time()
H A Drtc-max6900.c157 tm->tm_mon = bcd2bin(regs[MAX6900_REG_MO]) - 1; max6900_i2c_read_time()
184 regs[MAX6900_REG_MO] = bin2bcd(tm->tm_mon + 1); max6900_i2c_set_time()
H A Drtc-max8907.c65 tm->tm_mon = bcd2bin(regs[RTC_MONTH] & 0x1f) - 1; regs_to_tm()
89 regs[RTC_MONTH] = bin2bcd(tm->tm_mon + 1); tm_to_regs()
H A Drtc-pcf85063.c75 tm->tm_mon = bcd2bin(buf[PCF85063_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ pcf85063_get_datetime()
108 buf[PCF85063_REG_MO] = bin2bcd(tm->tm_mon + 1); pcf85063_set_datetime()
H A Drtc-mpc5121.c170 tm->tm_mon = in_8(&regs->month) - 1; mpc5200_rtc_read_time()
173 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, tm->tm_year); mpc5200_rtc_read_time()
187 out_8(&regs->month_set, tm->tm_mon + 1); mpc5200_rtc_set_time()
233 alarm->time.tm_mon = -1; mpc5121_rtc_set_alarm()
H A Drtc-palmas.c73 tm->tm_mon = bcd2bin(rtc_data[4]) - 1; palmas_rtc_read_time()
89 rtc_data[4] = bin2bcd(tm->tm_mon + 1); palmas_rtc_set_time()
144 alm->time.tm_mon = bcd2bin(alarm_data[4]) - 1; palmas_rtc_read_alarm()
175 alarm_data[4] = bin2bcd(alm->time.tm_mon + 1); palmas_rtc_set_alarm()
H A Drtc-rv3029c2.c178 tm->tm_mon = bcd2bin(regs[RV3029C2_W_MONTHS-RV3029C2_W_SEC]) - 1; rv3029c2_i2c_read_time()
216 tm->tm_mon = bcd2bin(regs[RV3029C2_A_MO-RV3029C2_A_SC] & 0x1f) - 1; rv3029c2_i2c_read_alarm()
279 regs[RV3029C2_A_MO-RV3029C2_A_SC] = bin2bcd((tm->tm_mon & 0x1f) - 1); rv3029c2_rtc_i2c_set_alarm()
346 regs[RV3029C2_W_MONTHS-RV3029C2_W_SEC] = bin2bcd(tm->tm_mon+1); rv3029c2_i2c_set_time()
H A Drtc-rx8581.c157 tm->tm_mon = bcd2bin(date[RX8581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ rx8581_get_datetime()
167 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); rx8581_get_datetime()
186 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); rx8581_set_datetime()
196 buf[RX8581_REG_MO] = bin2bcd(tm->tm_mon + 1); rx8581_set_datetime()
H A Drtc-sun6i.c177 rtc_tm->tm_mon = SUN6I_DATE_GET_MON_VALUE(date); sun6i_rtc_gettime()
180 rtc_tm->tm_mon -= 1; sun6i_rtc_gettime()
281 rtc_tm->tm_mon += 1; sun6i_rtc_settime()
284 SUN6I_DATE_SET_MON_VALUE(rtc_tm->tm_mon) | sun6i_rtc_settime()
H A Drtc-tegra.c126 tm->tm_mon + 1, tegra_rtc_read_time()
152 tm->tm_mon+1, tegra_rtc_set_time()
182 alarm->time.tm_mon = -1; tegra_rtc_read_alarm()
244 alarm->time.tm_mon+1, tegra_rtc_set_alarm()
H A Drtc-max8925.c94 tm->tm_mon = ((buf[RTC_MONTH] >> 4) & 0x01) * 10 tm_calc()
130 high = tm->tm_mon / 10; data_calc()
131 low = tm->tm_mon; data_calc()
H A Drtc-rp5c01.c109 tm->tm_mon = rp5c01_read(priv, RP5C01_10_MONTH) * 10 + rp5c01_read_time()
139 rp5c01_write(priv, (tm->tm_mon + 1) / 10, RP5C01_10_MONTH); rp5c01_set_time()
140 rp5c01_write(priv, (tm->tm_mon + 1) % 10, RP5C01_1_MONTH); rp5c01_set_time()
H A Drtc-rs5c313.c256 tm->tm_mon = bcd2bin(data) - 1; rs5c313_rtc_read_time()
315 data = bin2bcd(tm->tm_mon + 1); rs5c313_rtc_set_time()
353 tm.tm_mon = 1 - 1; rs5c313_check_xstp_bit()
H A Drtc-ds3232.c150 /* linux tm_mon range:0~11, while month range is 1~12 in RTC chip */ ds3232_read_time()
151 time->tm_mon = bcd2bin(month & 0x7F) - 1; ds3232_read_time()
173 /* linux tm_mon range:0~11, while month range is 1~12 in RTC chip */ ds3232_set_time()
174 buf[5] = bin2bcd(time->tm_mon + 1); ds3232_set_time()
218 alarm->time.tm_mon = -1; ds3232_read_alarm()
H A Drtc-mrst.c101 time->tm_mon = vrtc_cmos_read(RTC_MONTH); mrst_read_time()
107 time->tm_mon--; mrst_read_time()
119 mon = time->tm_mon + 1; /* tm_mon starts at zero */ mrst_set_time()
157 t->time.tm_mon = -1; mrst_read_alarm()
H A Drtc-pcf8563.c235 tm->tm_mon = bcd2bin(buf[PCF8563_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ pcf8563_get_datetime()
247 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); pcf8563_get_datetime()
261 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); pcf8563_set_datetime()
271 buf[PCF8563_REG_MO] = bin2bcd(tm->tm_mon + 1); pcf8563_set_datetime()
350 tm->time.tm_mon = -1; pcf8563_rtc_read_alarm()
H A Drtc-rx8025.c206 dt->tm_mon = bcd2bin(date[RX8025_REG_MONTH] & 0x1f) - 1; rx8025_get_time()
211 dt->tm_mday, dt->tm_mon, dt->tm_year); rx8025_get_time()
239 date[RX8025_REG_MONTH] = bin2bcd(dt->tm_mon + 1); rx8025_set_time()
320 t->time.tm_mon = -1; rx8025_read_alarm()
326 t->time.tm_mday, t->time.tm_mon, t->time.tm_year); rx8025_read_alarm()
H A Drtc-rs5c372.c198 /* tm->tm_mon is zero-based */ rs5c372_get_datetime()
199 tm->tm_mon = bcd2bin(rs5c->regs[RS5C372_REG_MONTH] & 0x1f) - 1; rs5c372_get_datetime()
208 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); rs5c372_get_datetime()
224 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); rs5c372_set_datetime()
232 buf[5] = bin2bcd(tm->tm_mon + 1); rs5c372_set_datetime()
348 t->time.tm_mon = -1; rs5c_read_alarm()
370 || t->time.tm_mon != -1 rs5c_set_alarm()
H A Dinterface.c191 || before.tm_mon != now.tm_mon __rtc_read_alarm()
209 if ((unsigned)alarm->time.tm_mon >= 12) { __rtc_read_alarm()
210 alarm->time.tm_mon = now.tm_mon; __rtc_read_alarm()
247 if (alarm->time.tm_mon < 11) __rtc_read_alarm()
248 alarm->time.tm_mon++; __rtc_read_alarm()
250 alarm->time.tm_mon = 0; __rtc_read_alarm()
253 days = rtc_month_days(alarm->time.tm_mon, __rtc_read_alarm()
276 alarm->time.tm_year + 1900, alarm->time.tm_mon + 1, __rtc_read_alarm()
H A Drtc-ab-b5ze-s3.c255 tm->tm_mon = bcd2bin(regs[ABB5ZES3_REG_RTC_MO]) - 1; /* starts at 1 */ _abb5zes3_rtc_read_time()
284 regs[ABB5ZES3_REG_RTC_MO] = bin2bcd(tm->tm_mon + 1); abb5zes3_rtc_set_time()
415 alarm_tm->tm_mon = rtc_tm.tm_mon; _abb5zes3_rtc_read_alarm()
426 if (alarm_tm->tm_mon == 11) { _abb5zes3_rtc_read_alarm()
427 alarm_tm->tm_mon = 0; _abb5zes3_rtc_read_alarm()
430 alarm_tm->tm_mon += 1; _abb5zes3_rtc_read_alarm()
507 if (rtc_tm.tm_mon == 11) { /* handle year wrapping */ _abb5zes3_rtc_set_alarm()
508 rtc_tm.tm_mon = 0; _abb5zes3_rtc_set_alarm()
511 rtc_tm.tm_mon += 1; _abb5zes3_rtc_set_alarm()
H A Drtc-88pm80x.c97 next->tm_mon = now->tm_mon; rtc_next_alarm_time()
312 tm.tm_mon = 0; pm80x_rtc_probe()
H A Drtc-rv8803.c147 tm->tm_mon = bcd2bin(date[RV8803_MONTH] & 0x1f) - 1; rv8803_get_time()
168 date[RV8803_MONTH] = bin2bcd(tm->tm_mon + 1); rv8803_set_time()
213 alrm->time.tm_mon = -1; rv8803_get_alarm()
H A Drtc-at91sam9.c128 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, at91_rtc_readtime()
145 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, at91_rtc_settime()
203 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, at91_rtc_readalarm()
246 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_hour, at91_rtc_setalarm()
H A Drtc-cmos.c224 t->time.tm_mon = -1; cmos_read_alarm()
238 t->time.tm_mon = CMOS_READ(cmos->mon_alrm); cmos_read_alarm()
239 if (!t->time.tm_mon) cmos_read_alarm()
240 t->time.tm_mon = -1; cmos_read_alarm()
268 if (((unsigned)t->time.tm_mon) <= 0x12) cmos_read_alarm()
269 t->time.tm_mon = bcd2bin(t->time.tm_mon)-1; cmos_read_alarm()
271 t->time.tm_mon = -1; cmos_read_alarm()
337 mon = t->time.tm_mon + 1; cmos_set_alarm()
H A Drtc-dev.c315 alarm.time.tm_mon = tm.tm_mon; rtc_dev_ioctl()
326 alarm.time.tm_mon = tm.tm_mon; rtc_dev_ioctl()
H A Drtc-ds1307.c373 t->tm_mon = bcd2bin(tmp) - 1; ds1307_get_time()
382 t->tm_mon, t->tm_year, t->tm_wday); ds1307_get_time()
399 t->tm_mon, t->tm_year, t->tm_wday); ds1307_set_time()
406 buf[DS1307_REG_MONTH] = bin2bcd(t->tm_mon + 1); ds1307_set_time()
479 t->time.tm_mon = -1; ds1337_read_alarm()
676 t->time.tm_mon = bcd2bin(ds1307->regs[8] & 0x1f) - 1; mcp794xx_read_alarm()
684 t->time.tm_wday, t->time.tm_mday, t->time.tm_mon, t->enabled, mcp794xx_read_alarm()
705 t->time.tm_wday, t->time.tm_mday, t->time.tm_mon, mcp794xx_set_alarm()
719 regs[8] = bin2bcd(t->time.tm_mon + 1); mcp794xx_set_alarm()
H A Drtc-isl1208.c313 tm->tm_mon = bcd2bin(regs[ISL1208_REG_MO]) - 1; /* rtc starts at 1 */ isl1208_i2c_read_time()
345 tm->tm_mon = isl1208_i2c_read_alarm()
393 regs[ISL1208_REG_MOA - offs] = bin2bcd(alarm_tm->tm_mon + 1) | enable; isl1208_i2c_set_alarm()
436 regs[ISL1208_REG_MO] = bin2bcd(tm->tm_mon + 1); isl1208_i2c_set_time()
H A Drtc-twl.c308 tm->tm_mon = bcd2bin(rtc_data[4]) - 1; twl_rtc_read_time()
324 rtc_data[4] = bin2bcd(tm->tm_mon + 1); twl_rtc_set_time()
373 alm->time.tm_mon = bcd2bin(rtc_data[4]) - 1; twl_rtc_read_alarm()
396 alarm_data[4] = bin2bcd(alm->time.tm_mon + 1); twl_rtc_set_alarm()
H A Drtc-x1205.c136 tm->tm_mon = bcd2bin(buf[CCR_MONTH]) - 1; /* mon is 0-11 */ x1205_get_datetime()
145 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); x1205_get_datetime()
195 tm->tm_mon, tm->tm_year, tm->tm_wday); x1205_set_datetime()
206 buf[CCR_MONTH] = bin2bcd(tm->tm_mon + 1); x1205_set_datetime()
H A Drtc-abx80x.c113 tm->tm_mon = bcd2bin(buf[ABX8XX_REG_MO] & 0x1F) - 1; abx80x_rtc_read_time()
137 buf[ABX8XX_REG_MO] = bin2bcd(tm->tm_mon + 1); abx80x_rtc_set_time()
H A Drtc-as3722.c48 rbuff[4] = bin2bcd(tm->tm_mon + 1); as3722_time_to_reg()
58 tm->tm_mon = bcd2bin(rbuff[4] & 0x1F) - 1; as3722_reg_to_time()
H A Drtc-bq32k.c101 tm->tm_mon = bcd2bin(regs.month) - 1; bq32k_rtc_read_time()
117 regs.month = bin2bcd(tm->tm_mon + 1); bq32k_rtc_set_time()
H A Drtc-ds1742.c75 writeb(bin2bcd(tm->tm_mon + 1), ioaddr + RTC_MONTH); ds1742_rtc_set_time()
115 tm->tm_mon = bcd2bin(month) - 1; ds1742_rtc_read_time()
H A Drtc-max8998.c94 tm->tm_mon = bcd2bin(data[RTC_MONTH]); max8998_data_to_tm()
106 data[RTC_MONTH] = bin2bcd(tm->tm_mon); max8998_tm_to_data()
H A Drtc-nuc900.c109 tm->tm_mon = bcd2bin(calreg >> 8); nuc900_rtc_bcd2bin()
123 gettm->bcd_mon = bin2bcd(settm->tm_mon) << 8; nuc900_rtc_bin2bcd()
H A Drtc-opal.c37 tm->tm_mon = bcd2bin((y_m_d >> 8) & 0xff) - 1; opal_to_tm()
50 *y_m_d |= ((u32)bin2bcd((tm->tm_mon + 1))) << 8; tm_to_opal()
H A Drtc-pcf8523.c209 tm->tm_mon = bcd2bin(regs[5] & 0x1f) - 1; pcf8523_rtc_read_time()
232 regs[6] = bin2bcd(tm->tm_mon + 1); pcf8523_rtc_set_time()
H A Drtc-pcf8583.c84 dt->tm_mon = bcd2bin(buf[5]) - 1; pcf8583_get_datetime()
105 buf[7] = bin2bcd(dt->tm_mon + 1) | (dt->tm_wday << 5); pcf8583_set_datetime()
H A Drtc-rs5c348.c90 txp[RS5C348_REG_MONTH] = bin2bcd(tm->tm_mon + 1) | rs5c348_rtc_set_time()
134 tm->tm_mon = rs5c348_rtc_read_time()
H A Drtc-vr41xx.c156 current_sec = mktime(time->tm_year + 1900, time->tm_mon + 1, time->tm_mday, vr41xx_rtc_set_time()
188 alarm_sec = mktime(time->tm_year + 1900, time->tm_mon + 1, time->tm_mday, vr41xx_rtc_set_alarm()
H A Drtc-vt8500.c121 tm->tm_mon = bcd2bin((date & DATE_MONTH_MASK) >> DATE_MONTH_S) - 1; vt8500_rtc_read_time()
140 | (bin2bcd(tm->tm_mon + 1) << DATE_MONTH_S) vt8500_rtc_set_time()
H A Drtc-ds1305.c199 time->tm_mon = bcd2bin(buf[DS1305_MON]) - 1; ds1305_get_time()
206 time->tm_mon, time->tm_year, time->tm_wday); ds1305_get_time()
222 time->tm_mon, time->tm_year, time->tm_wday); ds1305_set_time()
232 *bp++ = bin2bcd(time->tm_mon + 1); ds1305_set_time()
321 alm->time.tm_mon = -1; ds1305_get_alarm()
H A Drtc-88pm860x.c93 next->tm_mon = now->tm_mon; rtc_next_alarm_time()
359 tm.tm_mon = 0; pm860x_rtc_probe()
H A Drtc-ds1343.c387 dt->tm_mon = bcd2bin(buf[5] & 0x1F) - 1; ds1343_read_time()
424 bin2bcd(dt->tm_mon + 1)); ds1343_set_time()
508 alarm->time.tm_mon = -1; ds1343_read_alarm()
H A Drtc-hym8563.c118 tm->tm_mon = bcd2bin(buf[5] & HYM8563_MONTH_MASK) - 1; /* 0 = Jan */ hym8563_rtc_read_time()
140 buf[5] = bin2bcd(tm->tm_mon + 1); hym8563_rtc_set_time()
216 alm_tm->tm_mon = -1; hym8563_rtc_read_alarm()
H A Drtc-pl031.c140 *st_time = ((tm->tm_mon + 1) << RTC_MON_SHIFT) pl031_stv2_tm_to_time()
157 tm->tm_mon = ((st_time & RTC_MON_MASK) >> RTC_MON_SHIFT) - 1; pl031_stv2_time_to_tm()
164 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, tm->tm_year); pl031_stv2_time_to_tm()
H A Drtc-pm8xxx.c201 tm->tm_mday, tm->tm_mon, tm->tm_year); pm8xxx_rtc_read_time()
249 alarm->time.tm_mon, alarm->time.tm_year); pm8xxx_rtc_set_alarm()
283 alarm->time.tm_mon, alarm->time.tm_year); pm8xxx_rtc_read_alarm()
H A Drtc-ds1672.c70 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); ds1672_get_datetime()
H A Drtc-ls1x.c109 v = ((rtm->tm_mon + 1) << LS1X_MONTH_OFFSET) ls1x_rtc_set_time()
H A Drtc-da9063.c183 tm->tm_mon = MONTHS_FROM_DA9063(data[RTC_MONTH] & da9063_data_to_tm()
207 data[RTC_MONTH] |= MONTHS_TO_DA9063(tm->tm_mon) & da9063_tm_to_data()
H A Drtc-ds1553.c88 writeb(bin2bcd(tm->tm_mon + 1), ioaddr + RTC_MONTH); ds1553_rtc_set_time()
128 tm->tm_mon = bcd2bin(month) - 1; ds1553_rtc_read_time()
H A Drtc-max77686.c91 tm->tm_mon = (data[RTC_MONTH] & 0x0f) - 1; max77686_rtc_data_to_tm()
104 data[RTC_MONTH] = tm->tm_mon + 1; max77686_rtc_tm_to_data()
H A Drtc-max77802.c94 tm->tm_mon = (data[RTC_MONTH] & 0x0f) - 1; max77802_rtc_data_to_tm()
108 data[RTC_MONTH] = tm->tm_mon + 1; max77802_rtc_tm_to_data()
H A Drtc-max8997.c95 tm->tm_mon = (data[RTC_MONTH] & 0x0f) - 1; max8997_rtc_data_to_tm()
108 data[RTC_MONTH] = tm->tm_mon + 1; max8997_rtc_tm_to_data()
H A Drtc-pxa.c102 | ((tm->tm_mon + 1) << RYxR_MONTH_S) ryxr_calc()
118 tm->tm_mon = (((rycr & RYxR_MONTH_MASK) >> RYxR_MONTH_S)) - 1; tm_calc()
H A Drtc-stk17ta8.c88 writeb(bin2bcd(tm->tm_mon + 1), ioaddr + RTC_MONTH); stk17ta8_rtc_set_time()
130 tm->tm_mon = bcd2bin(month) - 1; stk17ta8_rtc_read_time()
H A Drtc-m41t80.c122 tm->tm_mon = bcd2bin(buf[M41T80_REG_MON] & 0x1f) - 1; m41t80_get_datetime()
178 bin2bcd(tm->tm_mon + 1) | (buf[M41T80_REG_MON] & ~0x1f); m41t80_set_datetime()
671 tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, m41t80_probe()
H A Drtc-hid-sensor-time.c114 time_buf->tm_mon = (int)hid_time_value(raw_len, raw_data)-1; hid_time_capture_sample()
H A Drtc-sysfs.c43 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday); date_show()
H A Drtc-tx4939.c106 alrm->time.tm_mon < 0 || tx4939_rtc_set_alarm()
H A Drtc-ds1685.c285 tm->tm_mon = (ds1685_rtc_bcd2bin(rtc, month, RTC_MONTH_BCD_MASK, ds1685_rtc_read_time()
288 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, tm->tm_year); ds1685_rtc_read_time()
317 month = ds1685_rtc_bin2bcd(rtc, (tm->tm_mon + 1), RTC_MONTH_BIN_MASK, ds1685_rtc_set_time()
330 if ((tm->tm_mon > 11) || (mday == 0)) ds1685_rtc_set_time()
333 if (tm->tm_mday > rtc_month_days(tm->tm_mon, tm->tm_year)) ds1685_rtc_set_time()
428 alrm->time.tm_mon = -1; ds1685_rtc_read_alarm()
486 alrm->time.tm_mon = -1; ds1685_rtc_set_alarm()
/linux-4.4.14/arch/powerpc/platforms/chrp/
H A Dtime.c104 tm.tm_mon = bin2bcd(tm.tm_mon); chrp_set_rtc_time()
111 chrp_cmos_clock_write(tm.tm_mon,RTC_MONTH); chrp_set_rtc_time()
156 tm->tm_mon = mon; chrp_get_rtc_time()
/linux-4.4.14/arch/powerpc/platforms/powernv/
H A Dopal-rtc.c29 tm->tm_mon = bcd2bin((y_m_d >> 8) & 0xff) - 1; opal_to_tm()
63 return mktime(tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, opal_get_boot_time()
/linux-4.4.14/arch/m68k/sun3/
H A Dintersil.c51 todintersil->month = t->tm_mon; sun3_hwclk()
61 t->tm_mon = todintersil->month; sun3_hwclk()
/linux-4.4.14/arch/m68k/sun3x/
H A Dtime.c54 h->month = bin2bcd(t->tm_mon); sun3x_hwclk()
64 t->tm_mon = bcd2bin(h->month); sun3x_hwclk()
/linux-4.4.14/arch/powerpc/platforms/maple/
H A Dtime.c64 tm->tm_mon = maple_clock_read(RTC_MONTH); maple_get_rtc_time()
74 tm->tm_mon = bcd2bin(tm->tm_mon); maple_get_rtc_time()
101 mon = tm->tm_mon; maple_set_rtc_time()
173 return mktime(tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday, maple_get_boot_time()
/linux-4.4.14/arch/mips/sibyte/swarm/
H A Drtc_xicor1241.c136 /* tm_mon starts from 0, *ick* */ xicor_set_time()
137 tm.tm_mon ++; xicor_set_time()
138 tm.tm_mon = bin2bcd(tm.tm_mon); xicor_set_time()
139 xicor_write(X1241REG_MO, tm.tm_mon); xicor_set_time()
H A Drtc_m41t81.c177 /* tm_mon starts from 0, *ick* */ m41t81_set_time()
178 tm.tm_mon ++; m41t81_set_time()
179 tm.tm_mon = bin2bcd(tm.tm_mon); m41t81_set_time()
180 m41t81_write(M41T81REG_MO, tm.tm_mon); m41t81_set_time()
/linux-4.4.14/drivers/char/
H A Dds1302.c129 rtc_tm->tm_mon = CMOS_READ(RTC_MONTH); get_rtc_time()
138 rtc_tm->tm_mon = bcd2bin(rtc_tm->tm_mon); get_rtc_time()
149 rtc_tm->tm_mon--; get_rtc_time()
188 mon = rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ rtc_ioctl()
280 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday); get_rtc_status()
H A Dgenrtc.c317 if ((wtime.tm_mon < 0 || wtime.tm_mon > 11) || (wtime.tm_mday < 1)) gen_rtc_ioctl()
321 (days_in_mo[wtime.tm_mon] + ((wtime.tm_mon == 1) && leap_yr))) gen_rtc_ioctl()
403 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, 1900); gen_rtc_proc_show()
H A Defirtc.c106 eft->month = wtime->tm_mon + 1; convert_to_efi_time()
124 wtime->tm_mon = eft->month - 1; convert_from_efi_time()
H A Drtc.c564 mon = rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ rtc_do_ioctl()
1238 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, epoch); rtc_proc_show()
1327 rtc_tm->tm_mon = CMOS_READ(RTC_MONTH); rtc_get_rtc_time()
1343 rtc_tm->tm_mon = bcd2bin(rtc_tm->tm_mon); rtc_get_rtc_time()
1360 rtc_tm->tm_mon--; rtc_get_rtc_time()
/linux-4.4.14/arch/m68k/mvme16x/
H A Drtc.c55 wtime.tm_mon = bcd2bin(rtc->bcd_mth)-1; rtc_ioctl()
80 mon = rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ rtc_ioctl()
H A Dconfig.c404 t->tm_mon = bcd2int (rtc->bcd_mth); mvme16x_hwclk()
/linux-4.4.14/arch/powerpc/kernel/
H A Drtas-rtc.c82 rtc_tm->tm_mon = ret[1] - 1; rtas_get_rtc_time()
94 tm->tm_year + 1900, tm->tm_mon + 1, rtas_set_rtc_time()
H A Dtime.c727 tm.tm_mon -= 1; update_persistent_clock()
756 ts->tv_sec = mktime(tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday, __read_persistent_clock()
1028 day = tm->tm_mon > 2 && leapyear(tm->tm_year); GregorianDay()
1030 day += lastYear*365 + leapsToDate + MonthOffset[tm->tm_mon-1] + GregorianDay()
1061 tm->tm_mon = i; to_tm()
H A Drtas-proc.c319 tm.tm_year, tm.tm_mon, tm.tm_mday, ppc_rtas_poweron_write()
382 tm.tm_year, tm.tm_mon, tm.tm_mday, ppc_rtas_clock_write()
/linux-4.4.14/arch/powerpc/platforms/ps3/
H A Dtime.c38 pr_debug("%s:%d tm_mon %d\n", func, line, tm->tm_mon); _dump_tm()
/linux-4.4.14/arch/parisc/include/asm/
H A Drtc.h93 wtime->tm_mon = y; get_rtc_time()
103 secs = mktime(wtime->tm_year + 1900, wtime->tm_mon + 1, wtime->tm_mday, set_rtc_time()
/linux-4.4.14/include/asm-generic/
H A Drtc.h81 time->tm_mon = CMOS_READ(RTC_MONTH); __get_rtc_time()
100 time->tm_mon = bcd2bin(time->tm_mon); __get_rtc_time()
119 time->tm_mon--; __get_rtc_time()
141 mon = time->tm_mon + 1; /* tm_mon starts at zero */ __set_rtc_time()
/linux-4.4.14/arch/m68k/atari/
H A Dtime.c135 val.mon_ones = (t->tm_mon+1) % 10; atari_mste_hwclk()
136 val.mon_tens = (t->tm_mon+1) / 10; atari_mste_hwclk()
159 t->tm_mon = val.mon_ones + val.mon_tens * 10 - 1; atari_mste_hwclk()
183 mon = t->tm_mon + 1; atari_tt_hwclk()
280 t->tm_mon = mon - 1; atari_tt_hwclk()
/linux-4.4.14/arch/m68k/bvme6000/
H A Drtc.c59 wtime.tm_mon = bcd2bin(rtc->bcd_mth)-1; rtc_ioctl()
85 mon = rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ rtc_ioctl()
H A Dconfig.c284 rtc->bcd_mth = bin2bcd(t->tm_mon + 1); bvme6000_hwclk()
297 t->tm_mon = bcd2bin(rtc->bcd_mth)-1; bvme6000_hwclk()
/linux-4.4.14/arch/m68k/hp300/
H A Dconfig.c214 t->tm_mon = hp300_rtc_read(RTC_REG_MON1) * 10 + hp300_hwclk()
230 hp300_rtc_write(RTC_REG_MON1, (t->tm_mon + 1) / 10); hp300_hwclk()
231 hp300_rtc_write(RTC_REG_MON2, (t->tm_mon + 1) % 10); hp300_hwclk()
/linux-4.4.14/drivers/base/power/
H A Dtrace.c89 .tm_mon = 5, // June - counting from zero set_magic_time()
98 time.tm_mon = (n % 12); set_magic_time()
118 time.tm_mon + 1, time.tm_mday, time.tm_year % 100); read_magic_time()
122 val += time.tm_mon * 100; /* 12 months */ read_magic_time()
/linux-4.4.14/arch/m32r/include/asm/
H A Drtc.h51 int tm_mon; member in struct:rtc_time
/linux-4.4.14/drivers/media/platform/vivid/
H A Dvivid-rds-gen.c104 l = tm.tm_mon <= 1; vivid_rds_generate()
106 ((tm.tm_mon + 2 + l * 12) * 306001) / 10000; vivid_rds_generate()
H A Dvivid-vbi-gen.c199 if (tm.tm_mday == 1 && tm.tm_mon == 2 && vivid_vbi_gen_set_time_of_day()
202 packet[5] = calc_parity(0x40 | (1 + tm.tm_mon)); vivid_vbi_gen_set_time_of_day()
/linux-4.4.14/arch/m68k/apollo/
H A Dconfig.c224 t->tm_mon=rtc->month; dn_dummy_hwclk()
233 rtc->month=t->tm_mon; dn_dummy_hwclk()
/linux-4.4.14/arch/m68k/kernel/
H A Dtime.c84 ts->tv_sec = mktime(time.tm_year, time.tm_mon, time.tm_mday, read_persistent_clock()
/linux-4.4.14/arch/m68k/68000/
H A Dtimers.c128 t->tm_year = t->tm_mon = t->tm_mday = 1; m68328_hwclk()
/linux-4.4.14/kernel/time/
H A Dtimeconv.c124 result->tm_mon = y; time_to_tm()
/linux-4.4.14/arch/m68k/mvme147/
H A Dconfig.c157 t->tm_mon = bcd2int (m147_rtc->bcd_mth); mvme147_hwclk()
/linux-4.4.14/fs/fat/
H A Dmisc.c254 tm.tm_mon++; fat_time_unix2fat()
259 *date = cpu_to_le16(tm.tm_year << 9 | tm.tm_mon << 5 | tm.tm_mday); fat_time_unix2fat()
/linux-4.4.14/arch/powerpc/platforms/8xx/
H A Dm8xx_setup.c175 time = mktime(tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, mpc8xx_set_rtc_time()
196 tm->tm_mon -= 1; mpc8xx_get_rtc_time()
/linux-4.4.14/arch/powerpc/platforms/powermac/
H A Dtime.c91 tm->tm_mon -= 1; to_rtc_time()
99 return mktime(tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, from_rtc_time()
/linux-4.4.14/arch/m68k/q40/
H A Dconfig.c238 Q40_RTC_MNTH = bin2bcd(t->tm_mon + 1); q40_hwclk()
249 t->tm_mon = bcd2bin (Q40_RTC_MNTH)-1; q40_hwclk()
/linux-4.4.14/drivers/input/misc/
H A Dhp_sdc_rtc.c122 rtctm->tm_mon = (tseq[69] & 0x0f) + (tseq[76] & 0x0f) * 10; hp_sdc_rtc_do_read_bbrtc()
448 tm.tm_year + 1900, tm.tm_mon + 1, hp_sdc_rtc_proc_show()
623 mon = hp_sdc_rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ hp_sdc_rtc_ioctl()
/linux-4.4.14/arch/x86/platform/intel-mid/
H A Dintel_mid_vrtc.c105 vrtc_cmos_write(tm.tm_mon, RTC_MONTH); vrtc_set_mmss()
/linux-4.4.14/include/uapi/linux/
H A Drtc.h25 int tm_mon; member in struct:rtc_time
/linux-4.4.14/arch/m68k/mac/
H A Dmisc.c719 &t->tm_year, &t->tm_mon, &t->tm_mday, mac_hwclk()
723 t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, mac_hwclk()
729 t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, mac_hwclk()
733 now = mktime(t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, mac_hwclk()
/linux-4.4.14/arch/mn10300/kernel/
H A Drtc.c33 ts->tv_sec = mktime(tm.tm_year, tm.tm_mon, tm.tm_mday, read_persistent_clock()
/linux-4.4.14/include/linux/
H A Dtime.h173 int tm_mon; member in struct:tm
/linux-4.4.14/drivers/firmware/
H A Draspberrypi.c181 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, rpi_firmware_print_firmware_revision()
/linux-4.4.14/tools/testing/selftests/timers/
H A Drtctest.c129 rtc_tm.tm_mday, rtc_tm.tm_mon + 1, rtc_tm.tm_year + 1900, main()
/linux-4.4.14/drivers/macintosh/
H A Dsmu.c374 cmd_buf->data[6] = hex2bcd(time->tm_mon) + 1; smu_fill_set_rtc_cmd()
399 time->tm_mon = bcd2hex(cmd.buffer[5]) - 1; smu_get_rtc_time()
421 hex2bcd(time->tm_mon) + 1, smu_set_rtc_time()
/linux-4.4.14/kernel/debug/kdb/
H A Dkdb_main.c2485 int tm_mon; /* month */ member in struct:kdb_tm
2504 while (tm->tm_mday >= mon_day[tm->tm_mon]) { kdb_gmtime()
2505 tm->tm_mday -= mon_day[tm->tm_mon]; kdb_gmtime()
2506 if (++tm->tm_mon == 12) { kdb_gmtime()
2507 tm->tm_mon = 0; kdb_gmtime()
2559 1900+tm.tm_year, tm.tm_mon+1, tm.tm_mday, kdb_summary()
/linux-4.4.14/drivers/mfd/
H A Dmenelaus.c852 t->tm_mon = bcd2bin(regs[4]) - 1; menelaus_to_time()
884 status = menelaus_write_reg(regnum++, bin2bcd(t->tm_mon + 1)); time_to_menelaus()
/linux-4.4.14/fs/nilfs2/
H A Dsysfs.c36 res.tm_mon += 1; \
39 res.tm_year, res.tm_mon, res.tm_mday, \
/linux-4.4.14/drivers/scsi/fnic/
H A Dfnic_trace.c749 tm.tm_mon + 1, tm.tm_mday, tm.tm_year + 1900, copy_and_format_trace_data()
/linux-4.4.14/arch/tile/include/hv/
H A Dhypervisor.h702 __hv64 tm_mon; /**< Month, 0-11 */ member in struct:__anon2877
710 __hv32 tm_mon; /**< Month, 0-11 */

Completed in 3513 milliseconds