Home
last modified time | relevance | path

Searched refs:nslt (Results 1 – 6 of 6) sorted by relevance

/onnv-gate/usr/src/uts/sun4u/sys/
H A Dmachclock.h114 #define GET_HRESTIME(hrestsec, hrestnsec, adj, nslt, nano, scr, hrlock, \ argument
120 ldx [scr + %lo(hres_last_tick)], nslt; \
125 subcc adj, nslt, nslt; /* nslt = ticks since last clockint */ \
126 movneg %xcc, %g0, nslt; /* ignore neg delta from tick skew */ \
130 NATIVE_TIME_TO_NSEC_SCALE(nslt, nano, gnt1, NSEC_SHIFT); \
140 #define GET_HRTIME(base, now, nslt, scale, scr, hrlock, gnt1, gnt2) \ argument
145 ldx [scr + %lo(hres_last_tick)], nslt; \
148 subcc now, nslt, nslt; /* nslt = ticks since last clockint */ \
149 movneg %xcc, %g0, nslt; /* ignore neg delta from tick skew */ \
152 NATIVE_TIME_TO_NSEC_SCALE(nslt, scale, gnt1, NSEC_SHIFT); \
[all …]
/onnv-gate/usr/src/uts/sun4v/sys/
H A Dmachclock.h227 #define GET_HRESTIME(hrestsec, hrestnsec, adj, nslt, nano, scr, hrlock, \ argument
233 ldx [scr + %lo(hres_last_tick)], nslt; \
239 subcc adj, nslt, nslt; /* nslt = ticks since last clockint */ \
240 movneg %xcc, %g0, nslt; /* ignore neg delta from tick skew */ \
244 NATIVE_TIME_TO_NSEC_SCALE(nslt, nano, gnt1, NSEC_SHIFT); \
254 #define GET_HRTIME(base, now, nslt, scale, scr, hrlock, gnt1, gnt2, label) \ argument
259 ldx [scr + %lo(hres_last_tick)], nslt; \
263 subcc now, nslt, nslt; /* nslt = ticks since last clockint */ \
264 movneg %xcc, %g0, nslt; /* ignore neg delta from tick skew */ \
267 NATIVE_TIME_TO_NSEC_SCALE(nslt, scale, gnt1, NSEC_SHIFT); \
[all …]
/onnv-gate/usr/src/uts/common/os/
H A Ddtrace_subr.c134 int i = 0, adj, nslt; in dtrace_gethrestime() local
160 nslt = dtrace_gethrtime() - snap.dthr_hrtime; in dtrace_gethrestime()
161 ASSERT(nslt >= 0); in dtrace_gethrestime()
168 adj = (nslt >> adj_shift); in dtrace_gethrestime()
172 adj = -(nslt >> adj_shift); in dtrace_gethrestime()
/onnv-gate/usr/src/uts/i86pc/os/
H A Dmachdep.c725 int nslt; /* nsec since last tick */ in pc_gethrestime() local
731 nslt = (int)(gethrtime() - hres_last_tick); in pc_gethrestime()
732 if (nslt < 0) { in pc_gethrestime()
740 now.tv_nsec += nslt; in pc_gethrestime()
743 adj = (nslt >> ADJ_SHIFT); in pc_gethrestime()
747 adj = -(nslt >> ADJ_SHIFT); in pc_gethrestime()
/onnv-gate/usr/src/uts/sun4u/cpu/
H A Dcommon_asm.s546 #define CONV_HRESTIME(hrestsec, hrestnsec, adj, nslt, nano) \ argument
548 add hrestnsec, nslt, hrestnsec; /* hrest.tv_nsec += nslt */ \
550 srlx nslt, ADJ_SHIFT, nslt; /* delay: nslt >>= 4 */ \
551 subcc adj, nslt, %g0; /* hrestime_adj - nslt/16 */ \
552 movg %xcc, nslt, adj; /* adj by min(adj, nslt/16) */ \
555 2: addcc adj, nslt, %g0; /* hrestime_adj + nslt/16 */ \
558 sub hrestnsec, nslt, hrestnsec; /* no: hrest.nsec -= nslt/16 */ \
738 add %i3, %i1, %i3 ! hrestime.nsec += nslt
/onnv-gate/usr/src/uts/sun4v/cpu/
H A Dcommon_asm.s394 add hrestnsec, nslt, hrestnsec; /* hrest.tv_nsec += nslt */ \
396 srlx nslt, ADJ_SHIFT, nslt; /* delay: nslt >>= 4 */ \
397 subcc adj, nslt, %g0; /* hrestime_adj - nslt/16 */ \
398 movg %xcc, nslt, adj; /* adj by min(adj, nslt/16) */ \
401 2: addcc adj, nslt, %g0; /* hrestime_adj + nslt/16 */ \
404 sub hrestnsec, nslt, hrestnsec; /* no: hrest.nsec -= nslt/16 */ \
584 add %i3, %i1, %i3 ! hrestime.nsec += nslt