Lines Matching refs:pps_ff
189 * filter pps_ff[], while pps_stabil is the dispersion (wander) measured
212 int32_t pps_ff[] = {0, 0, 0}; /* pps frequency offset median filter */
1417 pps_ff[2] = pps_ff[1];
1418 pps_ff[1] = pps_ff[0];
1419 pps_ff[0] = v_usec;
1420 if (pps_ff[0] > pps_ff[1]) {
1421 if (pps_ff[1] > pps_ff[2]) {
1422 u_usec = pps_ff[1]; /* 0 1 2 */
1423 v_usec = pps_ff[0] - pps_ff[2];
1424 } else if (pps_ff[2] > pps_ff[0]) {
1425 u_usec = pps_ff[0]; /* 2 0 1 */
1426 v_usec = pps_ff[2] - pps_ff[1];
1428 u_usec = pps_ff[2]; /* 0 2 1 */
1429 v_usec = pps_ff[0] - pps_ff[1];
1432 if (pps_ff[1] < pps_ff[2]) {
1433 u_usec = pps_ff[1]; /* 2 1 0 */
1434 v_usec = pps_ff[2] - pps_ff[0];
1435 } else if (pps_ff[2] < pps_ff[0]) {
1436 u_usec = pps_ff[0]; /* 1 0 2 */
1437 v_usec = pps_ff[1] - pps_ff[2];
1439 u_usec = pps_ff[2]; /* 1 2 0 */
1440 v_usec = pps_ff[1] - pps_ff[0];