/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-loongson.c | 226 alrm->time.tm_sec = FIELD_GET(TOY_MATCH_SEC, alarm_data); in loongson_rtc_read_alarm() 227 alrm->time.tm_min = FIELD_GET(TOY_MATCH_MIN, alarm_data); in loongson_rtc_read_alarm() 228 alrm->time.tm_hour = FIELD_GET(TOY_MATCH_HOUR, alarm_data); in loongson_rtc_read_alarm() 229 alrm->time.tm_mday = FIELD_GET(TOY_MATCH_DAY, alarm_data); in loongson_rtc_read_alarm() 230 alrm->time.tm_mon = FIELD_GET(TOY_MATCH_MON, alarm_data) - 1; in loongson_rtc_read_alarm() 235 * SYS_TOYMATCH is used to match the alarm time value and determine if in loongson_rtc_read_alarm() 242 alrm->time.tm_year = FIELD_GET(TOY_MATCH_YEAR, alarm_data) + priv->fix_year; in loongson_rtc_read_alarm() 269 alarm_data = FIELD_PREP(TOY_MATCH_SEC, alrm->time.tm_sec) in loongson_rtc_set_alarm() 270 | FIELD_PREP(TOY_MATCH_MIN, alrm->time.tm_min) in loongson_rtc_set_alarm() 271 | FIELD_PREP(TOY_MATCH_HOUR, alrm->time in loongson_rtc_set_alarm() [all...] |
H A D | rtc-nct3018y.c | 158 dev_dbg(&client->dev, " voltage <=1.7, date/time is not reliable.\n"); in nct3018y_rtc_read_time() 234 tm->time.tm_sec = bcd2bin(buf[0] & 0x7F); in nct3018y_rtc_read_alarm() 235 tm->time.tm_min = bcd2bin(buf[2] & 0x7F); in nct3018y_rtc_read_alarm() 236 tm->time.tm_hour = bcd2bin(buf[4] & 0x3F); in nct3018y_rtc_read_alarm() 243 __func__, tm->time.tm_sec, tm->time.tm_min, in nct3018y_rtc_read_alarm() 244 tm->time.tm_hour, tm->enabled, tm->pending); in nct3018y_rtc_read_alarm() 255 __func__, tm->time.tm_sec, tm->time.tm_min, tm->time in nct3018y_rtc_set_alarm() [all...] |
H A D | rtc-twl.c | 250 * Gets current TWL RTC time and date parameters. 252 * The RTC's time/alarm representation is not what gmtime(3) requires 350 /* update all the time registers in one shot */ in twl_rtc_set_time() 367 * Gets current TWL RTC alarm time. 383 alm->time.tm_sec = bcd2bin(rtc_data[0]); in twl_rtc_read_alarm() 384 alm->time.tm_min = bcd2bin(rtc_data[1]); in twl_rtc_read_alarm() 385 alm->time.tm_hour = bcd2bin(rtc_data[2]); in twl_rtc_read_alarm() 386 alm->time.tm_mday = bcd2bin(rtc_data[3]); in twl_rtc_read_alarm() 387 alm->time.tm_mon = bcd2bin(rtc_data[4]) - 1; in twl_rtc_read_alarm() 388 alm->time in twl_rtc_read_alarm() [all...] |
H A D | rtc-tps65910.c | 31 /* Total number of RTC registers needed to set time*/ 60 * Gets current tps65910 RTC time and date parameters. 62 * The RTC's time/alarm representation is not what gmtime(3) requires 112 /* Stop RTC while updating the RTC time registers */ in tps65910_rtc_set_time() 120 /* update all the time registers in one shot */ in tps65910_rtc_set_time() 138 * Gets current tps65910 RTC alarm time. 154 alm->time.tm_sec = bcd2bin(alarm_data[0]); in tps65910_rtc_read_alarm() 155 alm->time.tm_min = bcd2bin(alarm_data[1]); in tps65910_rtc_read_alarm() 156 alm->time.tm_hour = bcd2bin(alarm_data[2]); in tps65910_rtc_read_alarm() 157 alm->time in tps65910_rtc_read_alarm() [all...] |
/kernel/linux/linux-6.6/sound/soc/codecs/aw88395/ |
H A D | aw88395.c | 124 int time; in aw88395_set_fade_in_time() local 126 time = ucontrol->value.integer.value[0]; in aw88395_set_fade_in_time() 128 if (time < mc->min || time > mc->max) in aw88395_set_fade_in_time() 131 if (time != aw_dev->fade_in_time) { in aw88395_set_fade_in_time() 132 aw_dev->fade_in_time = time; in aw88395_set_fade_in_time() 159 int time; in aw88395_set_fade_out_time() local 161 time = ucontrol->value.integer.value[0]; in aw88395_set_fade_out_time() 162 if (time < mc->min || time > m in aw88395_set_fade_out_time() [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | tzrule.cpp | 550 UDate time = getUTC(fStartTimes[i], prevRawOffset, prevDSTSavings); 551 if (time < base || (!inclusive && time == base)) { 554 result = time; 570 UDate time = getUTC(fStartTimes[i], prevRawOffset, prevDSTSavings); 571 if (time < base || (inclusive && time == base)) { 572 result = time; 614 TimeArrayTimeZoneRule::getUTC(UDate time, int32_t raw, int32_t dst) const { 616 time [all...] |
H A D | ztrans.cpp | 29 ztrans_open(UDate time, const void* from, const void* to){ in ztrans_open() argument 30 return (ZTrans*) new TimeZoneTransition(time,*(TimeZoneRule*)from,*(TimeZoneRule*)to); in ztrans_open() 59 ztrans_setTime(ZTrans* trans, UDate time) { in ztrans_setTime() argument 60 return ((TimeZoneTransition*)trans)->TimeZoneTransition::setTime(time); in ztrans_setTime()
|
/third_party/node/deps/icu-small/source/i18n/ |
H A D | tzrule.cpp | 550 UDate time = getUTC(fStartTimes[i], prevRawOffset, prevDSTSavings); 551 if (time < base || (!inclusive && time == base)) { 554 result = time; 570 UDate time = getUTC(fStartTimes[i], prevRawOffset, prevDSTSavings); 571 if (time < base || (inclusive && time == base)) { 572 result = time; 614 TimeArrayTimeZoneRule::getUTC(UDate time, int32_t raw, int32_t dst) const { 616 time [all...] |
H A D | ztrans.cpp | 29 ztrans_open(UDate time, const void* from, const void* to){ in ztrans_open() argument 30 return (ZTrans*) new TimeZoneTransition(time,*(TimeZoneRule*)from,*(TimeZoneRule*)to); in ztrans_open() 59 ztrans_setTime(ZTrans* trans, UDate time) { in ztrans_setTime() argument 60 return ((TimeZoneTransition*)trans)->TimeZoneTransition::setTime(time); in ztrans_setTime()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | tzrule.cpp | 550 UDate time = getUTC(fStartTimes[i], prevRawOffset, prevDSTSavings); 551 if (time < base || (!inclusive && time == base)) { 554 result = time; 570 UDate time = getUTC(fStartTimes[i], prevRawOffset, prevDSTSavings); 571 if (time < base || (inclusive && time == base)) { 572 result = time; 614 TimeArrayTimeZoneRule::getUTC(UDate time, int32_t raw, int32_t dst) const { 616 time [all...] |
/test/xts/acts/kernel_lite/ipc_posix/message_queue/ |
H A D | IpcMqTest.cpp | 83 tts.tv_sec = time(NULL) + 1;
in HWTEST_F() 92 rts.tv_sec = time(NULL) + 1;
in HWTEST_F() 149 tts.tv_sec = time(NULL) + 1;
in HWTEST_F() 158 rts.tv_sec = time(NULL) + 1;
in HWTEST_F() 255 rts.tv_sec = time(NULL) + 3;
in HWTEST_F() 263 tts.tv_sec = time(NULL) + 3;
in HWTEST_F() 269 tts.tv_sec = time(NULL) + 3;
in HWTEST_F() 281 rts.tv_sec = time(NULL) + 3;
in HWTEST_F() 321 rts.tv_sec = time(NULL) + 1;
in HWTEST_F() 329 tts.tv_sec = time(NUL in HWTEST_F() [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/ |
H A D | dmlib.py | 24 import time namespace 140 time.sleep(1) 171 time.sleep(2) 208 time.sleep(2) 211 time.sleep(2) 340 time.sleep(3) 603 msg = self.create_req(ID_DONE, int(time.time())) 759 time.sleep(1) 813 time [all...] |
/drivers/hdf_core/framework/include/platform/ |
H A D | rtc_if.h | 13 * @brief Provides standard real-time clock (RTC) APIs. 15 * These APIs allow you to perform operations such as reading or writing system time, reading or writing alarm time, 18 * The RTC driver provides precise real time for the operating system (OS). If the OS is powered off, the RTC driver 19 * continues to keep track of the system time using an external battery. 56 * @brief Defines a callback that will be invoked when an alarm is generated at the specified time. 65 * The start time is 1970/01/01 Thursday 00:00:00 (UTC). 86 RTC_IO_READTIME = 0, /**< Read time. */ 87 RTC_IO_WRITETIME, /**< Write format-compliant time. */ 88 RTC_IO_READALARM, /**< Read the RTC alarm time [all...] |
H A D | rtc_base.h | 69 uint8_t RtcIsInvalid(const struct RtcTime *time); 70 uint8_t RtcGetWeekDay(const struct RtcTime *time); 72 uint64_t RtcTimeToTimestamp(const struct RtcTime *time); 73 void TimestampToRtcTime(struct RtcTime *time, const uint64_t seconds);
|
/kernel/linux/linux-5.10/drivers/firmware/efi/test/ |
H A D | efi_test.h | 48 efi_time_t *time; member 54 efi_time_t *time; member 61 efi_time_t *time; member 67 efi_time_t *time; member
|
/kernel/linux/linux-5.10/tools/testing/selftests/rtc/ |
H A D | setdate.c | 12 #include <sys/time.h> 26 const char *time = default_time; in main() local 30 time = argv[3]; in main() 50 sscanf(time, "%d:%d:%d", &new.tm_hour, &new.tm_min, &new.tm_sec); in main() 52 fprintf(stderr, "Test will set RTC date/time to %d-%d-%d, %02d:%02d:%02d.\n", in main() 71 fprintf(stderr, "\n\nCurrent RTC date/time is %d-%d-%d, %02d:%02d:%02d.\n", in main()
|
/kernel/linux/linux-6.6/drivers/firmware/efi/test/ |
H A D | efi_test.h | 48 efi_time_t *time; member 54 efi_time_t *time; member 61 efi_time_t *time; member 67 efi_time_t *time; member
|
/kernel/linux/linux-6.6/tools/testing/selftests/rtc/ |
H A D | setdate.c | 12 #include <sys/time.h> 26 const char *time = default_time; in main() local 30 time = argv[3]; in main() 50 sscanf(time, "%d:%d:%d", &new.tm_hour, &new.tm_min, &new.tm_sec); in main() 52 fprintf(stderr, "Test will set RTC date/time to %d-%d-%d, %02d:%02d:%02d.\n", in main() 71 fprintf(stderr, "\n\nCurrent RTC date/time is %d-%d-%d, %02d:%02d:%02d.\n", in main()
|
/third_party/lame/frontend/ |
H A D | lametime.c | 2 * Lame time routines source file 27 * description: returns CPU time used by the process 29 * output: time in seconds 43 #include <time.h> 74 * description: returns real (human) time elapsed relative to a fixed time (mostly 1970-01-01 00:00:00) 76 * output: time in seconds 77 * known bugs: bad precision with time() 82 # include <sys/time.h> 107 return t.time in GetRealTime() [all...] |
/third_party/libinput/src/ |
H A D | util-time.h | 29 #include <time.h> 91 us2tv(uint64_t time) in us2tv() argument 95 tv.tv_sec = time / ms2us(1000); in us2tv() 96 tv.tv_usec = time % ms2us(1000); in us2tv() 107 * Converts a time delta in µs to a human-readable time like "2h" or "4d"
|
/third_party/ltp/testcases/kernel/sched/sched_stress/ |
H A D | sched_tc0.c | 29 | for a specified time duration | 46 #include <sys/time.h> 57 * DEFAULT_EXECUTION_TIME: default execution time (in seconds) 63 " -t sec execution time (default 1800 sec) \n" \ 85 * execution_time: testcase execution time (hours) 104 long start_time; /* time at start of testcase */ in main() 125 * Adjust the priority of this process if the real time flag is set in main() 138 * Continuously read through file as time permits... in main() 141 start_time = time(NULL); in main() 145 while ((time(NUL in main() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/ |
H A D | 5-2.c | 25 #include <time.h> 75 ts.tv_sec = time(NULL) + TIMEOUT; in main() 77 oldtime = time(NULL); in main() 79 newtime = time(NULL); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/time/ |
H A D | utime_sup.c | 19 #include <time.h> 43 time(&ubuf.actime); in utime_0100() 49 t_error("%s modify file time failed", __func__); in utime_0100() 58 * @tc.desc : When times is a NULL pointer, the access and modification times are set to the current time 77 t_now = time(NULL); in utime_0200() 107 time(&ubuf.actime); in utime64_0100() 113 t_error("%s modify file time failed", __func__); in utime64_0100()
|
/third_party/python/Tools/demo/ |
H A D | mcast.py | 19 import time namespace 46 data = repr(time.time()).encode('utf-8') + b'\0' 48 time.sleep(1)
|
/third_party/python/Tools/peg_generator/scripts/ |
H A D | benchmark.py | 7 from time import time namespace 43 start = time() 45 end = time()
|