Lines Matching refs:pps_tf
185 * pps_tf[], while pps_jitter is the dispersion (jitter) measured by
209 int32_t pps_tf[] = {0, 0, 0}; /* pps time offset median filter (us) */
1300 pps_tf[2] = u_usec;
1301 pps_tf[1] = u_usec;
1315 pps_tf[2] = pps_tf[1];
1316 pps_tf[1] = pps_tf[0];
1317 pps_tf[0] = u_usec;
1318 if (pps_tf[0] > pps_tf[1]) {
1319 if (pps_tf[1] > pps_tf[2]) {
1320 pps_offset = pps_tf[1]; /* 0 1 2 */
1321 v_usec = pps_tf[0] - pps_tf[2];
1322 } else if (pps_tf[2] > pps_tf[0]) {
1323 pps_offset = pps_tf[0]; /* 2 0 1 */
1324 v_usec = pps_tf[2] - pps_tf[1];
1326 pps_offset = pps_tf[2]; /* 0 2 1 */
1327 v_usec = pps_tf[0] - pps_tf[1];
1330 if (pps_tf[1] < pps_tf[2]) {
1331 pps_offset = pps_tf[1]; /* 2 1 0 */
1332 v_usec = pps_tf[2] - pps_tf[0];
1333 } else if (pps_tf[2] < pps_tf[0]) {
1334 pps_offset = pps_tf[0]; /* 1 0 2 */
1335 v_usec = pps_tf[1] - pps_tf[2];
1337 pps_offset = pps_tf[2]; /* 1 2 0 */
1338 v_usec = pps_tf[1] - pps_tf[0];