Home
last modified time | relevance | path

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

/titanic_44/usr/src/lib/commpage/common/
H A Dcp_main.c119 int lock_prev, nslt; in __cp_clock_gettime_realtime() local
127 nslt = (int)(__cp_gethrtime(cp) - cp->cp_hres_last_tick); in __cp_clock_gettime_realtime()
129 if (nslt < 0) { in __cp_clock_gettime_realtime()
135 now.tv_nsec += nslt; in __cp_clock_gettime_realtime()
141 nslt = (nslt >> ADJ_SHIFT); in __cp_clock_gettime_realtime()
142 if (nslt > hres_adj) in __cp_clock_gettime_realtime()
143 nslt = (int)hres_adj; in __cp_clock_gettime_realtime()
144 now.tv_nsec += nslt; in __cp_clock_gettime_realtime()
146 nslt = -(nslt >> ADJ_SHIFT); in __cp_clock_gettime_realtime()
147 if (nslt < hres_adj) in __cp_clock_gettime_realtime()
[all …]
/titanic_44/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 …]
/titanic_44/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 …]
/titanic_44/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()
/titanic_44/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()
/titanic_44/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
/titanic_44/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