| /drivers/rtc/ |
| A D | rtc-s3c.c | 145 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()
|
| A 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()
|
| A D | rtc-spear.c | 172 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()
|
| A D | rtc-optee.c | 23 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()
|
| A D | rtc-da9052.c | 83 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()
|
| A 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()
|
| A 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()
|
| A 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()
|
| A 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()
|
| A D | rtc-ds1511.c | 106 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()
|
| A 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()
|
| A D | rtc-m48t35.c | 69 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()
|
| A 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()
|
| A D | rtc-rzn1.c | 80 tm->tm_sec = bcd2bin(val); in rzn1_rtc_get_time_snapshot() 106 if (tm->tm_sec != bcd2bin(secs)) in rzn1_rtc_read_time() 131 val = bin2bcd(tm->tm_sec); in rzn1_rtc_set_time() 152 if (rtc->tm_alarm.tm_sec == 0) in rzn1_rtc_alarm_irq() 173 if (readl(rtc->base + RZN1_RTC_SECC) == bin2bcd(rtc->tm_alarm.tm_sec)) { in rzn1_rtc_1s_irq() 216 } while (readl(rtc->base + RZN1_RTC_SECC) != bin2bcd(tm_now.tm_sec)); in rzn1_rtc_alarm_irq_enable() 242 tm->tm_sec = 0; in rzn1_rtc_read_alarm()
|
| A 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()
|
| A D | lib.c | 150 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm() 169 ((unsigned int)tm->tm_sec) >= 60) in rtc_valid_tm() 183 tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_tm_to_time64()
|
| A D | rtc-ntxec.c | 48 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()
|
| A 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()
|
| A D | rtc-mc146818-lib.c | 121 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()
|
| A D | rtc-s35390a.c | 216 "mon=%d, year=%d, wday=%d\n", __func__, tm->tm_sec, in s35390a_rtc_set_time() 229 buf[S35390A_BYTE_SECS] = bin2bcd(tm->tm_sec); in s35390a_rtc_set_time() 256 tm->tm_sec = bcd2bin(buf[S35390A_BYTE_SECS]); in s35390a_rtc_read_time() 265 "mon=%d, year=%d, wday=%d\n", __func__, tm->tm_sec, in s35390a_rtc_read_time() 280 "mon=%d, year=%d, wday=%d\n", __func__, alm->time.tm_sec, in s35390a_rtc_set_alarm() 372 alm->time.tm_sec = 0; in s35390a_rtc_read_alarm()
|
| A D | rtc-mt2712.c | 141 tm->tm_sec = mt2712_readl(mt2712_rtc, MT2712_TC_SEC) in __mt2712_rtc_read_time() 167 } while (sec < tm->tm_sec); /* SEC has carried */ in mt2712_rtc_read_time() 176 mt2712_writel(mt2712_rtc, MT2712_TC_SEC, tm->tm_sec & MT2712_SEC_MASK); in mt2712_rtc_set_time() 202 tm->tm_sec = mt2712_readl(mt2712_rtc, MT2712_AL_SEC) & MT2712_SEC_MASK; in mt2712_rtc_read_alarm() 241 & ~(MT2712_SEC_MASK)) | (tm->tm_sec & MT2712_SEC_MASK)); in mt2712_rtc_set_alarm()
|
| A D | rtc-m48t59.c | 89 tm->tm_sec = bcd2bin(M48T59_READ(M48T59_SEC) & 0x7F); in m48t59_rtc_read_time() 109 tm->tm_hour, tm->tm_min, tm->tm_sec); in m48t59_rtc_set_time() 118 M48T59_WRITE((bin2bcd(tm->tm_sec) & 0x7F), M48T59_SEC); in m48t59_rtc_set_time() 167 tm->tm_sec = bcd2bin(M48T59_READ(M48T59_ALARM_SEC)); in m48t59_rtc_readalarm() 210 sec = tm->tm_sec; in m48t59_rtc_setalarm() 228 tm->tm_hour, tm->tm_min, tm->tm_sec); in m48t59_rtc_setalarm()
|
| A D | rtc-omap.c | 272 tm->tm_sec = bin2bcd(tm->tm_sec); in tm2bcd() 283 tm->tm_sec = bcd2bin(tm->tm_sec); in bcd2tm() 294 tm->tm_sec = rtc_read(rtc, OMAP_RTC_SECONDS_REG); in omap_rtc_read_time_raw() 332 rtc_write(rtc, OMAP_RTC_SECONDS_REG, tm->tm_sec); in omap_rtc_set_time() 348 alm->time.tm_sec = rtc_read(rtc, OMAP_RTC_ALARM_SECONDS_REG); in omap_rtc_read_alarm() 381 rtc_write(rtc, OMAP_RTC_ALARM_SECONDS_REG, alm->time.tm_sec); in omap_rtc_set_alarm() 430 seconds = tm.tm_sec; in omap_rtc_power_off_program() 439 rtc_write(rtc, OMAP_RTC_ALARM2_SECONDS_REG, tm.tm_sec); in omap_rtc_power_off_program()
|
| A D | rtc-rx8581.c | 113 tm->tm_sec = bcd2bin(date[RX8581_REG_SC] & 0x7F); in rx8581_rtc_read_time() 124 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx8581_rtc_read_time() 140 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx8581_rtc_set_time() 144 buf[RX8581_REG_SC] = bin2bcd(tm->tm_sec); in rx8581_rtc_set_time()
|
| A D | rtc-vt8500.c | 109 tm->tm_sec = bcd2bin(time & TIME_SEC_MASK); in vt8500_rtc_read_time() 133 | (bin2bcd(tm->tm_sec)), in vt8500_rtc_set_time() 150 alrm->time.tm_sec = bcd2bin((alarm & TIME_SEC_MASK)); in vt8500_rtc_read_alarm() 166 | (bin2bcd(alrm->time.tm_sec)), in vt8500_rtc_set_alarm()
|