Lines Matching refs:hrtime_t
45 hrtime_t
52 fmd_time_addhrtime(hrtime_t delta)
58 fmd_time_waithrtime(hrtime_t delta)
78 fmd_time_sync(fmd_timeval_t *ftv, hrtime_t *hrp, uint_t samples)
81 hrtime_t hrtbase, hrtmin = INT64_MAX;
86 hrtime_t t0, t1, delta;
117 fmd_time_hrt2ftv(hrtime_t hrt, fmd_timeval_t *ftv)
151 fmd_time_hrt2tod(hrtime_t hrt_base, const fmd_timeval_t *tod_base,
152 hrtime_t hrt, fmd_timeval_t *ftv)
164 fmd_time_tod2hrt(hrtime_t hrt_base, const fmd_timeval_t *tod_base,
165 const fmd_timeval_t *ftv, hrtime_t *hrtp)
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;
191 hrtime_t
192 fmd_time_ena2hrt(hrtime_t hrt, uint64_t ena)
194 hrtime_t t0, mask;
215 * To implement a simulated clock, we keep track of an hrtime_t value which
219 * return subsequent time-of-day values by adjusting TOD using the hrtime_t
221 * implemented by waiting on fts->fts_cv for the hrtime_t to increment.
233 fts->fts_tod = (hrtime_t)tv.tv_sec * NANOSEC +
234 (hrtime_t)tv.tv_usec * (NANOSEC / MICROSEC);
257 hrtime_t tod, hrt, sec, rem;
275 static hrtime_t
279 hrtime_t hrt;
289 fmd_simulator_add(hrtime_t delta)
308 fmd_simulator_wait(hrtime_t delta)
353 fmd_native_wait(hrtime_t delta)