Lines Matching refs:bcm_ptp_private
129 struct bcm_ptp_private { struct
167 static struct bcm_ptp_private *mii2priv(struct mii_timestamper *mii_ts) in mii2priv()
169 return container_of(mii_ts, struct bcm_ptp_private, mii_ts); in mii2priv()
172 static struct bcm_ptp_private *ptp2priv(struct ptp_clock_info *info) in ptp2priv()
174 return container_of(info, struct bcm_ptp_private, ptp_info); in ptp2priv()
252 struct bcm_ptp_private *priv = ptp2priv(info); in bcm_ptp_gettimex()
262 static int bcm_ptp_settime_locked(struct bcm_ptp_private *priv, in bcm_ptp_settime_locked()
298 struct bcm_ptp_private *priv = ptp2priv(info); in bcm_ptp_settime()
308 static int bcm_ptp_adjtime_locked(struct bcm_ptp_private *priv, in bcm_ptp_adjtime_locked()
326 struct bcm_ptp_private *priv = ptp2priv(info); in bcm_ptp_adjtime()
346 struct bcm_ptp_private *priv = ptp2priv(info); in bcm_ptp_adjfine()
388 struct bcm_ptp_private *priv = mii2priv(mii_ts); in bcm_ptp_rxtstamp()
418 static bool bcm_ptp_get_tstamp(struct bcm_ptp_private *priv, in bcm_ptp_get_tstamp()
459 static void bcm_ptp_match_tstamp(struct bcm_ptp_private *priv, in bcm_ptp_match_tstamp()
505 struct bcm_ptp_private *priv = ptp2priv(info); in bcm_ptp_do_aux_work()
520 static int bcm_ptp_cancel_func(struct bcm_ptp_private *priv) in bcm_ptp_cancel_func()
538 struct bcm_ptp_private *priv = in bcm_ptp_perout_work()
539 container_of(pin_work, struct bcm_ptp_private, pin_work.work); in bcm_ptp_perout_work()
584 static int bcm_ptp_perout_locked(struct bcm_ptp_private *priv, in bcm_ptp_perout_locked()
634 struct bcm_ptp_private *priv = in bcm_ptp_extts_work()
635 container_of(pin_work, struct bcm_ptp_private, pin_work.work); in bcm_ptp_extts_work()
665 static int bcm_ptp_extts_locked(struct bcm_ptp_private *priv, int on) in bcm_ptp_extts_locked()
691 struct bcm_ptp_private *priv = ptp2priv(info); in bcm_ptp_enable()
748 struct bcm_ptp_private *priv = mii2priv(mii_ts); in bcm_ptp_txtstamp()
787 struct bcm_ptp_private *priv = mii2priv(mii_ts); in bcm_ptp_hwtstamp()
849 struct bcm_ptp_private *priv = mii2priv(mii_ts); in bcm_ptp_ts_info()
868 void bcm_ptp_stop(struct bcm_ptp_private *priv) in bcm_ptp_stop()
896 static void bcm_ptp_init(struct bcm_ptp_private *priv) in bcm_ptp_init()
911 struct bcm_ptp_private *bcm_ptp_probe(struct phy_device *phydev) in bcm_ptp_probe()
913 struct bcm_ptp_private *priv; in bcm_ptp_probe()