/openbmc/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()
|
/openbmc/u-boot/post/drivers/ |
H A D | rtc.c | 44 if (tm1.tm_sec != tm2.tm_sec) in rtc_post_skip() 50 if (tm1.tm_sec != tm2.tm_sec) { in rtc_post_skip() 125 tm.tm_sec = 59; in rtc_post_test() 156 tm.tm_sec = 59; in rtc_post_test()
|
/openbmc/u-boot/drivers/rtc/ |
H A D | ds1307.c | 124 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 136 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 149 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 166 rtc_write (RTC_SEC_REG_ADDR, bin2bcd (tmp->tm_sec) | MCP7941X_BIT_ST); in rtc_set() 168 rtc_write (RTC_SEC_REG_ADDR, bin2bcd (tmp->tm_sec)); in rtc_set() 216 tm->tm_hour, tm->tm_min, tm->tm_sec); in ds1307_rtc_set() 227 buf[RTC_SEC_REG_ADDR] = bin2bcd(tm->tm_sec); in ds1307_rtc_set() 280 tm->tm_sec = bcd2bin(buf[RTC_SEC_REG_ADDR] & 0x7F); in ds1307_rtc_get() 294 tm->tm_hour, tm->tm_min, tm->tm_sec); in ds1307_rtc_get()
|
H A D | ds1306.c | 80 tmp->tm_sec = bcd2bin (soft_spi_read ()); /* Read seconds */ in rtc_get() 114 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 148 bin2bcd (tmp->tm_sec); in rtc_set() 149 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set() 188 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 325 tmp->tm_sec = bcd2bin (sec & 0x7F); /* convert Seconds */ in rtc_get() 345 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 368 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 370 rtc_write (RTC_SECONDS, bin2bcd (tmp->tm_sec)); in rtc_set()
|
H A D | max6900.c | 64 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 76 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 86 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 97 rtc_write (0x80, bin2bcd(tmp->tm_sec )); in rtc_set()
|
H A D | sandbox_rtc.c | 17 time->tm_sec = dm_i2c_reg_read(dev, REG_SEC); in sandbox_rtc_get() 18 if (time->tm_sec < 0) in sandbox_rtc_get() 19 return time->tm_sec; in sandbox_rtc_get() 47 ret = dm_i2c_reg_write(dev, REG_SEC, time->tm_sec); in sandbox_rtc_set()
|
H A D | pcf8563.c | 51 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 63 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 74 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 85 rtc_write (0x02, bin2bcd(tmp->tm_sec )); in rtc_set()
|
H A D | davinci.c | 39 tmp->tm_sec = bcd2bin(sec & 0x7F); in rtc_get() 51 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 62 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 70 writel(bin2bcd(tmp->tm_sec), &rtc->second); in rtc_set()
|
H A D | pt7c4338.c | 88 tmp->tm_sec = bcd2bin(sec & 0x7F); in rtc_get() 99 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 109 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 117 rtc_write(RTC_SEC_REG_ADDR, bin2bcd(tmp->tm_sec)); in rtc_set()
|
H A D | x1205.c | 99 tm->tm_sec = bcd2bin(buf[CCR_SEC]); in rtc_get() 111 tm->tm_sec, tm->tm_min, tm->tm_hour, in rtc_get() 124 tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_set() 126 buf[CCR_SEC] = bin2bcd(tm->tm_sec); in rtc_set()
|
H A D | m48t35ax.c | 52 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 64 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 76 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 92 rtc_write (0x01, bin2bcd(tmp->tm_sec )); in rtc_set()
|
H A D | s35392a.c | 151 if ((tm->tm_sec < 0) || (tm->tm_sec > 59)) in validate_time() 213 tm->tm_sec = bcd2bin(date[S35390A_BYTE_SECS]); in s35392a_rtc_get() 223 tm->tm_hour, tm->tm_min, tm->tm_sec); in s35392a_rtc_get() 237 tm->tm_hour, tm->tm_min, tm->tm_sec); in s35392a_rtc_set() 260 date[S35390A_BYTE_SECS] = bin2bcd(tm->tm_sec); in s35392a_rtc_set()
|
H A D | ds3231.c | 87 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 99 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 114 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 125 rtc_write (RTC_SEC_REG_ADDR, bin2bcd (tmp->tm_sec)); in rtc_set()
|
H A D | m41t11.c | 83 tmp->tm_sec = bcd2bin (data[RTC_SEC_ADDR] & 0x7F); in rtc_get() 114 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 125 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 127 data[RTC_SEC_ADDR] = bin2bcd(tmp->tm_sec) & 0x7F;/*just in case*/ in rtc_set()
|
/openbmc/linux/samples/pfsm/ |
H A D | pfsm-wakeup.c | 60 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()
|
/openbmc/linux/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()
|
/openbmc/linux/drivers/rtc/ |
H 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()
|
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-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()
|
H A D | rtc-rzn1.c | 69 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()
|
/openbmc/linux/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()
|
/openbmc/linux/tools/testing/selftests/rtc/ |
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()
|
H A D | rtctest.c | 54 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);
|
/openbmc/linux/arch/powerpc/platforms/chrp/ |
H A D | time.c | 102 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()
|
/openbmc/openbmc/poky/meta/recipes-extended/at/at/ |
H A D | posixtm.c | 168 tm->tm_sec = 0; in posix_time_parse() 179 tm->tm_sec = seconds; in posix_time_parse() 227 | (tm0.tm_sec ^ tm->tm_sec)) in posixtime()
|