| /freebsd-13.1/contrib/wpa/src/utils/ |
| H A D | os.h | 23 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 D | os_win32.c | 17 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 D | eloop.c | 790 timeout->time.usec += usecs; in eloop_register_timeout() 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() 1129 _tv.tv_usec = tv.usec; in eloop_run() 1270 int sec, usec; in eloop_destroy() local 1272 usec = timeout->time.usec - now.usec; in eloop_destroy() 1273 if (timeout->time.usec < now.usec) { in eloop_destroy() [all …]
|
| /freebsd-13.1/contrib/wpa/src/ap/ |
| H A D | bss_load.c | 20 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 D | airtime_policy.c | 38 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 …]
|
| /freebsd-13.1/contrib/tcpdump/ |
| H A D | print-timed.c | 102 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-13.1/contrib/ntp/util/ |
| H A D | precision.c | 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() 162 if (usec >= HUSECS) { in default_get_precision() 164 usec); in default_get_precision()
|
| /freebsd-13.1/crypto/heimdal/lib/krb5/ |
| H A D | time.c | 53 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 D | mk_safe.c | 71 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 D | mk_priv.c | 69 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-13.1/sys/rpc/ |
| H A D | rpcsec_tls.h | 63 enum clnt_stat rpctls_cl_handlerecord(uint64_t sec, uint64_t usec, 65 enum clnt_stat rpctls_srv_handlerecord(uint64_t sec, uint64_t usec, 67 enum clnt_stat rpctls_cl_disconnect(uint64_t sec, uint64_t usec, 69 enum clnt_stat rpctls_srv_disconnect(uint64_t sec, uint64_t usec,
|
| /freebsd-13.1/contrib/ntp/lib/isc/tests/ |
| H A D | isctest.c | 162 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-13.1/sys/dev/rtwn/pci/ |
| H A D | rtwn_pci_reg.c | 114 rtwn_pci_delay(struct rtwn_softc *sc, int usec) in rtwn_pci_delay() argument 116 if (usec < 1000) in rtwn_pci_delay() 117 DELAY(usec); in rtwn_pci_delay() 120 msecs_to_ticks(usec / 1000)); in rtwn_pci_delay()
|
| /freebsd-13.1/sys/rpc/rpcsec_tls/ |
| H A D | rpctls_impl.c | 413 *sslp++ = res.usec; in rpctls_connect() 444 rpctls_cl_handlerecord(uint64_t sec, uint64_t usec, uint64_t ssl, in rpctls_cl_handlerecord() argument 460 arg.usec = usec; in rpctls_cl_handlerecord() 470 rpctls_srv_handlerecord(uint64_t sec, uint64_t usec, uint64_t ssl, in rpctls_srv_handlerecord() argument 486 arg.usec = usec; in rpctls_srv_handlerecord() 497 rpctls_cl_disconnect(uint64_t sec, uint64_t usec, uint64_t ssl, in rpctls_cl_disconnect() argument 513 arg.usec = usec; in rpctls_cl_disconnect() 523 rpctls_srv_disconnect(uint64_t sec, uint64_t usec, uint64_t ssl, in rpctls_srv_disconnect() argument 539 arg.usec = usec; in rpctls_srv_disconnect() 581 *sslp++ = res.usec; in rpctls_server()
|
| H A D | rpctlscd.x | 39 uint64_t usec; member 45 uint64_t usec; member 55 uint64_t usec; member
|
| H A D | rpctlssd.x | 35 uint64_t usec; member 43 uint64_t usec; member 53 uint64_t usec; member
|
| /freebsd-13.1/tools/tools/netmap/ |
| H A D | lb.c | 243 usec = (cur.t.tv_sec - prev.t.tv_sec) * 1000000 + in print_stats() 261 if (usec) { in print_stats() 266 pps = (x.pkts*1000000 + usec/2) / usec; in print_stats() 267 dps = (x.drop*1000000 + usec/2) / usec; in print_stats() 268 bps = ((x.bytes*1000000 + usec/2) / usec) * 8; in print_stats() 269 dbps = ((x.drop_bytes*1000000 + usec/2) / usec) * 8; in print_stats() 302 if (usec) { in print_stats() 307 pps = (x.pkts*1000000 + usec/2) / usec; in print_stats() 308 dps = (x.drop*1000000 + usec/2) / usec; in print_stats() 309 bps = ((x.bytes*1000000 + usec/2) / usec) * 8; in print_stats() [all …]
|
| /freebsd-13.1/sys/riscv/riscv/ |
| H A D | timer.c | 265 DELAY(int usec) in DELAY() argument 275 for (; usec > 0; usec--) in DELAY() 295 if (usec >= (0x80000000U / counts_per_usec)) in DELAY() 298 counts = usec * counts_per_usec; in DELAY()
|
| /freebsd-13.1/sys/compat/linuxkpi/common/include/linux/ |
| H A D | jiffies.h | 100 usecs_to_jiffies(uint64_t usec) in usecs_to_jiffies() argument 104 if (usec > lkpi_usec2hz_max) in usecs_to_jiffies() 105 usec = lkpi_usec2hz_max; in usecs_to_jiffies() 106 result = howmany(usec * lkpi_usec2hz_rem, lkpi_usec2hz_div); in usecs_to_jiffies()
|
| /freebsd-13.1/sys/dev/rtwn/usb/ |
| H A D | rtwn_usb_reg.c | 168 rtwn_usb_delay(struct rtwn_softc *sc, int usec) in rtwn_usb_delay() argument 172 if (usec < 1000) in rtwn_usb_delay() 173 DELAY(usec); in rtwn_usb_delay() 175 usb_pause_mtx(&sc->sc_mtx, msecs_to_ticks(usec / 1000)); in rtwn_usb_delay()
|
| /freebsd-13.1/sys/arm/arm/ |
| H A D | mpcore_timer.c | 499 arm_tmr_delay(int usec, void *arg) in arm_tmr_delay() argument 515 if (usec >= (0x80000000U / counts_per_usec)) in arm_tmr_delay() 518 counts = usec * counts_per_usec; in arm_tmr_delay() 542 DELAY(int usec) in DELAY() argument 550 for (; usec > 0; usec--) in DELAY() 557 arm_tmr_delay(usec, sc); in DELAY()
|
| H A D | generic_timer.c | 112 static void arm_tmr_do_delay(int usec, void *); 536 arm_tmr_do_delay(int usec, void *arg) in arm_tmr_do_delay() argument 551 if (usec >= (0x80000000U / counts_per_usec)) in arm_tmr_do_delay() 554 counts = usec * counts_per_usec; in arm_tmr_do_delay() 567 DELAY(int usec) in DELAY() argument 577 for (; usec > 0; usec--) in DELAY() 585 arm_tmr_do_delay(usec, arm_tmr_sc); in DELAY()
|
| /freebsd-13.1/contrib/netbsd-tests/include/sys/ |
| H A D | t_types.c | 50 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-13.1/usr.sbin/watchdogd/ |
| H A D | watchdogd.c | 589 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-13.1/sys/dev/mlx5/mlx5_en/ |
| H A D | mlx5_en_dim.c | 47 MLX5_SET(cqc, cqc, cq_period, prof.usec); in mlx5e_dim_build_cq_param() 54 MLX5_SET(cqc, cqc, cq_period, prof.usec); in mlx5e_dim_build_cq_param() 94 cur_profile.usec, cur_profile.pkts); in mlx5e_dim_work()
|