Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ptp.c28 int neg_adj = 0; in stmmac_adjust_freq() local
32 neg_adj = 1; in stmmac_adjust_freq()
40 addend = neg_adj ? (addend - diff) : (addend + diff); in stmmac_adjust_freq()
64 int neg_adj = 0; in stmmac_adjust_time() local
71 neg_adj = 1; in stmmac_adjust_time()
90 stmmac_adjust_systime(priv, priv->ptpaddr, sec, nsec, neg_adj, xmac); in stmmac_adjust_time()
/Linux-v6.1/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_tai.c169 bool neg_adj; in mvpp22_tai_adjfine() local
173 neg_adj = scaled_ppm < 0; in mvpp22_tai_adjfine()
174 if (neg_adj) in mvpp22_tai_adjfine()
180 if (neg_adj) { in mvpp22_tai_adjfine()
/Linux-v6.1/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-v6.1/drivers/net/ethernet/intel/e1000e/
Dptp.c32 bool neg_adj = false; in e1000e_phc_adjfine() local
39 neg_adj = true; in e1000e_phc_adjfine()
55 incvalue = neg_adj ? (incvalue - adjustment) : (incvalue + adjustment); in e1000e_phc_adjfine()
/Linux-v6.1/drivers/net/ethernet/cavium/common/
Dcavium_ptp.c100 bool neg_adj = false; in cavium_ptp_adjfine() local
103 neg_adj = true; in cavium_ptp_adjfine()
126 comp = neg_adj ? comp - adj : comp + adj; in cavium_ptp_adjfine()
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/af/
Dptp.c227 bool neg_adj = false; in ptp_adjfine() local
233 neg_adj = true; in ptp_adjfine()
259 freq = neg_adj ? ptp->clock_rate + freq_adj : ptp->clock_rate - freq_adj; in ptp_adjfine()
265 comp = neg_adj ? comp - adj : comp + adj; in ptp_adjfine()
/Linux-v6.1/drivers/net/ethernet/xscale/
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()
/Linux-v6.1/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-v6.1/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ptp.c455 int neg_adj = 0; in ixgbe_ptp_adjfine_82599() local
458 neg_adj = 1; in ixgbe_ptp_adjfine_82599()
468 incval = neg_adj ? (incval - diff) : (incval + diff); in ixgbe_ptp_adjfine_82599()
505 int neg_adj = 0; in ixgbe_ptp_adjfine_X550() local
510 neg_adj = 1; in ixgbe_ptp_adjfine_X550()
522 if (neg_adj) in ixgbe_ptp_adjfine_X550()
/Linux-v6.1/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-v6.1/drivers/ptp/
Dptp_pch.c343 int neg_adj = 0; in ptp_pch_adjfreq() local
348 neg_adj = 1; in ptp_pch_adjfreq()
356 addend = neg_adj ? addend - diff : addend + diff; in ptp_pch_adjfreq()
Dptp_qoriq.c181 int neg_adj = 0; in ptp_qoriq_adjfine() local
186 neg_adj = 1; in ptp_qoriq_adjfine()
201 tmr_add = neg_adj ? tmr_add - diff : tmr_add + diff; in ptp_qoriq_adjfine()
/Linux-v6.1/drivers/net/ethernet/cadence/
Dmacb_ptp.c126 bool neg_adj = false; in gem_ptp_adjfine() local
131 neg_adj = true; in gem_ptp_adjfine()
148 adj = neg_adj ? (word - adj) : (word + adj); in gem_ptp_adjfine()
/Linux-v6.1/drivers/net/ethernet/freescale/
Dfec_ptp.c279 int neg_adj = 0; in fec_ptp_adjfreq() local
293 neg_adj = 1; in fec_ptp_adjfreq()
318 if (neg_adj) in fec_ptp_adjfreq()
/Linux-v6.1/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c351 int neg_adj = 0; in i40e_ptp_adjfine() local
354 neg_adj = 1; in i40e_ptp_adjfine()
363 if (neg_adj) in i40e_ptp_adjfine()
420 int neg_adj = 0; in i40e_ptp_adjtime() local
425 neg_adj = 1; in i40e_ptp_adjtime()
432 if (neg_adj) in i40e_ptp_adjtime()
/Linux-v6.1/drivers/net/ethernet/microchip/sparx5/
Dsparx5_ptp.c398 bool neg_adj = 0; in sparx5_ptp_adjfine() local
406 neg_adj = 1; in sparx5_ptp_adjfine()
418 tod_inc = neg_adj ? tod_inc - ref : tod_inc + ref; in sparx5_ptp_adjfine()
/Linux-v6.1/drivers/net/ethernet/intel/igb/
Digb_ptp.c198 int neg_adj = 0; in igb_ptp_adjfine_82576() local
203 neg_adj = 1; in igb_ptp_adjfine_82576()
211 if (neg_adj) in igb_ptp_adjfine_82576()
226 int neg_adj = 0; in igb_ptp_adjfine_82580() local
231 neg_adj = 1; in igb_ptp_adjfine_82580()
239 if (neg_adj) in igb_ptp_adjfine_82580()
/Linux-v6.1/drivers/net/ethernet/ti/
Dcpts.c219 int neg_adj = 0; in cpts_ptp_adjfreq() local
224 neg_adj = 1; in cpts_ptp_adjfreq()
234 cpts->mult_new = neg_adj ? mult - diff : mult + diff; in cpts_ptp_adjfreq()
Dam65-cpts.c387 int neg_adj = 0; in am65_cpts_ptp_adjfreq() local
392 neg_adj = 1; in am65_cpts_ptp_adjfreq()
410 if (neg_adj) in am65_cpts_ptp_adjfreq()
/Linux-v6.1/drivers/net/phy/
Dbcm-phy-ptp.c347 int neg_adj = 0; in bcm_ptp_adjfine() local
353 neg_adj = 1; in bcm_ptp_adjfine()
359 freq = (8 << 28) + (neg_adj ? -diff : diff); in bcm_ptp_adjfine()
Ddp83640.c380 int neg_adj = 0; in ptp_dp83640_adjfine() local
384 neg_adj = 1; in ptp_dp83640_adjfine()
392 if (neg_adj) in ptp_dp83640_adjfine()
/Linux-v6.1/drivers/net/ethernet/microchip/lan966x/
Dlan966x_ptp.c386 bool neg_adj = 0; in lan966x_ptp_adjfine() local
394 neg_adj = 1; in lan966x_ptp_adjfine()
406 tod_inc = neg_adj ? tod_inc - ref : tod_inc + ref; in lan966x_ptp_adjfine()
/Linux-v6.1/drivers/net/ethernet/intel/igc/
Digc_ptp.c51 int neg_adj = 0; in igc_ptp_adjfine_i225() local
56 neg_adj = 1; in igc_ptp_adjfine_i225()
64 if (neg_adj) in igc_ptp_adjfine_i225()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ptp.c192 int neg_adj = 0; in mlxsw_sp1_ptp_adjfine() local
200 neg_adj = 1; in mlxsw_sp1_ptp_adjfine()
210 clock->cycles.mult = neg_adj ? clock->nominal_c_mult - diff : in mlxsw_sp1_ptp_adjfine()
214 return mlxsw_sp_ptp_phc_adjfreq(&clock->common, neg_adj ? -ppb : ppb); in mlxsw_sp1_ptp_adjfine()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dclock.c348 int neg_adj = 0; in mlx5_ptp_adjfreq() local
359 neg_adj = 1; in mlx5_ptp_adjfreq()
369 timer->cycles.mult = neg_adj ? timer->nominal_c_mult - diff : in mlx5_ptp_adjfreq()

12