Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/commpage/common/
H A Dcp_main.c127 int lock_prev, nslt; in __cp_clock_gettime_realtime() local
137 if (nslt < 0) { in __cp_clock_gettime_realtime()
143 now.tv_nsec += nslt; in __cp_clock_gettime_realtime()
149 nslt = (nslt >> ADJ_SHIFT); in __cp_clock_gettime_realtime()
150 if (nslt > hres_adj) in __cp_clock_gettime_realtime()
151 nslt = (int)hres_adj; in __cp_clock_gettime_realtime()
152 now.tv_nsec += nslt; in __cp_clock_gettime_realtime()
154 nslt = -(nslt >> ADJ_SHIFT); in __cp_clock_gettime_realtime()
155 if (nslt < hres_adj) in __cp_clock_gettime_realtime()
156 nslt = (int)hres_adj; in __cp_clock_gettime_realtime()
[all …]
/illumos-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 …]
/illumos-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 …]
/illumos-gate/usr/src/uts/common/os/
H A Ddtrace_subr.c135 int i = 0, adj, nslt; in dtrace_gethrestime() local
161 nslt = dtrace_gethrtime() - snap.dthr_hrtime; in dtrace_gethrestime()
162 ASSERT(nslt >= 0); in dtrace_gethrestime()
169 adj = (nslt >> adj_shift); in dtrace_gethrestime()
173 adj = -(nslt >> adj_shift); in dtrace_gethrestime()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dmachdep.c736 int nslt; /* nsec since last tick */ in pc_gethrestime() local
742 nslt = (int)(gethrtime() - hres_last_tick); in pc_gethrestime()
743 if (nslt < 0) { in pc_gethrestime()
751 now.tv_nsec += nslt; in pc_gethrestime()
754 adj = (nslt >> ADJ_SHIFT); in pc_gethrestime()
758 adj = -(nslt >> ADJ_SHIFT); in pc_gethrestime()
/illumos-gate/usr/src/uts/sun4v/cpu/
H A Dcommon_asm.S240 add hrestnsec, nslt, hrestnsec; /* hrest.tv_nsec += nslt */ \
242 srlx nslt, ADJ_SHIFT, nslt; /* delay: nslt >>= 4 */ \
243 subcc adj, nslt, %g0; /* hrestime_adj - nslt/16 */ \
244 movg %xcc, nslt, adj; /* adj by min(adj, nslt/16) */ \
247 2: addcc adj, nslt, %g0; /* hrestime_adj + nslt/16 */ \
250 sub hrestnsec, nslt, hrestnsec; /* no: hrest.nsec -= nslt/16 */ \
430 add %i3, %i1, %i3 ! hrestime.nsec += nslt
/illumos-gate/usr/src/uts/sun4u/cpu/
H A Dcommon_asm.S399 #define CONV_HRESTIME(hrestsec, hrestnsec, adj, nslt, nano) \ argument
401 add hrestnsec, nslt, hrestnsec; /* hrest.tv_nsec += nslt */ \
403 srlx nslt, ADJ_SHIFT, nslt; /* delay: nslt >>= 4 */ \
404 subcc adj, nslt, %g0; /* hrestime_adj - nslt/16 */ \
405 movg %xcc, nslt, adj; /* adj by min(adj, nslt/16) */ \
408 2: addcc adj, nslt, %g0; /* hrestime_adj + nslt/16 */ \
411 sub hrestnsec, nslt, hrestnsec; /* no: hrest.nsec -= nslt/16 */ \
591 add %i3, %i1, %i3 ! hrestime.nsec += nslt