Home
last modified time | relevance | path

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

12345678

/linux-6.12.1/samples/pfsm/
Dpfsm-wakeup.c60 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main()
63 rtc_tm.tm_sec += ALARM_DELTA_SEC; in main()
64 if (rtc_tm.tm_sec >= 60) { in main()
65 rtc_tm.tm_sec %= 60; in main()
/linux-6.12.1/arch/powerpc/platforms/maple/
Dtime.c54 tm->tm_sec = maple_clock_read(RTC_SECONDS); in maple_get_rtc_time()
60 } while (tm->tm_sec != maple_clock_read(RTC_SECONDS)); in maple_get_rtc_time()
64 tm->tm_sec = bcd2bin(tm->tm_sec); in maple_get_rtc_time()
92 sec = tm->tm_sec; in maple_set_rtc_time()
/linux-6.12.1/arch/m68k/sun3/
Dintersil.c44 todintersil->second = t->tm_sec; in sun3_hwclk()
51 t->tm_sec = todintersil->csec; in sun3_hwclk()
54 t->tm_sec = todintersil->second; in sun3_hwclk()
/linux-6.12.1/tools/testing/selftests/rtc/
Dsetdate.c50 sscanf(time, "%d:%d:%d", &new.tm_hour, &new.tm_min, &new.tm_sec); in main()
54 new.tm_hour, new.tm_min, new.tm_sec); in main()
73 current.tm_hour, current.tm_min, current.tm_sec); in main()
Drtctest.c54 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in TEST_F()
60 .tm_sec = rtc_time->tm_sec, in rtc_time_to_timestamp()
222 tm.tm_hour, tm.tm_min, tm.tm_sec); in TEST_F()
284 alarm.time.tm_min, alarm.time.tm_sec); in TEST_F()
318 secs = timegm((struct tm *)&tm) + 60 - tm.tm_sec;
332 tm.tm_hour, tm.tm_min, tm.tm_sec);
376 secs = timegm((struct tm *)&alarm.time) + 60 - alarm.time.tm_sec;
394 alarm.time.tm_min, alarm.time.tm_sec);
/linux-6.12.1/drivers/rtc/
Drtc-s3c.c145 tm->tm_sec = readb(info->base + S3C2410_RTCSEC); in s3c_rtc_read_time()
152 if (tm->tm_sec == 0 && !have_retried) { in s3c_rtc_read_time()
159 tm->tm_sec = bcd2bin(tm->tm_sec); in s3c_rtc_read_time()
178 writeb(bin2bcd(tm->tm_sec), info->base + S3C2410_RTCSEC); in s3c_rtc_write_time()
235 alm_tm->tm_sec = readb(info->base + S3C2410_ALMSEC); in s3c_rtc_getalarm()
252 alm_tm->tm_sec = bcd2bin(alm_tm->tm_sec); in s3c_rtc_getalarm()
290 if (tm->tm_sec < 60 && tm->tm_sec >= 0) { in s3c_rtc_setalarm()
292 writeb(bin2bcd(tm->tm_sec), info->base + S3C2410_ALMSEC); in s3c_rtc_setalarm()
Drtc-pic32.c146 rtc_tm->tm_sec = readb(base + PIC32_RTCSEC); in pic32_rtc_gettime()
154 } while (rtc_tm->tm_sec == 0 && tries < 2); in pic32_rtc_gettime()
156 rtc_tm->tm_sec = bcd2bin(rtc_tm->tm_sec); in pic32_rtc_gettime()
179 writeb(bin2bcd(tm->tm_sec), base + PIC32_RTCSEC); in pic32_rtc_settime()
198 alm_tm->tm_sec = readb(base + PIC32_ALRMSEC); in pic32_rtc_getalarm()
211 alm_tm->tm_sec = bcd2bin(alm_tm->tm_sec); in pic32_rtc_getalarm()
Drtc-optee.c23 u32 tm_sec; member
83 tm->tm_sec = optee_tm->tm_sec; in optee_rtc_readtime()
104 optee_tm.tm_sec = tm->tm_sec; in optee_rtc_settime()
225 tm->tm_sec); in optee_rtc_read_info()
228 tm->tm_sec); in optee_rtc_read_info()
Drtc-rzn1.c69 tm->tm_sec = readl(rtc->base + RZN1_RTC_SECC); in rzn1_rtc_get_time_snapshot()
106 if (tm->tm_sec != secs) in rzn1_rtc_read_time()
109 tm->tm_sec = bcd2bin(tm->tm_sec); in rzn1_rtc_read_time()
126 tm->tm_sec = bin2bcd(tm->tm_sec); in rzn1_rtc_set_time()
147 writel(tm->tm_sec, rtc->base + RZN1_RTC_SEC); in rzn1_rtc_set_time()
200 tm->tm_sec = 0; in rzn1_rtc_read_alarm()
Drtc-spear.c172 tm->tm_sec = bin2bcd(tm->tm_sec); in tm2bcd()
182 tm->tm_sec = bcd2bin(tm->tm_sec); in bcd2tm()
211 tm->tm_sec = (time >> SECOND_SHIFT) & SECOND_MASK; in spear_rtc_read_time()
238 time = (tm->tm_sec << SECOND_SHIFT) | (tm->tm_min << MINUTE_SHIFT) | in spear_rtc_set_time()
265 alm->time.tm_sec = (time >> SECOND_SHIFT) & SECOND_MASK; in spear_rtc_read_alarm()
296 time = (alm->time.tm_sec << SECOND_SHIFT) | (alm->time.tm_min << in spear_rtc_set_alarm()
Drtc-m41t94.c36 "write", tm->tm_sec, tm->tm_min, in m41t94_set_time()
41 buf[M41T94_REG_SECONDS] = bin2bcd(tm->tm_sec); in m41t94_set_time()
82 tm->tm_sec = bcd2bin(spi_w8r8(spi, M41T94_REG_SECONDS)); in m41t94_read_time()
95 "read", tm->tm_sec, tm->tm_min, in m41t94_read_time()
Drtc-da9052.c83 rtc_tm->tm_sec = 0; in da9052_read_alarm()
108 if (rtc_tm->tm_sec > 0) { in da9052_set_alarm()
109 alm_time += 60 - rtc_tm->tm_sec; in da9052_set_alarm()
112 BUG_ON(rtc_tm->tm_sec); /* it will cause repeated irqs if not zero */ in da9052_set_alarm()
181 rtc_tm->tm_sec = v[0][0] & DA9052_RTC_SEC; in da9052_rtc_read_time()
208 v[0] = tm->tm_sec; in da9052_rtc_set_time()
Drtc-fm3130.c117 t->tm_sec = bcd2bin(fm3130->regs[FM3130_RTC_SECONDS] & 0x7f); in fm3130_get_time()
131 "read", t->tm_sec, t->tm_min, in fm3130_get_time()
147 "write", t->tm_sec, t->tm_min, in fm3130_set_time()
152 buf[FM3130_RTC_SECONDS] = bin2bcd(t->tm_sec); in fm3130_set_time()
211 tm->tm_sec = bcd2bin(fm3130->regs[FM3130_ALARM_SECONDS] & 0x7F); in fm3130_read_alarm()
222 "read alarm", tm->tm_sec, tm->tm_min, in fm3130_read_alarm()
247 "write alarm", tm->tm_sec, tm->tm_min, in fm3130_set_alarm()
252 (tm->tm_sec != -1) ? bin2bcd(tm->tm_sec) : 0x80; in fm3130_set_alarm()
Drtc-wm8350.c52 tm->tm_sec = time1[0] & WM8350_RTC_SECS_MASK; in wm8350_rtc_readtime()
97 time[0] = tm->tm_sec; in wm8350_rtc_settime()
150 tm->tm_sec = time[0] & WM8350_RTC_ALMSECS_MASK; in wm8350_rtc_readalarm()
151 if (tm->tm_sec == WM8350_RTC_ALMSECS_MASK) in wm8350_rtc_readalarm()
152 tm->tm_sec = -1; in wm8350_rtc_readalarm()
252 if (tm->tm_sec != -1) in wm8350_rtc_setalarm()
253 time[0] |= tm->tm_sec; in wm8350_rtc_setalarm()
Drtc-ds1511.c106 sec = rtc_tm->tm_sec; in ds1511_rtc_set_time()
143 rtc_tm->tm_sec = rtc_read(DS1511_SEC) & 0x7f; in ds1511_rtc_read_time()
155 rtc_tm->tm_sec = bcd2bin(rtc_tm->tm_sec); in ds1511_rtc_read_time()
190 rtc_write(bin2bcd(alrm->time.tm_sec) & 0x7f, DS1511_AM1_SEC); in ds1511_rtc_set_alarm()
204 alrm->time.tm_sec = bcd2bin(rtc_read(DS1511_AM1_SEC) & 0x7f); in ds1511_rtc_read_alarm()
Drtc-ds1286.c181 tm->tm_sec = ds1286_rtc_read(priv, RTC_SECONDS); in ds1286_read_time()
191 tm->tm_sec = bcd2bin(tm->tm_sec); in ds1286_read_time()
226 sec = tm->tm_sec; in ds1286_set_time()
280 alm->time.tm_sec = 0; in ds1286_read_alarm()
291 sec = alm->time.tm_sec; in ds1286_set_alarm()
Drtc-m41t93.c54 "write", tm->tm_sec, tm->tm_min, in m41t93_set_time()
88 data[M41T93_REG_ST_SEC] = bin2bcd(tm->tm_sec); in m41t93_set_time()
143 tm->tm_sec = bcd2bin(buf[M41T93_REG_ST_SEC]); in m41t93_get_time()
155 "read", tm->tm_sec, tm->tm_min, in m41t93_get_time()
Drtc-rx4581.c150 tm->tm_sec = bcd2bin(date[RX4581_REG_SC] & 0x7F); in rx4581_get_datetime()
164 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx4581_get_datetime()
179 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx4581_set_datetime()
184 buf[RX4581_REG_SC+1] = bin2bcd(tm->tm_sec); in rx4581_set_datetime()
Drtc-m48t35.c69 tm->tm_sec = readb(&priv->reg->sec); in m48t35_read_time()
78 tm->tm_sec = bcd2bin(tm->tm_sec); in m48t35_read_time()
109 sec = tm->tm_sec; in m48t35_set_time()
Dlib.c138 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm()
157 ((unsigned int)tm->tm_sec) >= 60) in rtc_valid_tm()
171 tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_tm_to_time64()
Drtc-ntxec.c48 tm->tm_sec = value & 0xff; in ntxec_read_time()
73 if (tm->tm_min != value >> 8 || tm->tm_sec != (value & 0xff)) in ntxec_read_time()
97 { NTXEC_REG_WRITE_SECOND, ntxec_reg8(tm->tm_sec) }, in ntxec_set_time()
Drtc-bq4802.c62 tm->tm_sec = p->read(p, 0x00); in bq4802_read_time()
75 tm->tm_sec = bcd2bin(tm->tm_sec); in bq4802_read_time()
107 sec = tm->tm_sec; in bq4802_set_time()
Drtc-mc146818-lib.c121 p->time->tm_sec = seconds; in mc146818_get_time_callback()
167 time->tm_sec = bcd2bin(time->tm_sec); in mc146818_get_time()
228 sec = time->tm_sec; in mc146818_set_time()
/linux-6.12.1/arch/powerpc/platforms/chrp/
Dtime.c102 tm.tm_sec = bin2bcd(tm.tm_sec); in chrp_set_rtc_time()
109 chrp_cmos_clock_write(tm.tm_sec,RTC_SECONDS); in chrp_set_rtc_time()
153 tm->tm_sec = sec; in chrp_get_rtc_time()
/linux-6.12.1/arch/m68k/atari/
Dtime.c155 val.sec_ones = t->tm_sec % 10; in atari_mste_hwclk()
156 val.sec_tens = t->tm_sec / 10; in atari_mste_hwclk()
183 t->tm_sec = val.sec_ones + val.sec_tens * 10; in atari_mste_hwclk()
214 sec = t->tm_sec; in atari_tt_hwclk()
311 t->tm_sec = sec; in atari_tt_hwclk()

12345678