Lines Matching refs:adj
546 #define CONV_HRESTIME(hrestsec, hrestnsec, adj, nslt, nano) \ argument
547 brz,pt adj, 3f; /* no adjustments, it's easy */ \
549 brlz,pn adj, 2f; /* if hrestime_adj negative */ \
551 subcc adj, nslt, %g0; /* hrestime_adj - nslt/16 */ \
552 movg %xcc, nslt, adj; /* adj by min(adj, nslt/16) */ \
554 add hrestnsec, adj, hrestnsec; /* delay: apply adjustment */ \
555 2: addcc adj, nslt, %g0; /* hrestime_adj + nslt/16 */ \
557 add hrestnsec, adj, hrestnsec; /* yes: hrest.nsec += adj */ \
713 clr %l5 ! delay: set adj to zero
716 srl %i1, ADJ_SHIFT, %l5 ! delay: %l5 = adj
718 addcc %l0, %l5, %g0 ! hrestime_adj < -adj ?
719 bl,pt %xcc, 2f ! yes, use current adj
720 neg %l5 ! delay: %l5 = -adj
722 mov %l0, %l5 ! no, so set adj = hrestime_adj
724 subcc %l0, %l5, %g0 ! hrestime_adj < adj ?
725 bl,a,pt %xcc, 2f ! yes, set adj = hrestime_adj
726 mov %l0, %l5 ! delay: adj = hrestime_adj
729 sub %l0, %l5, %l0 ! timedelta -= adj
737 add %i3, %l5, %i3 ! hrestime.nsec += adj