Home
last modified time | relevance | path

Searched full:usec (Results 1 – 25 of 470) sorted by relevance

12345678910>>...19

/freebsd/sys/contrib/dev/iwlwifi/fw/api/
H A Dsf.h39 /* SF Scenarios timers for default configuration (aligned to 32 uSec) */
40 #define SF_SINGLE_UNICAST_IDLE_TIMER_DEF 160 /* 150 uSec */
42 #define SF_AGG_UNICAST_IDLE_TIMER_DEF 160 /* 150 uSec */
46 #define SF_BA_IDLE_TIMER_DEF 160 /* 150 uSec */
48 #define SF_TX_RE_IDLE_TIMER_DEF 160 /* 150 uSec */
51 /* SF Scenarios timers for BSS MAC configuration (aligned to 32 uSec) */
52 #define SF_SINGLE_UNICAST_IDLE_TIMER 320 /* 300 uSec */
54 #define SF_AGG_UNICAST_IDLE_TIMER 320 /* 300 uSec */
58 #define SF_BA_IDLE_TIMER 320 /* 300 uSec */
60 #define SF_TX_RE_IDLE_TIMER 320 /* 300 uSec */
/freebsd/contrib/wpa/src/utils/
H A Dos.h15 * os_sleep - Sleep (sec, usec)
17 * @usec: Number of microseconds to sleep
19 void os_sleep(os_time_t sec, os_time_t usec);
23 os_time_t usec; member
28 os_time_t usec; member
32 * os_get_time - Get current time (sec, usec)
39 * os_get_reltime - Get relative time (sec, usec)
51 (a->sec == b->sec && a->usec < b->usec); in os_time_before()
59 res->usec = a->usec - b->usec; in os_time_sub()
60 if (res->usec < 0) { in os_time_sub()
[all …]
H A Dos_win32.c17 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument
21 if (usec) in os_sleep()
22 Sleep(usec / 1000); in os_sleep()
45 t->usec = (os_time_t) (tt % 1000000); in os_get_time()
57 t->usec = now.usec; in os_get_reltime()
H A Deloop.c790 timeout->time.usec += usecs; in eloop_register_timeout()
791 while (timeout->time.usec >= 1000000) { in eloop_register_timeout()
793 timeout->time.usec -= 1000000; in eloop_register_timeout()
868 remaining->sec = remaining->usec = 0; in eloop_cancel_timeout_one()
914 requested.usec = req_usecs; in eloop_deplete_timeout()
921 requested.usec, in eloop_deplete_timeout()
946 requested.usec = req_usecs; in eloop_replenish_timeout()
953 requested.usec, in eloop_replenish_timeout()
1123 tv.sec = tv.usec = 0; in eloop_run()
1125 timeout_ms = tv.sec * 1000 + tv.usec / 1000; in eloop_run()
[all …]
H A Deloop_win.c263 timeout->time.usec += usecs; in eloop_register_timeout()
264 while (timeout->time.usec >= 1000000) { in eloop_register_timeout()
266 timeout->time.usec -= 1000000; in eloop_register_timeout()
323 remaining->sec = remaining->usec = 0; in eloop_cancel_timeout_one()
369 requested.usec = req_usecs; in eloop_deplete_timeout()
376 requested.usec, in eloop_deplete_timeout()
401 requested.usec = req_usecs; in eloop_replenish_timeout()
408 requested.usec, in eloop_replenish_timeout()
543 tv.sec = tv.usec = 0; in eloop_run()
563 timeout_val = tv.sec * 1000 + tv.usec / 1000; in eloop_run()
/freebsd/contrib/wpa/src/ap/
H A Dbss_load.c20 unsigned int *sec, unsigned int *usec) in get_bss_load_update_timeout() argument
36 *usec = (update_timeout % 1000) * 1024; in get_bss_load_update_timeout()
45 unsigned int sec, usec; in update_channel_utilization() local
60 if (get_bss_load_update_timeout(hapd, &sec, &usec) < 0) in update_channel_utilization()
78 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in update_channel_utilization()
85 unsigned int sec, usec; in bss_load_update_init() local
87 if (get_bss_load_update_timeout(hapd, &sec, &usec) < 0) in bss_load_update_init()
90 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in bss_load_update_init()
H A Dairtime_policy.c38 unsigned int *usec) in get_airtime_policy_update_timeout() argument
50 *usec = (update_int % 1000) * 1000; in get_airtime_policy_update_timeout()
61 sta->backlogged_until.usec += hapd->iconf->airtime_update_interval * in set_new_backlog_time()
63 while (sta->backlogged_until.usec >= 1000000) { in set_new_backlog_time()
65 sta->backlogged_until.usec -= 1000000; in set_new_backlog_time()
137 unsigned int sec, usec; in update_airtime_weights() local
222 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < 0) in update_airtime_weights()
225 eloop_register_timeout(sec, usec, update_airtime_weights, iface, in update_airtime_weights()
257 unsigned int sec, usec; in airtime_policy_update_init() local
262 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < 0) in airtime_policy_update_init()
[all …]
H A Dairtime_policy.h17 #define AIRTIME_BACKLOG_EXPIRY_FACTOR 2500 /* 2.5 intervals + convert to usec */
21 #define AIRTIME_QUANTUM_MIN 8 /* usec */
22 #define AIRTIME_QUANTUM_MAX 256 /* usec */
23 #define AIRTIME_QUANTUM_TARGET 1024 /* usec */
/freebsd/crypto/heimdal/lib/krb5/
H A Dtime.c43 * @param usec The applications new of "now" in micro seconds
53 int32_t usec) in krb5_set_real_time() argument
62 * If the caller passes in a negative usec, its assumed to be in krb5_set_real_time()
63 * unknown and the function will use the current time usec. in krb5_set_real_time()
65 if (usec >= 0) { in krb5_set_real_time()
66 context->kdc_usec_offset = usec - tv.tv_usec; in krb5_set_real_time()
97 int32_t *usec) in krb5_us_timeofday() argument
104 *usec = tv.tv_usec; /* XXX */ in krb5_us_timeofday()
H A Dmk_safe.c71 krb5_us_timeofday (context, &rdata.timestamp, &rdata.usec); in krb5_mk_safe()
75 s.safe_body.usec = &rdata.usec; in krb5_mk_safe()
78 s.safe_body.usec = NULL; in krb5_mk_safe()
83 outdata->usec = rdata.usec; in krb5_mk_safe()
H A Dmk_priv.c69 krb5_us_timeofday (context, &rdata.timestamp, &rdata.usec); in krb5_mk_priv()
73 part.usec = &rdata.usec; in krb5_mk_priv()
76 part.usec = NULL; in krb5_mk_priv()
81 outdata->usec = rdata.usec; in krb5_mk_priv()
/freebsd/contrib/ntp/include/
H A Dtimexsup.h11 /* convert a 'long' time value (in usec or nsec) into seconds, expressed
13 * from usec. ('STA_NANO' is Linux specific at the time of this
17 * which time base (usec or nsec) applies for this conversion.
21 /* convert a 'long' time value in usec into seconds, expressed as
29 * usec.
36 /* convert a 'double' time value (in seconds) into usec with proper
/freebsd/tests/sys/kern/acct/
H A Dacct_test.c72 * Test case for encoding {0 sec, 0 usec} within a reasonable epsilon.
103 * Test case for encoding a small number of seconds {1 sec, 0 usec}.
120 * Test case for encoding a small number of usec {0 sec, 1 usec}.
137 * Test case for encoding a large number of usec {1 sec, 999.999 usec}.
154 * Test case for encoding a huge number of usec {1 sec, 1.000.000 usec} that
155 * overflows the usec counter and should show up as an increase in timeval's
174 * near to the limit of 32-bit signed values. With a usec value of 999.999
/freebsd/contrib/ntp/util/
H A Dprecision.c83 printf("resolution = %ld usec after %d loop%s\n", in default_get_resolution()
129 long usec; in default_get_precision() local
131 usec = 0; in default_get_precision()
141 for (i = 0; i < MINLOOPS && usec < HUSECS;) { in default_get_precision()
153 usec += diff; in default_get_precision()
160 printf("precision = %ld usec after %d loop%s\n", in default_get_precision()
162 if (usec >= HUSECS) { in default_get_precision()
163 printf(" (Boy this machine is fast ! usec was %ld)\n", in default_get_precision()
164 usec); in default_get_precision()
/freebsd/contrib/tcpdump/
H A Dprint-timed.c115 int sec, usec; in timed_print() local
134 usec = GET_BE_S_4(tsp->tsp_time.tv_usec); in timed_print()
136 if (usec < 0) in timed_print()
140 if (sec < 0 && usec != 0) { in timed_print()
144 usec = 1000000 - usec; in timed_print()
146 ND_PRINT("%d.%06d", sec, usec); in timed_print()
/freebsd/contrib/libfido2/fuzz/
H A Dclock.c25 tick(unsigned int usec) in tick() argument
40 drift = usec * 1000LL + (long long)uniform_random(10000000); /* 10ms */ in tick()
66 __wrap_usleep(unsigned int usec) in __wrap_usleep() argument
71 tick(usec); in __wrap_usleep()
/freebsd/tools/test/stress2/misc/
H A Dunlink.sh30 uint64_t usec;
52 usec = ((uint64_t)1000000 * diff.tv_sec + diff.tv_usec);
53 if (usec > 500000) {
55 (double)usec / 1000000);
H A Dtar.sh77 uint64_t mx, usec;
114 usec = ((uint64_t)1000000 *
116 if (usec > mx)
117 mx = usec;
119 (double)usec / 1000000, path);
/freebsd/sys/dev/enic/
H A Dvnic_enet.h10 #define INTR_COALESCE_USEC_TO_HW(usec) ((usec) * 2 / 3) argument
11 #define INTR_COALESCE_HW_TO_USEC(usec) ((usec) * 3 / 2) argument
/freebsd/tools/tools/netmap/
H A Dlb.c230 uint64_t pps = 0, dps = 0, bps = 0, dbps = 0, usec = 0; in print_stats() local
242 usec = (cur.t.tv_sec - prev.t.tv_sec) * 1000000 + in print_stats()
260 if (usec) { in print_stats()
265 pps = (x.pkts*1000000 + usec/2) / usec; in print_stats()
266 dps = (x.drop*1000000 + usec/2) / usec; in print_stats()
267 bps = ((x.bytes*1000000 + usec/2) / usec) * 8; in print_stats()
268 dbps = ((x.drop_bytes*1000000 + usec/2) / usec) * 8; in print_stats()
301 if (usec) { in print_stats()
306 pps = (x.pkts*1000000 + usec/2) / usec; in print_stats()
307 dps = (x.drop*1000000 + usec/2) / usec; in print_stats()
[all …]
/freebsd/contrib/processor-trace/libipt/src/
H A Dpt_image.c656 int pt_image_find(struct pt_image *image, struct pt_mapped_section *usec, in pt_image_find() argument
664 if (!image || !usec) in pt_image_find()
682 *usec = *msec; in pt_image_find()
688 const struct pt_mapped_section *usec, uint64_t vaddr, in pt_image_validate() argument
695 if (!image || !usec) in pt_image_validate()
698 /* Check that @vaddr lies within @usec. */ in pt_image_validate()
699 begin = pt_msec_begin(usec); in pt_image_validate()
700 end = pt_msec_end(usec); in pt_image_validate()
704 /* We assume that @usec is a copy of the top of our stack and accept in pt_image_validate()
718 status = memcmp(&slist->section, usec, sizeof(*usec)); in pt_image_validate()
/freebsd/crypto/heimdal/doc/doxyout/krb5/man/man3/
H A Dkrb5.387 …de KRB5_LIB_CALL \fBkrb5_get_kdc_sec_offset\fP (krb5_context context, int32_t *sec, int32_t *usec)"
90 …code KRB5_LIB_CALL \fBkrb5_set_kdc_sec_offset\fP (krb5_context context, int32_t sec, int32_t usec)"
171 …de KRB5_LIB_CALL \fBkrb5_set_real_time\fP (krb5_context context, krb5_timestamp sec, int32_t usec)"
692 …r_code KRB5_LIB_CALL krb5_get_kdc_sec_offset (krb5_context context, int32_t * sec, int32_t * usec)"
702 \fIusec\fP micro seconds part of offset.
930 …error_code KRB5_LIB_CALL krb5_set_kdc_sec_offset (krb5_context context, int32_t sec, int32_t usec)"
940 \fIusec\fP micro seconds part of offset.
988 …ror_code KRB5_LIB_CALL krb5_set_real_time (krb5_context context, krb5_timestamp sec, int32_t usec)"
998 \fIusec\fP The applications new of 'now' in micro seconds
1008 If the caller passes in a negative usec, its assumed to be unknown and the function will use the cu…
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/tick-n/
H A Derr.D_PDESC_ZEROoneusec.d32 * profile-usec; less than 200 micro seconds.
40 profile-1usec
42 printf("profile-usec; less than 200 micro seconds \n");
H A Dtst.tickusec.d32 * tick-2000usec simple test.
41 tick-2000usec
43 printf("This test is a simple tick-usec provider test\n");
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/profile-n/
H A Derr.D_PDESC_ZEROoneusec.d32 * profile-usec; less than 200 micro seconds.
40 profile-1usec
42 printf("profile-usec; less than 200 micro seconds \n");

12345678910>>...19