Home
last modified time | relevance | path

Searched refs:addend (Results 1 – 11 of 11) sorted by relevance

/drivers/net/ethernet/xscale/
Dptp_ixp46x.c127 u32 diff, addend; in ptp_ixp_adjfreq() local
136 addend = DEFAULT_ADDEND; in ptp_ixp_adjfreq()
137 adj = addend; in ptp_ixp_adjfreq()
141 addend = neg_adj ? addend - diff : addend + diff; in ptp_ixp_adjfreq()
143 __raw_writel(addend, &regs->addend); in ptp_ixp_adjfreq()
292 __raw_writel(DEFAULT_ADDEND, &ixp_clock.regs->addend); in ptp_ixp_probe()
Dixp46x_ts.h28 u32 addend; /* 0x08 Time Sync Addend Register */ member
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ptp.c27 u32 diff, addend; in stmmac_adjust_freq() local
36 addend = priv->default_addend; in stmmac_adjust_freq()
37 adj = addend; in stmmac_adjust_freq()
40 addend = neg_adj ? (addend - diff) : (addend + diff); in stmmac_adjust_freq()
43 stmmac_config_addend(priv, priv->ptpaddr, addend); in stmmac_adjust_freq()
Dstmmac_hwtstamp.c80 static int config_addend(void __iomem *ioaddr, u32 addend) in config_addend() argument
85 writel(addend, ioaddr + PTP_TAR); in config_addend()
Dhwif.h519 int (*config_addend) (void __iomem *ioaddr, u32 addend);
/drivers/net/ethernet/renesas/
Dravb_ptp.c97 u32 diff, addend; in ravb_ptp_adjfreq() local
105 addend = priv->ptp.default_addend; in ravb_ptp_adjfreq()
106 diff = div_u64((u64)addend * ppb, NSEC_PER_SEC); in ravb_ptp_adjfreq()
108 addend = neg_adj ? addend - diff : addend + diff; in ravb_ptp_adjfreq()
112 priv->ptp.current_addend = addend; in ravb_ptp_adjfreq()
119 ravb_write(ndev, addend & GTI_TIV, GTI); in ravb_ptp_adjfreq()
/drivers/ptp/
Dptp_pch.c47 u32 addend; member
396 u32 diff, addend; in ptp_pch_adjfreq() local
405 addend = DEFAULT_ADDEND; in ptp_pch_adjfreq()
406 adj = addend; in ptp_pch_adjfreq()
410 addend = neg_adj ? addend - diff : addend + diff; in ptp_pch_adjfreq()
412 iowrite32(addend, &regs->addend); in ptp_pch_adjfreq()
600 iowrite32(DEFAULT_ADDEND, &chip->regs->addend); in pch_probe()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-ptp.c144 u32 addend, diff; in xgbe_adjfreq() local
156 addend = (neg_adjust) ? pdata->tstamp_addend - diff : in xgbe_adjfreq()
161 pdata->hw_if.update_tstamp_addend(pdata, addend); in xgbe_adjfreq()
Dxgbe-dev.c1530 unsigned int addend) in xgbe_update_tstamp_addend() argument
1535 XGMAC_IOWRITE(pdata, MAC_TSAR, addend); in xgbe_update_tstamp_addend()
/drivers/net/dsa/hirschmann/
Dhellcreek_ptp.c130 u32 addend; in hellcreek_ptp_adjfine() local
152 addend = (u32)div_u64(adj, 15625); in hellcreek_ptp_adjfine()
154 addendh = (addend & 0xffff0000) >> 16; in hellcreek_ptp_adjfine()
155 addendl = addend & 0xffff; in hellcreek_ptp_adjfine()
/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_core.c81 #define VCHIQ_SERVICE_STATS_ADD(service, stat, addend) \ argument
82 (service->stats. stat += addend)
86 #define VCHIQ_SERVICE_STATS_ADD(service, stat, addend) ((void)0) argument