Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
Dptp.c105 bool neg_adj = false; in ptp_adjfine() local
111 neg_adj = true; in ptp_adjfine()
136 comp = neg_adj ? comp - adj : comp + adj; in ptp_adjfine()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/xscale/
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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
Digc_ptp.c47 int neg_adj = 0; in igc_ptp_adjfine_i225() local
52 neg_adj = 1; in igc_ptp_adjfine_i225()
60 if (neg_adj) in igc_ptp_adjfine_i225()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/
Dfec_ptp.c280 int neg_adj = 0; in fec_ptp_adjfreq() local
294 neg_adj = 1; in fec_ptp_adjfreq()
319 if (neg_adj) in fec_ptp_adjfreq()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c107 int neg_adj = 0; in i40e_ptp_adjfreq() local
110 neg_adj = 1; in i40e_ptp_adjfreq()
118 if (neg_adj) in i40e_ptp_adjfreq()
/kernel/linux/linux-5.10/drivers/ptp/
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()
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_idt82p33.c297 int neg_adj = 0; in _idt82p33_adjfine() local
318 neg_adj = 1; in _idt82p33_adjfine()
325 if (neg_adj) in _idt82p33_adjfine()
Dptp_clockmatrix.c1302 bool neg_adj = 0; in _idtcm_adjfine() local
1327 neg_adj = 1; in _idtcm_adjfine()
1336 if (neg_adj) in _idtcm_adjfine()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dclock.c221 int neg_adj = 0; in mlx5_ptp_adjfreq() local
227 neg_adj = 1; in mlx5_ptp_adjfreq()
238 clock->cycles.mult = neg_adj ? clock->nominal_c_mult - diff : in mlx5_ptp_adjfreq()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/phy/
Ddp83640.c372 int neg_adj = 0; in ptp_dp83640_adjfine() local
376 neg_adj = 1; in ptp_dp83640_adjfine()
384 if (neg_adj) in ptp_dp83640_adjfine()
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c1529 bool neg_adj = false; in liquidio_ptp_adjfreq() local
1532 neg_adj = true; in liquidio_ptp_adjfreq()
1545 if (neg_adj) in liquidio_ptp_adjfreq()

12