Home
last modified time | relevance | path

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

/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ptp.c41 int neg_adj = 0; in stmmac_adjust_freq() local
45 neg_adj = 1; in stmmac_adjust_freq()
53 addend = neg_adj ? (addend - diff) : (addend + diff); in stmmac_adjust_freq()
79 int neg_adj = 0; in stmmac_adjust_time() local
82 neg_adj = 1; in stmmac_adjust_time()
92 priv->hw->ptp->adjust_systime(priv->ioaddr, sec, nsec, neg_adj); in stmmac_adjust_time()
/drivers/net/ethernet/intel/e1000e/
Dptp.c49 bool neg_adj = false; in e1000e_phc_adjfreq() local
58 neg_adj = true; in e1000e_phc_adjfreq()
73 incvalue = neg_adj ? (incvalue - adjustment) : (incvalue + adjustment); in e1000e_phc_adjfreq()
/drivers/net/ethernet/freescale/
Dfec_ptp.c149 int neg_adj = 0; in fec_ptp_adjfreq() local
157 neg_adj = 1; in fec_ptp_adjfreq()
172 fep->cc.mult = neg_adj ? mult - diff : mult + diff; in fec_ptp_adjfreq()
Dgianfar_ptp.c288 int neg_adj = 0; in ptp_gianfar_adjfreq() local
292 neg_adj = 1; in ptp_gianfar_adjfreq()
300 tmr_add = neg_adj ? tmr_add - diff : tmr_add + diff; in ptp_gianfar_adjfreq()
/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_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()
/drivers/net/ethernet/intel/igb/
Digb_ptp.c203 int neg_adj = 0; in igb_ptp_adjfreq_82576() local
208 neg_adj = 1; in igb_ptp_adjfreq_82576()
217 if (neg_adj) in igb_ptp_adjfreq_82576()
232 int neg_adj = 0; in igb_ptp_adjfreq_82580() local
237 neg_adj = 1; in igb_ptp_adjfreq_82580()
245 if (neg_adj) in igb_ptp_adjfreq_82580()
/drivers/net/ethernet/ti/
Dcpts.c136 int neg_adj = 0; in cpts_ptp_adjfreq() local
141 neg_adj = 1; in cpts_ptp_adjfreq()
153 cpts->cc.mult = neg_adj ? mult - diff : mult + diff; in cpts_ptp_adjfreq()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ptp.c218 int neg_adj = 0; in ixgbe_ptp_adjfreq() local
221 neg_adj = 1; in ixgbe_ptp_adjfreq()
232 incval = neg_adj ? (incval - diff) : (incval + diff); in ixgbe_ptp_adjfreq()
/drivers/net/phy/
Ddp83640.c332 int neg_adj = 0; in ptp_dp83640_adjfreq() local
336 neg_adj = 1; in ptp_dp83640_adjfreq()
344 if (neg_adj) in ptp_dp83640_adjfreq()
/drivers/net/ethernet/adi/
Dbfin_mac.c943 int neg_adj = 0; in bfin_ptp_adjfreq() local
948 neg_adj = 1; in bfin_ptp_adjfreq()
956 addend = neg_adj ? addend - diff : addend + diff; in bfin_ptp_adjfreq()
/drivers/net/ethernet/broadcom/
Dtg3.c6063 bool neg_adj = false; in tg3_ptp_adjfreq() local
6067 neg_adj = true; in tg3_ptp_adjfreq()
6087 (neg_adj ? TG3_EAV_REF_CLK_CORRECT_NEG : 0) | correction); in tg3_ptp_adjfreq()