/net/ethtool/ |
D | cabletest.c | 19 static int ethnl_cable_test_started(struct phy_device *phydev, u8 cmd) in ethnl_cable_test_started() argument 35 err = ethnl_fill_reply_header(skb, phydev->attached_dev, in ethnl_cable_test_started() 47 return ethnl_multicast(skb, phydev->attached_dev); in ethnl_cable_test_started() 51 phydev_err(phydev, "%s: Error %pe\n", __func__, ERR_PTR(err)); in ethnl_cable_test_started() 72 if (!dev->phydev) { in ethnl_act_cable_test() 88 ret = ops->start_cable_test(dev->phydev, info->extack); in ethnl_act_cable_test() 93 ethnl_cable_test_started(dev->phydev, in ethnl_act_cable_test() 103 int ethnl_cable_test_alloc(struct phy_device *phydev, u8 cmd) in ethnl_cable_test_alloc() argument 110 phydev->skb = genlmsg_new(SZ_16K, GFP_KERNEL); in ethnl_cable_test_alloc() 111 if (!phydev->skb) in ethnl_cable_test_alloc() [all …]
|
D | linkstate.c | 30 struct phy_device *phydev = dev->phydev; in linkstate_get_sqi() local 33 if (!phydev) in linkstate_get_sqi() 36 mutex_lock(&phydev->lock); in linkstate_get_sqi() 37 if (!phydev->drv || !phydev->drv->get_sqi) in linkstate_get_sqi() 40 ret = phydev->drv->get_sqi(phydev); in linkstate_get_sqi() 41 mutex_unlock(&phydev->lock); in linkstate_get_sqi() 48 struct phy_device *phydev = dev->phydev; in linkstate_get_sqi_max() local 51 if (!phydev) in linkstate_get_sqi_max() 54 mutex_lock(&phydev->lock); in linkstate_get_sqi_max() 55 if (!phydev->drv || !phydev->drv->get_sqi_max) in linkstate_get_sqi_max() [all …]
|
D | ioctl.c | 155 if (sset == ETH_SS_PHY_STATS && dev->phydev && in __ethtool_get_sset_count() 158 return phy_ops->get_sset_count(dev->phydev); in __ethtool_get_sset_count() 185 else if (stringset == ETH_SS_PHY_STATS && dev->phydev && in __ethtool_get_strings() 188 phy_ops->get_strings(dev->phydev, data); in __ethtool_get_strings() 2060 struct phy_device *phydev = dev->phydev; in ethtool_get_phy_stats() local 2065 if (!phydev && (!ops->get_ethtool_phy_stats || !ops->get_sset_count)) in ethtool_get_phy_stats() 2068 if (dev->phydev && !ops->get_ethtool_phy_stats && in ethtool_get_phy_stats() 2070 n_stats = phy_ops->get_sset_count(dev->phydev); in ethtool_get_phy_stats() 2090 if (dev->phydev && !ops->get_ethtool_phy_stats && in ethtool_get_phy_stats() 2092 ret = phy_ops->get_stats(dev->phydev, &stats, data); in ethtool_get_phy_stats() [all …]
|
D | strset.c | 243 if (id == ETH_SS_PHY_STATS && dev->phydev && in strset_prepare_set() 246 ret = phy_ops->get_sset_count(dev->phydev); in strset_prepare_set() 261 if (id == ETH_SS_PHY_STATS && dev->phydev && in strset_prepare_set() 264 phy_ops->get_strings(dev->phydev, strings); in strset_prepare_set()
|
D | common.c | 542 struct phy_device *phydev = dev->phydev; in __ethtool_get_ts_info() local 547 if (phy_has_tsinfo(phydev)) in __ethtool_get_ts_info() 548 return phy_ts_info(phydev, info); in __ethtool_get_ts_info()
|
/net/dsa/ |
D | port.c | 981 struct phy_device *phydev; in dsa_port_get_phy_device() local 987 phydev = of_phy_find_device(phy_dn); in dsa_port_get_phy_device() 988 if (!phydev) { in dsa_port_get_phy_device() 994 return phydev; in dsa_port_get_phy_device() 1060 struct phy_device *phydev = NULL; in dsa_port_phylink_mac_link_down() local 1064 phydev = dp->slave->phydev; in dsa_port_phylink_mac_link_down() 1067 if (ds->ops->adjust_link && phydev) in dsa_port_phylink_mac_link_down() 1068 ds->ops->adjust_link(ds, dp->index, phydev); in dsa_port_phylink_mac_link_down() 1076 struct phy_device *phydev, in dsa_port_phylink_mac_link_up() argument 1086 if (ds->ops->adjust_link && phydev) in dsa_port_phylink_mac_link_up() [all …]
|
D | master.c | 104 if (dev->phydev && !ops->get_ethtool_phy_stats) { in dsa_master_get_ethtool_phy_stats() 105 count = phy_ethtool_get_sset_count(dev->phydev); in dsa_master_get_ethtool_phy_stats() 107 phy_ethtool_get_stats(dev->phydev, stats, data); in dsa_master_get_ethtool_phy_stats() 127 if (sset == ETH_SS_PHY_STATS && dev->phydev && in dsa_master_get_sset_count() 129 count = phy_ethtool_get_sset_count(dev->phydev); in dsa_master_get_sset_count() 158 if (stringset == ETH_SS_PHY_STATS && dev->phydev && in dsa_master_get_strings() 160 mcount = phy_ethtool_get_sset_count(dev->phydev); in dsa_master_get_strings() 164 phy_ethtool_get_strings(dev->phydev, data); in dsa_master_get_strings()
|
D | slave.c | 95 err = dsa_port_enable_rt(dp, dev->phydev); in dsa_slave_open() 838 if (!dev->phydev || !dp->pl) in dsa_slave_set_eee() 858 if (!dev->phydev || !dp->pl) in dsa_slave_get_eee() 1804 slave_dev->phydev = mdiobus_get_phy(ds->slave_mii_bus, addr); in dsa_slave_phy_connect() 1805 if (!slave_dev->phydev) { in dsa_slave_phy_connect() 1810 slave_dev->phydev->dev_flags |= flags; in dsa_slave_phy_connect() 1812 return phylink_connect_phy(dp->pl, slave_dev->phydev); in dsa_slave_phy_connect()
|
/net/core/ |
D | timestamping.c | 15 if (likely(skb->dev && skb->dev->phydev && in classify() 16 skb->dev->phydev->mii_ts)) in classify() 35 mii_ts = skb->dev->phydev->mii_ts; in skb_clone_tx_timestamp() 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()
|
D | selftests.c | 294 return ndev->phydev ? 0 : -EOPNOTSUPP; in net_test_phy_phydev() 299 if (!ndev->phydev) in net_test_phy_loopback_enable() 302 return phy_loopback(ndev->phydev, true); in net_test_phy_loopback_enable() 307 if (!ndev->phydev) in net_test_phy_loopback_disable() 310 return phy_loopback(ndev->phydev, false); in net_test_phy_loopback_disable()
|
/net/xfrm/ |
D | xfrm_interface_core.c | 627 struct net_device *phydev = __dev_get_by_index(xi->net, xi->p.link); in xfrmi_dev_init() local 644 if (phydev) { in xfrmi_dev_init() 645 dev->needed_headroom = phydev->needed_headroom; in xfrmi_dev_init() 646 dev->needed_tailroom = phydev->needed_tailroom; in xfrmi_dev_init() 649 eth_hw_addr_inherit(dev, phydev); in xfrmi_dev_init() 651 memcpy(dev->broadcast, phydev->broadcast, in xfrmi_dev_init()
|
/net/8021q/ |
D | vlan_dev.c | 693 struct phy_device *phydev = vlan->real_dev->phydev; in vlan_ethtool_get_ts_info() local 695 if (phy_has_tsinfo(phydev)) { in vlan_ethtool_get_ts_info() 696 return phy_ts_info(phydev, info); in vlan_ethtool_get_ts_info()
|