/kernel/linux/linux-6.6/drivers/idle/ |
H A D | intel_idle.c | 1670 unsigned int usec; in bxt_idle_state_table_update() local 1673 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1674 if (usec) { in bxt_idle_state_table_update() 1675 bxt_cstates[2].exit_latency = usec; in bxt_idle_state_table_update() 1676 bxt_cstates[2].target_residency = usec; in bxt_idle_state_table_update() 1680 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1681 if (usec) { in bxt_idle_state_table_update() 1682 bxt_cstates[3].exit_latency = usec; in bxt_idle_state_table_update() 1683 bxt_cstates[3].target_residency = usec; in bxt_idle_state_table_update() 1687 usec in bxt_idle_state_table_update() [all...] |
/third_party/node/deps/openssl/openssl/crypto/ts/ |
H A D | ts_rsp_sign.c | 24 static int def_time_cb(struct TS_resp_ctx *, void *, long *sec, long *usec); 64 long *sec, long *usec) in def_time_cb() 75 *usec = tv.tv_usec; in def_time_cb() 83 long *sec, long *usec) in def_time_cb() 94 *usec = 0; in def_time_cb() 534 long sec, usec; in ts_RESP_create_tst_info() local 550 if (!ctx->time_cb(ctx, ctx->time_cb_data, &sec, &usec) in ts_RESP_create_tst_info() 552 TS_RESP_set_genTime_with_precision(NULL, sec, usec, in ts_RESP_create_tst_info() 818 ASN1_GENERALIZEDTIME *asn1_time, long sec, long usec, in TS_RESP_set_genTime_with_precision() 845 BIO_snprintf(p, 2 + precision, ".%06ld", usec); in TS_RESP_set_genTime_with_precision() 63 def_time_cb(struct TS_resp_ctx *ctx, void *data, long *sec, long *usec) def_time_cb() argument 82 def_time_cb(struct TS_resp_ctx *ctx, void *data, long *sec, long *usec) def_time_cb() argument 817 TS_RESP_set_genTime_with_precision( ASN1_GENERALIZEDTIME *asn1_time, long sec, long usec, unsigned precision) TS_RESP_set_genTime_with_precision() argument [all...] |
/third_party/openssl/crypto/ts/ |
H A D | ts_rsp_sign.c | 24 static int def_time_cb(struct TS_resp_ctx *, void *, long *sec, long *usec); 64 long *sec, long *usec) in def_time_cb() 75 *usec = tv.tv_usec; in def_time_cb() 83 long *sec, long *usec) in def_time_cb() 94 *usec = 0; in def_time_cb() 534 long sec, usec; in ts_RESP_create_tst_info() local 550 if (!ctx->time_cb(ctx, ctx->time_cb_data, &sec, &usec) in ts_RESP_create_tst_info() 552 TS_RESP_set_genTime_with_precision(NULL, sec, usec, in ts_RESP_create_tst_info() 818 ASN1_GENERALIZEDTIME *asn1_time, long sec, long usec, in TS_RESP_set_genTime_with_precision() 845 BIO_snprintf(p, 2 + precision, ".%06ld", usec); in TS_RESP_set_genTime_with_precision() 63 def_time_cb(struct TS_resp_ctx *ctx, void *data, long *sec, long *usec) def_time_cb() argument 82 def_time_cb(struct TS_resp_ctx *ctx, void *data, long *sec, long *usec) def_time_cb() argument 817 TS_RESP_set_genTime_with_precision( ASN1_GENERALIZEDTIME *asn1_time, long sec, long usec, unsigned precision) TS_RESP_set_genTime_with_precision() argument [all...] |
/third_party/rust/crates/nix/src/sys/ |
H A D | time.rs | 403 let usec = self in mul() 408 TimeSpec::nanoseconds(usec) in mul() 416 let usec = self.num_nanoseconds() / i64::from(rhs); in div() 417 TimeSpec::nanoseconds(usec) in div() 572 let usec = self.micros_mod_sec(); in num_microseconds() 573 secs + usec as i64 in num_microseconds() 637 let usec = self in mul() 642 TimeVal::microseconds(usec) in mul() 650 let usec = self.num_microseconds() / i64::from(rhs); in div() 651 TimeVal::microseconds(usec) in div() [all...] |
/kernel/linux/linux-5.10/drivers/parport/ |
H A D | ieee1284.c | 88 * @usec: timeout 97 * using udelay(). It currently has a resolution of 5usec. 110 int usec) in parport_poll_peripheral() 113 int count = usec / 5 + 2; in parport_poll_peripheral() 146 * time is configurable (using /proc), and defaults to 500usec. 161 int usec; in parport_wait_peripheral() local 165 usec = port->physport->spintime; /* usecs of fast polling */ in parport_wait_peripheral() 169 usec = 35000; in parport_wait_peripheral() 177 ret = parport_poll_peripheral (port, mask, result, usec); in parport_wait_peripheral() 107 parport_poll_peripheral(struct parport *port, unsigned char mask, unsigned char result, int usec) parport_poll_peripheral() argument
|
/kernel/linux/linux-6.6/drivers/parport/ |
H A D | ieee1284.c | 88 * @usec: timeout 97 * using udelay(). It currently has a resolution of 5usec. 110 int usec) in parport_poll_peripheral() 113 int count = usec / 5 + 2; in parport_poll_peripheral() 146 * time is configurable (using /proc), and defaults to 500usec. 161 int usec; in parport_wait_peripheral() local 165 usec = port->physport->spintime; /* usecs of fast polling */ in parport_wait_peripheral() 169 usec = 35000; in parport_wait_peripheral() 177 ret = parport_poll_peripheral (port, mask, result, usec); in parport_wait_peripheral() 107 parport_poll_peripheral(struct parport *port, unsigned char mask, unsigned char result, int usec) parport_poll_peripheral() argument
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | sample-util.c | 311 pa_usec_t usec; in pa_bytes_to_usec_round_up() local 318 usec = (pa_usec_t) length * PA_USEC_PER_SEC; in pa_bytes_to_usec_round_up() 320 return (usec + spec->rate - 1) / spec->rate; in pa_bytes_to_usec_round_up() 398 pa_usec_t usec; in pa_convert_size() local 403 usec = pa_bytes_to_usec_round_up(size, from); in pa_convert_size() 404 return pa_usec_to_bytes_round_up(usec, to); in pa_convert_size()
|
H A D | rtpoll.h | 63 void pa_rtpoll_set_timer_absolute(pa_rtpoll *p, pa_usec_t usec); 64 void pa_rtpoll_set_timer_relative(pa_rtpoll *p, pa_usec_t usec);
|
H A D | sink-input.c | 1354 pa_usec_t pa_sink_input_set_requested_latency_within_thread(pa_sink_input *i, pa_usec_t usec) { in pa_sink_input_set_requested_latency_within_thread() argument 1359 usec = i->sink->thread_info.fixed_latency; in pa_sink_input_set_requested_latency_within_thread() 1361 if (usec != (pa_usec_t) -1) in pa_sink_input_set_requested_latency_within_thread() 1362 usec = PA_CLAMP(usec, i->sink->thread_info.min_latency, i->sink->thread_info.max_latency); in pa_sink_input_set_requested_latency_within_thread() 1364 i->thread_info.requested_sink_latency = usec; in pa_sink_input_set_requested_latency_within_thread() 1367 return usec; in pa_sink_input_set_requested_latency_within_thread() 1371 pa_usec_t pa_sink_input_set_requested_latency(pa_sink_input *i, pa_usec_t usec) { in pa_sink_input_set_requested_latency() argument 1376 pa_assert_se(pa_asyncmsgq_send(i->sink->asyncmsgq, PA_MSGOBJECT(i), PA_SINK_INPUT_MESSAGE_SET_REQUESTED_LATENCY, &usec, 0, NULL) == 0); in pa_sink_input_set_requested_latency() 1377 return usec; in pa_sink_input_set_requested_latency() 1405 pa_usec_t usec = 0; pa_sink_input_get_requested_latency() local 2395 pa_usec_t *usec = userdata; pa_sink_input_process_msg() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
H A D | os_internal.c | 26 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument 29 const struct timespec req = { sec, usec * 1000 }; in os_sleep() 35 if (usec) in os_sleep() 36 usleep(usec); in os_sleep() 47 t->usec = tv.tv_usec; in os_get_time() 58 t->usec = tv.tv_usec; in os_get_reltime()
|
H A D | os_unix.c | 50 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument 53 const struct timespec req = { sec, usec * 1000 }; in os_sleep() 59 if (usec) in os_sleep() 60 usleep(usec); in os_sleep() 71 t->usec = tv.tv_usec; in os_get_time() 96 t->usec = ts.tv_nsec / 1000; in os_get_reltime() 127 t->usec = (nano - (((uint64_t) t->sec) * NSEC_PER_SEC)) / NSEC_PER_USEC; in os_get_reltime()
|
H A D | common.c | 288 u32 sec, usec; in wpa_get_ntp_timestamp() local 295 usec = now.usec; in wpa_get_ntp_timestamp() 296 usec = 4295 * usec - (usec >> 5) - (usec >> 9); in wpa_get_ntp_timestamp() 299 tmp = host_to_be32(usec); in wpa_get_ntp_timestamp()
|
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/include/aarch64/ |
H A D | arch_timer.h | 23 #define usec_to_cycles(usec) \ 24 (timer_get_cntfrq() * (uint64_t)(usec) / 1000000)
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | scan.h | 13 void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec); 15 int sec, int usec);
|
H A D | bss.c | 280 os_time_t usec; in calculate_update_time() local 283 update_time->usec = fetch_time->usec; in calculate_update_time() 285 usec = (age_ms % 1000) * 1000; in calculate_update_time() 286 if (update_time->usec < usec) { in calculate_update_time() 288 update_time->usec += 1000000; in calculate_update_time() 290 update_time->usec -= usec; in calculate_update_time() 627 (unsigned int) bss->last_update.usec, in wpa_bss_update() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | bss.c | 271 os_time_t usec; in calculate_update_time() local 274 update_time->usec = fetch_time->usec; in calculate_update_time() 276 usec = (age_ms % 1000) * 1000; in calculate_update_time() 277 if (update_time->usec < usec) { in calculate_update_time() 279 update_time->usec += 1000000; in calculate_update_time() 281 update_time->usec -= usec; in calculate_update_time() 692 (unsigned int) bss->last_update.usec, in wpa_bss_update() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | utils.c | 266 uint32_t usec; in ff_get_formatted_ntp_time() local 270 usec = ntp_time_us % 1000000; in ff_get_formatted_ntp_time() 273 frac_part = usec * 0xFFFFFFFFULL; in ff_get_formatted_ntp_time() 289 uint64_t usec = (frac_part * 1000000) / 0xFFFFFFFFULL; in ff_parse_ntp_time() local 291 return (sec * 1000000) + usec; in ff_parse_ntp_time()
|
/third_party/mbedtls/library/ |
H A D | net_sockets.c | 561 void mbedtls_net_usleep(unsigned long usec) argument 564 Sleep((usec + 999) / 1000); 567 tv.tv_sec = usec / 1000000; 570 tv.tv_usec = (suseconds_t) usec % 1000000; 572 tv.tv_usec = usec % 1000000;
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
H A D | os_internal.c | 26 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument 30 if (usec) in os_sleep() 31 usleep(usec); in os_sleep() 41 t->usec = tv.tv_usec; in os_get_time() 52 t->usec = tv.tv_usec; in os_get_reltime()
|
H A D | os_unix.c | 50 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument 54 if (usec) in os_sleep() 55 usleep(usec); in os_sleep() 65 t->usec = tv.tv_usec; in os_get_time() 90 t->usec = ts.tv_nsec / 1000; in os_get_reltime() 121 t->usec = (nano - (((uint64_t) t->sec) * NSEC_PER_SEC)) / NSEC_PER_USEC; in os_get_reltime()
|
/third_party/pulseaudio/src/modules/ |
H A D | module-esound-sink.c | 261 pa_usec_t usec; in thread_func() 341 usec = pa_bytes_to_usec((uint64_t) n, &u->sink->sample_spec); in thread_func() 343 if (usec > u->latency) in thread_func() 344 usec -= u->latency; in thread_func() 346 usec = 0; in thread_func() 348 pa_smoother_put(u->smoother, pa_rtclock_now(), usec); in thread_func()
|
/kernel/linux/linux-5.10/drivers/input/ |
H A D | input-compat.c | 25 event->input_event_usec = compat_event.usec; in input_event_from_user() 45 compat_event.usec = event->input_event_usec; in input_event_to_user()
|
/kernel/linux/linux-5.10/drivers/usb/chipidea/ |
H A D | ulpi.c | 21 unsigned long usec = 10000; in ci_ulpi_wait() local 23 while (usec--) { in ci_ulpi_wait()
|
/kernel/linux/linux-6.6/drivers/usb/chipidea/ |
H A D | ulpi.c | 21 unsigned long usec = 10000; in ci_ulpi_wait() local 23 while (usec--) { in ci_ulpi_wait()
|
/kernel/linux/linux-6.6/drivers/input/ |
H A D | input-compat.c | 25 event->input_event_usec = compat_event.usec; in input_event_from_user() 45 compat_event.usec = event->input_event_usec; in input_event_to_user()
|