Home
last modified time | relevance | path

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

12345

/netbsd-src/external/gpl3/gcc/dist/libgfortran/intrinsics/
H A Dcpu_time.c30 __cpu_time_1 (long *sec, long *usec) in __cpu_time_1() argument
36 *usec = user_usec + system_usec; in __cpu_time_1()
41 *usec = 0; in __cpu_time_1()
51 long sec, usec; in cpu_time_4() local
52 __cpu_time_1 (&sec, &usec); in cpu_time_4()
53 *time = sec + usec * GFC_REAL_4_LITERAL(1.e-6); in cpu_time_4()
62 long sec, usec; in cpu_time_8() local
63 __cpu_time_1 (&sec, &usec); in cpu_time_8()
64 *time = sec + usec * GFC_REAL_8_LITERAL(1.e-6); in cpu_time_8()
73 long sec, usec; in cpu_time_10() local
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libgfortran/intrinsics/
H A Dcpu_time.c30 __cpu_time_1 (long *sec, long *usec) in __cpu_time_1() argument
36 *usec = user_usec + system_usec; in __cpu_time_1()
41 *usec = 0; in __cpu_time_1()
51 long sec, usec; in cpu_time_4() local
52 __cpu_time_1 (&sec, &usec); in cpu_time_4()
53 *time = sec + usec * GFC_REAL_4_LITERAL(1.e-6); in cpu_time_4()
62 long sec, usec; in cpu_time_8() local
63 __cpu_time_1 (&sec, &usec); in cpu_time_8()
64 *time = sec + usec * GFC_REAL_8_LITERAL(1.e-6); in cpu_time_8()
73 long sec, usec; in cpu_time_10() local
[all …]
/netbsd-src/external/ibm-public/postfix/dist/src/util/
H A Dformat_tv.c67 VSTRING *format_tv(VSTRING *buf, long sec, long usec, in format_tv() argument
81 if (sec < 0 || usec < 0 || usec > MILLION) in format_tv()
82 msg_panic("format_tv: bad time %lds %ldus", sec, usec); in format_tv()
97 while (usec >= wid * ures) in format_tv()
106 usec += ures / 2; in format_tv()
107 if (usec >= MILLION) { in format_tv()
109 usec -= MILLION; in format_tv()
117 if (usec >= ures) { in format_tv()
119 for (rem = usec, n = MILLION / 10; rem >= ures && n > 0; n /= 10) { in format_tv()
140 int usec; in main() local
[all …]
H A Drand_sleep.c54 unsigned usec; in rand_sleep() local
67 usec = (delay - variation / 2) + variation * (double) myrand() / RAND_MAX; in rand_sleep()
68 doze(usec); in rand_sleep()
/netbsd-src/sys/arch/arm/at91/
H A Dat91st.c121 static uint32_t usec_to_timer_count(uint32_t usec)
126 result = (AT91_SCLK * usec) / 1000000;
128 if ((result * 1000000) != (usec * AT91_SCLK))
250 static void udelay(unsigned int usec);
350 static void udelay(unsigned int usec) in udelay() argument
355 usec = (usec * 1000 + AT91_SCLK - 1) / AT91_SCLK + 1; in udelay()
360 if (diff >= usec) { in udelay()
364 usec -= diff; in udelay()
378 delay(unsigned int usec) in delay() argument
388 if (usec >= USEC_PER_TICK) in delay()
[all …]
H A Dat91tctmr.c118 usec_to_timer_count(uint32_t usec)
123 result = (AT91_SCLK * usec) / 1000000;
125 if ((result * 1000000) != (usec * AT91_SCLK))
271 static void udelay(unsigned int usec);
297 static void udelay(unsigned int usec) in udelay() argument
304 if (usec > 0) { in udelay()
332 if (usec <= diff) in udelay()
336 usec -= diff; in udelay()
352 delay(unsigned int usec) in delay() argument
363 if (usec >= sc->sc_usec_per_tick) { in delay()
[all …]
/netbsd-src/sys/dev/nor/
H A Dcfi_0002.c109 u_long usec = 1UL << shft; in cfi_0002_time_write_nbyte() local
110 return usec; in cfi_0002_time_write_nbyte()
121 u_long usec = 1000UL << shft; in cfi_0002_time_erase_blk() local
122 return usec; in cfi_0002_time_erase_blk()
133 u_long usec = 1000UL << shft; in cfi_0002_time_erase_all() local
134 return usec; in cfi_0002_time_erase_all()
392 cfi_0002_busy(device_t self, flash_off_t offset, u_long usec) in cfi_0002_busy() argument
401 return cfi_0002_busy_wait(cfi, offset, usec); in cfi_0002_busy()
408 cfi_0002_busy_wait(struct cfi * const cfi, flash_off_t offset, u_long usec) in cfi_0002_busy_wait() argument
417 if (usec > cfi->cfi_0002_stats.busy_usec_max) in cfi_0002_busy_wait()
[all …]
/netbsd-src/external/mpl/dhcp/dist/common/
H A Ddispatch.c216 int usec; local
276 usec = when->tv_usec - cur_tv.tv_usec;
278 if ((when->tv_usec != 0) && (usec < 0)) {
280 usec += USEC_MAX;
285 usec = 0;
291 usec = 0;
292 } else if (usec < 0) {
293 usec = 0;
294 } else if (usec >= USEC_MAX) {
295 usec = USEC_MAX - 1;
[all …]
/netbsd-src/external/bsd/ntp/dist/util/
H A Dprecision.c131 long usec; in default_get_precision() local
133 usec = 0; in default_get_precision()
143 for (i = 0; i < MINLOOPS && usec < HUSECS;) { in default_get_precision()
155 usec += diff; in default_get_precision()
164 if (usec >= HUSECS) { in default_get_precision()
166 usec); in default_get_precision()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dmk_safe.c73 krb5_us_timeofday (context, &rdata.timestamp, &rdata.usec); in krb5_mk_safe()
77 s.safe_body.usec = &rdata.usec; in krb5_mk_safe()
80 s.safe_body.usec = NULL; in krb5_mk_safe()
85 outdata->usec = rdata.usec; in krb5_mk_safe()
H A Dtime.c55 int32_t usec) in krb5_set_real_time() argument
67 if (usec >= 0) { in krb5_set_real_time()
68 context->kdc_usec_offset = usec - tv.tv_usec; in krb5_set_real_time()
99 int32_t *usec) in krb5_us_timeofday() argument
106 *usec = tv.tv_usec; /* XXX */ in krb5_us_timeofday()
H A Dmk_priv.c71 krb5_us_timeofday (context, &rdata.timestamp, &rdata.usec); in krb5_mk_priv()
75 part.usec = &rdata.usec; in krb5_mk_priv()
78 part.usec = NULL; in krb5_mk_priv()
83 outdata->usec = rdata.usec; in krb5_mk_priv()
H A Drd_priv.c140 part.usec == NULL || in krb5_rd_priv()
174 if(part.usec) in krb5_rd_priv()
175 outdata->usec = *part.usec; in krb5_rd_priv()
H A Dget_for_creds.c288 int32_t usec; in krb5_get_forwarded_creds() local
290 krb5_us_timeofday (context, &sec, &usec); in krb5_get_forwarded_creds()
298 ALLOC(enc_krb_cred_part.usec, 1); in krb5_get_forwarded_creds()
299 if (enc_krb_cred_part.usec == NULL) { in krb5_get_forwarded_creds()
303 *enc_krb_cred_part.usec = usec; in krb5_get_forwarded_creds()
306 enc_krb_cred_part.usec = NULL; in krb5_get_forwarded_creds()
H A Drd_safe.c163 safe.safe_body.usec == NULL || in krb5_rd_safe()
207 if(safe.safe_body.usec) in krb5_rd_safe()
208 outdata->usec = *safe.safe_body.usec; in krb5_rd_safe()
/netbsd-src/external/bsd/libfido2/dist/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()
/netbsd-src/external/bsd/wpa/dist/src/utils/
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()
/netbsd-src/sys/kern/
H A Dsubr_time.c96 * usec has great enough resolution for hz, so convert to a in tvtohz()
70 long sec, usec; tvtohz() local
/netbsd-src/external/bsd/libevent/dist/
H A Devutil_time.c150 __int64 usec; in evutil_usleep_() local
154 usec = tv->tv_sec * 1000000LL + tv->tv_usec; in evutil_usleep_()
155 if (!usec) in evutil_usleep_()
158 li.QuadPart = -10LL * usec; in evutil_usleep_()
410 ev_uint64_t abstime, usec; in evutil_gettime_monotonic_() local
419 usec = (abstime * base->mach_timebase_units.numer) in evutil_gettime_monotonic_()
421 tp->tv_sec = usec / 1000000; in evutil_gettime_monotonic_()
422 tp->tv_usec = usec % 1000000; in evutil_gettime_monotonic_()
/netbsd-src/external/bsd/iscsi/dist/doc/
H A DPERFORMANCE14 SCSI op 0x28: 1000 iters in 0.24 sec --> 244.38 usec
15 SCSI op 0x2a: 1000 iters in 0.25 sec --> 249.78 usec
16 SCSI op 0x25: 1000 iters in 0.25 sec --> 250.12 usec
49 SCSI op 0x28: 1000 iters in 25 jiffies --> 250 usec
50 SCSI op 0x2a: 1000 iters in 25 jiffies --> 250 usec
51 SCSI op 0x25: 1000 iters in 25 jiffies --> 250 usec
/netbsd-src/sys/external/bsd/drm2/include/linux/
H A Djiffies.h87 usecs_to_jiffies(unsigned int usec) in usecs_to_jiffies() argument
90 .tv_sec = usec / 1000000, in usecs_to_jiffies()
91 .tv_usec = usec % 1000000, in usecs_to_jiffies()
/netbsd-src/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()
/netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bus/
H A Dnouveau_nvkm_subdev_bus_hwsq.c174 u8 shift = 0, usec = nsec / 1000; in nvkm_hwsq_nsec() local
175 while (usec & ~3) { in nvkm_hwsq_nsec()
176 usec >>= 2; in nvkm_hwsq_nsec()
181 hwsq_cmd(hwsq, 1, (u8[]){ 0x00 | (shift << 2) | usec }); in nvkm_hwsq_nsec()
/netbsd-src/sys/arch/alpha/alpha/
H A Dqemu.c76 qemu_delay(unsigned long usec) in qemu_delay() argument
82 const unsigned long nsec = usec * 1000; in qemu_delay()
83 KASSERT(nsec > usec); in qemu_delay()
/netbsd-src/external/bsd/ntp/dist/include/
H A Dtimevalops.h87 long usec; \
89 usec = (tv)->tv_usec; \
91 usec = -usec; \
95 TVUTOTSF(usec, (ts)->l_uf); \

12345