Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ptp.c37 int neg_adj = 0; in stmmac_adjust_freq() local
41 neg_adj = 1; in stmmac_adjust_freq()
49 addend = neg_adj ? (addend - diff) : (addend + diff); in stmmac_adjust_freq()
73 int neg_adj = 0; in stmmac_adjust_time() local
79 neg_adj = 1; in stmmac_adjust_time()
88 stmmac_adjust_systime(priv, priv->ptpaddr, sec, nsec, neg_adj, xmac); in stmmac_adjust_time()
/Linux-v4.19/drivers/staging/fsl-dpaa2/rtc/
Drtc.c30 int neg_adj = 0; in ptp_dpaa2_adjfreq() local
34 neg_adj = 1; in ptp_dpaa2_adjfreq()
43 tmr_add = neg_adj ? tmr_add - diff : tmr_add + diff; in ptp_dpaa2_adjfreq()
/Linux-v4.19/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-v4.19/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()
/Linux-v4.19/drivers/ptp/
Dptp_ixp46x.c140 int neg_adj = 0; in ptp_ixp_adjfreq() local
145 neg_adj = 1; in ptp_ixp_adjfreq()
153 addend = neg_adj ? addend - diff : addend + diff; in ptp_ixp_adjfreq()
Dptp_qoriq.c177 int neg_adj = 0; in ptp_qoriq_adjfine() local
182 neg_adj = 1; in ptp_qoriq_adjfine()
195 tmr_add = neg_adj ? tmr_add - diff : tmr_add + diff; in ptp_qoriq_adjfine()
Dptp_pch.c416 int neg_adj = 0; in ptp_pch_adjfreq() local
421 neg_adj = 1; in ptp_pch_adjfreq()
429 addend = neg_adj ? addend - diff : addend + diff; in ptp_pch_adjfreq()
/Linux-v4.19/drivers/net/ethernet/cavium/common/
Dcavium_ptp.c97 bool neg_adj = false; in cavium_ptp_adjfine() local
100 neg_adj = true; in cavium_ptp_adjfine()
123 comp = neg_adj ? comp - adj : comp + adj; in cavium_ptp_adjfine()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ptp.c349 int neg_adj = 0; in ixgbe_ptp_adjfreq_82599() local
352 neg_adj = 1; in ixgbe_ptp_adjfreq_82599()
363 incval = neg_adj ? (incval - diff) : (incval + diff); in ixgbe_ptp_adjfreq_82599()
398 int neg_adj = 0; in ixgbe_ptp_adjfreq_X550() local
403 neg_adj = 1; in ixgbe_ptp_adjfreq_X550()
414 if (neg_adj) in ixgbe_ptp_adjfreq_X550()
/Linux-v4.19/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-v4.19/drivers/net/dsa/mv88e6xxx/
Dptp.c186 int neg_adj = 0; in mv88e6xxx_ptp_adjfine() local
191 neg_adj = 1; in mv88e6xxx_ptp_adjfine()
202 chip->tstamp_cc.mult = neg_adj ? mult - diff : mult + diff; in mv88e6xxx_ptp_adjfine()
/Linux-v4.19/drivers/net/ethernet/intel/igb/
Digb_ptp.c191 int neg_adj = 0; in igb_ptp_adjfreq_82576() local
196 neg_adj = 1; in igb_ptp_adjfreq_82576()
205 if (neg_adj) in igb_ptp_adjfreq_82576()
220 int neg_adj = 0; in igb_ptp_adjfine_82580() local
225 neg_adj = 1; in igb_ptp_adjfine_82580()
233 if (neg_adj) in igb_ptp_adjfine_82580()
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c102 int neg_adj = 0; in i40e_ptp_adjfreq() local
105 neg_adj = 1; in i40e_ptp_adjfreq()
113 if (neg_adj) in i40e_ptp_adjfreq()
/Linux-v4.19/drivers/net/ethernet/freescale/
Dfec_ptp.c291 int neg_adj = 0; in fec_ptp_adjfreq() local
305 neg_adj = 1; in fec_ptp_adjfreq()
330 if (neg_adj) in fec_ptp_adjfreq()
/Linux-v4.19/drivers/net/ethernet/cadence/
Dmacb_ptp.c129 bool neg_adj = false; in gem_ptp_adjfine() local
134 neg_adj = true; in gem_ptp_adjfine()
151 adj = neg_adj ? (word - adj) : (word + adj); in gem_ptp_adjfine()
/Linux-v4.19/drivers/net/ethernet/ti/
Dcpts.c214 int neg_adj = 0; in cpts_ptp_adjfreq() local
219 neg_adj = 1; in cpts_ptp_adjfreq()
231 cpts->cc.mult = neg_adj ? mult - diff : mult + diff; in cpts_ptp_adjfreq()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dclock.c193 int neg_adj = 0; in mlx5_ptp_adjfreq() local
198 neg_adj = 1; in mlx5_ptp_adjfreq()
208 clock->cycles.mult = neg_adj ? clock->nominal_c_mult - diff : in mlx5_ptp_adjfreq()
/Linux-v4.19/drivers/net/phy/
Ddp83640.c384 int neg_adj = 0; in ptp_dp83640_adjfine() local
388 neg_adj = 1; in ptp_dp83640_adjfine()
396 if (neg_adj) in ptp_dp83640_adjfine()
/Linux-v4.19/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c1593 bool neg_adj = false; in liquidio_ptp_adjfreq() local
1596 neg_adj = true; in liquidio_ptp_adjfreq()
1609 if (neg_adj) in liquidio_ptp_adjfreq()
/Linux-v4.19/drivers/net/ethernet/broadcom/
Dtg3.c6192 bool neg_adj = false; in tg3_ptp_adjfreq() local
6196 neg_adj = true; in tg3_ptp_adjfreq()
6216 (neg_adj ? TG3_EAV_REF_CLK_CORRECT_NEG : 0) | correction); in tg3_ptp_adjfreq()