Home
last modified time | relevance | path

Searched refs:tm_hour (Results 1 – 25 of 227) sorted by relevance

12345678910

/external/u-boot/drivers/rtc/
Drs5c372.c125 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()
Dds1306.c91 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()
Drv3029.c55 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()
Dds1307.c128 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()
Drx8025.c121 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()
Dmax6900.c68 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()
Dsandbox_rtc.c23 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()
Ddavinci.c42 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()
Dpcf8563.c55 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()
Dpt7c4338.c90 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()
Dm41t62.c68 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()
Ds35392a.c145 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()
Dm48t35ax.c56 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()
Dx1205.c103 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()
Dds3231.c91 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/
Dstrptime.c238 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/
Dprtime.cc153 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/
Dget_one.pass.cpp60 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()
Dget_one_wide.pass.cpp60 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()
Dget_time.pass.cpp53 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()
Dget_time_wide.pass.cpp53 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/
Drtc01.c81 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/
Drtctest.c86 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/
Drtctest.c132 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/
Dsetdate.c59 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()

12345678910