Searched refs:NANOSEC (Results 1 - 25 of 225) sorted by relevance

123456789

/illumos-gate/usr/src/cmd/dtrace/test/tst/common/printf/
H A Dtst.printT.ksh41 inline uint64_t NANOSEC = 1000000000;
45 printf("%T\n%T\n%T", (uint64_t)0, (uint64_t)1062609821 * NANOSEC,
46 (uint64_t)0x7fffffff * NANOSEC);
H A Dtst.printY.ksh41 inline uint64_t NANOSEC = 1000000000;
45 printf("%Y\n%Y\n%Y", (uint64_t)0, (uint64_t)1062609821 * NANOSEC,
46 (uint64_t)0x7fffffff * NANOSEC);
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/rates/
H A Dtst.statusrate.d43 inline uint64_t NANOSEC = 1000000000;
53 /(this->delta = timestamp - ts) > 2 * NANOSEC/
59 /this->delta <= 2 * NANOSEC/
67 /this->delta > 20 * NANOSEC/
/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_string.c156 { "ns", NANOSEC / NANOSEC },
157 { "nsec", NANOSEC / NANOSEC },
158 { "us", NANOSEC / MICROSEC },
159 { "usec", NANOSEC / MICROSEC },
160 { "ms", NANOSEC / MILLISEC },
161 { "msec", NANOSEC / MILLISEC },
162 { "s", NANOSEC / SEC },
163 { "sec", NANOSEC / SE
[all...]
H A Dinj_log.c49 hrtime_t rec_sec = rp->rec_sec + rp->rec_nsec / NANOSEC;
50 hrtime_t rec_nsec = rp->rec_nsec % NANOSEC;
78 delta = (rec_sec - ilf->ilf_sec) * NANOSEC;
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_time.c103 ftv->ftv_nsec = todbase.tv_usec * (NANOSEC / MICROSEC);
135 while (nsec >= NANOSEC) {
136 nsec -= NANOSEC;
154 fmd_time_hrt2ftv(tod_base->ftv_sec * NANOSEC +
167 hrtime_t tod_hrt = tod_base->ftv_sec * NANOSEC + tod_base->ftv_nsec;
168 hrtime_t ftv_hrt = ftv->ftv_sec * NANOSEC + ftv->ftv_nsec;
233 fts->fts_tod = (hrtime_t)tv.tv_sec * NANOSEC +
234 (hrtime_t)tv.tv_usec * (NANOSEC / MICROSEC);
266 sec = tod / NANOSEC + hrt / NANOSEC;
[all...]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dtime_util.c57 while (nsec >= NANOSEC) {
58 nsec -= NANOSEC;
85 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec + NANOSEC;
102 if ((ulong_t)abstime->tv_nsec >= NANOSEC)
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dutil.h64 #define NSEC_TO_SEC(nsec) (nsec) / (long)NANOSEC
65 #define NSEC_TO_FRACNSEC(nsec) (nsec) % (long)NANOSEC
66 #define SEC_TO_NSEC(sec) (sec) * (long)NANOSEC
/illumos-gate/usr/src/uts/common/dtrace/
H A Dprofile.c109 hrtime_t profile_interval_min = NANOSEC / 5000; /* 5000 hz */
210 { "ns", NANOSEC / NANOSEC },
211 { "nsec", NANOSEC / NANOSEC },
212 { "us", NANOSEC / MICROSEC },
213 { "usec", NANOSEC / MICROSEC },
214 { "ms", NANOSEC / MILLISEC },
215 { "msec", NANOSEC / MILLISEC },
216 { "s", NANOSEC / SE
[all...]
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_timeout.c54 * LONG_SLEEP_TIME = (24 * 60 * 60 * NANOSEC)
192 now = (hrtime_t)tspec.tv_sec * (hrtime_t)NANOSEC + tspec.tv_nsec;
193 future_time = (hrtime_t)timeout_time->tv_sec * (hrtime_t)NANOSEC +
196 future_time = (hrtime_t)timeout_time->tv_sec * (hrtime_t)NANOSEC +
256 current_time = (hrtime_t)tspec.tv_sec * (hrtime_t)NANOSEC +
314 delta = (hrtime_t)5 * NANOSEC;
318 to.tv_sec = tim.tv_sec + (delta / NANOSEC);
320 (delta % NANOSEC);
321 if (to.tv_nsec > NANOSEC) {
322 to.tv_sec += (to.tv_nsec / NANOSEC);
[all...]
/illumos-gate/usr/src/uts/common/syscall/
H A Dadjtime.c75 ndelta = (int64_t)atv.tv_sec * NANOSEC + atv.tv_usec * 1000;
90 oatv.tv_sec = old_delta / NANOSEC;
91 oatv.tv_usec = (old_delta % NANOSEC) / 1000;
/illumos-gate/usr/src/lib/libzonestat/common/
H A Dzonestat_impl.h62 (ts).tv_sec += (time_t)((nsec) / NANOSEC); \
63 (ts).tv_nsec += (long)((nsec) % NANOSEC); \
64 if ((ts).tv_nsec > NANOSEC) { \
65 (ts).tv_sec += (ts).tv_nsec / NANOSEC; \
66 (ts).tv_nsec = (ts).tv_nsec % NANOSEC; \
74 if ((ts).tv_nsec > NANOSEC) { \
75 (ts).tv_sec += (ts).tv_nsec / NANOSEC; \
76 (ts).tv_nsec = (ts).tv_nsec % NANOSEC; \
85 delta.tv_nsec += NANOSEC; \
/illumos-gate/usr/src/cmd/stat/common/
H A Dcommon.c102 pause_tv.tv_sec = pause_left / NANOSEC;
103 pause_tv.tv_nsec = pause_left % NANOSEC;
/illumos-gate/usr/src/uts/i86xpv/io/
H A Dxpvtod.c76 (hrtime_t)wcts.tv_nsec + (hrtime_t)wcts.tv_sec * NANOSEC;
77 ts.tv_sec = (time_t)(now / NANOSEC);
78 ts.tv_nsec = (long)(now % NANOSEC);
/illumos-gate/usr/src/uts/i86pc/ml/
H A Dgenassym.c84 printf("#define\tNANOSEC 0x%llx\n", NANOSEC);
139 printf("#define\tNSEC_PER_CLOCK_TICK 0x%llx\n", NANOSEC / 100);
141 printf("#define\tNSEC_PER_COUNTER_TICK 0x%llx\n", NANOSEC / PIT_HZ);
/illumos-gate/usr/src/lib/commpage/common/
H A Dcp_main.c59 #define NANOSEC 1000000000LL macro
164 while ((unsigned long)now.tv_nsec >= NANOSEC) {
165 now.tv_nsec -= NANOSEC;
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/proc/
H A Dtst.sigwait.c61 ts.it_interval.tv_nsec = NANOSEC / 2;
/illumos-gate/usr/src/lib/fm/libfmd_log/common/
H A Dfmd_filter.c85 uint64_t nsec = ((struct timeval *)arg)->tv_usec * (NANOSEC / MICROSEC);
94 uint64_t nsec = ((struct timeval *)arg)->tv_usec * (NANOSEC / MICROSEC);
/illumos-gate/usr/src/uts/common/sys/
H A Dtime.h245 #define NANOSEC 1000000000LL macro
247 #define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC))
248 #define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC))
250 #define USEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MICROSEC))
251 #define NSEC2USEC(n) ((n) / (NANOSEC / MICROSEC))
253 #define NSEC2SEC(n) ((n) / (NANOSEC / SEC))
254 #define SEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / SEC))
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_space.c177 hrtime_t pci_intrpend_timeout = 5ll * NANOSEC; /* 5 seconds in nanoseconds */
178 hrtime_t pci_sync_buf_timeout = 1ll * NANOSEC; /* 1 second in nanoseconds */
179 hrtime_t pci_cdma_intr_timeout = 1ll * NANOSEC; /* consistent sync trigger */
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dcond.c179 ts.tv_sec = delta / NANOSEC;
180 ts.tv_nsec = delta % NANOSEC;
183 ts.tv_nsec = (delta % hz) * (NANOSEC / hz);
H A Dclock.c111 while (nsec >= NANOSEC) {
112 nsec -= NANOSEC;
/illumos-gate/usr/src/uts/common/os/
H A Dtimers.c355 min = MAX((int)(cyclic_getres() / (NANOSEC / MICROSEC)),
759 if (tv->tv_sec < 0 || tv->tv_nsec < 0 || tv->tv_nsec >= NANOSEC)
865 t1->tv_nsec += NANOSEC;
867 if (t1->tv_nsec >= NANOSEC) {
869 t1->tv_nsec -= NANOSEC;
912 nsec += NANOSEC;
913 } else if (nsec >= NANOSEC) {
915 nsec -= NANOSEC;
952 nsec += NANOSEC;
953 } else if (nsec >= NANOSEC) {
[all...]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dhardclk.c109 nsec_scale = (uint_t)(((u_longlong_t)NANOSEC << (32 - nsec_shift)) /
122 nsec_per_sys_tick = NANOSEC / sys_tick_freq;
/illumos-gate/usr/src/uts/sun4u/io/
H A Dhardclk.c129 nsec_scale = (uint_t)(((u_longlong_t)NANOSEC << (32 - nsec_shift)) /
142 nsec_per_sys_tick = NANOSEC / sys_tick_freq;

Completed in 89 milliseconds

123456789