| /freebsd-14.2/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() 116 ts->usec -= 1000000; in os_reltime_add_ms() [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()
|
| /freebsd-14.2/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-14.2/contrib/tcpdump/ |
| H A D | print-timed.c | 115 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-14.2/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-14.2/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-14.2/contrib/libfido2/fuzz/ |
| H A D | clock.c | 25 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-14.2/sys/dev/enic/ |
| H A D | vnic_enet.h | 10 #define INTR_COALESCE_USEC_TO_HW(usec) ((usec) * 2 / 3) argument 11 #define INTR_COALESCE_HW_TO_USEC(usec) ((usec) * 3 / 2) argument
|
| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | tar.sh | 77 uint64_t mx, usec; 114 usec = ((uint64_t)1000000 * 116 if (usec > mx) 117 mx = usec; 119 (double)usec / 1000000, path);
|
| H A D | unlink.sh | 30 uint64_t usec; 52 usec = ((uint64_t)1000000 * diff.tv_sec + diff.tv_usec); 53 if (usec > 500000) { 55 (double)usec / 1000000);
|
| /freebsd-14.2/sys/rpc/ |
| H A D | rpcsec_tls.h | 65 enum clnt_stat rpctls_cl_handlerecord(uint64_t sec, uint64_t usec, 67 enum clnt_stat rpctls_srv_handlerecord(uint64_t sec, uint64_t usec, 69 enum clnt_stat rpctls_cl_disconnect(uint64_t sec, uint64_t usec, 71 enum clnt_stat rpctls_srv_disconnect(uint64_t sec, uint64_t usec,
|
| /freebsd-14.2/sys/dev/rtwn/pci/ |
| H A D | rtwn_pci_reg.c | 112 rtwn_pci_delay(struct rtwn_softc *sc, int usec) in rtwn_pci_delay() argument 114 if (usec < 1000) in rtwn_pci_delay() 115 DELAY(usec); in rtwn_pci_delay() 118 msecs_to_ticks(usec / 1000)); in rtwn_pci_delay()
|
| /freebsd-14.2/sys/rpc/rpcsec_tls/ |
| H A D | rpctlscd.x | 38 uint64_t usec; member 44 uint64_t usec; member 54 uint64_t usec; member
|
| H A D | rpctlssd.x | 34 uint64_t usec; member 42 uint64_t usec; member 52 uint64_t usec; member
|
| H A D | rpctls_impl.c | 511 *sslp++ = res.usec; in rpctls_connect() 542 rpctls_cl_handlerecord(uint64_t sec, uint64_t usec, uint64_t ssl, in rpctls_cl_handlerecord() argument 558 arg.usec = usec; in rpctls_cl_handlerecord() 568 rpctls_srv_handlerecord(uint64_t sec, uint64_t usec, uint64_t ssl, int procpos, in rpctls_srv_handlerecord() argument 584 arg.usec = usec; in rpctls_srv_handlerecord() 595 rpctls_cl_disconnect(uint64_t sec, uint64_t usec, uint64_t ssl, in rpctls_cl_disconnect() argument 611 arg.usec = usec; in rpctls_cl_disconnect() 621 rpctls_srv_disconnect(uint64_t sec, uint64_t usec, uint64_t ssl, int procpos, in rpctls_srv_disconnect() argument 637 arg.usec = usec; in rpctls_srv_disconnect() 697 *sslp++ = res.usec; in rpctls_server()
|
| /freebsd-14.2/tools/tools/netmap/ |
| H A D | lb.c | 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() 308 bps = ((x.bytes*1000000 + usec/2) / usec) * 8; in print_stats() [all …]
|
| /freebsd-14.2/contrib/ntp/sntp/libevent/ |
| H A D | evutil_time.c | 147 __int64 usec; in evutil_usleep_() local 151 usec = tv->tv_sec * 1000000LL + tv->tv_usec; in evutil_usleep_() 152 if (!usec) in evutil_usleep_() 155 li.QuadPart = -10LL * usec; in evutil_usleep_() 407 ev_uint64_t abstime, usec; in evutil_gettime_monotonic_() local 416 usec = (abstime * base->mach_timebase_units.numer) in evutil_gettime_monotonic_() 418 tp->tv_sec = usec / 1000000; in evutil_gettime_monotonic_() 419 tp->tv_usec = usec % 1000000; in evutil_gettime_monotonic_()
|
| /freebsd-14.2/contrib/libevent/ |
| H A D | evutil_time.c | 147 __int64 usec; in evutil_usleep_() local 151 usec = tv->tv_sec * 1000000LL + tv->tv_usec; in evutil_usleep_() 152 if (!usec) in evutil_usleep_() 155 li.QuadPart = -10LL * usec; in evutil_usleep_() 407 ev_uint64_t abstime, usec; in evutil_gettime_monotonic_() local 416 usec = (abstime * base->mach_timebase_units.numer) in evutil_gettime_monotonic_() 418 tp->tv_sec = usec / 1000000; in evutil_gettime_monotonic_() 419 tp->tv_usec = usec % 1000000; in evutil_gettime_monotonic_()
|
| /freebsd-14.2/sys/dev/rtwn/usb/ |
| H A D | rtwn_usb_reg.c | 166 rtwn_usb_delay(struct rtwn_softc *sc, int usec) in rtwn_usb_delay() argument 170 if (usec < 1000) in rtwn_usb_delay() 171 DELAY(usec); in rtwn_usb_delay() 173 usb_pause_mtx(&sc->sc_mtx, msecs_to_ticks(usec / 1000)); in rtwn_usb_delay()
|
| /freebsd-14.2/sys/compat/linuxkpi/common/include/linux/ |
| H A D | jiffies.h | 99 usecs_to_jiffies(uint64_t usec) in usecs_to_jiffies() argument 103 if (usec > lkpi_usec2hz_max) in usecs_to_jiffies() 104 usec = lkpi_usec2hz_max; in usecs_to_jiffies() 105 result = howmany(usec * lkpi_usec2hz_rem, lkpi_usec2hz_div); in usecs_to_jiffies()
|
| /freebsd-14.2/sys/riscv/riscv/ |
| H A D | timer.c | 274 DELAY(int usec) in DELAY() argument 284 for (; usec > 0; usec--) in DELAY() 304 if (usec >= (0x80000000U / counts_per_usec)) in DELAY() 307 counts = usec * counts_per_usec; in DELAY()
|
| /freebsd-14.2/sys/arm/arm/ |
| H A D | mpcore_timer.c | 495 arm_tmr_delay(int usec, void *arg) in arm_tmr_delay() argument 511 if (usec >= (0x80000000U / counts_per_usec)) in arm_tmr_delay() 514 counts = usec * counts_per_usec; in arm_tmr_delay() 538 DELAY(int usec) in DELAY() argument 546 for (; usec > 0; usec--) in DELAY() 553 arm_tmr_delay(usec, sc); in DELAY()
|