Home
last modified time | relevance | path

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

/linux-4.1.27/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()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dptp.c42 bool neg_adj = false; in e1000e_phc_adjfreq() local
52 neg_adj = true; in e1000e_phc_adjfreq()
69 incvalue = neg_adj ? (incvalue - adjustment) : (incvalue + adjustment); in e1000e_phc_adjfreq()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Den_clock.c117 int neg_adj = 0; in mlx4_en_phc_adjfreq() local
123 neg_adj = 1; in mlx4_en_phc_adjfreq()
133 mdev->cycles.mult = neg_adj ? mult - diff : mult + diff; in mlx4_en_phc_adjfreq()
/linux-4.1.27/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()
/linux-4.1.27/drivers/net/ethernet/ti/
Dcpts.c134 int neg_adj = 0; in cpts_ptp_adjfreq() local
139 neg_adj = 1; in cpts_ptp_adjfreq()
151 cpts->cc.mult = neg_adj ? mult - diff : mult + diff; in cpts_ptp_adjfreq()
/linux-4.1.27/drivers/net/ethernet/intel/igb/
Digb_ptp.c205 int neg_adj = 0; in igb_ptp_adjfreq_82576() local
210 neg_adj = 1; in igb_ptp_adjfreq_82576()
219 if (neg_adj) in igb_ptp_adjfreq_82576()
234 int neg_adj = 0; in igb_ptp_adjfreq_82580() local
239 neg_adj = 1; in igb_ptp_adjfreq_82580()
247 if (neg_adj) in igb_ptp_adjfreq_82580()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c126 int neg_adj = 0; in i40e_ptp_adjfreq() local
129 neg_adj = 1; in i40e_ptp_adjfreq()
140 if (neg_adj) in i40e_ptp_adjfreq()
/linux-4.1.27/drivers/net/ethernet/freescale/
Dfec_ptp.c307 int neg_adj = 0; in fec_ptp_adjfreq() local
321 neg_adj = 1; in fec_ptp_adjfreq()
346 if (neg_adj) in fec_ptp_adjfreq()
Dgianfar_ptp.c287 int neg_adj = 0; in ptp_gianfar_adjfreq() local
291 neg_adj = 1; in ptp_gianfar_adjfreq()
299 tmr_add = neg_adj ? tmr_add - diff : tmr_add + diff; in ptp_gianfar_adjfreq()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ptp.c220 int neg_adj = 0; in ixgbe_ptp_adjfreq() local
223 neg_adj = 1; in ixgbe_ptp_adjfreq()
234 incval = neg_adj ? (incval - diff) : (incval + diff); in ixgbe_ptp_adjfreq()
/linux-4.1.27/drivers/net/phy/
Ddp83640.c382 int neg_adj = 0; in ptp_dp83640_adjfreq() local
386 neg_adj = 1; in ptp_dp83640_adjfreq()
394 if (neg_adj) in ptp_dp83640_adjfreq()
/linux-4.1.27/drivers/net/ethernet/adi/
Dbfin_mac.c948 int neg_adj = 0; in bfin_ptp_adjfreq() local
953 neg_adj = 1; in bfin_ptp_adjfreq()
961 addend = neg_adj ? addend - diff : addend + diff; in bfin_ptp_adjfreq()
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dtg3.c6176 bool neg_adj = false; in tg3_ptp_adjfreq() local
6180 neg_adj = true; in tg3_ptp_adjfreq()
6200 (neg_adj ? TG3_EAV_REF_CLK_CORRECT_NEG : 0) | correction); in tg3_ptp_adjfreq()