Home
last modified time | relevance | path

Searched refs:usec (Results 1 – 25 of 186) sorted by relevance

12345678

/freebsd-12.1/contrib/wpa/src/utils/
H A Dos.h23 os_time_t usec; member
28 os_time_t usec; member
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()
62 res->usec += 1000000; in os_time_sub()
73 (a->sec == b->sec && a->usec < b->usec); in os_reltime_before()
81 res->usec = a->usec - b->usec; in os_reltime_sub()
82 if (res->usec < 0) { in os_reltime_sub()
84 res->usec += 1000000; in os_reltime_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.c793 timeout->time.usec += usecs; in eloop_register_timeout()
904 requested.usec = req_usecs; in eloop_deplete_timeout()
911 requested.usec, in eloop_deplete_timeout()
936 requested.usec = req_usecs; in eloop_replenish_timeout()
943 requested.usec, in eloop_replenish_timeout()
1113 tv.sec = tv.usec = 0; in eloop_run()
1119 _tv.tv_usec = tv.usec; in eloop_run()
1260 int sec, usec; in eloop_destroy() local
1262 usec = timeout->time.usec - now.usec; in eloop_destroy()
1263 if (timeout->time.usec < now.usec) { in eloop_destroy()
[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-12.1/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()
133 unsigned int sec, usec; in update_airtime_weights() local
218 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < 0) in update_airtime_weights()
221 eloop_register_timeout(sec, usec, update_airtime_weights, iface, in update_airtime_weights()
253 unsigned int sec, usec; in airtime_policy_update_init() local
258 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < 0) in airtime_policy_update_init()
[all …]
/freebsd-12.1/contrib/tcpdump/
H A Dprint-timed.c102 long sec, usec; in timed_print() local
127 usec = EXTRACT_32BITS(&tsp->tsp_time.tv_usec); in timed_print()
129 if (usec < 0) in timed_print()
133 if (sec < 0 && usec != 0) { in timed_print()
137 usec = 1000000 - usec; in timed_print()
139 ND_PRINT((ndo, "%ld.%06ld", sec, usec)); in timed_print()
/freebsd-12.1/contrib/ntp/util/
H A Dprecision.c129 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()
162 if (usec >= HUSECS) { in default_get_precision()
164 usec); in default_get_precision()
/freebsd-12.1/crypto/heimdal/lib/krb5/
H A Dtime.c53 int32_t usec) in krb5_set_real_time() argument
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()
H A Drd_priv.c138 part.usec == NULL || in krb5_rd_priv()
172 if(part.usec) in krb5_rd_priv()
173 outdata->usec = *part.usec; in krb5_rd_priv()
H A Dmk_error.c50 int32_t usec; in krb5_mk_error() local
54 krb5_us_timeofday (context, &sec, &usec); in krb5_mk_error()
60 msg.susec = usec; in krb5_mk_error()
/freebsd-12.1/contrib/ntp/lib/isc/tests/
H A Disctest.c162 isc_test_nap(isc_uint32_t usec) { in isc_test_nap() argument
166 ts.tv_sec = usec / 1000000; in isc_test_nap()
167 ts.tv_nsec = (usec % 1000000) * 1000; in isc_test_nap()
170 usleep(usec); in isc_test_nap()
176 sleep((usec / 1000000) + 1); in isc_test_nap()
/freebsd-12.1/tools/tools/netmap/
H A Dlb.c242 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()
308 bps = ((x.bytes*1000000 + usec/2) / usec) * 8; in print_stats()
[all …]
/freebsd-12.1/sys/sparc64/sparc64/
H A Dclock.c43 DELAY(int usec) in DELAY() argument
47 if (usec < 0) in DELAY()
57 end = rd(tick) + (u_long)usec * PCPU_GET(clock) / 1000000; in DELAY()
/freebsd-12.1/sys/dev/rtwn/pci/
H A Drtwn_pci_reg.c115 rtwn_pci_delay(struct rtwn_softc *sc, int usec) in rtwn_pci_delay() argument
117 if (usec < 1000) in rtwn_pci_delay()
118 DELAY(usec); in rtwn_pci_delay()
121 msecs_to_ticks(usec / 1000)); in rtwn_pci_delay()
/freebsd-12.1/sys/compat/linuxkpi/common/include/linux/
H A Djiffies.h86 usecs_to_jiffies(uint64_t usec) in usecs_to_jiffies() argument
91 if (usec > usec_max) in usecs_to_jiffies()
92 usec = usec_max; in usecs_to_jiffies()
93 result = howmany(usec * (uint64_t)hz, 1000000ULL); in usecs_to_jiffies()
/freebsd-12.1/sys/riscv/riscv/
H A Dtimer.c262 DELAY(int usec) in DELAY() argument
272 for (; usec > 0; usec--) in DELAY()
292 if (usec >= (0x80000000U / counts_per_usec)) in DELAY()
295 counts = usec * counts_per_usec; in DELAY()
/freebsd-12.1/sys/arm/arm/
H A Dmpcore_timer.c502 arm_tmr_delay(int usec, void *arg) in arm_tmr_delay() argument
518 if (usec >= (0x80000000U / counts_per_usec)) in arm_tmr_delay()
521 counts = usec * counts_per_usec; in arm_tmr_delay()
545 DELAY(int usec) in DELAY() argument
553 for (; usec > 0; usec--) in DELAY()
560 arm_tmr_delay(usec, sc); in DELAY()
H A Dgeneric_timer.c112 static void arm_tmr_do_delay(int usec, void *);
537 arm_tmr_do_delay(int usec, void *arg) in arm_tmr_do_delay() argument
552 if (usec >= (0x80000000U / counts_per_usec)) in arm_tmr_do_delay()
555 counts = usec * counts_per_usec; in arm_tmr_do_delay()
568 DELAY(int usec) in DELAY() argument
578 for (; usec > 0; usec--) in DELAY()
586 arm_tmr_do_delay(usec, arm_tmr_sc); in DELAY()
/freebsd-12.1/usr.sbin/watchdogd/
H A Dwatchdogd.c589 register long sec, usec; in tvtohz() local
624 usec = tv->tv_usec; in tvtohz()
625 if (usec < 0) { in tvtohz()
627 usec += 1000000; in tvtohz()
631 if (usec > 0) { in tvtohz()
633 usec -= 1000000; in tvtohz()
636 sec, usec); in tvtohz()
640 ticks = (sec * 1000000 + (unsigned long)usec + (tick - 1)) in tvtohz()
644 + ((unsigned long)usec + (tick - 1)) / tick + 1; in tvtohz()
/freebsd-12.1/sys/dev/rtwn/usb/
H A Drtwn_usb_reg.c169 rtwn_usb_delay(struct rtwn_softc *sc, int usec) in rtwn_usb_delay() argument
173 if (usec < 1000) in rtwn_usb_delay()
174 DELAY(usec); in rtwn_usb_delay()
176 usb_pause_mtx(&sc->sc_mtx, msecs_to_ticks(usec / 1000)); in rtwn_usb_delay()
/freebsd-12.1/contrib/netbsd-tests/include/sys/
H A Dt_types.c50 useconds_t usec; in ATF_TC_BODY() local
72 usec = 1000000; in ATF_TC_BODY()
73 ATF_REQUIRE(usec > 0); in ATF_TC_BODY()
/freebsd-12.1/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_dim.c44 MLX5_SET(cqc, cqc, cq_period, prof.usec); in mlx5e_dim_build_cq_param()
51 MLX5_SET(cqc, cqc, cq_period, prof.usec); in mlx5e_dim_build_cq_param()
91 cur_profile.usec, cur_profile.pkts); in mlx5e_dim_work()

12345678