/linux-6.1.9/net/core/ |
D | timestamping.c | 16 skb->dev->phydev->mii_ts)) in classify() 24 struct mii_timestamper *mii_ts; in skb_clone_tx_timestamp() local 35 mii_ts = skb->dev->phydev->mii_ts; in skb_clone_tx_timestamp() 36 if (likely(mii_ts->txtstamp)) { in skb_clone_tx_timestamp() 40 mii_ts->txtstamp(mii_ts, clone, type); in skb_clone_tx_timestamp() 47 struct mii_timestamper *mii_ts; in skb_defer_rx_timestamp() local 50 if (!skb->dev || !skb->dev->phydev || !skb->dev->phydev->mii_ts) in skb_defer_rx_timestamp() 65 mii_ts = skb->dev->phydev->mii_ts; in skb_defer_rx_timestamp() 66 if (likely(mii_ts->rxtstamp)) in skb_defer_rx_timestamp() 67 return mii_ts->rxtstamp(mii_ts, skb, type); in skb_defer_rx_timestamp()
|
/linux-6.1.9/drivers/net/phy/ |
D | mii_timestamper.c | 81 struct mii_timestamper *mii_ts = NULL; in register_mii_timestamper() local 89 mii_ts = desc->ctrl->probe_channel(desc->device, port); in register_mii_timestamper() 90 if (!IS_ERR(mii_ts)) { in register_mii_timestamper() 91 mii_ts->device = desc->device; in register_mii_timestamper() 99 return mii_ts ? mii_ts : ERR_PTR(-EPROBE_DEFER); in register_mii_timestamper() 109 void unregister_mii_timestamper(struct mii_timestamper *mii_ts) in unregister_mii_timestamper() argument 114 if (!mii_ts) in unregister_mii_timestamper() 121 if (!mii_ts->device) in unregister_mii_timestamper() 127 if (desc->device == mii_ts->device) { in unregister_mii_timestamper() 128 desc->ctrl->release_channel(desc->device, mii_ts); in unregister_mii_timestamper()
|
D | bcm-phy-ptp.c | 131 struct mii_timestamper mii_ts; member 167 static struct bcm_ptp_private *mii2priv(struct mii_timestamper *mii_ts) in mii2priv() argument 169 return container_of(mii_ts, struct bcm_ptp_private, mii_ts); in mii2priv() 385 static bool bcm_ptp_rxtstamp(struct mii_timestamper *mii_ts, in bcm_ptp_rxtstamp() argument 388 struct bcm_ptp_private *priv = mii2priv(mii_ts); in bcm_ptp_rxtstamp() 745 static void bcm_ptp_txtstamp(struct mii_timestamper *mii_ts, in bcm_ptp_txtstamp() argument 748 struct bcm_ptp_private *priv = mii2priv(mii_ts); in bcm_ptp_txtstamp() 784 static int bcm_ptp_hwtstamp(struct mii_timestamper *mii_ts, in bcm_ptp_hwtstamp() argument 787 struct bcm_ptp_private *priv = mii2priv(mii_ts); in bcm_ptp_hwtstamp() 846 static int bcm_ptp_ts_info(struct mii_timestamper *mii_ts, in bcm_ptp_ts_info() argument [all …]
|
D | nxp-c45-tja11xx.c | 214 struct mii_timestamper mii_ts; member 690 static void nxp_c45_txtstamp(struct mii_timestamper *mii_ts, in nxp_c45_txtstamp() argument 693 struct nxp_c45_phy *priv = container_of(mii_ts, struct nxp_c45_phy, in nxp_c45_txtstamp() 694 mii_ts); in nxp_c45_txtstamp() 712 static bool nxp_c45_rxtstamp(struct mii_timestamper *mii_ts, in nxp_c45_rxtstamp() argument 715 struct nxp_c45_phy *priv = container_of(mii_ts, struct nxp_c45_phy, in nxp_c45_rxtstamp() 716 mii_ts); in nxp_c45_rxtstamp() 732 static int nxp_c45_hwtstamp(struct mii_timestamper *mii_ts, in nxp_c45_hwtstamp() argument 735 struct nxp_c45_phy *priv = container_of(mii_ts, struct nxp_c45_phy, in nxp_c45_hwtstamp() 736 mii_ts); in nxp_c45_hwtstamp() [all …]
|
D | dp83640.c | 109 struct mii_timestamper mii_ts; member 1217 static int dp83640_hwtstamp(struct mii_timestamper *mii_ts, struct ifreq *ifr) in dp83640_hwtstamp() argument 1220 container_of(mii_ts, struct dp83640_private, mii_ts); in dp83640_hwtstamp() 1328 static bool dp83640_rxtstamp(struct mii_timestamper *mii_ts, in dp83640_rxtstamp() argument 1332 container_of(mii_ts, struct dp83640_private, mii_ts); in dp83640_rxtstamp() 1378 static void dp83640_txtstamp(struct mii_timestamper *mii_ts, in dp83640_txtstamp() argument 1383 container_of(mii_ts, struct dp83640_private, mii_ts); in dp83640_txtstamp() 1406 static int dp83640_ts_info(struct mii_timestamper *mii_ts, in dp83640_ts_info() argument 1410 container_of(mii_ts, struct dp83640_private, mii_ts); in dp83640_ts_info() 1448 dp83640->mii_ts.rxtstamp = dp83640_rxtstamp; in dp83640_probe() [all …]
|
D | micrel.c | 299 struct mii_timestamper mii_ts; member 2137 static int lan8814_ts_info(struct mii_timestamper *mii_ts, struct ethtool_ts_info *info) in lan8814_ts_info() argument 2139 struct kszphy_ptp_priv *ptp_priv = container_of(mii_ts, struct kszphy_ptp_priv, mii_ts); in lan8814_ts_info() 2176 static int lan8814_hwtstamp(struct mii_timestamper *mii_ts, struct ifreq *ifr) in lan8814_hwtstamp() argument 2179 container_of(mii_ts, struct kszphy_ptp_priv, mii_ts); in lan8814_hwtstamp() 2272 static void lan8814_txtstamp(struct mii_timestamper *mii_ts, in lan8814_txtstamp() argument 2275 struct kszphy_ptp_priv *ptp_priv = container_of(mii_ts, struct kszphy_ptp_priv, mii_ts); in lan8814_txtstamp() 2343 static bool lan8814_rxtstamp(struct mii_timestamper *mii_ts, struct sk_buff *skb, int type) in lan8814_rxtstamp() argument 2346 container_of(mii_ts, struct kszphy_ptp_priv, mii_ts); in lan8814_rxtstamp() 2932 ptp_priv->mii_ts.rxtstamp = lan8814_rxtstamp; in lan8814_ptp_init() [all …]
|
D | phy.c | 400 if (phydev->mii_ts && phydev->mii_ts->hwtstamp) in phy_mii_ioctl() 401 return phydev->mii_ts->hwtstamp(phydev->mii_ts, ifr); in phy_mii_ioctl()
|
D | phy_device.c | 995 unregister_mii_timestamper(phydev->mii_ts); in phy_device_remove() 1048 if (phydev->mii_ts && phydev->mii_ts->link_state) in phy_link_change() 1049 phydev->mii_ts->link_state(phydev->mii_ts, phydev); in phy_link_change()
|
/linux-6.1.9/include/linux/ |
D | mii_timestamper.h | 47 bool (*rxtstamp)(struct mii_timestamper *mii_ts, 50 void (*txtstamp)(struct mii_timestamper *mii_ts, 53 int (*hwtstamp)(struct mii_timestamper *mii_ts, 56 void (*link_state)(struct mii_timestamper *mii_ts, 59 int (*ts_info)(struct mii_timestamper *mii_ts, 80 struct mii_timestamper *mii_ts); 93 void unregister_mii_timestamper(struct mii_timestamper *mii_ts); 115 static inline void unregister_mii_timestamper(struct mii_timestamper *mii_ts) in unregister_mii_timestamper() argument
|
D | phy.h | 718 struct mii_timestamper *mii_ts; member 1331 return phydev && phydev->mii_ts && phydev->mii_ts->hwtstamp; in phy_has_hwtstamp() 1340 return phydev && phydev->mii_ts && phydev->mii_ts->rxtstamp; in phy_has_rxtstamp() 1350 return phydev && phydev->mii_ts && phydev->mii_ts->ts_info; in phy_has_tsinfo() 1359 return phydev && phydev->mii_ts && phydev->mii_ts->txtstamp; in phy_has_txtstamp() 1364 return phydev->mii_ts->hwtstamp(phydev->mii_ts, ifr); in phy_hwtstamp() 1370 return phydev->mii_ts->rxtstamp(phydev->mii_ts, skb, type); in phy_rxtstamp() 1376 return phydev->mii_ts->ts_info(phydev->mii_ts, tsinfo); in phy_ts_info() 1382 phydev->mii_ts->txtstamp(phydev->mii_ts, skb, type); in phy_txtstamp()
|
/linux-6.1.9/drivers/net/mdio/ |
D | fwnode_mdio.c | 115 struct mii_timestamper *mii_ts = NULL; in fwnode_mdiobus_register_phy() local 126 mii_ts = fwnode_find_mii_timestamper(child); in fwnode_mdiobus_register_phy() 127 if (IS_ERR(mii_ts)) { in fwnode_mdiobus_register_phy() 128 rc = PTR_ERR(mii_ts); in fwnode_mdiobus_register_phy() 173 if (mii_ts) in fwnode_mdiobus_register_phy() 174 phy->mii_ts = mii_ts; in fwnode_mdiobus_register_phy() 181 unregister_mii_timestamper(mii_ts); in fwnode_mdiobus_register_phy()
|
/linux-6.1.9/drivers/ptp/ |
D | ptp_ines.c | 147 struct mii_timestamper mii_ts; member 331 static int ines_hwtstamp(struct mii_timestamper *mii_ts, struct ifreq *ifr) in ines_hwtstamp() argument 333 struct ines_port *port = container_of(mii_ts, struct ines_port, mii_ts); in ines_hwtstamp() 399 static void ines_link_state(struct mii_timestamper *mii_ts, in ines_link_state() argument 402 struct ines_port *port = container_of(mii_ts, struct ines_port, mii_ts); in ines_link_state() 475 static bool ines_rxtstamp(struct mii_timestamper *mii_ts, in ines_rxtstamp() argument 478 struct ines_port *port = container_of(mii_ts, struct ines_port, mii_ts); in ines_rxtstamp() 560 static int ines_ts_info(struct mii_timestamper *mii_ts, in ines_ts_info() argument 617 static void ines_txtstamp(struct mii_timestamper *mii_ts, in ines_txtstamp() argument 620 struct ines_port *port = container_of(mii_ts, struct ines_port, mii_ts); in ines_txtstamp() [all …]
|
/linux-6.1.9/drivers/net/phy/mscc/ |
D | mscc_ptp.c | 1048 static int vsc85xx_hwtstamp(struct mii_timestamper *mii_ts, struct ifreq *ifr) in vsc85xx_hwtstamp() argument 1051 container_of(mii_ts, struct vsc8531_private, mii_ts); in vsc85xx_hwtstamp() 1138 static int vsc85xx_ts_info(struct mii_timestamper *mii_ts, in vsc85xx_ts_info() argument 1142 container_of(mii_ts, struct vsc8531_private, mii_ts); in vsc85xx_ts_info() 1161 static void vsc85xx_txtstamp(struct mii_timestamper *mii_ts, in vsc85xx_txtstamp() argument 1165 container_of(mii_ts, struct vsc8531_private, mii_ts); in vsc85xx_txtstamp() 1182 static bool vsc85xx_rxtstamp(struct mii_timestamper *mii_ts, in vsc85xx_rxtstamp() argument 1186 container_of(mii_ts, struct vsc8531_private, mii_ts); in vsc85xx_rxtstamp() 1484 vsc8531->mii_ts.rxtstamp = vsc85xx_rxtstamp; in __vsc8584_init_ptp() 1485 vsc8531->mii_ts.txtstamp = vsc85xx_txtstamp; in __vsc8584_init_ptp() [all …]
|
D | mscc.h | 390 struct mii_timestamper mii_ts; member
|
/linux-6.1.9/Documentation/networking/ |
D | timestamping.rst | 683 mii_timestamper`` and add a pointer to it in ``phydev->mii_ts``. The presence 700 enabled, and ``skb->dev->phydev->mii_ts`` exists, its ``.rxtstamp()`` hook 712 function that calls the ``mii_ts->txtstamp()`` hook is named 727 for the rest, they use the same mii_ts infrastructure as those. See
|