Lines Matching refs:adj
399 #define CONV_HRESTIME(hrestsec, hrestnsec, adj, nslt, nano) \ argument
400 brz,pt adj, 3f; /* no adjustments, it's easy */ \
402 brlz,pn adj, 2f; /* if hrestime_adj negative */ \
404 subcc adj, nslt, %g0; /* hrestime_adj - nslt/16 */ \
405 movg %xcc, nslt, adj; /* adj by min(adj, nslt/16) */ \
407 add hrestnsec, adj, hrestnsec; /* delay: apply adjustment */ \
408 2: addcc adj, nslt, %g0; /* hrestime_adj + nslt/16 */ \
410 add hrestnsec, adj, hrestnsec; /* yes: hrest.nsec += adj */ \
566 clr %l5 ! delay: set adj to zero
569 srl %i1, ADJ_SHIFT, %l5 ! delay: %l5 = adj
571 addcc %l0, %l5, %g0 ! hrestime_adj < -adj ?
572 bl,pt %xcc, 2f ! yes, use current adj
573 neg %l5 ! delay: %l5 = -adj
575 mov %l0, %l5 ! no, so set adj = hrestime_adj
577 subcc %l0, %l5, %g0 ! hrestime_adj < adj ?
578 bl,a,pt %xcc, 2f ! yes, set adj = hrestime_adj
579 mov %l0, %l5 ! delay: adj = hrestime_adj
582 sub %l0, %l5, %l0 ! timedelta -= adj
590 add %i3, %l5, %i3 ! hrestime.nsec += adj