• Home
  • Raw
  • Download

Lines Matching refs:net_dev

80 static int dpaa_get_link_ksettings(struct net_device *net_dev,  in dpaa_get_link_ksettings()  argument
83 if (!net_dev->phydev) in dpaa_get_link_ksettings()
86 phy_ethtool_ksettings_get(net_dev->phydev, cmd); in dpaa_get_link_ksettings()
91 static int dpaa_set_link_ksettings(struct net_device *net_dev, in dpaa_set_link_ksettings() argument
96 if (!net_dev->phydev) in dpaa_set_link_ksettings()
99 err = phy_ethtool_ksettings_set(net_dev->phydev, cmd); in dpaa_set_link_ksettings()
101 netdev_err(net_dev, "phy_ethtool_ksettings_set() = %d\n", err); in dpaa_set_link_ksettings()
106 static void dpaa_get_drvinfo(struct net_device *net_dev, in dpaa_get_drvinfo() argument
111 strlcpy(drvinfo->bus_info, dev_name(net_dev->dev.parent->parent), in dpaa_get_drvinfo()
115 static u32 dpaa_get_msglevel(struct net_device *net_dev) in dpaa_get_msglevel() argument
117 return ((struct dpaa_priv *)netdev_priv(net_dev))->msg_enable; in dpaa_get_msglevel()
120 static void dpaa_set_msglevel(struct net_device *net_dev, in dpaa_set_msglevel() argument
123 ((struct dpaa_priv *)netdev_priv(net_dev))->msg_enable = msg_enable; in dpaa_set_msglevel()
126 static int dpaa_nway_reset(struct net_device *net_dev) in dpaa_nway_reset() argument
130 if (!net_dev->phydev) in dpaa_nway_reset()
134 if (net_dev->phydev->autoneg) { in dpaa_nway_reset()
135 err = phy_start_aneg(net_dev->phydev); in dpaa_nway_reset()
137 netdev_err(net_dev, "phy_start_aneg() = %d\n", in dpaa_nway_reset()
144 static void dpaa_get_pauseparam(struct net_device *net_dev, in dpaa_get_pauseparam() argument
150 priv = netdev_priv(net_dev); in dpaa_get_pauseparam()
153 if (!net_dev->phydev) in dpaa_get_pauseparam()
161 static int dpaa_set_pauseparam(struct net_device *net_dev, in dpaa_set_pauseparam() argument
170 priv = netdev_priv(net_dev); in dpaa_set_pauseparam()
173 phydev = net_dev->phydev; in dpaa_set_pauseparam()
175 netdev_err(net_dev, "phy device not initialized\n"); in dpaa_set_pauseparam()
199 netdev_err(net_dev, "set_mac_active_pause() = %d\n", err); in dpaa_set_pauseparam()
204 static int dpaa_get_sset_count(struct net_device *net_dev, int type) in dpaa_get_sset_count() argument
258 static void dpaa_get_ethtool_stats(struct net_device *net_dev, in dpaa_get_ethtool_stats() argument
271 total_stats = dpaa_get_sset_count(net_dev, ETH_SS_STATS); in dpaa_get_ethtool_stats()
272 priv = netdev_priv(net_dev); in dpaa_get_ethtool_stats()
327 static void dpaa_get_strings(struct net_device *net_dev, u32 stringset, in dpaa_get_strings() argument
416 static void dpaa_set_hash(struct net_device *net_dev, bool enable) in dpaa_set_hash() argument
422 priv = netdev_priv(net_dev); in dpaa_set_hash()
480 static int dpaa_get_ts_info(struct net_device *net_dev, in dpaa_get_ts_info() argument
483 struct device *dev = net_dev->dev.parent; in dpaa_get_ts_info()