Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/stmicro/stmmac/
A 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/drivers/net/ethernet/marvell/mvpp2/
A 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/drivers/net/ethernet/mellanox/mlx4/
A 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/drivers/net/ethernet/marvell/octeontx2/af/
A Dptp.c77 bool neg_adj = false; in ptp_adjfine() local
83 neg_adj = true; in ptp_adjfine()
108 comp = neg_adj ? comp - adj : comp + adj; in ptp_adjfine()
/linux/drivers/net/ethernet/intel/e1000e/
A 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/drivers/net/ethernet/cavium/common/
A 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/drivers/net/ethernet/xscale/
A Dptp_ixp46x.c128 int neg_adj = 0; in ptp_ixp_adjfreq() local
133 neg_adj = 1; in ptp_ixp_adjfreq()
141 addend = neg_adj ? addend - diff : addend + diff; in ptp_ixp_adjfreq()
/linux/drivers/net/ethernet/intel/ixgbe/
A 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/drivers/net/ethernet/renesas/
A 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/drivers/net/dsa/mv88e6xxx/
A 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/drivers/net/ethernet/intel/igb/
A 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/drivers/net/ethernet/freescale/
A Dfec_ptp.c284 int neg_adj = 0; in fec_ptp_adjfreq() local
298 neg_adj = 1; in fec_ptp_adjfreq()
323 if (neg_adj) in fec_ptp_adjfreq()
/linux/drivers/net/ethernet/cadence/
A 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/drivers/net/ethernet/intel/i40e/
A Di40e_ptp.c350 int neg_adj = 0; in i40e_ptp_adjfreq() local
353 neg_adj = 1; in i40e_ptp_adjfreq()
361 if (neg_adj) in i40e_ptp_adjfreq()
428 int neg_adj = 0; in i40e_ptp_adjtime() local
433 neg_adj = 1; in i40e_ptp_adjtime()
440 if (neg_adj) in i40e_ptp_adjtime()
/linux/drivers/ptp/
A Dptp_pch.c397 int neg_adj = 0; in ptp_pch_adjfreq() local
402 neg_adj = 1; in ptp_pch_adjfreq()
410 addend = neg_adj ? addend - diff : addend + diff; in ptp_pch_adjfreq()
A 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/drivers/net/ethernet/mellanox/mlxsw/
A 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/drivers/net/ethernet/ti/
A 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()
A 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/drivers/net/ethernet/intel/igc/
A Digc_ptp.c52 int neg_adj = 0; in igc_ptp_adjfine_i225() local
57 neg_adj = 1; in igc_ptp_adjfine_i225()
65 if (neg_adj) in igc_ptp_adjfine_i225()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
A Dclock.c339 int neg_adj = 0; in mlx5_ptp_adjfreq() local
350 neg_adj = 1; in mlx5_ptp_adjfreq()
360 timer->cycles.mult = neg_adj ? timer->nominal_c_mult - diff : in mlx5_ptp_adjfreq()
/linux/drivers/net/ethernet/intel/ice/
A Dice_ptp.c698 int neg_adj = 0; in ice_ptp_adjfine() local
704 neg_adj = 1; in ice_ptp_adjfine()
719 if (neg_adj) in ice_ptp_adjfine()
/linux/drivers/net/phy/
A 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/drivers/net/ethernet/cavium/liquidio/
A Dlio_main.c1530 bool neg_adj = false; in liquidio_ptp_adjfreq() local
1533 neg_adj = true; in liquidio_ptp_adjfreq()
1546 if (neg_adj) in liquidio_ptp_adjfreq()
/linux/drivers/net/ethernet/broadcom/
A Dtg3.c6185 bool neg_adj = false; in tg3_ptp_adjfreq() local
6189 neg_adj = true; in tg3_ptp_adjfreq()
6209 (neg_adj ? TG3_EAV_REF_CLK_CORRECT_NEG : 0) | correction); in tg3_ptp_adjfreq()

Completed in 71 milliseconds