Lines Matching refs:v_usec
1277 int u_usec, v_usec, bigtick;
1294 v_usec = pps_offset - u_usec;
1295 if (v_usec < 0)
1296 v_usec = -v_usec;
1297 if (v_usec > (usec_per_tick >> 1)) {
1321 v_usec = pps_tf[0] - pps_tf[2];
1324 v_usec = pps_tf[2] - pps_tf[1];
1327 v_usec = pps_tf[0] - pps_tf[1];
1332 v_usec = pps_tf[2] - pps_tf[0];
1335 v_usec = pps_tf[1] - pps_tf[2];
1338 v_usec = pps_tf[1] - pps_tf[0];
1341 if (v_usec > MAXTIME)
1343 v_usec = (v_usec << PPS_AVG) - pps_jitter;
1344 pps_jitter += v_usec / (1 << PPS_AVG);
1372 v_usec = pps_usec - u_usec;
1373 if (v_usec >= bigtick >> 1)
1374 v_usec -= bigtick;
1375 if (v_usec < -(bigtick >> 1))
1376 v_usec += bigtick;
1377 if (v_usec < 0)
1378 v_usec = -(-v_usec >> pps_shift);
1380 v_usec = v_usec >> pps_shift;
1403 v_usec > time_tolerance || v_usec < -time_tolerance) {
1419 pps_ff[0] = v_usec;
1423 v_usec = pps_ff[0] - pps_ff[2];
1426 v_usec = pps_ff[2] - pps_ff[1];
1429 v_usec = pps_ff[0] - pps_ff[1];
1434 v_usec = pps_ff[2] - pps_ff[0];
1437 v_usec = pps_ff[1] - pps_ff[2];
1440 v_usec = pps_ff[1] - pps_ff[0];
1450 v_usec = (v_usec >> 1) - pps_stabil;
1451 if (v_usec < 0)
1452 pps_stabil -= -v_usec >> PPS_AVG;
1454 pps_stabil += v_usec >> PPS_AVG;