Home
last modified time | relevance | path

Searched refs:time (Results 401 - 425 of 7805) sorted by relevance

1...<<11121314151617181920>>...313

/kernel/linux/linux-6.6/drivers/rtc/
H A Drtc-loongson.c226 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 Drtc-nct3018y.c158 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 Drtc-twl.c250 * 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 Drtc-tps65910.c31 /* 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 Daw88395.c124 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 Dtzrule.cpp550 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 Dztrans.cpp29 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 Dtzrule.cpp550 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 Dztrans.cpp29 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 Dtzrule.cpp550 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 DIpcMqTest.cpp83 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 Ddmlib.py24 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 Drtc_if.h13 * @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 Drtc_base.h69 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 Defi_test.h48 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 Dsetdate.c12 #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 Defi_test.h48 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 Dsetdate.c12 #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 Dlametime.c2 * 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 Dutil-time.h29 #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 Dsched_tc0.c29 | 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 D5-2.c25 #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 Dutime_sup.c19 #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 Dmcast.py19 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 Dbenchmark.py7 from time import time namespace
43 start = time()
45 end = time()

Completed in 18 milliseconds

1...<<11121314151617181920>>...313