/linux-4.1.27/arch/powerpc/platforms/maple/ |
D | time.c | 60 tm->tm_sec = maple_clock_read(RTC_SECONDS); in maple_get_rtc_time() 66 } while (tm->tm_sec != maple_clock_read(RTC_SECONDS)); in maple_get_rtc_time() 70 tm->tm_sec = bcd2bin(tm->tm_sec); in maple_get_rtc_time() 98 sec = tm->tm_sec; in maple_set_rtc_time() 174 tm.tm_hour, tm.tm_min, tm.tm_sec); in maple_get_boot_time()
|
/linux-4.1.27/drivers/rtc/ |
D | rtc-tile.c | 32 tm->tm_sec = hvtm.tm_sec; in read_rtc_time() 56 hvtm.tm_sec = tm->tm_sec; in set_rtc_time()
|
D | rtc-mcp795.c | 106 data[0] = (data[0] & 0x80) | ((tim->tm_sec / 10) << 4) | (tim->tm_sec % 10); in mcp795_set_time() 124 tim->tm_hour, tim->tm_min, tim->tm_sec); in mcp795_set_time() 139 tim->tm_sec = ((data[0] & 0x70) >> 4) * 10 + (data[0] & 0x0f); in mcp795_read_time() 148 tim->tm_hour, tim->tm_min, tim->tm_sec); in mcp795_read_time()
|
D | rtc-at91rm9200.c | 126 tm->tm_sec = bcd2bin((time & AT91_RTC_SEC) >> 0); in at91_rtc_decodetime() 154 tm->tm_hour, tm->tm_min, tm->tm_sec); in at91_rtc_readtime() 168 tm->tm_hour, tm->tm_min, tm->tm_sec); in at91_rtc_settime() 181 bin2bcd(tm->tm_sec) << 0 in at91_rtc_settime() 217 tm->tm_hour, tm->tm_min, tm->tm_sec); in at91_rtc_readalarm() 237 tm.tm_sec = alrm->time.tm_sec; in at91_rtc_setalarm() 241 bin2bcd(tm.tm_sec) << 0 in at91_rtc_setalarm() 257 tm.tm_min, tm.tm_sec); in at91_rtc_setalarm()
|
D | rtc-s3c.c | 176 rtc_tm->tm_sec = readb(info->base + S3C2410_RTCSEC); in s3c_rtc_gettime() 183 if (rtc_tm->tm_sec == 0 && !have_retried) { in s3c_rtc_gettime() 188 rtc_tm->tm_sec = bcd2bin(rtc_tm->tm_sec); in s3c_rtc_gettime() 201 rtc_tm->tm_hour, rtc_tm->tm_min, rtc_tm->tm_sec); in s3c_rtc_gettime() 215 tm->tm_hour, tm->tm_min, tm->tm_sec); in s3c_rtc_settime() 226 writeb(bin2bcd(tm->tm_sec), info->base + S3C2410_RTCSEC); in s3c_rtc_settime() 246 alm_tm->tm_sec = readb(info->base + S3C2410_ALMSEC); in s3c_rtc_getalarm() 262 alm_tm->tm_hour, alm_tm->tm_min, alm_tm->tm_sec); in s3c_rtc_getalarm() 266 alm_tm->tm_sec = bcd2bin(alm_tm->tm_sec); in s3c_rtc_getalarm() 268 alm_tm->tm_sec = -1; in s3c_rtc_getalarm() [all …]
|
D | rtc-rk808.c | 97 tm->tm_sec = bcd2bin(rtc_data[0] & SECONDS_REG_MSK); in rk808_rtc_readtime() 106 tm->tm_wday, tm->tm_hour , tm->tm_min, tm->tm_sec); in rk808_rtc_readtime() 119 rtc_data[0] = bin2bcd(tm->tm_sec); in rk808_rtc_set_time() 128 tm->tm_wday, tm->tm_hour , tm->tm_min, tm->tm_sec); in rk808_rtc_set_time() 167 alrm->time.tm_sec = bcd2bin(alrm_data[0] & SECONDS_REG_MSK); in rk808_rtc_readalarm() 183 alrm->time.tm_min, alrm->time.tm_sec); in rk808_rtc_readalarm() 228 alrm->time.tm_min, alrm->time.tm_sec); in rk808_rtc_setalarm() 230 alrm_data[0] = bin2bcd(alrm->time.tm_sec); in rk808_rtc_setalarm()
|
D | rtc-m41t94.c | 39 "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()
|
D | rtc-spear.c | 177 tm->tm_sec = bin2bcd(tm->tm_sec); in tm2bcd() 189 tm->tm_sec = bcd2bin(tm->tm_sec); in bcd2tm() 216 tm->tm_sec = (time >> SECOND_SHIFT) & SECOND_MASK; in spear_rtc_read_time() 244 time = (tm->tm_sec << SECOND_SHIFT) | (tm->tm_min << MINUTE_SHIFT) | in spear_rtc_set_time() 271 alm->time.tm_sec = (time >> SECOND_SHIFT) & SECOND_MASK; in spear_rtc_read_alarm() 303 time = (alm->time.tm_sec << SECOND_SHIFT) | (alm->time.tm_min << in spear_rtc_set_alarm()
|
D | rtc-lib.c | 91 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm() 108 || ((unsigned)tm->tm_sec) >= 60) in rtc_valid_tm() 122 tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_tm_to_time64()
|
D | rtc-ds1286.c | 187 tm->tm_sec = ds1286_rtc_read(priv, RTC_SECONDS); in ds1286_read_time() 197 tm->tm_sec = bcd2bin(tm->tm_sec); in ds1286_read_time() 232 sec = tm->tm_sec; in ds1286_set_time() 286 alm->time.tm_sec = 0; in ds1286_read_alarm() 297 sec = alm->time.tm_sec; in ds1286_set_alarm()
|
D | rtc-wm8350.c | 59 tm->tm_sec = time1[0] & WM8350_RTC_SECS_MASK; in wm8350_rtc_readtime() 104 time[0] = tm->tm_sec; in wm8350_rtc_settime() 157 tm->tm_sec = time[0] & WM8350_RTC_ALMSECS_MASK; in wm8350_rtc_readalarm() 158 if (tm->tm_sec == WM8350_RTC_ALMSECS_MASK) in wm8350_rtc_readalarm() 159 tm->tm_sec = -1; in wm8350_rtc_readalarm() 259 if (tm->tm_sec != -1) in wm8350_rtc_setalarm() 260 time[0] |= tm->tm_sec; in wm8350_rtc_setalarm()
|
D | rtc-fm3130.c | 121 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() 152 "write", t->tm_sec, t->tm_min, in fm3130_set_time() 157 buf[FM3130_RTC_SECONDS] = bin2bcd(t->tm_sec); in fm3130_set_time() 217 tm->tm_sec = bcd2bin(fm3130->regs[FM3130_ALARM_SECONDS] & 0x7F); in fm3130_read_alarm() 228 "read alarm", tm->tm_sec, tm->tm_min, in fm3130_read_alarm() 253 "write alarm", tm->tm_sec, tm->tm_min, in fm3130_set_alarm() 258 (tm->tm_sec != -1) ? bin2bcd(tm->tm_sec) : 0x80; in fm3130_set_alarm()
|
D | rtc-m48t86.c | 55 tm->tm_sec = ops->readbyte(M48T86_REG_SEC); in m48t86_rtc_read_time() 65 tm->tm_sec = bcd2bin(ops->readbyte(M48T86_REG_SEC)); in m48t86_rtc_read_time() 97 ops->writebyte(tm->tm_sec, M48T86_REG_SEC); in m48t86_rtc_set_time() 106 ops->writebyte(bin2bcd(tm->tm_sec), M48T86_REG_SEC); in m48t86_rtc_set_time()
|
D | rtc-pcf2127.c | 75 tm->tm_sec = bcd2bin(buf[PCF2127_REG_SC] & 0x7F); in pcf2127_get_datetime() 88 tm->tm_sec, tm->tm_min, tm->tm_hour, in pcf2127_get_datetime() 108 tm->tm_sec, tm->tm_min, tm->tm_hour, in pcf2127_set_datetime() 115 buf[i++] = bin2bcd(tm->tm_sec); in pcf2127_set_datetime()
|
D | rtc-m41t93.c | 57 "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()
|
D | rtc-m48t35.c | 64 tm->tm_sec = readb(&priv->reg->sec); in m48t35_read_time() 73 tm->tm_sec = bcd2bin(tm->tm_sec); in m48t35_read_time() 104 sec = tm->tm_sec; in m48t35_set_time()
|
D | rtc-rx4581.c | 158 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() 191 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx4581_set_datetime() 196 buf[RX4581_REG_SC+1] = bin2bcd(tm->tm_sec); in rx4581_set_datetime()
|
D | rtc-proc.c | 55 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()
|
D | rtc-omap.c | 262 tm->tm_sec = bin2bcd(tm->tm_sec); in tm2bcd() 279 tm->tm_sec = bcd2bin(tm->tm_sec); in bcd2tm() 290 tm->tm_sec = rtc_read(rtc, OMAP_RTC_SECONDS_REG); in omap_rtc_read_time_raw() 329 rtc_write(rtc, OMAP_RTC_SECONDS_REG, tm->tm_sec); in omap_rtc_set_time() 345 alm->time.tm_sec = rtc_read(rtc, OMAP_RTC_ALARM_SECONDS_REG); in omap_rtc_read_alarm() 379 rtc_write(rtc, OMAP_RTC_ALARM_SECONDS_REG, alm->time.tm_sec); in omap_rtc_set_alarm() 443 rtc_write(rtc, OMAP_RTC_ALARM2_SECONDS_REG, tm.tm_sec); in omap_rtc_power_off()
|
D | rtc-m48t59.c | 99 tm->tm_sec = bcd2bin(M48T59_READ(M48T59_SEC) & 0x7F); in m48t59_rtc_read_time() 107 tm->tm_hour, tm->tm_min, tm->tm_sec); in m48t59_rtc_read_time() 127 tm->tm_hour, tm->tm_min, tm->tm_sec); in m48t59_rtc_set_time() 136 M48T59_WRITE((bin2bcd(tm->tm_sec) & 0x7F), M48T59_SEC); in m48t59_rtc_set_time() 190 tm->tm_sec = bcd2bin(M48T59_READ(M48T59_ALARM_SEC)); in m48t59_rtc_readalarm() 198 tm->tm_hour, tm->tm_min, tm->tm_sec); in m48t59_rtc_readalarm() 241 sec = tm->tm_sec; in m48t59_rtc_setalarm() 259 tm->tm_hour, tm->tm_min, tm->tm_sec); in m48t59_rtc_setalarm()
|
D | rtc-da9052.c | 114 if (rtc_tm->tm_sec > 0) { in da9052_set_alarm() 115 alm_time += 60 - rtc_tm->tm_sec; in da9052_set_alarm() 118 BUG_ON(rtc_tm->tm_sec); /* it will cause repeated irqs if not zero */ in da9052_set_alarm() 187 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()
|
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() 108 sec = tm->tm_sec; in bq4802_set_time()
|
D | rtc-s5m.c | 117 tm->tm_sec = data[RTC_SEC] & 0x7f; in s5m8767_data_to_tm() 137 data[RTC_SEC] = tm->tm_sec; in s5m8767_tm_to_data() 284 tm->tm_sec = bcd2bin(data[RTC_SEC]); in s5m8763_data_to_tm() 304 data[RTC_SEC] = bin2bcd(tm->tm_sec); in s5m8763_tm_to_data() 353 tm->tm_hour, tm->tm_min, tm->tm_sec, tm->tm_wday); in s5m_rtc_read_time() 382 tm->tm_hour, tm->tm_min, tm->tm_sec, tm->tm_wday); in s5m_rtc_set_time() 436 alrm->time.tm_min, alrm->time.tm_sec, in s5m_rtc_read_alarm() 458 tm.tm_hour, tm.tm_min, tm.tm_sec, tm.tm_wday); in s5m_rtc_stop_alarm() 502 tm.tm_hour, tm.tm_min, tm.tm_sec, tm.tm_wday); in s5m_rtc_start_alarm() 563 alrm->time.tm_sec, alrm->time.tm_wday); in s5m_rtc_set_alarm()
|
D | rtc-isl12022.c | 140 tm->tm_sec = bcd2bin(buf[ISL12022_REG_SC] & 0x7F); in isl12022_get_datetime() 151 tm->tm_sec, tm->tm_min, tm->tm_hour, in isl12022_get_datetime() 172 tm->tm_sec, tm->tm_min, tm->tm_hour, in isl12022_set_datetime() 213 buf[ISL12022_REG_SC] = bin2bcd(tm->tm_sec); in isl12022_set_datetime()
|
D | rtc-pcf8563.c | 218 tm->tm_sec = bcd2bin(buf[PCF8563_REG_SC] & 0x7F); in pcf8563_get_datetime() 234 tm->tm_sec, tm->tm_min, tm->tm_hour, in pcf8563_get_datetime() 254 tm->tm_sec, tm->tm_min, tm->tm_hour, in pcf8563_set_datetime() 258 buf[PCF8563_REG_SC] = bin2bcd(tm->tm_sec); in pcf8563_set_datetime() 369 if (tm->time.tm_sec) { in pcf8563_rtc_set_alarm() 371 alarm_time += 60-tm->time.tm_sec; in pcf8563_rtc_set_alarm()
|
D | rtc-ds1302.c | 146 tm->tm_sec = bcd2bin(ds1302_readbyte(RTC_ADDR_SEC)); in ds1302_rtc_read_time() 160 tm->tm_sec, tm->tm_min, tm->tm_hour, in ds1302_rtc_read_time() 172 ds1302_writebyte(RTC_ADDR_SEC, bin2bcd(tm->tm_sec)); in ds1302_rtc_set_time()
|
D | rtc-r9701.c | 83 dt->tm_sec = bcd2bin(buf[0]); /* RSECCNT */ in r9701_get_datetime() 108 ret = ret ? ret : write_reg(dev, RSECCNT, bin2bcd(dt->tm_sec)); in r9701_set_datetime() 143 dt.tm_sec = 0; in r9701_probe()
|
D | rtc-puv3.c | 95 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()
|
D | rtc-vt8500.c | 117 tm->tm_sec = bcd2bin(time & TIME_SEC_MASK); in vt8500_rtc_read_time() 147 | (bin2bcd(tm->tm_sec)), in vt8500_rtc_set_time() 164 alrm->time.tm_sec = bcd2bin((alarm & TIME_SEC_MASK)); in vt8500_rtc_read_alarm() 180 | (bin2bcd(alrm->time.tm_sec)), in vt8500_rtc_set_alarm()
|
D | rtc-mv.c | 54 rtc_reg = (bin2bcd(tm->tm_sec) << RTC_SECONDS_OFFS) | in mv_rtc_set_time() 87 tm->tm_sec = bcd2bin(second); in mv_rtc_read_time() 118 alm->time.tm_sec = bcd2bin(second); in mv_rtc_read_alarm() 142 if (alm->time.tm_sec >= 0) in mv_rtc_set_alarm() 143 rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_sec)) in mv_rtc_set_alarm()
|
D | rtc-ds1511.c | 206 sec = rtc_tm->tm_sec; in ds1511_rtc_set_time() 252 rtc_tm->tm_sec = rtc_read(RTC_SEC) & 0x7f; in ds1511_rtc_read_time() 264 rtc_tm->tm_sec = bcd2bin(rtc_tm->tm_sec); in ds1511_rtc_read_time() 332 pdata->alrm_sec = alrm->time.tm_sec; in ds1511_rtc_set_alarm() 352 alrm->time.tm_sec = pdata->alrm_sec < 0 ? 0 : pdata->alrm_sec; in ds1511_rtc_read_alarm()
|
D | rtc-sh.c | 371 tm->tm_sec = bcd2bin(readb(rtc->regbase + RSECCNT)); in sh_rtc_read_time() 397 tm->tm_sec--; in sh_rtc_read_time() 407 tm->tm_sec, tm->tm_min, tm->tm_hour, in sh_rtc_read_time() 428 writeb(bin2bcd(tm->tm_sec), rtc->regbase + RSECCNT); in sh_rtc_set_time() 477 tm->tm_sec = sh_rtc_read_alarm_value(rtc, RSECAR); in sh_rtc_read_alarm() 524 if (tm->tm_sec >= 0xff) in sh_rtc_check_alarm() 525 tm->tm_sec = -1; in sh_rtc_check_alarm() 533 tm->tm_sec >= 60) in sh_rtc_check_alarm() 559 sh_rtc_write_alarm_value(rtc, tm->tm_sec, RSECAR); in sh_rtc_set_alarm()
|
D | rtc-rx8581.c | 152 tm->tm_sec = bcd2bin(date[RX8581_REG_SC] & 0x7F); in rx8581_get_datetime() 166 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx8581_get_datetime() 185 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx8581_set_datetime() 189 buf[RX8581_REG_SC] = bin2bcd(tm->tm_sec); in rx8581_set_datetime()
|
D | rtc-pcf50633.c | 69 rtc->tm_sec = bcd2bin(pcf->time[PCF50633_TI_SEC]); in pcf2rtc_time() 80 pcf->time[PCF50633_TI_SEC] = bin2bcd(rtc->tm_sec); in rtc2pcf_time() 136 tm->tm_hour, tm->tm_min, tm->tm_sec); in pcf50633_rtc_read_time() 151 tm->tm_hour, tm->tm_min, tm->tm_sec); in pcf50633_rtc_set_time()
|
D | rtc-s35390a.c | 158 "mon=%d, year=%d, wday=%d\n", __func__, tm->tm_sec, in s35390a_set_datetime() 168 buf[S35390A_BYTE_SECS] = bin2bcd(tm->tm_sec); in s35390a_set_datetime() 193 tm->tm_sec = bcd2bin(buf[S35390A_BYTE_SECS]); in s35390a_get_datetime() 202 "mon=%d, year=%d, wday=%d\n", __func__, tm->tm_sec, in s35390a_get_datetime() 216 "mon=%d, year=%d, wday=%d\n", __func__, alm->time.tm_sec, in s35390a_set_alarm()
|
D | rtc-tps80031.c | 79 tm->tm_sec = bcd2bin(buff[0]); in tps80031_rtc_read_time() 94 buff[0] = bin2bcd(tm->tm_sec); in tps80031_rtc_set_time() 148 buff[0] = bin2bcd(alrm->time.tm_sec); in tps80031_rtc_set_alarm() 178 alrm->time.tm_sec = bcd2bin(buff[0]); in tps80031_rtc_read_alarm()
|
D | rtc-tps65910.c | 77 tm->tm_sec = bcd2bin(rtc_data[0]); in tps65910_rtc_read_time() 93 rtc_data[0] = bin2bcd(tm->tm_sec); in tps65910_rtc_set_time() 142 alm->time.tm_sec = bcd2bin(alarm_data[0]); in tps65910_rtc_read_alarm() 169 alarm_data[0] = bin2bcd(alm->time.tm_sec); in tps65910_rtc_set_alarm()
|
D | rtc-moxart.c | 170 ((tm->tm_sec / 10) << 4) | in moxart_rtc_set_time() 171 (tm->tm_sec % 10)); in moxart_rtc_set_time() 180 tm->tm_hour, tm->tm_min, tm->tm_sec); in moxart_rtc_set_time() 193 tm->tm_sec = (((v & 0x70) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time()
|
D | rtc-ds1307.c | 387 t->tm_sec = bcd2bin(ds1307->regs[DS1307_REG_SECS] & 0x7f); in ds1307_get_time() 401 "read", t->tm_sec, t->tm_min, in ds1307_get_time() 418 "write", t->tm_sec, t->tm_min, in ds1307_set_time() 422 buf[DS1307_REG_SECS] = bin2bcd(t->tm_sec); in ds1307_set_time() 496 t->time.tm_sec = bcd2bin(ds1307->regs[0] & 0x7f); in ds1337_read_alarm() 512 "alarm read", t->time.tm_sec, t->time.tm_min, in ds1337_read_alarm() 532 "alarm set", t->time.tm_sec, t->time.tm_min, in ds1337_set_alarm() 554 buf[0] = bin2bcd(t->time.tm_sec); in ds1337_set_alarm() 691 t->time.tm_sec = bcd2bin(ds1307->regs[3] & 0x7f); in mcp794xx_read_alarm() 703 t->time.tm_sec, t->time.tm_min, t->time.tm_hour, in mcp794xx_read_alarm() [all …]
|
D | rtc-palmas.c | 69 tm->tm_sec = bcd2bin(rtc_data[0]); in palmas_rtc_read_time() 85 rtc_data[0] = bin2bcd(tm->tm_sec); in palmas_rtc_set_time() 140 alm->time.tm_sec = bcd2bin(alarm_data[0]); in palmas_rtc_read_alarm() 171 alarm_data[0] = bin2bcd(alm->time.tm_sec); in palmas_rtc_set_alarm()
|
D | rtc-pcf2123.c | 152 tm->tm_sec = bcd2bin(rxbuf[0] & 0x7F); in pcf2123_rtc_read_time() 165 tm->tm_sec, tm->tm_min, tm->tm_hour, in pcf2123_rtc_read_time() 186 tm->tm_sec, tm->tm_min, tm->tm_hour, in pcf2123_rtc_set_time() 199 txbuf[1] = bin2bcd(tm->tm_sec & 0x7F); in pcf2123_rtc_set_time()
|
D | rtc-tegra.c | 131 tm->tm_sec in tegra_rtc_read_time() 157 tm->tm_sec in tegra_rtc_set_time() 187 alarm->time.tm_sec = -1; in tegra_rtc_read_alarm() 249 alarm->time.tm_sec); in tegra_rtc_set_alarm()
|
D | rtc-lp8788.c | 126 tm->tm_sec = data[LPTIME_SEC]; in lp8788_rtc_read_time() 151 data[LPTIME_SEC] = tm->tm_sec; in lp8788_rtc_set_time() 180 tm->tm_sec = data[LPTIME_SEC]; in lp8788_read_alarm() 206 data[LPTIME_SEC] = tm->tm_sec; in lp8788_set_alarm()
|
D | rtc-msm6242.c | 131 tm->tm_sec = msm6242_read(priv, MSM6242_SECOND10) * 10 + in msm6242_read_time() 167 msm6242_write(priv, tm->tm_sec / 10, MSM6242_SECOND10); in msm6242_set_time() 168 msm6242_write(priv, tm->tm_sec % 10, MSM6242_SECOND1); in msm6242_set_time()
|
D | rtc-hym8563.c | 113 tm->tm_sec = bcd2bin(buf[0] & HYM8563_SEC_MASK); in hym8563_rtc_read_time() 135 buf[0] = bin2bcd(tm->tm_sec); in hym8563_rtc_set_time() 201 alm_tm->tm_sec = -1; in hym8563_rtc_read_alarm() 239 if (alm_tm->tm_sec) { in hym8563_rtc_set_alarm() 240 alm_tm->tm_sec = 0; in hym8563_rtc_set_alarm()
|
D | rtc-em3027.c | 72 tm->tm_sec = bcd2bin(buf[0]); in em3027_get_time() 95 buf[1] = bin2bcd(tm->tm_sec); in em3027_set_time()
|
D | rtc-v3020.c | 241 dt->tm_sec = bcd2bin(tmp); in v3020_read_time() 258 dev_dbg(dev, "tm_sec : %i\n", dt->tm_sec); in v3020_read_time() 273 dev_dbg(dev, "tm_sec : %i\n", dt->tm_sec); in v3020_set_time() 281 v3020_set_reg(chip, V3020_SECONDS, bin2bcd(dt->tm_sec)); in v3020_set_time()
|
D | rtc-rv3029c2.c | 162 tm->tm_sec = bcd2bin(regs[RV3029C2_W_SEC-RV3029C2_W_SEC]); in rv3029c2_i2c_read_time() 212 tm->tm_sec = bcd2bin(regs[RV3029C2_A_SC-RV3029C2_A_SC] & 0x7f); in rv3029c2_i2c_read_alarm() 275 regs[RV3029C2_A_SC-RV3029C2_A_SC] = bin2bcd(tm->tm_sec & 0x7f); in rv3029c2_rtc_i2c_set_alarm() 342 regs[RV3029C2_W_SEC-RV3029C2_W_SEC] = bin2bcd(tm->tm_sec); in rv3029c2_i2c_set_time()
|
D | rtc-max6902.c | 70 dt->tm_sec = bcd2bin(buf[0]); in max6902_read_time() 98 max6902_set_reg(dev, MAX6902_REG_SECONDS, bin2bcd(dt->tm_sec)); in max6902_set_time()
|
D | rtc-ds1305.c | 194 time->tm_sec = bcd2bin(buf[DS1305_SEC]); in ds1305_get_time() 204 "read", time->tm_sec, time->tm_min, in ds1305_get_time() 220 "write", time->tm_sec, time->tm_min, in ds1305_set_time() 227 *bp++ = bin2bcd(time->tm_sec); in ds1305_set_time() 317 alm->time.tm_sec = bcd2bin(buf[DS1305_SEC]); in ds1305_get_alarm() 375 buf[1 + DS1305_SEC] = bin2bcd(alm->time.tm_sec); in ds1305_set_alarm()
|
D | rtc-ds3234.c | 70 dt->tm_sec = bcd2bin(buf[0]); in ds3234_read_time() 83 ds3234_set_reg(dev, DS3234_REG_SECONDS, bin2bcd(dt->tm_sec)); in ds3234_set_time()
|
D | rtc-ds1347.c | 69 dt->tm_sec = bcd2bin(buf[0]); in ds1347_read_time() 86 buf[1] = bin2bcd(dt->tm_sec); in ds1347_set_time()
|
D | rtc-mpc5121.c | 95 out_8(®s->second_set, tm->tm_sec); in mpc5121_rtc_update_smh() 158 tm->tm_sec = in_8(®s->second); in mpc5200_rtc_read_time() 221 if (alarm->time.tm_sec) { in mpc5121_rtc_set_alarm() 222 alarm->time.tm_sec = 0; in mpc5121_rtc_set_alarm()
|
D | rtc-mrst.c | 97 time->tm_sec = vrtc_cmos_read(RTC_SECONDS); in mrst_read_time() 123 sec = time->tm_sec; in mrst_set_time() 162 t->time.tm_sec = vrtc_cmos_read(RTC_SECONDS_ALARM); in mrst_read_alarm() 227 sec = t->time.tm_sec; in mrst_set_alarm()
|
D | rtc-twl.c | 304 tm->tm_sec = bcd2bin(rtc_data[0]); in twl_rtc_read_time() 320 rtc_data[0] = bin2bcd(tm->tm_sec); in twl_rtc_set_time() 369 alm->time.tm_sec = bcd2bin(rtc_data[0]); in twl_rtc_read_alarm() 392 alarm_data[0] = bin2bcd(alm->time.tm_sec); in twl_rtc_set_alarm()
|
D | rtc-ds1390.c | 86 dt->tm_sec = bcd2bin(chip->txrx_buf[0]); in ds1390_read_time() 106 chip->txrx_buf[1] = bin2bcd(dt->tm_sec); in ds1390_set_time()
|
D | rtc-rp5c01.c | 100 tm->tm_sec = rp5c01_read(priv, RP5C01_10_SECOND) * 10 + in rp5c01_read_time() 129 rp5c01_write(priv, tm->tm_sec / 10, RP5C01_10_SECOND); in rp5c01_set_time() 130 rp5c01_write(priv, tm->tm_sec % 10, RP5C01_1_SECOND); in rp5c01_set_time()
|
D | rtc-rs5c372.c | 191 tm->tm_sec = bcd2bin(rs5c->regs[RS5C372_REG_SECS] & 0x7f); in rs5c372_get_datetime() 207 tm->tm_sec, tm->tm_min, tm->tm_hour, in rs5c372_get_datetime() 223 tm->tm_sec, tm->tm_min, tm->tm_hour, in rs5c372_set_datetime() 227 buf[0] = bin2bcd(tm->tm_sec); in rs5c372_set_datetime() 344 t->time.tm_sec = 0; in rs5c_read_alarm()
|
D | rtc-rx8025.c | 206 dt->tm_sec = bcd2bin(date[RX8025_REG_SEC] & 0x7f); in rx8025_get_time() 222 dt->tm_sec, dt->tm_min, dt->tm_hour, in rx8025_get_time() 243 date[RX8025_REG_SEC] = bin2bcd(dt->tm_sec); in rx8025_set_time() 340 t->time.tm_sec = 0; in rx8025_read_alarm() 355 t->time.tm_sec, t->time.tm_min, t->time.tm_hour, in rx8025_read_alarm()
|
D | rtc-pcf85063.c | 70 tm->tm_sec = bcd2bin(buf[PCF85063_REG_SC] & 0x7F); in pcf85063_get_datetime() 102 buf[PCF85063_REG_SC] = bin2bcd(tm->tm_sec) & 0x7F; in pcf85063_set_datetime()
|
D | rtc-stk17ta8.c | 93 writeb(bin2bcd(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS); in stk17ta8_rtc_set_time() 125 tm->tm_sec = bcd2bin(second); in stk17ta8_rtc_read_time() 180 pdata->alrm_sec = alrm->time.tm_sec; in stk17ta8_rtc_set_alarm() 197 alrm->time.tm_sec = pdata->alrm_sec < 0 ? 0 : pdata->alrm_sec; in stk17ta8_rtc_read_alarm()
|
D | rtc-ds3232.c | 135 time->tm_sec = bcd2bin(second); in ds3232_read_time() 167 buf[0] = bin2bcd(time->tm_sec); in ds3232_set_time() 213 alarm->time.tm_sec = bcd2bin(buf[0] & 0x7F); in ds3232_read_alarm() 250 buf[0] = bin2bcd(alarm->time.tm_sec); in ds3232_set_alarm()
|
D | rtc-ds1553.c | 93 writeb(bin2bcd(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS); in ds1553_rtc_set_time() 123 tm->tm_sec = bcd2bin(second); in ds1553_rtc_read_time() 172 pdata->alrm_sec = alrm->time.tm_sec; in ds1553_rtc_set_alarm() 189 alrm->time.tm_sec = pdata->alrm_sec < 0 ? 0 : pdata->alrm_sec; in ds1553_rtc_read_alarm()
|
D | rtc-dev.c | 69 } else if (rtc->oldsecs != tm.tm_sec) { in rtc_uie_task() 70 num = (tm.tm_sec + 60 - rtc->oldsecs) % 60; in rtc_uie_task() 71 rtc->oldsecs = tm.tm_sec; in rtc_uie_task() 130 rtc->oldsecs = tm.tm_sec; in set_uie()
|
D | rtc-cmos.c | 227 t->time.tm_sec = CMOS_READ(RTC_SECONDS_ALARM); in cmos_read_alarm() 248 if (((unsigned)t->time.tm_sec) < 0x60) in cmos_read_alarm() 249 t->time.tm_sec = bcd2bin(t->time.tm_sec); in cmos_read_alarm() 251 t->time.tm_sec = -1; in cmos_read_alarm() 341 sec = t->time.tm_sec; in cmos_set_alarm() 373 hpet_set_alarm_time(t->time.tm_hour, t->time.tm_min, t->time.tm_sec); in cmos_set_alarm()
|
D | rtc-efi.c | 76 eft->second = wtime->tm_sec; in convert_to_efi_time() 89 wtime->tm_sec = eft->second; in convert_from_efi_time()
|
D | rtc-max8925.c | 109 tm->tm_sec = ((buf[RTC_SEC] >> 4) & 0x7) * 10 in tm_calc() 147 high = tm->tm_sec / 10; in data_calc() 148 low = tm->tm_sec; in data_calc()
|
D | rtc-at91sam9.c | 129 tm->tm_hour, tm->tm_min, tm->tm_sec); in at91_rtc_readtime() 146 tm->tm_hour, tm->tm_min, tm->tm_sec); in at91_rtc_settime() 204 tm->tm_hour, tm->tm_min, tm->tm_sec); in at91_rtc_readalarm() 247 tm->tm_min, tm->tm_sec); in at91_rtc_setalarm()
|
D | rtc-ds1216.c | 88 tm->tm_sec = bcd2bin(regs.sec); in ds1216_rtc_read_time() 117 regs.sec = bin2bcd(tm->tm_sec); in ds1216_rtc_set_time()
|
D | hctosys.c | 58 tm.tm_hour, tm.tm_min, tm.tm_sec, in rtc_hctosys()
|
D | rtc-isl12057.c | 90 tm->tm_sec = bcd2bin(regs[ISL12057_REG_RTC_SC]); in isl12057_rtc_regs_to_tm() 128 regs[ISL12057_REG_RTC_SC] = bin2bcd(tm->tm_sec); in isl12057_rtc_tm_to_regs() 263 alarm_tm->tm_sec = bcd2bin(regs[0] & 0x7f); in isl12057_rtc_read_alarm() 373 regs[0] = bin2bcd(alarm_tm->tm_sec) & 0x7f; in isl12057_rtc_set_alarm()
|
D | rtc-88pm80x.c | 101 next->tm_sec = alrm->tm_sec; in rtc_next_alarm_time() 307 tm.tm_sec = 0; in pm80x_rtc_probe()
|
D | rtc-max8907.c | 78 tm->tm_sec = bcd2bin(regs[RTC_SEC] & 0x7f); in regs_to_tm() 94 regs[RTC_SEC] = bin2bcd(tm->tm_sec); in tm_to_regs()
|
D | rtc-bq32k.c | 96 tm->tm_sec = bcd2bin(regs.seconds & BQ32K_SECONDS_MASK); in bq32k_rtc_read_time() 112 regs.seconds = bin2bcd(tm->tm_sec); in bq32k_rtc_set_time()
|
D | rtc-max6900.c | 153 tm->tm_sec = bcd2bin(regs[MAX6900_REG_SC]); in max6900_i2c_read_time() 180 regs[MAX6900_REG_SC] = bin2bcd(tm->tm_sec); in max6900_i2c_set_time()
|
D | rtc-rs5c348.c | 79 txp[RS5C348_REG_SECS] = bin2bcd(tm->tm_sec); in rs5c348_rtc_set_time() 121 tm->tm_sec = bcd2bin(rxbuf[RS5C348_REG_SECS] & RS5C348_SECS_MASK); in rs5c348_rtc_read_time()
|
D | rtc-opal.c | 41 tm->tm_sec = bcd2bin((h_m_s_ms >> 40) & 0xff); in opal_to_tm() 55 *h_m_s_ms |= ((u64)bin2bcd(tm->tm_sec)) << 40; in tm_to_opal()
|
D | rtc-x1205.c | 132 tm->tm_sec = bcd2bin(buf[CCR_SEC]); in x1205_get_datetime() 144 tm->tm_sec, tm->tm_min, tm->tm_hour, in x1205_get_datetime() 194 __func__, tm->tm_sec, tm->tm_min, tm->tm_hour, tm->tm_mday, in x1205_set_datetime() 197 buf[CCR_SEC] = bin2bcd(tm->tm_sec); in x1205_set_datetime()
|
D | rtc-as3722.c | 44 rbuff[0] = bin2bcd(tm->tm_sec); in as3722_time_to_reg() 54 tm->tm_sec = bcd2bin(rbuff[0] & 0x7F); in as3722_reg_to_time()
|
D | rtc-isl1208.c | 296 tm->tm_sec = bcd2bin(regs[ISL1208_REG_SC]); in isl1208_i2c_read_time() 341 tm->tm_sec = bcd2bin(regs[ISL1208_REG_SCA - ISL1208_REG_SCA] & 0x7f); in isl1208_i2c_read_alarm() 394 regs[ISL1208_REG_SCA - offs] = bin2bcd(alarm_tm->tm_sec) | enable; in isl1208_i2c_set_alarm() 438 regs[ISL1208_REG_SC] = bin2bcd(tm->tm_sec); in isl1208_i2c_set_time()
|
D | rtc-pcf8583.c | 80 dt->tm_sec = bcd2bin(buf[1]); in pcf8583_get_datetime() 98 buf[3] = bin2bcd(dt->tm_sec); in pcf8583_set_datetime()
|
D | rtc-sunxi.c | 209 alrm_tm->tm_sec = SUNXI_ALRM_GET_SEC_VALUE(alrm); in sunxi_rtc_getalarm() 247 rtc_tm->tm_sec = SUNXI_TIME_GET_SEC_VALUE(time); in sunxi_rtc_gettime() 374 time = SUNXI_TIME_SET_SEC_VALUE(rtc_tm->tm_sec) | in sunxi_rtc_settime()
|
D | rtc-ds1343.c | 393 dt->tm_sec = bcd2bin(buf[0]); in ds1343_read_time() 410 bin2bcd(dt->tm_sec)); in ds1343_set_time() 514 alarm->time.tm_sec = priv->alarm_sec < 0 ? 0 : priv->alarm_sec; in ds1343_read_alarm() 540 priv->alarm_sec = alarm->time.tm_sec; in ds1343_set_alarm()
|
D | rtc-abx80x.c | 108 tm->tm_sec = bcd2bin(buf[ABX8XX_REG_SC] & 0x7F); in abx80x_rtc_read_time() 133 buf[ABX8XX_REG_SC] = bin2bcd(tm->tm_sec); in abx80x_rtc_set_time()
|
D | rtc-rs5c313.c | 240 tm->tm_sec = bcd2bin(data); in rs5c313_rtc_read_time() 299 data = bin2bcd(tm->tm_sec); in rs5c313_rtc_set_time()
|
D | rtc-nuc900.c | 112 tm->tm_sec = bcd2bin(timereg >> 0); in nuc900_rtc_bcd2bin() 132 gettm->bcd_sec = bin2bcd(settm->tm_sec) << 0; in nuc900_rtc_bin2bcd()
|
D | rtc-88pm860x.c | 97 next->tm_sec = alrm->tm_sec; in rtc_next_alarm_time() 363 tm.tm_sec = 0; in pm860x_rtc_probe()
|
D | rtc-pm8xxx.c | 200 secs, tm->tm_hour, tm->tm_min, tm->tm_sec, in pm8xxx_rtc_read_time() 248 alarm->time.tm_sec, alarm->time.tm_mday, in pm8xxx_rtc_set_alarm() 282 alarm->time.tm_sec, alarm->time.tm_mday, in pm8xxx_rtc_read_alarm()
|
D | rtc-vr41xx.c | 157 time->tm_hour, time->tm_min, time->tm_sec); in vr41xx_rtc_set_time() 189 time->tm_hour, time->tm_min, time->tm_sec); in vr41xx_rtc_set_alarm()
|
D | rtc-ds1742.c | 80 writeb(bin2bcd(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS); in ds1742_rtc_set_time() 110 tm->tm_sec = bcd2bin(second); in ds1742_rtc_read_time()
|
D | rtc-rc5t583.c | 82 tm->tm_sec = bcd2bin(rtc_data[0]); in rc5t583_rtc_read_time() 99 rtc_data[0] = bin2bcd(tm->tm_sec); in rc5t583_rtc_set_time()
|
D | rtc-max8998.c | 83 tm->tm_sec = bcd2bin(data[RTC_SEC]); in max8998_data_to_tm() 101 data[RTC_SEC] = bin2bcd(tm->tm_sec); in max8998_tm_to_data()
|
D | rtc-pcf8523.c | 204 tm->tm_sec = bcd2bin(regs[0] & 0x7f); in pcf8523_rtc_read_time() 227 regs[1] = bin2bcd(tm->tm_sec); in pcf8523_rtc_set_time()
|
D | rtc-da9055.c | 158 rtc_tm->tm_sec = v[0] & DA9055_RTC_SEC; in da9055_rtc_read_time() 170 v[0] = tm->tm_sec; in da9055_rtc_set_time()
|
D | rtc-da9063.c | 55 tm->tm_sec = data[RTC_SEC] & DA9063_COUNT_SEC_MASK; in da9063_data_to_tm() 68 data[RTC_SEC] |= tm->tm_sec & DA9063_COUNT_SEC_MASK; in da9063_tm_to_data()
|
D | rtc-m41t80.c | 117 tm->tm_sec = bcd2bin(buf[M41T80_REG_SEC] & 0x7f); in m41t80_get_datetime() 168 bin2bcd(tm->tm_sec) | (buf[M41T80_REG_SEC] & ~0x7f); in m41t80_set_datetime() 672 tm.tm_min, tm.tm_sec); in m41t80_probe()
|
D | rtc-sun6i.c | 172 rtc_tm->tm_sec = SUN6I_TIME_GET_SEC_VALUE(time); in sun6i_rtc_gettime() 290 time = SUN6I_TIME_SET_SEC_VALUE(rtc_tm->tm_sec) | in sun6i_rtc_settime()
|
D | interface.c | 242 if (alarm->time.tm_sec == -1) in __rtc_read_alarm() 243 alarm->time.tm_sec = now.tm_sec; in __rtc_read_alarm() 323 alarm->time.tm_sec); in __rtc_read_alarm()
|
D | rtc-pl031.c | 144 | (tm->tm_sec << RTC_SEC_SHIFT); in pl031_stv2_tm_to_time() 161 tm->tm_sec = ((st_time & RTC_SEC_MASK) >> RTC_SEC_SHIFT); in pl031_stv2_time_to_tm()
|
D | rtc-pxa.c | 111 | tm->tm_sec; in rdxr_calc() 122 tm->tm_sec = rdcr & RDxR_SEC_MASK; in tm_calc()
|
D | rtc-max77802.c | 81 tm->tm_sec = data[RTC_SEC] & 0xff; in max77802_rtc_data_to_tm() 103 data[RTC_SEC] = tm->tm_sec; in max77802_rtc_tm_to_data()
|
D | rtc-ls1x.c | 113 | (rtm->tm_sec << LS1X_SEC_OFFSET); in ls1x_rtc_set_time()
|
D | rtc-ds1672.c | 69 __func__, tm->tm_sec, tm->tm_min, tm->tm_hour, in ds1672_get_datetime()
|
D | rtc-max8997.c | 83 tm->tm_sec = data[RTC_SEC] & 0x7f; in max8997_rtc_data_to_tm() 103 data[RTC_SEC] = tm->tm_sec; in max8997_rtc_tm_to_data()
|
D | rtc-max77686.c | 78 tm->tm_sec = data[RTC_SEC] & 0x7f; in max77686_rtc_data_to_tm() 99 data[RTC_SEC] = tm->tm_sec; in max77686_rtc_tm_to_data()
|
D | rtc-ab-b5ze-s3.c | 242 tm->tm_sec = bcd2bin(regs[ABB5ZES3_REG_RTC_SC] & 0x7F); in _abb5zes3_rtc_read_time() 279 regs[ABB5ZES3_REG_RTC_SC] = bin2bcd(tm->tm_sec); /* MSB=0 clears OSC */ in abb5zes3_rtc_set_time() 399 alarm_tm->tm_sec = 0; in _abb5zes3_rtc_read_alarm()
|
D | rtc-ds1685.c | 275 tm->tm_sec = ds1685_rtc_bcd2bin(rtc, seconds, RTC_SECS_BCD_MASK, in ds1685_rtc_read_time() 307 seconds = ds1685_rtc_bin2bcd(rtc, tm->tm_sec, RTC_SECS_BIN_MASK, in ds1685_rtc_set_time() 337 (tm->tm_sec >= 60) || (wday > 7)) in ds1685_rtc_set_time() 405 alrm->time.tm_sec = -1; in ds1685_rtc_read_alarm() 407 alrm->time.tm_sec = ds1685_rtc_bcd2bin(rtc, seconds, in ds1685_rtc_read_alarm() 452 seconds = ds1685_rtc_bin2bcd(rtc, alrm->time.tm_sec, in ds1685_rtc_set_alarm()
|
D | rtc-sysfs.c | 59 tm.tm_hour, tm.tm_min, tm.tm_sec); in time_show()
|
D | rtc-davinci.c | 296 tm->tm_sec = bcd2bin(rtcss_read(davinci_rtc, PRTCSS_RTC_SEC)); in davinci_rtc_read_time() 335 rtcss_write(davinci_rtc, bin2bcd(tm->tm_sec), PRTCSS_RTC_SEC); in davinci_rtc_set_time()
|
D | rtc-hid-sensor-time.c | 126 time_buf->tm_sec = (int)hid_time_value(raw_len, raw_data); in hid_time_capture_sample()
|
D | rtc-tx4939.c | 102 if (alrm->time.tm_sec < 0 || in tx4939_rtc_set_alarm()
|
/linux-4.1.27/include/asm-generic/ |
D | rtc.h | 73 time->tm_sec = CMOS_READ(RTC_SECONDS); in __get_rtc_time() 87 time->tm_sec = bcd2bin(time->tm_sec); in __get_rtc_time() 131 sec = time->tm_sec; in __set_rtc_time() 206 return h.tm_sec; in get_rtc_ss()
|
/linux-4.1.27/arch/m68k/sun3/ |
D | intersil.c | 50 todintersil->second = t->tm_sec; in sun3_hwclk() 57 t->tm_sec = todintersil->csec; in sun3_hwclk() 60 t->tm_sec = todintersil->second; in sun3_hwclk()
|
/linux-4.1.27/tools/testing/selftests/timers/ |
D | rtctest.c | 130 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main() 133 rtc_tm.tm_sec += 5; in main() 134 if (rtc_tm.tm_sec >= 60) { in main() 135 rtc_tm.tm_sec %= 60; in main() 164 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main()
|
/linux-4.1.27/arch/powerpc/platforms/chrp/ |
D | time.c | 101 tm.tm_sec = bin2bcd(tm.tm_sec); in chrp_set_rtc_time() 108 chrp_cmos_clock_write(tm.tm_sec,RTC_SECONDS); in chrp_set_rtc_time() 152 tm->tm_sec = sec; in chrp_get_rtc_time()
|
/linux-4.1.27/drivers/char/ |
D | ds1302.c | 125 rtc_tm->tm_sec = CMOS_READ(RTC_SECONDS); in get_rtc_time() 134 rtc_tm->tm_sec = bcd2bin(rtc_tm->tm_sec); in get_rtc_time() 192 sec = rtc_tm.tm_sec; in rtc_ioctl() 279 tm.tm_hour, tm.tm_min, tm.tm_sec, in get_rtc_status()
|
D | genrtc.c | 326 wtime.tm_sec < 0 || wtime.tm_sec >= 60) in gen_rtc_ioctl() 402 tm.tm_hour, tm.tm_min, tm.tm_sec, in gen_rtc_proc_show() 405 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; in gen_rtc_proc_show() 418 if (tm.tm_sec <= 59) in gen_rtc_proc_show() 419 seq_printf(m, "%02d\n", tm.tm_sec); in gen_rtc_proc_show()
|
D | rtc.c | 507 sec = alm_tm.tm_sec; in rtc_do_ioctl() 568 sec = rtc_tm.tm_sec; in rtc_do_ioctl() 1237 tm.tm_hour, tm.tm_min, tm.tm_sec, in rtc_proc_show() 1258 if (tm.tm_sec <= 59) in rtc_proc_show() 1259 seq_printf(seq, "%02d\n", tm.tm_sec); in rtc_proc_show() 1323 rtc_tm->tm_sec = CMOS_READ(RTC_SECONDS); in rtc_get_rtc_time() 1339 rtc_tm->tm_sec = bcd2bin(rtc_tm->tm_sec); in rtc_get_rtc_time() 1372 alm_tm->tm_sec = CMOS_READ(RTC_SECONDS_ALARM); in get_rtc_alm_time() 1379 alm_tm->tm_sec = bcd2bin(alm_tm->tm_sec); in get_rtc_alm_time()
|
D | efirtc.c | 111 eft->second = wtime->tm_sec; in convert_to_efi_time() 121 wtime->tm_sec = eft->second; in convert_from_efi_time()
|
/linux-4.1.27/arch/parisc/include/asm/ |
D | rtc.h | 69 wtime->tm_sec = rem % 60; in get_rtc_time() 104 wtime->tm_hour, wtime->tm_min, wtime->tm_sec); in set_rtc_time() 118 return h.tm_sec; in get_rtc_ss()
|
/linux-4.1.27/arch/m68k/bvme6000/ |
D | rtc.c | 55 wtime.tm_sec = bcd2bin(rtc->bcd_sec); in rtc_ioctl() 64 } while (wtime.tm_sec != bcd2bin(rtc->bcd_sec)); in rtc_ioctl() 89 sec = rtc_tm.tm_sec; in rtc_ioctl()
|
D | config.c | 280 rtc->bcd_sec = bin2bcd(t->tm_sec); in bvme6000_hwclk() 293 t->tm_sec = bcd2bin(rtc->bcd_sec); in bvme6000_hwclk() 302 } while (t->tm_sec != bcd2bin(rtc->bcd_sec)); in bvme6000_hwclk()
|
/linux-4.1.27/arch/m68k/atari/ |
D | time.c | 120 val.sec_ones = t->tm_sec % 10; in atari_mste_hwclk() 121 val.sec_tens = t->tm_sec / 10; in atari_mste_hwclk() 148 t->tm_sec = val.sec_ones + val.sec_tens * 10; in atari_mste_hwclk() 179 sec = t->tm_sec; in atari_tt_hwclk() 276 t->tm_sec = sec; in atari_tt_hwclk()
|
/linux-4.1.27/arch/powerpc/platforms/powernv/ |
D | opal-rtc.c | 33 tm->tm_sec = bcd2bin((h_m_s_ms >> 40) & 0xff); in opal_to_tm() 64 tm.tm_hour, tm.tm_min, tm.tm_sec); in opal_get_boot_time()
|
/linux-4.1.27/arch/mips/sibyte/swarm/ |
D | rtc_m41t81.c | 159 tm.tm_sec = bin2bcd(tm.tm_sec); in m41t81_set_time() 160 m41t81_write(M41T81REG_SC, tm.tm_sec); in m41t81_set_time()
|
D | rtc_xicor1241.c | 127 tm.tm_sec = bin2bcd(tm.tm_sec); in xicor_set_time() 128 xicor_write(X1241REG_SC, tm.tm_sec); in xicor_set_time()
|
/linux-4.1.27/arch/m68k/sun3x/ |
D | time.c | 49 h->sec = bin2bcd(t->tm_sec); in sun3x_hwclk() 59 t->tm_sec = bcd2bin(h->sec); in sun3x_hwclk()
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | rtas-rtc.c | 78 rtc_tm->tm_sec = ret[5]; in rtas_get_rtc_time() 96 tm->tm_sec, 0); in rtas_set_rtc_time()
|
D | rtas-proc.c | 320 tm.tm_hour, tm.tm_min, tm.tm_sec, 0 /* nano */); in ppc_rtas_poweron_write() 383 tm.tm_hour, tm.tm_min, tm.tm_sec, 0); in ppc_rtas_clock_write()
|
D | time.c | 756 tm.tm_hour, tm.tm_min, tm.tm_sec); in __read_persistent_clock() 1048 tm->tm_sec = (hms % 3600) % 60; in to_tm()
|
/linux-4.1.27/drivers/input/misc/ |
D | hp_sdc_rtc.c | 127 rtctm->tm_sec = (tseq[6] & 0x0f) + (tseq[13] & 0x0f) * 10; in hp_sdc_rtc_do_read_bbrtc() 447 tm.tm_hour, tm.tm_min, tm.tm_sec, in hp_sdc_rtc_proc_show() 558 wtime.tm_sec = ttime.tv_sec; in hp_sdc_rtc_ioctl() 597 if (alm_tm.tm_sec > 59) return -EINVAL; in hp_sdc_rtc_ioctl() 600 alm_tm.tm_min * 60 + alm_tm.tm_sec; in hp_sdc_rtc_ioctl() 627 sec = hp_sdc_rtc_tm.tm_sec; in hp_sdc_rtc_ioctl()
|
/linux-4.1.27/arch/m68k/hp300/ |
D | config.c | 205 t->tm_sec = hp300_rtc_read(RTC_REG_SEC1) * 10 + in hp300_hwclk() 221 hp300_rtc_write(RTC_REG_SEC1, t->tm_sec / 10); in hp300_hwclk() 222 hp300_rtc_write(RTC_REG_SEC2, t->tm_sec % 10); in hp300_hwclk()
|
/linux-4.1.27/arch/m68k/mac/ |
D | misc.c | 720 &t->tm_hour, &t->tm_min, &t->tm_sec); in mac_hwclk() 724 t->tm_hour, t->tm_min, t->tm_sec); in mac_hwclk() 730 t->tm_hour, t->tm_min, t->tm_sec); in mac_hwclk() 734 t->tm_hour, t->tm_min, t->tm_sec); in mac_hwclk() 764 now.tm_sec = nowtime % 60; in mac_set_clock_mmss()
|
/linux-4.1.27/arch/m68k/mvme16x/ |
D | rtc.c | 51 wtime.tm_sec = bcd2bin(rtc->bcd_sec); in rtc_ioctl() 84 sec = rtc_tm.tm_sec; in rtc_ioctl()
|
D | config.c | 408 t->tm_sec = bcd2int (rtc->bcd_sec); in mvme16x_hwclk()
|
/linux-4.1.27/drivers/base/power/ |
D | trace.c | 85 .tm_sec = 0, in set_magic_time() 117 time.tm_hour, time.tm_min, time.tm_sec, in read_magic_time()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | rtc.h | 65 return h.tm_sec; in get_rtc_ss()
|
/linux-4.1.27/arch/m68k/include/asm/ |
D | rtc.h | 59 return h.tm_sec; in get_rtc_ss()
|
/linux-4.1.27/arch/m68k/q40/ |
D | config.c | 234 Q40_RTC_SECS = bin2bcd(t->tm_sec); in q40_hwclk() 253 t->tm_sec = bcd2bin (Q40_RTC_SECS); in q40_hwclk()
|
/linux-4.1.27/arch/m68k/apollo/ |
D | config.c | 219 t->tm_sec=rtc->second; in dn_dummy_hwclk() 227 rtc->second=t->tm_sec; in dn_dummy_hwclk()
|
/linux-4.1.27/arch/m32r/include/asm/ |
D | rtc.h | 47 int tm_sec; member
|
/linux-4.1.27/include/uapi/linux/ |
D | rtc.h | 21 int tm_sec; member
|
/linux-4.1.27/arch/m68k/kernel/ |
D | time.c | 85 time.tm_hour, time.tm_min, time.tm_sec); in read_persistent_clock()
|
/linux-4.1.27/arch/m68k/68000/ |
D | timers.c | 131 t->tm_sec = now % 60; in m68328_hwclk()
|
/linux-4.1.27/fs/fat/ |
D | misc.c | 256 tm.tm_sec >>= 1; in fat_time_unix2fat() 258 *time = cpu_to_le16(tm.tm_hour << 11 | tm.tm_min << 5 | tm.tm_sec); in fat_time_unix2fat()
|
/linux-4.1.27/arch/powerpc/platforms/ps3/ |
D | time.c | 34 pr_debug("%s:%d tm_sec %d\n", func, line, tm->tm_sec); in _dump_tm()
|
/linux-4.1.27/kernel/time/ |
D | timeconv.c | 97 result->tm_sec = rem % 60; in time_to_tm()
|
/linux-4.1.27/arch/mn10300/kernel/ |
D | rtc.c | 34 tm.tm_hour, tm.tm_min, tm.tm_sec); in read_persistent_clock()
|
/linux-4.1.27/arch/x86/kernel/ |
D | hpet.c | 1151 hpet_alarm_time.tm_sec = sec; in hpet_set_alarm_time() 1227 curr_time.tm_sec != hpet_prev_update_sec) { in hpet_rtc_interrupt() 1230 hpet_prev_update_sec = curr_time.tm_sec; in hpet_rtc_interrupt() 1240 (curr_time.tm_sec == hpet_alarm_time.tm_sec) && in hpet_rtc_interrupt()
|
/linux-4.1.27/arch/m68k/mvme147/ |
D | config.c | 161 t->tm_sec = bcd2int (m147_rtc->bcd_sec); in mvme147_hwclk()
|
/linux-4.1.27/arch/x86/platform/intel-mid/ |
D | intel_mid_vrtc.c | 109 vrtc_cmos_write(tm.tm_sec, RTC_SECONDS); in vrtc_set_mmss()
|
/linux-4.1.27/include/linux/ |
D | time.h | 165 int tm_sec; member
|
/linux-4.1.27/arch/powerpc/platforms/8xx/ |
D | m8xx_setup.c | 176 tm->tm_hour, tm->tm_min, tm->tm_sec); in mpc8xx_set_rtc_time()
|
/linux-4.1.27/kernel/debug/kdb/ |
D | kdb_main.c | 2481 int tm_sec; /* seconds */ member 2495 tm->tm_sec = tv->tv_sec % (24 * 60 * 60); in kdb_gmtime() 2498 tm->tm_min = tm->tm_sec / 60 % 60; in kdb_gmtime() 2499 tm->tm_hour = tm->tm_sec / 60 / 60; in kdb_gmtime() 2500 tm->tm_sec = tm->tm_sec % 60; in kdb_gmtime() 2560 tm.tm_hour, tm.tm_min, tm.tm_sec, in kdb_summary()
|
/linux-4.1.27/arch/powerpc/platforms/powermac/ |
D | time.c | 100 tm->tm_hour, tm->tm_min, tm->tm_sec); in from_rtc_time()
|
/linux-4.1.27/arch/tile/include/hv/ |
D | hypervisor.h | 695 __hv64 tm_sec; /**< Seconds, 0-59 */ member 703 __hv32 tm_sec; /**< Seconds, 0-59 */
|
/linux-4.1.27/drivers/macintosh/ |
D | smu.c | 369 cmd_buf->data[1] = hex2bcd(time->tm_sec); in smu_fill_set_rtc_cmd() 394 time->tm_sec = bcd2hex(cmd.buffer[0]); in smu_get_rtc_time() 416 hex2bcd(time->tm_sec), in smu_set_rtc_time()
|
/linux-4.1.27/drivers/mfd/ |
D | menelaus.c | 843 t->tm_sec = bcd2bin(regs[0]); in menelaus_to_time() 860 status = menelaus_write_reg(regnum++, bin2bcd(t->tm_sec)); in time_to_menelaus()
|
/linux-4.1.27/Documentation/ia64/ |
D | efirtc.txt | 66 int tm_sec;
|
/linux-4.1.27/drivers/scsi/fnic/ |
D | fnic_trace.c | 749 tm.tm_hour, tm.tm_min, tm.tm_sec, in copy_and_format_trace_data()
|
/linux-4.1.27/net/mac80211/ |
D | debugfs_sta.c | 131 result.tm_hour, result.tm_min, result.tm_sec); in sta_connected_time_read()
|
/linux-4.1.27/fs/nilfs2/ |
D | sysfs.c | 40 res.tm_hour, res.tm_min, res.tm_sec);\
|