Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ptp.c27 int neg_adj = 0; in stmmac_adjust_freq() local
31 neg_adj = 1; in stmmac_adjust_freq()
39 addend = neg_adj ? (addend - diff) : (addend + diff); in stmmac_adjust_freq()
63 int neg_adj = 0; in stmmac_adjust_time() local
69 neg_adj = 1; in stmmac_adjust_time()
78 stmmac_adjust_systime(priv, priv->ptpaddr, sec, nsec, neg_adj, xmac); in stmmac_adjust_time()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Den_clock.c125 int neg_adj = 0; in mlx4_en_phc_adjfreq() local
131 neg_adj = 1; in mlx4_en_phc_adjfreq()
141 mdev->cycles.mult = neg_adj ? mult - diff : mult + diff; in mlx4_en_phc_adjfreq()
/Linux-v5.4/drivers/net/ethernet/intel/e1000e/
Dptp.c30 bool neg_adj = false; in e1000e_phc_adjfreq() local
40 neg_adj = true; in e1000e_phc_adjfreq()
57 incvalue = neg_adj ? (incvalue - adjustment) : (incvalue + adjustment); in e1000e_phc_adjfreq()
/Linux-v5.4/drivers/ptp/
Dptp_ixp46x.c127 int neg_adj = 0; in ptp_ixp_adjfreq() local
132 neg_adj = 1; in ptp_ixp_adjfreq()
140 addend = neg_adj ? addend - diff : addend + diff; in ptp_ixp_adjfreq()
Dptp_pch.c404 int neg_adj = 0; in ptp_pch_adjfreq() local
409 neg_adj = 1; in ptp_pch_adjfreq()
417 addend = neg_adj ? addend - diff : addend + diff; in ptp_pch_adjfreq()
Dptp_qoriq.c199 int neg_adj = 0; in ptp_qoriq_adjfine() local
204 neg_adj = 1; in ptp_qoriq_adjfine()
217 tmr_add = neg_adj ? tmr_add - diff : tmr_add + diff; in ptp_qoriq_adjfine()
/Linux-v5.4/drivers/net/ethernet/cavium/common/
Dcavium_ptp.c97 bool neg_adj = false; in cavium_ptp_adjfine() local
100 neg_adj = true; in cavium_ptp_adjfine()
123 comp = neg_adj ? comp - adj : comp + adj; in cavium_ptp_adjfine()
/Linux-v5.4/drivers/net/ethernet/renesas/
Dravb_ptp.c98 bool neg_adj = false; in ravb_ptp_adjfreq() local
102 neg_adj = true; in ravb_ptp_adjfreq()
108 addend = neg_adj ? addend - diff : addend + diff; in ravb_ptp_adjfreq()
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ptp.c451 int neg_adj = 0; in ixgbe_ptp_adjfreq_82599() local
454 neg_adj = 1; in ixgbe_ptp_adjfreq_82599()
465 incval = neg_adj ? (incval - diff) : (incval + diff); in ixgbe_ptp_adjfreq_82599()
500 int neg_adj = 0; in ixgbe_ptp_adjfreq_X550() local
505 neg_adj = 1; in ixgbe_ptp_adjfreq_X550()
516 if (neg_adj) in ixgbe_ptp_adjfreq_X550()
/Linux-v5.4/drivers/net/dsa/mv88e6xxx/
Dptp.c203 int neg_adj = 0; in mv88e6xxx_ptp_adjfine() local
208 neg_adj = 1; in mv88e6xxx_ptp_adjfine()
220 chip->tstamp_cc.mult = neg_adj ? mult - diff : mult + diff; in mv88e6xxx_ptp_adjfine()
/Linux-v5.4/drivers/net/ethernet/cadence/
Dmacb_ptp.c121 bool neg_adj = false; in gem_ptp_adjfine() local
126 neg_adj = true; in gem_ptp_adjfine()
143 adj = neg_adj ? (word - adj) : (word + adj); in gem_ptp_adjfine()
/Linux-v5.4/drivers/net/ethernet/freescale/
Dfec_ptp.c291 int neg_adj = 0; in fec_ptp_adjfreq() local
305 neg_adj = 1; in fec_ptp_adjfreq()
330 if (neg_adj) in fec_ptp_adjfreq()
/Linux-v5.4/drivers/net/ethernet/intel/igb/
Digb_ptp.c199 int neg_adj = 0; in igb_ptp_adjfreq_82576() local
204 neg_adj = 1; in igb_ptp_adjfreq_82576()
213 if (neg_adj) in igb_ptp_adjfreq_82576()
228 int neg_adj = 0; in igb_ptp_adjfine_82580() local
233 neg_adj = 1; in igb_ptp_adjfine_82580()
241 if (neg_adj) in igb_ptp_adjfine_82580()
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c106 int neg_adj = 0; in i40e_ptp_adjfreq() local
109 neg_adj = 1; in i40e_ptp_adjfreq()
117 if (neg_adj) in i40e_ptp_adjfreq()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dclock.c198 int neg_adj = 0; in mlx5_ptp_adjfreq() local
203 neg_adj = 1; in mlx5_ptp_adjfreq()
213 clock->cycles.mult = neg_adj ? clock->nominal_c_mult - diff : in mlx5_ptp_adjfreq()
/Linux-v5.4/drivers/net/ethernet/ti/
Dcpts.c220 int neg_adj = 0; in cpts_ptp_adjfreq() local
225 neg_adj = 1; in cpts_ptp_adjfreq()
237 cpts->cc.mult = neg_adj ? mult - diff : mult + diff; in cpts_ptp_adjfreq()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ptp.c155 int neg_adj = 0; in mlxsw_sp1_ptp_adjfine() local
163 neg_adj = 1; in mlxsw_sp1_ptp_adjfine()
173 clock->cycles.mult = neg_adj ? clock->nominal_c_mult - diff : in mlxsw_sp1_ptp_adjfine()
177 return mlxsw_sp1_ptp_phc_adjfreq(clock, neg_adj ? -ppb : ppb); in mlxsw_sp1_ptp_adjfine()
/Linux-v5.4/drivers/net/phy/
Ddp83640.c371 int neg_adj = 0; in ptp_dp83640_adjfine() local
375 neg_adj = 1; in ptp_dp83640_adjfine()
383 if (neg_adj) in ptp_dp83640_adjfine()
/Linux-v5.4/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c1566 bool neg_adj = false; in liquidio_ptp_adjfreq() local
1569 neg_adj = true; in liquidio_ptp_adjfreq()
1582 if (neg_adj) in liquidio_ptp_adjfreq()
/Linux-v5.4/drivers/net/ethernet/broadcom/
Dtg3.c6198 bool neg_adj = false; in tg3_ptp_adjfreq() local
6202 neg_adj = true; in tg3_ptp_adjfreq()
6222 (neg_adj ? TG3_EAV_REF_CLK_CORRECT_NEG : 0) | correction); in tg3_ptp_adjfreq()