Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/qlogic/qed/
Dqed_ptp.c256 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-6.12.1/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-6.12.1/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c13666 int val, period, period1, period2, dif, dif1, dif2; in bnx2x_ptp_adjfine() local
13704 dif2 = ppb - (val * 1000000 / period2); in bnx2x_ptp_adjfine()
13705 if (dif2 < 0) in bnx2x_ptp_adjfine()
13706 dif2 = -dif2; in bnx2x_ptp_adjfine()
13707 dif = (dif1 < dif2) ? dif1 : dif2; in bnx2x_ptp_adjfine()
13708 period = (dif1 < dif2) ? period1 : period2; in bnx2x_ptp_adjfine()