Searched refs:dif2 (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_ptp.c | 256 s64 best_val = 0, val, best_period = 0, period, approx_dev, dif, dif2; in qed_ptp_hw_adjfreq() local 285 dif2 = dif + 16 * ppb; in qed_ptp_hw_adjfreq() 289 if (dif2 < 0) in qed_ptp_hw_adjfreq() 290 dif2 = -dif2; in qed_ptp_hw_adjfreq() 293 if (dif * (approx_dev + 16) > dif2 * approx_dev) { in qed_ptp_hw_adjfreq() 296 dif = dif2; in qed_ptp_hw_adjfreq()
|
/Linux-v5.10/arch/mips/include/asm/octeon/ |
D | cvmx-npei-defs.h | 207 uint64_t dif2:1; member 217 uint64_t dif2:1; 319 uint64_t dif2:1; member 329 uint64_t dif2:1; 429 uint64_t dif2:1; member 439 uint64_t dif2:1; 540 uint64_t dif2:1; member 550 uint64_t dif2:1;
|
/Linux-v5.10/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 13716 int val, period, period1, period2, dif, dif1, dif2; in bnx2x_ptp_adjfreq() local 13753 dif2 = ppb - (val * 1000000 / period2); in bnx2x_ptp_adjfreq() 13754 if (dif2 < 0) in bnx2x_ptp_adjfreq() 13755 dif2 = -dif2; in bnx2x_ptp_adjfreq() 13756 dif = (dif1 < dif2) ? dif1 : dif2; in bnx2x_ptp_adjfreq() 13757 period = (dif1 < dif2) ? period1 : period2; in bnx2x_ptp_adjfreq()
|