/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/ |
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-v6.1/drivers/net/ethernet/marvell/mvpp2/ |
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-v6.1/drivers/net/ethernet/mellanox/mlx4/ |
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-v6.1/drivers/net/ethernet/intel/e1000e/ |
D | ptp.c | 32 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/ |
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-v6.1/drivers/net/ethernet/marvell/octeontx2/af/ |
D | ptp.c | 227 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/ |
D | ptp_ixp46x.c | 127 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/ |
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-v6.1/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ptp.c | 455 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/ |
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-v6.1/drivers/ptp/ |
D | ptp_pch.c | 343 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()
|
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-v6.1/drivers/net/ethernet/cadence/ |
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-v6.1/drivers/net/ethernet/freescale/ |
D | fec_ptp.c | 279 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/ |
D | i40e_ptp.c | 351 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/ |
D | sparx5_ptp.c | 398 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/ |
D | igb_ptp.c | 198 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/ |
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()
|
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-v6.1/drivers/net/phy/ |
D | bcm-phy-ptp.c | 347 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()
|
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-v6.1/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_ptp.c | 386 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/ |
D | igc_ptp.c | 51 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/ |
D | spectrum_ptp.c | 192 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/ |
D | clock.c | 348 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()
|