Searched refs:dif2 (Results 1 – 3 of 3) sorted by relevance
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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;
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 13739 int val, period, period1, period2, dif, dif1, dif2; in bnx2x_ptp_adjfreq() local 13776 dif2 = ppb - (val * 1000000 / period2); in bnx2x_ptp_adjfreq() 13777 if (dif2 < 0) in bnx2x_ptp_adjfreq() 13778 dif2 = -dif2; in bnx2x_ptp_adjfreq() 13779 dif = (dif1 < dif2) ? dif1 : dif2; in bnx2x_ptp_adjfreq() 13780 period = (dif1 < dif2) ? period1 : period2; in bnx2x_ptp_adjfreq()
|