Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_ptp.c256 s64 best_val = 0, val, best_period = 0, period, approx_dev, dif, dif2; in qed_ptp_hw_adjfreq() local
283 approx_dev = period * 16 + 8; in qed_ptp_hw_adjfreq()
284 dif = ppb * approx_dev - val * 1000000000; in qed_ptp_hw_adjfreq()
293 if (dif * (approx_dev + 16) > dif2 * approx_dev) { in qed_ptp_hw_adjfreq()
295 approx_dev += 16; in qed_ptp_hw_adjfreq()
300 if (best_dif * approx_dev > dif * best_approx_dev) { in qed_ptp_hw_adjfreq()
304 best_approx_dev = approx_dev; in qed_ptp_hw_adjfreq()