/linux/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_ptp.c | 28 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 D | mvpp2_tai.c | 169 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 D | en_clock.c | 125 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 D | ptp.c | 77 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 D | ptp.c | 30 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 D | cavium_ptp.c | 100 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 D | ptp_ixp46x.c | 128 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 D | ixgbe_ptp.c | 451 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 D | ravb_ptp.c | 98 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 D | ptp.c | 203 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 D | igb_ptp.c | 199 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 D | fec_ptp.c | 284 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 D | macb_ptp.c | 126 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 D | i40e_ptp.c | 350 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 D | ptp_pch.c | 397 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 D | ptp_qoriq.c | 181 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 D | spectrum_ptp.c | 155 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 D | cpts.c | 219 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 D | am65-cpts.c | 387 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 D | igc_ptp.c | 52 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 D | clock.c | 339 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 D | ice_ptp.c | 698 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 D | dp83640.c | 380 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 D | lio_main.c | 1530 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 D | tg3.c | 6185 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()
|