Lines Matching refs:hrt
117 fmd_time_hrt2ftv(hrtime_t hrt, fmd_timeval_t *ftv)
121 tmp = (uint32_t)(hrt >> 30);
133 nsec = (uint32_t)hrt - (tmp << 9);
147 * between the corresponding 'hrt_base' and the event high-res time 'hrt',
152 hrtime_t hrt, fmd_timeval_t *ftv)
155 tod_base->ftv_nsec + (hrt - hrt_base), ftv);
178 * between these bits and the corresponding low bits of 'hrt' from 'hrt'.
181 * the full 64-bit hrtime of 't0' can be bigger than 'hrt'. In such case,
182 * we should just return 'hrt'.
185 * whether 'hrt' or 't0' happened first. We assume there should be short
186 * period between 'hrt' and 't0', therefore to check which one came first, we
189 * ((hrt - t0) & mask) < ((mask + 1) / 2)
192 fmd_time_ena2hrt(hrtime_t hrt, uint64_t ena)
200 if (((hrt - t0) & ((mask + 1) >> 1)) == 0)
201 hrt -= (hrt - t0) & mask;
206 if (((hrt - t0) & ((mask + 1) >> 1)) == 0)
207 hrt -= (hrt - t0) & mask;
211 return (hrt);
239 fmd_dprintf(FMD_DBG_TMR, "simulator tod base tv_sec=%lx hrt=%llx\n",
257 hrtime_t tod, hrt, sec, rem;
262 hrt = fts->fts_hrt;
266 sec = tod / NANOSEC + hrt / NANOSEC;
267 rem = tod % NANOSEC + hrt % NANOSEC;
279 hrtime_t hrt;
282 hrt = fts->fts_hrt;
285 return (hrt);
300 TRACE((FMD_DBG_TMR, "hrt clock set %llx", fts->fts_hrt));
301 fmd_dprintf(FMD_DBG_TMR, "hrt clock set %llx\n", fts->fts_hrt);
311 uint64_t hrt;
317 * apocalypse, then wait forever. We make 'hrt' unsigned so that the
321 hrt = UINT64_MAX;
323 hrt = fts->fts_hrt + delta;
325 while (fts->fts_hrt < hrt && fts->fts_cancel == 0)