/external/u-boot/drivers/rtc/ |
D | rs5c372.c | 125 dt->tm_hour = HOURS_12(buf[3]); in rs5c372_convert_to_time() 127 dt->tm_hour += 12; in rs5c372_convert_to_time() 129 dt->tm_hour = HOURS_24(buf[3]); in rs5c372_convert_to_time() 147 printf("rs5c372_convert_to_time: hour = %d\n", dt->tm_hour); in rs5c372_convert_to_time() 200 printf("rtc_set: tm_hour = %d\n", tmp->tm_hour); in rtc_set() 218 if (tmp->tm_hour >= 12) { /* PM */ in rtc_set() 220 if (tmp->tm_hour == 12) in rtc_set() 221 buf[3] = bin2bcd(tmp->tm_hour); in rtc_set() 223 buf[3] = bin2bcd(tmp->tm_hour - 12); in rtc_set() 227 buf[3] = bin2bcd(tmp->tm_hour); in rtc_set()
|
D | ds1306.c | 91 tmp->tm_hour = (bcd2bin (spi_byte & 0x1F)) + 11; in rtc_get() 94 tmp->tm_hour = (bcd2bin (spi_byte & 0x1F)) - 1; in rtc_get() 98 tmp->tm_hour = (bcd2bin (spi_byte & 0x3F)); in rtc_get() 116 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 153 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set() 190 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 331 tmp->tm_hour = (hour & 0x40) in rtc_get() 347 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 370 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 374 rtc_write (RTC_HOURS, bin2bcd (tmp->tm_hour)); in rtc_set()
|
D | rv3029.c | 55 tmp->tm_hour = bcd2bin(buf[RV3029C2_W_HOURS] & 0x1f); in rtc_get() 58 tmp->tm_hour += 12; in rtc_get() 60 tmp->tm_hour = bcd2bin(buf[RV3029C2_W_HOURS] & 0x3f); in rtc_get() 72 tmp->tm_hour, tmp->tm_min, tmp->tm_sec ); in rtc_get() 84 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 92 buf[RV3029C2_W_HOURS] = bin2bcd(tmp->tm_hour); in rtc_set()
|
D | ds1307.c | 128 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get() 138 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 151 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 165 rtc_write (RTC_HR_REG_ADDR, bin2bcd (tmp->tm_hour)); in rtc_set() 220 tm->tm_hour, tm->tm_min, tm->tm_sec); in ds1307_rtc_set() 229 buf[RTC_HR_REG_ADDR] = bin2bcd(tm->tm_hour); in ds1307_rtc_set() 286 tm->tm_hour = bcd2bin(buf[RTC_HR_REG_ADDR] & 0x3F); in ds1307_rtc_get() 298 tm->tm_hour, tm->tm_min, tm->tm_sec); in ds1307_rtc_get()
|
D | rx8025.c | 121 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get() 123 tmp->tm_hour = bcd2bin (hour & 0x1F) % 12 + in rtc_get() 134 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 146 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 155 rtc_write (RTC_HR_REG_ADDR, bin2bcd (tmp->tm_hour)); in rtc_set()
|
D | max6900.c | 68 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get() 78 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 88 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 97 rtc_write (0x84, bin2bcd(tmp->tm_hour)); in rtc_set()
|
D | sandbox_rtc.c | 23 time->tm_hour = dm_i2c_reg_read(dev, REG_HOUR); in sandbox_rtc_get() 24 if (time->tm_hour < 0) in sandbox_rtc_get() 25 return time->tm_hour; in sandbox_rtc_get() 53 ret = dm_i2c_reg_write(dev, REG_HOUR, time->tm_hour); in sandbox_rtc_set()
|
D | davinci.c | 42 tmp->tm_hour = bcd2bin(hour & 0x3F); in rtc_get() 52 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 63 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 69 writel(bin2bcd(tmp->tm_hour), &rtc->hours); in rtc_set()
|
D | pcf8563.c | 55 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get() 65 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() 85 rtc_write (0x04, bin2bcd(tmp->tm_hour)); in rtc_set()
|
D | pt7c4338.c | 90 tmp->tm_hour = bcd2bin(hour & 0x3F); 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() 115 rtc_write(RTC_HR_REG_ADDR, bin2bcd(tmp->tm_hour)); in rtc_set()
|
D | m41t62.c | 68 tm->tm_hour = bcd2bin(buf[M41T62_REG_HOUR] & 0x3f); in rtc_get() 80 tm->tm_sec, tm->tm_min, tm->tm_hour, in rtc_get() 92 tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_set() 103 bin2bcd(tm->tm_hour) | (buf[M41T62_REG_HOUR] & ~0x3f) ; in rtc_set()
|
D | s35392a.c | 145 if ((tm->tm_hour < 0) || (tm->tm_hour > 23)) in validate_time() 215 tm->tm_hour = bcd2bin(date[S35390A_BYTE_HOURS] & ~S35390A_FLAG_24H); 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() 258 date[S35390A_BYTE_HOURS] = bin2bcd(tm->tm_hour); in s35392a_rtc_set()
|
D | m48t35ax.c | 56 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get() 66 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 78 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 92 rtc_write (0x03, bin2bcd(tmp->tm_hour)); in rtc_set()
|
D | x1205.c | 103 tm->tm_hour = bcd2bin(buf[CCR_HOUR] & 0x3F); /* hr is 0-23 */ in rtc_get() 113 tm->tm_sec, tm->tm_min, tm->tm_hour, in rtc_get() 126 tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_set() 132 buf[CCR_HOUR] = bin2bcd(tm->tm_hour) | X1205_HR_MIL; in rtc_set()
|
D | ds3231.c | 91 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get() 101 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 116 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 125 rtc_write (RTC_HR_REG_ADDR, bin2bcd (tmp->tm_hour)); in rtc_set()
|
/external/openssh/openbsd-compat/ |
D | strptime.c | 238 if (!(_conv_num(&bp, &tm->tm_hour, 0, 23))) in _strptime() 247 if (!(_conv_num(&bp, &tm->tm_hour, 1, 12))) in _strptime() 277 if (tm->tm_hour > 12) /* i.e., 13:00 AM ?! */ in _strptime() 279 else if (tm->tm_hour == 12) in _strptime() 280 tm->tm_hour = 0; in _strptime() 288 if (tm->tm_hour > 12) /* i.e., 13:00 PM ?! */ in _strptime() 290 else if (tm->tm_hour < 12) in _strptime() 291 tm->tm_hour += 12; in _strptime()
|
/external/libchrome/base/third_party/nspr/ |
D | prtime.cc | 153 numSecs = copy.tm_yday * 86400 + copy.tm_hour * 3600 + copy.tm_min * 60 + in PR_ImplodeTime() 215 time->tm_hour += time->tm_min / 60; in ApplySecOffset() 219 time->tm_hour--; in ApplySecOffset() 223 if (time->tm_hour < 0) { in ApplySecOffset() 225 time->tm_hour += 24; in ApplySecOffset() 243 } else if (time->tm_hour > 23) { in ApplySecOffset() 245 time->tm_hour -= 24; in ApplySecOffset() 298 time->tm_hour += time->tm_min / 60; in PR_NormalizeTime() 302 time->tm_hour--; in PR_NormalizeTime() 306 if (time->tm_hour < 0 || time->tm_hour >= 24) { in PR_NormalizeTime() [all …]
|
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/ |
D | get_one.pass.cpp | 60 assert(t.tm_hour == 23); in main() 76 assert(t.tm_hour == 23); in main() 88 assert(t.tm_hour == 23); in main() 104 assert(t.tm_hour == 23); in main() 123 assert(t.tm_hour == 23); in main() 139 assert(t.tm_hour == 23); in main() 152 assert(t.tm_hour == 23); in main() 168 assert(t.tm_hour == 23); in main()
|
D | get_one_wide.pass.cpp | 60 assert(t.tm_hour == 23); in main() 76 assert(t.tm_hour == 23); in main() 88 assert(t.tm_hour == 23); in main() 104 assert(t.tm_hour == 23); in main() 122 assert(t.tm_hour == 23); in main() 139 assert(t.tm_hour == 23); in main() 153 assert(t.tm_hour == 23); in main() 170 assert(t.tm_hour == 23); in main()
|
D | get_time.pass.cpp | 53 assert(t.tm_hour == 13); in main() 65 assert(t.tm_hour == 13); in main() 77 assert(t.tm_hour == 13); in main() 89 assert(t.tm_hour == 13); in main()
|
D | get_time_wide.pass.cpp | 53 assert(t.tm_hour == 13); in main() 65 assert(t.tm_hour == 13); in main() 77 assert(t.tm_hour == 13); in main() 89 assert(t.tm_hour == 13); in main()
|
/external/ltp/testcases/kernel/device-drivers/rtc/ |
D | rtc01.c | 81 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in read_alarm_test() 94 rtc_tm.tm_hour++; in read_alarm_test() 97 if (rtc_tm.tm_hour == 24) in read_alarm_test() 98 rtc_tm.tm_hour = 0; in read_alarm_test() 120 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in read_alarm_test()
|
/external/linux-kselftest/tools/testing/selftests/timers/ |
D | rtctest.c | 86 a->tm_hour != b->tm_hour || in compare_dates() 201 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main() 211 rtc_tm.tm_hour++; in main() 213 if (rtc_tm.tm_hour == 24) in main() 214 rtc_tm.tm_hour = 0; in main() 241 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main()
|
/external/autotest/client/tests/rtc/src/ |
D | rtctest.c | 132 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main() 142 rtc_tm.tm_hour++; in main() 144 if (rtc_tm.tm_hour == 24) in main() 145 rtc_tm.tm_hour = 0; in main() 166 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main()
|
/external/linux-kselftest/tools/testing/selftests/rtc/ |
D | setdate.c | 59 sscanf(time, "%d:%d:%d", &new.tm_hour, &new.tm_min, &new.tm_sec); in main() 63 new.tm_hour, new.tm_min, new.tm_sec); in main() 82 current.tm_hour, current.tm_min, current.tm_sec); in main()
|