Home
last modified time | relevance | path

Searched refs:mii_ts (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/net/phy/
H A Dmii_timestamper.c81 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()
H A Dmicrochip_rds_ptp.c322 static void mchp_rds_ptp_txtstamp(struct mii_timestamper *mii_ts, in mchp_rds_ptp_txtstamp() argument
325 struct mchp_rds_ptp_clock *clock = container_of(mii_ts, in mchp_rds_ptp_txtstamp()
327 mii_ts); in mchp_rds_ptp_txtstamp()
454 static bool mchp_rds_ptp_rxtstamp(struct mii_timestamper *mii_ts, in mchp_rds_ptp_rxtstamp() argument
457 struct mchp_rds_ptp_clock *clock = container_of(mii_ts, in mchp_rds_ptp_rxtstamp()
459 mii_ts); in mchp_rds_ptp_rxtstamp()
479 static int mchp_rds_ptp_hwtstamp_get(struct mii_timestamper *mii_ts, in mchp_rds_ptp_hwtstamp_get() argument
483 container_of(mii_ts, struct mchp_rds_ptp_clock, in mchp_rds_ptp_hwtstamp_get()
484 mii_ts); in mchp_rds_ptp_hwtstamp_get()
491 static int mchp_rds_ptp_hwtstamp_set(struct mii_timestamper *mii_ts, in mchp_rds_ptp_hwtstamp_set() argument
[all …]
H A Ddp83640.c109 struct mii_timestamper mii_ts; member
1178 static int dp83640_hwtstamp_get(struct mii_timestamper *mii_ts, in dp83640_hwtstamp_get() argument
1182 container_of(mii_ts, struct dp83640_private, mii_ts); in dp83640_hwtstamp_get()
1190 static int dp83640_hwtstamp_set(struct mii_timestamper *mii_ts, in dp83640_hwtstamp_set() argument
1195 container_of(mii_ts, struct dp83640_private, mii_ts); in dp83640_hwtstamp_set()
1299 static bool dp83640_rxtstamp(struct mii_timestamper *mii_ts, in dp83640_rxtstamp() argument
1303 container_of(mii_ts, struct dp83640_private, mii_ts); in dp83640_rxtstamp()
1349 static void dp83640_txtstamp(struct mii_timestamper *mii_ts, in dp83640_txtstamp() argument
1354 container_of(mii_ts, struct dp83640_private, mii_ts); in dp83640_txtstamp()
1377 static int dp83640_ts_info(struct mii_timestamper *mii_ts, in dp83640_ts_info() argument
[all …]
H A Dmicrel.c426 struct mii_timestamper mii_ts; member
3133 static int lan8814_ts_info(struct mii_timestamper *mii_ts, struct kernel_ethtool_ts_info *info) in lan8814_ts_info() argument
3135 struct kszphy_ptp_priv *ptp_priv = container_of(mii_ts, struct kszphy_ptp_priv, mii_ts); in lan8814_ts_info()
3171 static int lan8814_hwtstamp_get(struct mii_timestamper *mii_ts, in lan8814_hwtstamp_get() argument
3175 container_of(mii_ts, struct kszphy_ptp_priv, mii_ts); in lan8814_hwtstamp_get()
3183 static int lan8814_hwtstamp_set(struct mii_timestamper *mii_ts, in lan8814_hwtstamp_set() argument
3188 container_of(mii_ts, struct kszphy_ptp_priv, mii_ts); in lan8814_hwtstamp_set()
3282 static void lan8814_txtstamp(struct mii_timestamper *mii_ts, in lan8814_txtstamp() argument
3285 struct kszphy_ptp_priv *ptp_priv = container_of(mii_ts, struct kszphy_ptp_priv, mii_ts); in lan8814_txtstamp()
3358 static bool lan8814_rxtstamp(struct mii_timestamper *mii_ts, struct sk_buff *skb, int type) in lan8814_rxtstamp() argument
[all …]
H A Dphy_device.c271 if (phydev->mii_ts && phydev->mii_ts->link_state) in phy_link_change()
272 phydev->mii_ts->link_state(phydev->mii_ts, phydev); in phy_link_change()
1154 unregister_mii_timestamper(phydev->mii_ts); in phy_device_remove()
/linux/drivers/ptp/
H A Dptp_ines.c147 struct mii_timestamper mii_ts; member
331 static int ines_hwtstamp_get(struct mii_timestamper *mii_ts, in ines_hwtstamp_get() argument
334 struct ines_port *port = container_of(mii_ts, struct ines_port, mii_ts); in ines_hwtstamp_get()
353 static int ines_hwtstamp_set(struct mii_timestamper *mii_ts, in ines_hwtstamp_set() argument
357 struct ines_port *port = container_of(mii_ts, struct ines_port, mii_ts); in ines_hwtstamp_set()
419 static void ines_link_state(struct mii_timestamper *mii_ts, in ines_link_state() argument
422 struct ines_port *port = container_of(mii_ts, struct ines_port, mii_ts); in ines_link_state()
495 static bool ines_rxtstamp(struct mii_timestamper *mii_ts, in ines_rxtstamp() argument
498 struct ines_port *port = container_of(mii_ts, struct ines_port, mii_ts); in ines_rxtstamp()
580 static int ines_ts_info(struct mii_timestamper *mii_ts, in ines_ts_info() argument
[all …]
/linux/Documentation/translations/zh_CN/networking/
H A Dtimestamping.rst608 指向它的指针在 ``phydev->mii_ts`` 中。 ``phydev->mii_ts`` 的存在将由网络
623 ``skb->dev->phydev->mii_ts`` 存在,它的 ``.rxtstamp()`` 钩子现在将被调
631 - 在 TX 上,同样,特殊干预可能或可能不需要。调用 ``mii_ts->txtstamp()``钩
642 附加到 ``struct phy_device``,对于其余部分,它们使用与那些相同的 mii_ts