Home
last modified time | relevance | path

Searched refs:NANOSEC (Results 1 – 25 of 243) sorted by relevance

12345678910

/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_string.c154 { "ns", NANOSEC / NANOSEC }, in inj_strtime()
155 { "nsec", NANOSEC / NANOSEC }, in inj_strtime()
156 { "us", NANOSEC / MICROSEC }, in inj_strtime()
157 { "usec", NANOSEC / MICROSEC }, in inj_strtime()
158 { "ms", NANOSEC / MILLISEC }, in inj_strtime()
159 { "msec", NANOSEC / MILLISEC }, in inj_strtime()
160 { "s", NANOSEC / SEC }, in inj_strtime()
161 { "sec", NANOSEC / SEC }, in inj_strtime()
162 { "m", NANOSEC * (hrtime_t)60 }, in inj_strtime()
163 { "min", NANOSEC * (hrtime_t)60 }, in inj_strtime()
[all …]
H A Dinj_log.c47 hrtime_t rec_sec = rp->rec_sec + rp->rec_nsec / NANOSEC; in inj_logfile_event()
48 hrtime_t rec_nsec = rp->rec_nsec % NANOSEC; in inj_logfile_event()
76 delta = (rec_sec - ilf->ilf_sec) * NANOSEC; in inj_logfile_event()
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_time.c135 while (nsec >= NANOSEC) { in fmd_time_hrt2ftv()
136 nsec -= NANOSEC; in fmd_time_hrt2ftv()
154 fmd_time_hrt2ftv(tod_base->ftv_sec * NANOSEC + in fmd_time_hrt2tod()
233 fts->fts_tod = (hrtime_t)tv.tv_sec * NANOSEC + in fmd_simulator_init()
234 (hrtime_t)tv.tv_usec * (NANOSEC / MICROSEC); in fmd_simulator_init()
266 sec = tod / NANOSEC + hrt / NANOSEC; in fmd_simulator_tod()
267 rem = tod % NANOSEC + hrt % NANOSEC; in fmd_simulator_tod()
269 tvp->tv_sec = sec + rem / NANOSEC; in fmd_simulator_tod()
270 tvp->tv_usec = (rem % NANOSEC) / (NANOSEC / MICROSEC); in fmd_simulator_tod()
357 tv.tv_sec = delta / NANOSEC; in fmd_native_wait()
[all …]
H A Dfmd_conf.c421 { "ns", NANOSEC / NANOSEC }, in set_time()
422 { "nsec", NANOSEC / NANOSEC }, in set_time()
423 { "us", NANOSEC / MICROSEC }, in set_time()
424 { "usec", NANOSEC / MICROSEC }, in set_time()
425 { "ms", NANOSEC / MILLISEC }, in set_time()
426 { "msec", NANOSEC / MILLISEC }, in set_time()
427 { "s", NANOSEC / SEC }, in set_time()
428 { "sec", NANOSEC / SEC }, in set_time()
429 { "m", NANOSEC * (hrtime_t)60 }, in set_time()
430 { "min", NANOSEC * (hrtime_t)60 }, in set_time()
[all …]
/illumos-gate/usr/src/uts/common/dtrace/
H A Dprofile.c210 { "ns", NANOSEC / NANOSEC }, in profile_provide()
211 { "nsec", NANOSEC / NANOSEC }, in profile_provide()
212 { "us", NANOSEC / MICROSEC }, in profile_provide()
213 { "usec", NANOSEC / MICROSEC }, in profile_provide()
214 { "ms", NANOSEC / MILLISEC }, in profile_provide()
215 { "msec", NANOSEC / MILLISEC }, in profile_provide()
216 { "s", NANOSEC / SEC }, in profile_provide()
217 { "sec", NANOSEC / SEC }, in profile_provide()
218 { "m", NANOSEC * (hrtime_t)60 }, in profile_provide()
219 { "min", NANOSEC * (hrtime_t)60 }, in profile_provide()
[all …]
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_timeout.c190 now = (hrtime_t)tspec.tv_sec * (hrtime_t)NANOSEC + tspec.tv_nsec; in sip_timeout()
191 future_time = (hrtime_t)timeout_time->tv_sec * (hrtime_t)NANOSEC + in sip_timeout()
194 future_time = (hrtime_t)timeout_time->tv_sec * (hrtime_t)NANOSEC + in sip_timeout()
254 current_time = (hrtime_t)tspec.tv_sec * (hrtime_t)NANOSEC + in sip_schedule_to_functions()
312 delta = (hrtime_t)5 * NANOSEC; in sip_timer_thr()
316 to.tv_sec = tim.tv_sec + (delta / NANOSEC); in sip_timer_thr()
318 (delta % NANOSEC); in sip_timer_thr()
319 if (to.tv_nsec > NANOSEC) { in sip_timer_thr()
320 to.tv_sec += (to.tv_nsec / NANOSEC); in sip_timer_thr()
321 to.tv_nsec %= NANOSEC; in sip_timer_thr()
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dtime_util.c42 tsp->tv_sec = hrt / NANOSEC; in hrt2ts()
43 tsp->tv_nsec = hrt % NANOSEC; in hrt2ts()
60 while (nsec >= NANOSEC) { in hrt2ts()
61 nsec -= NANOSEC; in hrt2ts()
89 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec + NANOSEC; in abstime_to_reltime()
106 if ((ulong_t)abstime->tv_nsec >= NANOSEC) in abstime_to_reltime()
/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/dtrace/test/tst/common/rates/
H A Dtst.statusrate.d41 inline uint64_t NANOSEC = 1000000000; variable
51 /(this->delta = timestamp - ts) > 2 * NANOSEC/
57 /this->delta <= 2 * NANOSEC/
65 /this->delta > 20 * NANOSEC/
/illumos-gate/usr/src/uts/intel/io/vmm/io/
H A Dvrtc.c216 NANOSEC / 256, in rega_period()
217 NANOSEC / 128, in rega_period()
222 NANOSEC / 512, in rega_period()
223 NANOSEC / 256, in rega_period()
224 NANOSEC / 128, in rega_period()
225 NANOSEC / 64, in rega_period()
226 NANOSEC / 32, in rega_period()
227 NANOSEC / 16, in rega_period()
228 NANOSEC / 8, in rega_period()
229 NANOSEC / 4, in rega_period()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dtimers.c866 t1->tv_nsec += NANOSEC; in timespecfix()
870 t1->tv_nsec -= NANOSEC; in timespecfix()
913 nsec += NANOSEC; in timespectohz()
916 nsec -= NANOSEC; in timespectohz()
953 nsec += NANOSEC; in timespectohz64()
956 nsec -= NANOSEC; in timespectohz64()
1199 while (nsec >= NANOSEC) { in hrt2ts()
1200 nsec -= NANOSEC; in hrt2ts()
1272 tvp->tv_usec = (hrt % NANOSEC) / (NANOSEC / MICROSEC); in hrt2tv()
1290 while (nsec >= NANOSEC) { in hrt2tv()
[all …]
/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/lib/libdtrace/common/
H A Ddt_options.c701 { "ns", NANOSEC / NANOSEC }, in dt_opt_rate()
702 { "nsec", NANOSEC / NANOSEC }, in dt_opt_rate()
703 { "us", NANOSEC / MICROSEC }, in dt_opt_rate()
704 { "usec", NANOSEC / MICROSEC }, in dt_opt_rate()
705 { "ms", NANOSEC / MILLISEC }, in dt_opt_rate()
706 { "msec", NANOSEC / MILLISEC }, in dt_opt_rate()
707 { "s", NANOSEC / SEC }, in dt_opt_rate()
708 { "sec", NANOSEC / SEC }, in dt_opt_rate()
709 { "m", NANOSEC * (hrtime_t)60 }, in dt_opt_rate()
710 { "min", NANOSEC * (hrtime_t)60 }, in dt_opt_rate()
[all …]
/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/syscall/
H A Dadjtime.c73 ndelta = (int64_t)atv.tv_sec * NANOSEC + atv.tv_usec * 1000; in adjtime()
88 oatv.tv_sec = old_delta / NANOSEC; in adjtime()
89 oatv.tv_usec = (old_delta % NANOSEC) / 1000; in adjtime()
/illumos-gate/usr/src/cmd/fm/fmdump/common/
H A Dfmdump.c243 { "ns", NANOSEC / NANOSEC }, in gettimeopt()
244 { "nsec", NANOSEC / NANOSEC }, in gettimeopt()
245 { "us", NANOSEC / MICROSEC }, in gettimeopt()
246 { "usec", NANOSEC / MICROSEC }, in gettimeopt()
247 { "ms", NANOSEC / MILLISEC }, in gettimeopt()
248 { "msec", NANOSEC / MILLISEC }, in gettimeopt()
249 { "s", NANOSEC / SEC }, in gettimeopt()
250 { "sec", NANOSEC / SEC }, in gettimeopt()
251 { "m", NANOSEC * (hrtime_t)60 }, in gettimeopt()
317 tvp->tv_sec = nsec / NANOSEC; in gettimeopt()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dtime.h247 #define NANOSEC 1000000000LL macro
249 #define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC))
250 #define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC))
252 #define USEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MICROSEC))
253 #define NSEC2USEC(n) ((n) / (NANOSEC / MICROSEC))
255 #define NSEC2SEC(n) ((n) / (NANOSEC / SEC))
256 #define SEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / SEC))
/illumos-gate/usr/src/uts/common/conf/
H A Dparam.c656 nsec_per_tick = NANOSEC / hz; in param_init()
667 time_res[TR_NANOSEC] = NANOSEC / NANOSEC; in param_init()
668 time_res[TR_MICROSEC] = NANOSEC / MICROSEC; in param_init()
669 time_res[TR_MILLISEC] = NANOSEC / MILLISEC; in param_init()
670 time_res[TR_SEC] = NANOSEC / SEC; in param_init()
/illumos-gate/usr/src/uts/sun4/io/
H A Dcbe.c51 hrtime_t q = ts / NANOSEC; in hrtime2tick()
52 hrtime_t r = ts - (q * NANOSEC); in hrtime2tick()
54 return (q * sys_tick_freq + ((r * sys_tick_freq) / NANOSEC)); in hrtime2tick()
269 hrtime_t resolution = NANOSEC / sys_tick_freq; in cbe_init()
/illumos-gate/usr/src/uts/i86pc/ml/
H A Dgenassym.c84 printf("#define\tNANOSEC 0x%llx\n", NANOSEC); in main()
139 printf("#define\tNSEC_PER_CLOCK_TICK 0x%llx\n", NANOSEC / 100); in main()
141 printf("#define\tNSEC_PER_COUNTER_TICK 0x%llx\n", NANOSEC / PIT_HZ); in main()
/illumos-gate/usr/src/uts/i86xpv/io/
H A Dxpvtod.c74 (hrtime_t)wcts.tv_nsec + (hrtime_t)wcts.tv_sec * NANOSEC; in todxen_get()
75 ts.tv_sec = (time_t)(now / NANOSEC); in todxen_get()
76 ts.tv_nsec = (long)(now % NANOSEC); in todxen_get()
/illumos-gate/usr/src/lib/commpage/common/
H A Dcp_main.c58 #define NANOSEC 1000000000LL macro
163 while ((unsigned long)now.tv_nsec >= NANOSEC) { in __cp_clock_gettime_realtime()
164 now.tv_nsec -= NANOSEC; in __cp_clock_gettime_realtime()
/illumos-gate/usr/src/cmd/fm/fmstat/common/
H A Dfmstat.c173 { "d", NANOSEC * (hrtime_t)(24 * 60 * 60) }, in time2str()
174 { "h", NANOSEC * (hrtime_t)(60 * 60) }, in time2str()
175 { "m", NANOSEC * (hrtime_t)60 }, in time2str()
176 { "s", NANOSEC / SEC }, in time2str()
177 { "ms", NANOSEC / MILLISEC }, in time2str()
178 { "us", NANOSEC / MICROSEC }, in time2str()
179 { "ns", NANOSEC / NANOSEC }, in time2str()
312 elapsed = delta ? (double)delta : (double)NANOSEC; in modstat_compute()
356 mp->m_svc = ((avg_w + avg_d) * (double)MILLISEC) / (double)NANOSEC; in modstat_compute()
/illumos-gate/usr/src/lib/commpage/amd64/
H A Dcp_subr.S34 #define NANOSEC 0x3b9aca00 macro
375 imulq $NANOSEC, %rdx, %rdx
419 cmpq $NANOSEC, %r10
458 subq $NANOSEC, %r10
460 cmpq $NANOSEC, %r10

12345678910