Lines Matching refs:itp
776 itimerdecr(struct itimerval *itp, int usec) in itimerdecr() argument
778 if (itp->it_value.tv_usec < usec) { in itimerdecr()
779 if (itp->it_value.tv_sec == 0) { in itimerdecr()
781 usec -= itp->it_value.tv_usec; in itimerdecr()
784 itp->it_value.tv_usec += MICROSEC; in itimerdecr()
785 itp->it_value.tv_sec--; in itimerdecr()
787 itp->it_value.tv_usec -= usec; in itimerdecr()
789 if (timerisset(&itp->it_value)) in itimerdecr()
793 if (timerisset(&itp->it_interval)) { in itimerdecr()
794 itp->it_value = itp->it_interval; in itimerdecr()
795 itp->it_value.tv_usec -= usec; in itimerdecr()
796 if (itp->it_value.tv_usec < 0) { in itimerdecr()
797 itp->it_value.tv_usec += MICROSEC; in itimerdecr()
798 itp->it_value.tv_sec--; in itimerdecr()
801 itp->it_value.tv_usec = 0; /* sec is already 0 */ in itimerdecr()