Home
last modified time | relevance | path

Searched refs:dif2 (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/qlogic/qed/
Dqed_ptp.c280 s64 best_val = 0, val, best_period = 0, period, approx_dev, dif, dif2; in qed_ptp_hw_adjfreq() local
309 dif2 = dif + 16 * ppb; in qed_ptp_hw_adjfreq()
313 if (dif2 < 0) in qed_ptp_hw_adjfreq()
314 dif2 = -dif2; in qed_ptp_hw_adjfreq()
317 if (dif * (approx_dev + 16) > dif2 * approx_dev) { in qed_ptp_hw_adjfreq()
320 dif = dif2; in qed_ptp_hw_adjfreq()
/Linux-v5.4/arch/mips/include/asm/octeon/
Dcvmx-npei-defs.h207 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.4/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c13785 int val, period, period1, period2, dif, dif1, dif2; in bnx2x_ptp_adjfreq() local
13822 dif2 = ppb - (val * 1000000 / period2); in bnx2x_ptp_adjfreq()
13823 if (dif2 < 0) in bnx2x_ptp_adjfreq()
13824 dif2 = -dif2; in bnx2x_ptp_adjfreq()
13825 dif = (dif1 < dif2) ? dif1 : dif2; in bnx2x_ptp_adjfreq()
13826 period = (dif1 < dif2) ? period1 : period2; in bnx2x_ptp_adjfreq()