| /Linux-v5.4/arch/powerpc/platforms/maple/ |
| D | time.c | 55 tm->tm_sec = maple_clock_read(RTC_SECONDS); in maple_get_rtc_time() 61 } while (tm->tm_sec != maple_clock_read(RTC_SECONDS)); in maple_get_rtc_time() 65 tm->tm_sec = bcd2bin(tm->tm_sec); in maple_get_rtc_time() 93 sec = tm->tm_sec; in maple_set_rtc_time()
|
| /Linux-v5.4/tools/testing/selftests/rtc/ |
| D | setdate.c | 50 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()
|
| D | rtctest.c | 49 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in TEST_F() 137 tm.tm_hour, tm.tm_min, tm.tm_sec); in TEST_F() 195 alarm.time.tm_min, alarm.time.tm_sec); in TEST_F() 225 secs = timegm((struct tm *)&tm) + 60 - tm.tm_sec; 239 tm.tm_hour, tm.tm_min, tm.tm_sec); 279 secs = timegm((struct tm *)&alarm.time) + 60 - alarm.time.tm_sec; 297 alarm.time.tm_min, alarm.time.tm_sec);
|
| /Linux-v5.4/arch/m68k/sun3/ |
| D | intersil.c | 43 todintersil->second = t->tm_sec; in sun3_hwclk() 50 t->tm_sec = todintersil->csec; in sun3_hwclk() 53 t->tm_sec = todintersil->second; in sun3_hwclk()
|
| /Linux-v5.4/arch/powerpc/platforms/chrp/ |
| D | time.c | 104 tm.tm_sec = bin2bcd(tm.tm_sec); in chrp_set_rtc_time() 111 chrp_cmos_clock_write(tm.tm_sec,RTC_SECONDS); in chrp_set_rtc_time() 155 tm->tm_sec = sec; in chrp_get_rtc_time()
|
| /Linux-v5.4/drivers/rtc/ |
| D | rtc-pic32.c | 146 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()
|
| D | rtc-m41t94.c | 36 "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()
|
| D | rtc-spear.c | 175 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()
|
| D | rtc-mc146818-lib.c | 54 time->tm_sec = CMOS_READ(RTC_SECONDS); in mc146818_get_time() 73 time->tm_sec = bcd2bin(time->tm_sec); in mc146818_get_time() 119 sec = time->tm_sec; in mc146818_set_time()
|
| D | rtc-da9052.c | 83 rtc_tm->tm_sec = 0; in da9052_read_alarm() 110 if (rtc_tm->tm_sec > 0) { in da9052_set_alarm() 111 alm_time += 60 - rtc_tm->tm_sec; in da9052_set_alarm() 114 BUG_ON(rtc_tm->tm_sec); /* it will cause repeated irqs if not zero */ in da9052_set_alarm() 183 rtc_tm->tm_sec = v[0][0] & DA9052_RTC_SEC; in da9052_rtc_read_time() 210 v[0] = tm->tm_sec; in da9052_rtc_set_time()
|
| D | rtc-ds1286.c | 181 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()
|
| D | rtc-wm8350.c | 52 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()
|
| D | rtc-fm3130.c | 117 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()
|
| D | lib.c | 85 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm() 104 ((unsigned int)tm->tm_sec) >= 60) in rtc_valid_tm() 118 tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_tm_to_time64()
|
| D | rtc-m41t93.c | 54 "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()
|
| D | rtc-m48t35.c | 58 tm->tm_sec = readb(&priv->reg->sec); in m48t35_read_time() 67 tm->tm_sec = bcd2bin(tm->tm_sec); in m48t35_read_time() 98 sec = tm->tm_sec; in m48t35_set_time()
|
| D | rtc-s35390a.c | 218 "mon=%d, year=%d, wday=%d\n", __func__, tm->tm_sec, in s35390a_rtc_set_time() 231 buf[S35390A_BYTE_SECS] = bin2bcd(tm->tm_sec); in s35390a_rtc_set_time() 260 tm->tm_sec = bcd2bin(buf[S35390A_BYTE_SECS]); in s35390a_rtc_read_time() 269 "mon=%d, year=%d, wday=%d\n", __func__, tm->tm_sec, in s35390a_rtc_read_time() 284 "mon=%d, year=%d, wday=%d\n", __func__, alm->time.tm_sec, in s35390a_rtc_set_alarm() 288 if (alm->time.tm_sec != 0) in s35390a_rtc_set_alarm() 379 alm->time.tm_sec = 0; in s35390a_rtc_read_alarm()
|
| D | rtc-s3c.c | 190 rtc_tm->tm_sec = readb(info->base + S3C2410_RTCSEC); in s3c_rtc_gettime() 197 if (rtc_tm->tm_sec == 0 && !have_retried) { in s3c_rtc_gettime() 202 rtc_tm->tm_sec = bcd2bin(rtc_tm->tm_sec); in s3c_rtc_gettime() 237 writeb(bin2bcd(tm->tm_sec), info->base + S3C2410_RTCSEC); in s3c_rtc_settime() 260 alm_tm->tm_sec = readb(info->base + S3C2410_ALMSEC); in s3c_rtc_getalarm() 277 alm_tm->tm_sec = bcd2bin(alm_tm->tm_sec); in s3c_rtc_getalarm() 315 if (tm->tm_sec < 60 && tm->tm_sec >= 0) { in s3c_rtc_setalarm() 317 writeb(bin2bcd(tm->tm_sec), info->base + S3C2410_ALMSEC); in s3c_rtc_setalarm() 529 rtc_tm.tm_sec = 0; in s3c_rtc_probe()
|
| D | rtc-rx4581.c | 150 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()
|
| D | rtc-bq4802.c | 62 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()
|
| D | rtc-isl12022.c | 136 tm->tm_sec = bcd2bin(buf[ISL12022_REG_SC] & 0x7F); in isl12022_rtc_read_time() 147 tm->tm_sec, tm->tm_min, tm->tm_hour, in isl12022_rtc_read_time() 164 tm->tm_sec, tm->tm_min, tm->tm_hour, in isl12022_rtc_set_time() 205 buf[ISL12022_REG_SC] = bin2bcd(tm->tm_sec); in isl12022_rtc_set_time()
|
| D | rtc-mv.c | 52 rtc_reg = (bin2bcd(tm->tm_sec) << RTC_SECONDS_OFFS) | in mv_rtc_set_time() 85 tm->tm_sec = bcd2bin(second); in mv_rtc_read_time() 116 alm->time.tm_sec = bcd2bin(second); in mv_rtc_read_alarm() 136 if (alm->time.tm_sec >= 0) in mv_rtc_set_alarm() 137 rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_sec)) in mv_rtc_set_alarm()
|
| /Linux-v5.4/drivers/char/ |
| D | rtc.c | 490 sec = alm_tm.tm_sec; in rtc_do_ioctl() 551 sec = rtc_tm.tm_sec; in rtc_do_ioctl() 1147 if (tm.tm_sec <= 59) in rtc_proc_show() 1148 seq_printf(seq, "%02d\n", tm.tm_sec); in rtc_proc_show() 1207 rtc_tm->tm_sec = CMOS_READ(RTC_SECONDS); in rtc_get_rtc_time() 1223 rtc_tm->tm_sec = bcd2bin(rtc_tm->tm_sec); in rtc_get_rtc_time() 1256 alm_tm->tm_sec = CMOS_READ(RTC_SECONDS_ALARM); in get_rtc_alm_time() 1263 alm_tm->tm_sec = bcd2bin(alm_tm->tm_sec); in get_rtc_alm_time()
|
| /Linux-v5.4/arch/m68k/atari/ |
| D | time.c | 152 val.sec_ones = t->tm_sec % 10; in atari_mste_hwclk() 153 val.sec_tens = t->tm_sec / 10; in atari_mste_hwclk() 180 t->tm_sec = val.sec_ones + val.sec_tens * 10; in atari_mste_hwclk() 211 sec = t->tm_sec; in atari_tt_hwclk() 308 t->tm_sec = sec; in atari_tt_hwclk()
|
| /Linux-v5.4/arch/m68k/bvme6000/ |
| D | rtc.c | 56 wtime.tm_sec = bcd2bin(rtc->bcd_sec); in rtc_ioctl() 65 } while (wtime.tm_sec != bcd2bin(rtc->bcd_sec)); in rtc_ioctl() 90 sec = rtc_tm.tm_sec; in rtc_ioctl()
|