Lines Matching refs:tv_nsec
264 ntvp->time.tv_nsec = atv.tv_nsec; in ntp_gettime1()
765 u_nsec = tsp->tv_nsec; in hardpps()
770 v_nsec = u_nsec - pps_tf[0].tv_nsec; in hardpps()
776 pps_tf[0].tv_nsec = u_nsec; in hardpps()
793 if (pps_tf[0].tv_nsec > pps_tf[1].tv_nsec) { in hardpps()
794 if (pps_tf[1].tv_nsec > pps_tf[2].tv_nsec) { in hardpps()
795 v_nsec = pps_tf[1].tv_nsec; /* 0 1 2 */ in hardpps()
796 u_nsec = pps_tf[0].tv_nsec - pps_tf[2].tv_nsec; in hardpps()
797 } else if (pps_tf[2].tv_nsec > pps_tf[0].tv_nsec) { in hardpps()
798 v_nsec = pps_tf[0].tv_nsec; /* 2 0 1 */ in hardpps()
799 u_nsec = pps_tf[2].tv_nsec - pps_tf[1].tv_nsec; in hardpps()
801 v_nsec = pps_tf[2].tv_nsec; /* 0 2 1 */ in hardpps()
802 u_nsec = pps_tf[0].tv_nsec - pps_tf[1].tv_nsec; in hardpps()
805 if (pps_tf[1].tv_nsec < pps_tf[2].tv_nsec) { in hardpps()
806 v_nsec = pps_tf[1].tv_nsec; /* 2 1 0 */ in hardpps()
807 u_nsec = pps_tf[2].tv_nsec - pps_tf[0].tv_nsec; in hardpps()
808 } else if (pps_tf[2].tv_nsec < pps_tf[0].tv_nsec) { in hardpps()
809 v_nsec = pps_tf[0].tv_nsec; /* 1 0 2 */ in hardpps()
810 u_nsec = pps_tf[1].tv_nsec - pps_tf[2].tv_nsec; in hardpps()
812 v_nsec = pps_tf[2].tv_nsec; /* 1 2 0 */ in hardpps()
813 u_nsec = pps_tf[1].tv_nsec - pps_tf[0].tv_nsec; in hardpps()