Home
last modified time | relevance | path

Searched refs:time (Results 351 - 375 of 7805) sorted by relevance

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

/kernel/linux/linux-6.6/drivers/rtc/
H A Drtc-ds1374.c85 static int ds1374_read_rtc(struct i2c_client *client, u32 *time, in ds1374_read_rtc() argument
102 for (i = nbytes - 1, *time = 0; i >= 0; i--) in ds1374_read_rtc()
103 *time = (*time << 8) | buf[i]; in ds1374_read_rtc()
108 static int ds1374_write_rtc(struct i2c_client *client, u32 time, in ds1374_write_rtc() argument
120 buf[i] = time & 0xff; in ds1374_write_rtc()
121 time >>= 8; in ds1374_write_rtc()
138 "oscillator discontinuity flagged, time unreliable\n"); in ds1374_check_rtc_status()
159 static int ds1374_read_time(struct device *dev, struct rtc_time *time) in ds1374_read_time() argument
167 rtc_time64_to_tm(itime, time); in ds1374_read_time()
172 ds1374_set_time(struct device *dev, struct rtc_time *time) ds1374_set_time() argument
[all...]
H A Drtc-pcf8563.c211 "low voltage detected, date/time is not reliable.\n"); in pcf8563_rtc_read_time()
309 tm->time.tm_sec = 0; in pcf8563_rtc_read_alarm()
310 tm->time.tm_min = bcd2bin(buf[0] & 0x7F); in pcf8563_rtc_read_alarm()
311 tm->time.tm_hour = bcd2bin(buf[1] & 0x3F); in pcf8563_rtc_read_alarm()
312 tm->time.tm_mday = bcd2bin(buf[2] & 0x3F); in pcf8563_rtc_read_alarm()
313 tm->time.tm_wday = bcd2bin(buf[3] & 0x7); in pcf8563_rtc_read_alarm()
320 " enabled=%d, pending=%d\n", __func__, tm->time.tm_min, in pcf8563_rtc_read_alarm()
321 tm->time.tm_hour, tm->time.tm_mday, tm->time in pcf8563_rtc_read_alarm()
[all...]
H A Drtc-goldfish.c41 rtc_time64_to_tm(rtc_alarm, &alrm->time); in goldfish_rtc_read_alarm()
63 rtc_alarm64 = rtc_tm_to_time64(&alrm->time) * NSEC_PER_SEC; in goldfish_rtc_set_alarm()
116 u64 time; in goldfish_rtc_read_time() local
123 time = (time_high << 32) | time_low; in goldfish_rtc_read_time()
125 do_div(time, NSEC_PER_SEC); in goldfish_rtc_read_time()
127 rtc_time64_to_tm(time, tm); in goldfish_rtc_read_time()
H A Drtc-cros-ec.c51 *response = msg.data.time; in cros_ec_rtc_get()
68 msg.data.time = param; in cros_ec_rtc_set()
76 /* Read the current time from the EC. */
82 u32 time; in cros_ec_rtc_read_time() local
84 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_VALUE, &time); in cros_ec_rtc_read_time()
86 dev_err(dev, "error getting time: %d\n", ret); in cros_ec_rtc_read_time()
90 rtc_time64_to_tm(time, tm); in cros_ec_rtc_read_time()
95 /* Set the current EC time. */
101 time64_t time = rtc_tm_to_time64(tm); in cros_ec_rtc_set_time() local
103 ret = cros_ec_rtc_set(cros_ec, EC_CMD_RTC_SET_VALUE, (u32)time); in cros_ec_rtc_set_time()
[all...]
H A Dsysfs.c20 * the local time and change to match daylight savings time. That affects
21 * attributes including date, time, since_epoch, and wakealarm.
58 static DEVICE_ATTR_RO(time);
68 time64_t time; in since_epoch_show() local
70 time = rtc_tm_to_time64(&tm); in since_epoch_show()
71 retval = sprintf(buf, "%lld\n", time); in since_epoch_show()
106 * hctosys_show - indicate if the given RTC set the system time
144 alarm = rtc_tm_to_time64(&alm.time); in wakealarm_show()
164 * by writing another time, in wakealarm_store()
[all...]
/third_party/node/deps/v8/tools/testrunner/testproc/
H A Dprogress.py10 import time namespace
150 self._last_printed_time = time.time()
156 self._last_printed_time = time.time()
181 return time.time() - self._last_printed_time > delay
208 dt = time.time()
246 self._start_time = time
[all...]
/third_party/protobuf/src/google/protobuf/util/
H A Dtime_util_test.cc61 Timestamp time = TimeUtil::NanosecondsToTimestamp(-1); in TEST() local
62 EXPECT_EQ(-1, time.seconds()); in TEST()
64 EXPECT_EQ(999999999, time.nanos()); in TEST()
65 EXPECT_EQ("1969-12-31T23:59:59.999999999Z", TimeUtil::ToString(time)); in TEST()
79 EXPECT_TRUE(TimeUtil::FromString("1970-01-01T00:00:00.1Z", &time)); in TEST()
80 EXPECT_EQ(100000000, TimeUtil::TimestampToNanoseconds(time)); in TEST()
81 EXPECT_TRUE(TimeUtil::FromString("1970-01-01T00:00:00.0001Z", &time)); in TEST()
82 EXPECT_EQ(100000, TimeUtil::TimestampToNanoseconds(time)); in TEST()
83 EXPECT_TRUE(TimeUtil::FromString("1970-01-01T00:00:00.0000001Z", &time)); in TEST()
84 EXPECT_EQ(100, TimeUtil::TimestampToNanoseconds(time)); in TEST()
[all...]
/build/test/example/
H A Dperformance_test.py19 import time namespace
145 self.total_flag = re.compile(r"Cost time:.*(\d+:\d+:\d+)")
286 if name == "total time":
380 @parameter timeout: execute cmd time out
400 start_time = time.time()
403 if timeout and time.time() - start_time > timeout:
404 raise Exception("exec cmd time out,select")
413 out_str = "{}".format(time
[all...]
/third_party/ffmpeg/libavfilter/
H A Dafir_template.c138 ftype *time = (ftype *)s->ir[s->selir]->extended_data[!s->one2many * ch]; in convert_channels() local
142 time[i] = 0; in convert_channels()
161 coeff[coffset + n].re = time[toffset + n]; in convert_channels()
168 memcpy(blockin, time + toffset, size * sizeof(*blockin)); in convert_channels()
202 ftype *time = (ftype *)s->ir[s->selir]->extended_data[!s->one2many * ch]; in get_power() local
205 power += FFABS(time[i]); in get_power()
211 ftype *time = (ftype *)s->ir[s->selir]->extended_data[!s->one2many * ch]; in get_power() local
214 power += time[i]; in get_power()
220 ftype *time = (ftype *)s->ir[s->selir]->extended_data[!s->one2many * ch]; in get_power() local
223 power += time[ in get_power()
236 ftype *time = (ftype *)s->ir[s->selir]->extended_data[!s->one2many * ch]; get_power() local
[all...]
/drivers/peripheral/user_auth/test/unittest/user_auth_test/
H A Duser_sign_centre_test.cpp66 token.tokenDataPlain.time = UINT64_MAX; in HWTEST_F()
68 token.tokenDataPlain.time = 0; in HWTEST_F()
70 token.tokenDataPlain.time = GetSystemTime(); in HWTEST_F()
96 .time = GetSystemTime(), in HWTEST_F()
148 userAuthToken.tokenDataPlain.time = UINT64_MAX; in HWTEST_F()
150 userAuthToken.tokenDataPlain.time = GetSystemTime(); in HWTEST_F()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/
H A Diwl-devtrace-iwlwifi.h121 TP_PROTO(const struct device *dev, u32 time, u32 data, u32 ev),
122 TP_ARGS(dev, time, data, ev),
126 __field(u32, time)
132 __entry->time = time;
137 __get_str(dev), __entry->time, __entry->data, __entry->ev)
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv50/
H A Dcore507d.c65 s64 time = nvif_msec(device, 2000ULL, in core507d_ntfy_wait_done() local
70 return time < 0 ? time : 0; in core507d_ntfy_wait_done()
108 s64 time; in core507d_caps_init() local
118 time = nvif_msec(core->chan.base.device, 2000ULL, in core507d_caps_init()
124 if (time < 0) in core507d_caps_init()
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/
H A Diwl-devtrace-iwlwifi.h116 TP_PROTO(const struct device *dev, u32 time, u32 data, u32 ev),
117 TP_ARGS(dev, time, data, ev),
121 __field(u32, time)
127 __entry->time = time;
132 __get_str(dev), __entry->time, __entry->data, __entry->ev)
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv50/
H A Dcore507d.c65 s64 time = nvif_msec(device, 2000ULL, in core507d_ntfy_wait_done() local
70 return time < 0 ? time : 0; in core507d_ntfy_wait_done()
108 s64 time; in core507d_caps_init() local
118 time = nvif_msec(core->chan.base.device, 2000ULL, in core507d_caps_init()
124 if (time < 0) in core507d_caps_init()
/kernel/linux/linux-6.6/drivers/input/tests/
H A Dinput_test.c71 ktime_t *timestamp, time; in input_test_timestamp() local
74 time = timestamp[INPUT_CLK_MONO]; in input_test_timestamp()
77 KUNIT_ASSERT_EQ(test, ktime_compare(time, invalid_timestamp), 1); in input_test_timestamp()
79 time = ktime_get(); in input_test_timestamp()
80 input_set_timestamp(input_dev, time); in input_test_timestamp()
84 KUNIT_ASSERT_EQ(test, ktime_compare(timestamp[INPUT_CLK_MONO], time), 0); in input_test_timestamp()
/kernel/liteos_m/kernel/include/
H A Dlos_tick.h56 * system time configuration modules in Los_config.h.
77 * system time configuration modules according to the SysTick_Config function.
157 #define OS_SYS_NS_TO_CYCLE(time, freq) (((time) / OS_SYS_NS_PER_SECOND) * (freq) + \
158 ((time) % OS_SYS_NS_PER_SECOND) * (freq) / OS_SYS_NS_PER_SECOND)
166 * System time basic function error code: Null pointer.
176 * System time basic function error code: Invalid system clock configuration.
186 * System time basic function error code: This error code is not in use temporarily.
196 * System time error code: This error code is not in use temporarily.
206 * System time erro
268 OsTimeConvertFreq(UINT64 time, UINT32 oldFreq, UINT32 newFreq) OsTimeConvertFreq() argument
[all...]
/third_party/libuv/src/
H A Dtimer.c82 clamped_timeout = handle->loop->time + timeout; in uv_timer_start()
146 if (handle->loop->time >= handle->timeout) in uv_timer_get_due_in()
149 return handle->timeout - handle->loop->time; in uv_timer_get_due_in()
163 if (handle->timeout <= loop->time) in uv__next_timeout()
166 diff = handle->timeout - loop->time; in uv__next_timeout()
184 if (handle->timeout > loop->time) in uv__run_timers()
/kernel/linux/linux-5.10/drivers/char/ipmi/
H A Dipmi_kcs_sm.c215 long time) in check_ibf()
218 kcs->ibf_timeout -= time; in check_ibf()
220 start_error_recovery(kcs, "IBF not ready in time"); in check_ibf()
231 long time) in check_obf()
234 kcs->obf_timeout -= time; in check_obf()
237 start_error_recovery(kcs, "OBF not ready in time"); in check_obf()
330 static enum si_sm_result kcs_event(struct si_sm_data *kcs, long time) in kcs_event() argument
342 if (!check_ibf(kcs, status, time)) in kcs_event()
423 if (!check_obf(kcs, status, time)) in kcs_event()
466 if (!check_obf(kcs, status, time)) in kcs_event()
214 check_ibf(struct si_sm_data *kcs, unsigned char status, long time) check_ibf() argument
230 check_obf(struct si_sm_data *kcs, unsigned char status, long time) check_obf() argument
[all...]
/kernel/linux/linux-5.10/drivers/rtc/
H A Drtc-cros-ec.c49 command == EC_CMD_RTC_GET_VALUE ? "time" : "alarm", in cros_ec_rtc_get()
54 *response = msg.data.time; in cros_ec_rtc_get()
71 msg.data.time = param; in cros_ec_rtc_set()
76 command == EC_CMD_RTC_SET_VALUE ? "time" : "alarm", in cros_ec_rtc_set()
84 /* Read the current time from the EC. */
90 u32 time; in cros_ec_rtc_read_time() local
92 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_VALUE, &time); in cros_ec_rtc_read_time()
94 dev_err(dev, "error getting time: %d\n", ret); in cros_ec_rtc_read_time()
98 rtc_time64_to_tm(time, tm); in cros_ec_rtc_read_time()
103 /* Set the current EC time
109 time64_t time = rtc_tm_to_time64(tm); cros_ec_rtc_set_time() local
[all...]
H A Dsysfs.c19 * the local time and change to match daylight savings time. That affects
20 * attributes including date, time, since_epoch, and wakealarm.
57 static DEVICE_ATTR_RO(time);
67 time64_t time; in since_epoch_show() local
69 time = rtc_tm_to_time64(&tm); in since_epoch_show()
70 retval = sprintf(buf, "%lld\n", time); in since_epoch_show()
105 * rtc_sysfs_show_hctosys - indicate if the given RTC set the system time
143 alarm = rtc_tm_to_time64(&alm.time); in wakealarm_show()
163 * by writing another time, in wakealarm_store()
[all...]
/kernel/linux/linux-6.6/drivers/char/ipmi/
H A Dipmi_kcs_sm.c221 long time) in check_ibf()
224 kcs->ibf_timeout -= time; in check_ibf()
226 start_error_recovery(kcs, "IBF not ready in time"); in check_ibf()
237 long time) in check_obf()
240 kcs->obf_timeout -= time; in check_obf()
243 start_error_recovery(kcs, "OBF not ready in time"); in check_obf()
336 static enum si_sm_result kcs_event(struct si_sm_data *kcs, long time) in kcs_event() argument
348 if (!check_ibf(kcs, status, time)) in kcs_event()
429 if (!check_obf(kcs, status, time)) in kcs_event()
472 if (!check_obf(kcs, status, time)) in kcs_event()
220 check_ibf(struct si_sm_data *kcs, unsigned char status, long time) check_ibf() argument
236 check_obf(struct si_sm_data *kcs, unsigned char status, long time) check_obf() argument
[all...]
/third_party/node/deps/v8/tools/testrunner/local/
H A Dcommand.py12 import time namespace
107 start_time = time.time()
109 duration = time.time() - start_time
304 start_time = time.time()
319 duration = time.time() - start_time
/third_party/node/tools/gyp/
H A Dtest_gyp.py14 import time namespace
183 run_start = time.time()
194 self.took = time.time() - run_start
203 start = time.time()
210 took = time.time() - start
/third_party/node/deps/npm/node_modules/node-gyp/gyp/
H A Dtest_gyp.py14 import time namespace
183 run_start = time.time()
194 self.took = time.time() - run_start
203 start = time.time()
210 took = time.time() - start
/third_party/libinput/tools/
H A Dptraccel-debug.c43 uint64_t time = 0; in print_ptraccel_deltas() local
57 time += us(12500); /* pretend 80Hz data */ in print_ptraccel_deltas()
59 accel = filter_dispatch(filter, &motion, NULL, time); in print_ptraccel_deltas()
73 uint64_t time = 0; in print_ptraccel_movement() local
101 time += us(12500); /* pretend 80Hz data */ in print_ptraccel_movement()
103 accel = filter_dispatch(filter, &motion, NULL, time); in print_ptraccel_movement()
119 uint64_t time = 0; in print_ptraccel_sequence() local
136 time += us(12500); /* pretend 80Hz data */ in print_ptraccel_sequence()
138 accel = filter_dispatch(filter, &motion, NULL, time); in print_ptraccel_sequence()
168 double result = profile(filter, NULL, units_per_us, 0 /* time */); in print_accel_func()
[all...]

Completed in 13 milliseconds

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