Searched refs:dif2 (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/ |
D | qed_ptp.c | 275 s64 best_val = 0, val, best_period = 0, period, approx_dev, dif, dif2; in qed_ptp_hw_adjfreq() local 304 dif2 = dif + 16 * ppb; in qed_ptp_hw_adjfreq() 308 if (dif2 < 0) in qed_ptp_hw_adjfreq() 309 dif2 = -dif2; in qed_ptp_hw_adjfreq() 312 if (dif * (approx_dev + 16) > dif2 * approx_dev) { in qed_ptp_hw_adjfreq() 315 dif = dif2; in qed_ptp_hw_adjfreq()
|
/Linux-v4.19/arch/mips/include/asm/octeon/ |
D | cvmx-npei-defs.h | 211 uint64_t dif2:1; member 221 uint64_t dif2:1; 323 uint64_t dif2:1; member 333 uint64_t dif2:1; 433 uint64_t dif2:1; member 443 uint64_t dif2:1; 545 uint64_t dif2:1; member 555 uint64_t dif2:1;
|
/Linux-v4.19/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 13755 int val, period, period1, period2, dif, dif1, dif2; in bnx2x_ptp_adjfreq() local 13792 dif2 = ppb - (val * 1000000 / period2); in bnx2x_ptp_adjfreq() 13793 if (dif2 < 0) in bnx2x_ptp_adjfreq() 13794 dif2 = -dif2; in bnx2x_ptp_adjfreq() 13795 dif = (dif1 < dif2) ? dif1 : dif2; in bnx2x_ptp_adjfreq() 13796 period = (dif1 < dif2) ? period1 : period2; in bnx2x_ptp_adjfreq()
|