Home
last modified time | relevance | path

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

123456

/linux-4.19.296/drivers/rtc/
Drtc-pic32.c154 rtc_tm->tm_sec = readb(base + PIC32_RTCSEC); in pic32_rtc_gettime()
162 } while (rtc_tm->tm_sec == 0 && tries < 2); in pic32_rtc_gettime()
164 rtc_tm->tm_sec = bcd2bin(rtc_tm->tm_sec); in pic32_rtc_gettime()
175 rtc_tm->tm_hour, rtc_tm->tm_min, rtc_tm->tm_sec); in pic32_rtc_gettime()
189 tm->tm_hour, tm->tm_min, tm->tm_sec); in pic32_rtc_settime()
197 writeb(bin2bcd(tm->tm_sec), base + PIC32_RTCSEC); in pic32_rtc_settime()
216 alm_tm->tm_sec = readb(base + PIC32_ALRMSEC); in pic32_rtc_getalarm()
230 alm_tm->tm_hour, alm_tm->tm_min, alm_tm->tm_sec); in pic32_rtc_getalarm()
232 alm_tm->tm_sec = bcd2bin(alm_tm->tm_sec); in pic32_rtc_getalarm()
253 tm->tm_hour, tm->tm_min, tm->tm_sec); in pic32_rtc_setalarm()
Drtc-s3c.c206 rtc_tm->tm_sec = readb(info->base + S3C2410_RTCSEC); in s3c_rtc_gettime()
213 if (rtc_tm->tm_sec == 0 && !have_retried) { in s3c_rtc_gettime()
218 rtc_tm->tm_sec = bcd2bin(rtc_tm->tm_sec); in s3c_rtc_gettime()
231 rtc_tm->tm_hour, rtc_tm->tm_min, rtc_tm->tm_sec); in s3c_rtc_gettime()
246 tm->tm_hour, tm->tm_min, tm->tm_sec); in s3c_rtc_settime()
259 writeb(bin2bcd(tm->tm_sec), info->base + S3C2410_RTCSEC); in s3c_rtc_settime()
282 alm_tm->tm_sec = readb(info->base + S3C2410_ALMSEC); in s3c_rtc_getalarm()
298 alm_tm->tm_hour, alm_tm->tm_min, alm_tm->tm_sec); in s3c_rtc_getalarm()
302 alm_tm->tm_sec = bcd2bin(alm_tm->tm_sec); in s3c_rtc_getalarm()
334 tm->tm_hour, tm->tm_min, tm->tm_sec); in s3c_rtc_setalarm()
[all …]
Drtc-at91rm9200.c125 tm->tm_sec = bcd2bin((time & AT91_RTC_SEC) >> 0); in at91_rtc_decodetime()
152 tm->tm_hour, tm->tm_min, tm->tm_sec); in at91_rtc_readtime()
166 tm->tm_hour, tm->tm_min, tm->tm_sec); in at91_rtc_settime()
179 bin2bcd(tm->tm_sec) << 0 in at91_rtc_settime()
213 tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, in at91_rtc_readalarm()
232 tm.tm_sec = alrm->time.tm_sec; in at91_rtc_setalarm()
236 bin2bcd(tm.tm_sec) << 0 in at91_rtc_setalarm()
252 tm.tm_min, tm.tm_sec); in at91_rtc_setalarm()
Drtc-m41t94.c39 "write", tm->tm_sec, tm->tm_min, in m41t94_set_time()
44 buf[M41T94_REG_SECONDS] = bin2bcd(tm->tm_sec); in m41t94_set_time()
85 tm->tm_sec = bcd2bin(spi_w8r8(spi, M41T94_REG_SECONDS)); in m41t94_read_time()
98 "read", tm->tm_sec, tm->tm_min, in m41t94_read_time()
Drtc-mc146818-lib.c53 time->tm_sec = CMOS_READ(RTC_SECONDS); in mc146818_get_time()
72 time->tm_sec = bcd2bin(time->tm_sec); in mc146818_get_time()
118 sec = time->tm_sec; in mc146818_set_time()
Drtc-rk808.c133 tm->tm_sec = bcd2bin(rtc_data[0] & SECONDS_REG_MSK); in rk808_rtc_readtime()
143 tm->tm_wday, tm->tm_hour, tm->tm_min, tm->tm_sec); in rk808_rtc_readtime()
158 tm->tm_wday, tm->tm_hour, tm->tm_min, tm->tm_sec); in rk808_rtc_set_time()
160 rtc_data[0] = bin2bcd(tm->tm_sec); in rk808_rtc_set_time()
205 alrm->time.tm_sec = bcd2bin(alrm_data[0] & SECONDS_REG_MSK); in rk808_rtc_readalarm()
222 alrm->time.tm_min, alrm->time.tm_sec); in rk808_rtc_readalarm()
267 alrm->time.tm_min, alrm->time.tm_sec); in rk808_rtc_setalarm()
270 alrm_data[0] = bin2bcd(alrm->time.tm_sec); in rk808_rtc_setalarm()
Drtc-spear.c175 tm->tm_sec = bin2bcd(tm->tm_sec); in tm2bcd()
185 tm->tm_sec = bcd2bin(tm->tm_sec); in bcd2tm()
212 tm->tm_sec = (time >> SECOND_SHIFT) & SECOND_MASK; in spear_rtc_read_time()
239 time = (tm->tm_sec << SECOND_SHIFT) | (tm->tm_min << MINUTE_SHIFT) | in spear_rtc_set_time()
266 alm->time.tm_sec = (time >> SECOND_SHIFT) & SECOND_MASK; in spear_rtc_read_alarm()
297 time = (alm->time.tm_sec << SECOND_SHIFT) | (alm->time.tm_min << in spear_rtc_set_alarm()
Drtc-mcp795.c204 data[0] = (data[0] & 0x80) | bin2bcd(tim->tm_sec); in mcp795_set_time()
238 tim->tm_wday, tim->tm_hour, tim->tm_min, tim->tm_sec); in mcp795_set_time()
253 tim->tm_sec = bcd2bin(data[0] & 0x7F); in mcp795_read_time()
263 tim->tm_wday, tim->tm_hour, tim->tm_min, tim->tm_sec); in mcp795_read_time()
302 tmp[0] = (tmp[0] & 0x80) | bin2bcd(alm->time.tm_sec); in mcp795_set_alarm()
324 alm->time.tm_hour, alm->time.tm_min, alm->time.tm_sec); in mcp795_set_alarm()
338 alm->time.tm_sec = bcd2bin(data[0] & 0x7F); in mcp795_read_alarm()
350 alm->time.tm_hour, alm->time.tm_min, alm->time.tm_sec); in mcp795_read_alarm()
Drtc-da9052.c88 rtc_tm->tm_sec = 0; in da9052_read_alarm()
115 if (rtc_tm->tm_sec > 0) { in da9052_set_alarm()
116 alm_time += 60 - rtc_tm->tm_sec; in da9052_set_alarm()
119 BUG_ON(rtc_tm->tm_sec); /* it will cause repeated irqs if not zero */ in da9052_set_alarm()
188 rtc_tm->tm_sec = v[0][0] & DA9052_RTC_SEC; in da9052_rtc_read_time()
215 v[0] = tm->tm_sec; in da9052_rtc_set_time()
Drtc-lib.c89 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm()
106 || ((unsigned)tm->tm_sec) >= 60) in rtc_valid_tm()
120 tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_tm_to_time64()
Drtc-ds1286.c185 tm->tm_sec = ds1286_rtc_read(priv, RTC_SECONDS); in ds1286_read_time()
195 tm->tm_sec = bcd2bin(tm->tm_sec); in ds1286_read_time()
230 sec = tm->tm_sec; in ds1286_set_time()
284 alm->time.tm_sec = 0; in ds1286_read_alarm()
295 sec = alm->time.tm_sec; in ds1286_set_alarm()
Drtc-wm8350.c57 tm->tm_sec = time1[0] & WM8350_RTC_SECS_MASK; in wm8350_rtc_readtime()
102 time[0] = tm->tm_sec; in wm8350_rtc_settime()
155 tm->tm_sec = time[0] & WM8350_RTC_ALMSECS_MASK; in wm8350_rtc_readalarm()
156 if (tm->tm_sec == WM8350_RTC_ALMSECS_MASK) in wm8350_rtc_readalarm()
157 tm->tm_sec = -1; in wm8350_rtc_readalarm()
257 if (tm->tm_sec != -1) in wm8350_rtc_setalarm()
258 time[0] |= tm->tm_sec; in wm8350_rtc_setalarm()
Drtc-proc.c55 tm.tm_hour, tm.tm_min, tm.tm_sec, in rtc_proc_show()
70 if ((unsigned int)alrm.time.tm_sec <= 59) in rtc_proc_show()
71 seq_printf(seq, "%02d\n", alrm.time.tm_sec); in rtc_proc_show()
Drtc-fm3130.c121 t->tm_sec = bcd2bin(fm3130->regs[FM3130_RTC_SECONDS] & 0x7f); in fm3130_get_time()
135 "read", t->tm_sec, t->tm_min, in fm3130_get_time()
151 "write", t->tm_sec, t->tm_min, in fm3130_set_time()
156 buf[FM3130_RTC_SECONDS] = bin2bcd(t->tm_sec); in fm3130_set_time()
216 tm->tm_sec = bcd2bin(fm3130->regs[FM3130_ALARM_SECONDS] & 0x7F); in fm3130_read_alarm()
227 "read alarm", tm->tm_sec, tm->tm_min, in fm3130_read_alarm()
252 "write alarm", tm->tm_sec, tm->tm_min, in fm3130_set_alarm()
257 (tm->tm_sec != -1) ? bin2bcd(tm->tm_sec) : 0x80; in fm3130_set_alarm()
Drtc-m48t35.c62 tm->tm_sec = readb(&priv->reg->sec); in m48t35_read_time()
71 tm->tm_sec = bcd2bin(tm->tm_sec); in m48t35_read_time()
102 sec = tm->tm_sec; in m48t35_set_time()
Drtc-m41t93.c57 "write", tm->tm_sec, tm->tm_min, in m41t93_set_time()
91 data[M41T93_REG_ST_SEC] = bin2bcd(tm->tm_sec); in m41t93_set_time()
146 tm->tm_sec = bcd2bin(buf[M41T93_REG_ST_SEC]); in m41t93_get_time()
158 "read", tm->tm_sec, tm->tm_min, in m41t93_get_time()
Drtc-m48t59.c96 tm->tm_sec = bcd2bin(M48T59_READ(M48T59_SEC) & 0x7F); in m48t59_rtc_read_time()
104 tm->tm_hour, tm->tm_min, tm->tm_sec); in m48t59_rtc_read_time()
123 tm->tm_hour, tm->tm_min, tm->tm_sec); in m48t59_rtc_set_time()
132 M48T59_WRITE((bin2bcd(tm->tm_sec) & 0x7F), M48T59_SEC); in m48t59_rtc_set_time()
185 tm->tm_sec = bcd2bin(M48T59_READ(M48T59_ALARM_SEC)); in m48t59_rtc_readalarm()
193 tm->tm_hour, tm->tm_min, tm->tm_sec); in m48t59_rtc_readalarm()
235 sec = tm->tm_sec; in m48t59_rtc_setalarm()
253 tm->tm_hour, tm->tm_min, tm->tm_sec); in m48t59_rtc_setalarm()
Drtc-rx8581.c112 tm->tm_sec = bcd2bin(date[RX8581_REG_SC] & 0x7F); in rx8581_rtc_read_time()
123 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx8581_rtc_read_time()
139 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx8581_rtc_set_time()
143 buf[RX8581_REG_SC] = bin2bcd(tm->tm_sec); in rx8581_rtc_set_time()
Drtc-rx4581.c158 tm->tm_sec = bcd2bin(date[RX4581_REG_SC] & 0x7F); in rx4581_get_datetime()
172 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx4581_get_datetime()
187 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx4581_set_datetime()
192 buf[RX4581_REG_SC+1] = bin2bcd(tm->tm_sec); in rx4581_set_datetime()
Drtc-rx6110.c118 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx6110_rtc_tm_to_data()
129 data[RTC_SEC] = bin2bcd(tm->tm_sec); in rx6110_rtc_tm_to_data()
148 tm->tm_sec = bcd2bin(data[RTC_SEC] & 0x7f); in rx6110_data_to_rtc_tm()
158 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx6110_data_to_rtc_tm()
252 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx6110_get_time()
Drtc-bq4802.c61 tm->tm_sec = p->read(p, 0x00); in bq4802_read_time()
74 tm->tm_sec = bcd2bin(tm->tm_sec); in bq4802_read_time()
106 sec = tm->tm_sec; in bq4802_set_time()
Drtc-isl12022.c139 tm->tm_sec = bcd2bin(buf[ISL12022_REG_SC] & 0x7F); in isl12022_rtc_read_time()
150 tm->tm_sec, tm->tm_min, tm->tm_hour, in isl12022_rtc_read_time()
167 tm->tm_sec, tm->tm_min, tm->tm_hour, in isl12022_rtc_set_time()
208 buf[ISL12022_REG_SC] = bin2bcd(tm->tm_sec); in isl12022_rtc_set_time()
Drtc-mv.c55 rtc_reg = (bin2bcd(tm->tm_sec) << RTC_SECONDS_OFFS) | in mv_rtc_set_time()
88 tm->tm_sec = bcd2bin(second); in mv_rtc_read_time()
119 alm->time.tm_sec = bcd2bin(second); in mv_rtc_read_alarm()
143 if (alm->time.tm_sec >= 0) in mv_rtc_set_alarm()
144 rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_sec)) in mv_rtc_set_alarm()
Drtc-puv3.c95 rtc_tm->tm_hour, rtc_tm->tm_min, rtc_tm->tm_sec); in puv3_rtc_gettime()
106 tm->tm_hour, tm->tm_min, tm->tm_sec); in puv3_rtc_settime()
125 alm_tm->tm_hour, alm_tm->tm_min, alm_tm->tm_sec); in puv3_rtc_getalarm()
138 tm->tm_hour & 0xff, tm->tm_min & 0xff, tm->tm_sec); in puv3_rtc_setalarm()
/linux-4.19.296/drivers/char/
Drtc.c494 sec = alm_tm.tm_sec; in rtc_do_ioctl()
555 sec = rtc_tm.tm_sec; in rtc_do_ioctl()
1131 tm.tm_hour, tm.tm_min, tm.tm_sec, in rtc_proc_show()
1152 if (tm.tm_sec <= 59) in rtc_proc_show()
1153 seq_printf(seq, "%02d\n", tm.tm_sec); in rtc_proc_show()
1212 rtc_tm->tm_sec = CMOS_READ(RTC_SECONDS); in rtc_get_rtc_time()
1228 rtc_tm->tm_sec = bcd2bin(rtc_tm->tm_sec); in rtc_get_rtc_time()
1261 alm_tm->tm_sec = CMOS_READ(RTC_SECONDS_ALARM); in get_rtc_alm_time()
1268 alm_tm->tm_sec = bcd2bin(alm_tm->tm_sec); in get_rtc_alm_time()

123456