| /OK3568_Linux_fs/u-boot/drivers/rtc/ |
| H A D | ds1307.c | 127 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 139 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 152 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 169 rtc_write (RTC_SEC_REG_ADDR, bin2bcd (tmp->tm_sec) | MCP7941X_BIT_ST); in rtc_set() 171 rtc_write (RTC_SEC_REG_ADDR, bin2bcd (tmp->tm_sec)); in rtc_set() 197 tmp.tm_sec = 0; in rtc_reset() 203 tmp.tm_hour, tmp.tm_min, tmp.tm_sec); in rtc_reset() 238 tm->tm_hour, tm->tm_min, tm->tm_sec); in ds1307_rtc_set() 249 buf[RTC_SEC_REG_ADDR] = bin2bcd(tm->tm_sec); in ds1307_rtc_set() 302 tm->tm_sec = bcd2bin(buf[RTC_SEC_REG_ADDR] & 0x7F); in ds1307_rtc_get() [all …]
|
| H A D | ds1306.c | 83 tmp->tm_sec = bcd2bin (soft_spi_read ()); /* Read seconds */ in rtc_get() 117 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 151 bin2bcd (tmp->tm_sec); in rtc_set() 152 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set() 191 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 328 tmp->tm_sec = bcd2bin (sec & 0x7F); /* convert Seconds */ in rtc_get() 348 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 371 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 373 rtc_write (RTC_SECONDS, bin2bcd (tmp->tm_sec)); in rtc_set()
|
| H A D | rx8025.c | 119 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 135 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 147 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 158 rtc_write (RTC_SEC_REG_ADDR, bin2bcd (tmp->tm_sec)); in rtc_set() 187 tmp.tm_sec = 0; in rtc_reset() 193 tmp.tm_hour, tmp.tm_min, tmp.tm_sec); in rtc_reset()
|
| H A D | rs5c372.c | 121 dt->tm_sec = bcd2bin(buf[1]); in rs5c372_convert_to_time() 149 printf("rs5c372_convert_to_time: sec = %d\n", dt->tm_sec); in rs5c372_convert_to_time() 202 printf("rtc_set: tm_sec = %d\n", tmp->tm_sec); in rtc_set() 214 buf[1] = bin2bcd(tmp->tm_sec); in rtc_set() 270 tmp.tm_sec = 0; in rtc_reset() 276 tmp.tm_hour, tmp.tm_min, tmp.tm_sec); in rtc_reset()
|
| H A D | max6900.c | 67 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 79 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 89 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 100 rtc_write (0x80, bin2bcd(tmp->tm_sec )); in rtc_set()
|
| H A D | pcf8563.c | 54 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 66 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 77 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 88 rtc_write (0x02, bin2bcd(tmp->tm_sec )); in rtc_set()
|
| H A D | sandbox_rtc.c | 18 time->tm_sec = dm_i2c_reg_read(dev, REG_SEC); in sandbox_rtc_get() 19 if (time->tm_sec < 0) in sandbox_rtc_get() 20 return time->tm_sec; in sandbox_rtc_get() 48 ret = dm_i2c_reg_write(dev, REG_SEC, time->tm_sec); in sandbox_rtc_set()
|
| H A D | davinci.c | 41 tmp->tm_sec = bcd2bin(sec & 0x7F); in rtc_get() 53 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 64 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 72 writel(bin2bcd(tmp->tm_sec), &rtc->second); in rtc_set()
|
| H A D | m41t62.c | 67 tm->tm_sec = bcd2bin(buf[M41T62_REG_SEC] & 0x7f); in rtc_get() 81 tm->tm_sec, tm->tm_min, tm->tm_hour, in rtc_get() 93 tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_set() 100 bin2bcd(tm->tm_sec) | (buf[M41T62_REG_SEC] & ~0x7f); in rtc_set()
|
| H A D | pt7c4338.c | 89 tmp->tm_sec = bcd2bin(sec & 0x7F); in rtc_get() 100 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 110 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 118 rtc_write(RTC_SEC_REG_ADDR, bin2bcd(tmp->tm_sec)); in rtc_set()
|
| H A D | m48t35ax.c | 55 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 67 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 79 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 95 rtc_write (0x01, bin2bcd(tmp->tm_sec )); in rtc_set()
|
| H A D | x1205.c | 102 tm->tm_sec = bcd2bin(buf[CCR_SEC]); in rtc_get() 114 tm->tm_sec, tm->tm_min, tm->tm_hour, in rtc_get() 127 tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_set() 129 buf[CCR_SEC] = bin2bcd(tm->tm_sec); in rtc_set()
|
| H A D | ds3231.c | 90 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 102 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 117 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 128 rtc_write (RTC_SEC_REG_ADDR, bin2bcd (tmp->tm_sec)); in rtc_set()
|
| H A D | isl1208.c | 86 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 98 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 110 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 122 rtc_write (RTC_SEC_REG_ADDR, bin2bcd (tmp->tm_sec)); in rtc_set()
|
| H A D | m41t11.c | 86 tmp->tm_sec = bcd2bin (data[RTC_SEC_ADDR] & 0x7F); in rtc_get() 117 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 128 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 130 data[RTC_SEC_ADDR] = bin2bcd(tmp->tm_sec) & 0x7F;/*just in case*/ in rtc_set()
|
| /OK3568_Linux_fs/u-boot/test/dm/ |
| H A D | rtc.c | 33 time->tm_hour, time->tm_min, time->tm_sec); in show_time() 40 same = expect->tm_sec == time->tm_sec; in cmp_times() 75 time.tm_sec = 0; in dm_test_rtc_set_get() 90 ut_asserteq(1, cmp.tm_sec); in dm_test_rtc_set_get() 107 if (now.tm_sec == 59) { in dm_test_rtc_set_get() 108 ut_asserteq(0, cmp.tm_sec); in dm_test_rtc_set_get() 110 ut_asserteq(now.tm_sec + 1, cmp.tm_sec); in dm_test_rtc_set_get()
|
| /OK3568_Linux_fs/u-boot/post/drivers/ |
| H A D | rtc.c | 45 if (tm1.tm_sec != tm2.tm_sec) in rtc_post_skip() 51 if (tm1.tm_sec != tm2.tm_sec) { in rtc_post_skip() 126 tm.tm_sec = 59; in rtc_post_test() 157 tm.tm_sec = 59; in rtc_post_test()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/maple/ |
| H A D | time.c | 54 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()
|
| /OK3568_Linux_fs/kernel/drivers/rtc/ |
| H A D | rtc-mc146818-lib.c | 136 time->tm_sec = CMOS_READ(RTC_SECONDS); in mc146818_get_time() 145 if (time->tm_sec != CMOS_READ(RTC_SECONDS)) { in mc146818_get_time() 181 retry |= time->tm_sec != CMOS_READ(RTC_SECONDS); in mc146818_get_time() 190 time->tm_sec = bcd2bin(time->tm_sec); in mc146818_get_time() 247 sec = time->tm_sec; in mc146818_set_time()
|
| H 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()
|
| H A 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()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/rtc/ |
| H A 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);
|
| H A 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()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/chrp/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/arch/m68k/sun3/ |
| H A 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()
|