Lines Matching refs:netdev
66 static u32 emac_get_msglevel(struct net_device *netdev) in emac_get_msglevel() argument
68 struct emac_adapter *adpt = netdev_priv(netdev); in emac_get_msglevel()
73 static void emac_set_msglevel(struct net_device *netdev, u32 data) in emac_set_msglevel() argument
75 struct emac_adapter *adpt = netdev_priv(netdev); in emac_set_msglevel()
80 static int emac_get_sset_count(struct net_device *netdev, int sset) in emac_get_sset_count() argument
92 static void emac_get_strings(struct net_device *netdev, u32 stringset, u8 *data) in emac_get_strings() argument
111 static void emac_get_ethtool_stats(struct net_device *netdev, in emac_get_ethtool_stats() argument
115 struct emac_adapter *adpt = netdev_priv(netdev); in emac_get_ethtool_stats()
125 static int emac_nway_reset(struct net_device *netdev) in emac_nway_reset() argument
127 struct phy_device *phydev = netdev->phydev; in emac_nway_reset()
135 static void emac_get_ringparam(struct net_device *netdev, in emac_get_ringparam() argument
140 struct emac_adapter *adpt = netdev_priv(netdev); in emac_get_ringparam()
148 static int emac_set_ringparam(struct net_device *netdev, in emac_set_ringparam() argument
153 struct emac_adapter *adpt = netdev_priv(netdev); in emac_set_ringparam()
167 if (netif_running(netdev)) in emac_set_ringparam()
173 static void emac_get_pauseparam(struct net_device *netdev, in emac_get_pauseparam() argument
176 struct emac_adapter *adpt = netdev_priv(netdev); in emac_get_pauseparam()
183 static int emac_set_pauseparam(struct net_device *netdev, in emac_set_pauseparam() argument
186 struct emac_adapter *adpt = netdev_priv(netdev); in emac_set_pauseparam()
192 if (netif_running(netdev)) in emac_set_pauseparam()
216 static void emac_get_regs(struct net_device *netdev, in emac_get_regs() argument
219 struct emac_adapter *adpt = netdev_priv(netdev); in emac_get_regs()
230 static int emac_get_regs_len(struct net_device *netdev) in emac_get_regs_len() argument
237 static int emac_set_priv_flags(struct net_device *netdev, u32 flags) in emac_set_priv_flags() argument
239 struct emac_adapter *adpt = netdev_priv(netdev); in emac_set_priv_flags()
243 if (netif_running(netdev)) in emac_set_priv_flags()
249 static u32 emac_get_priv_flags(struct net_device *netdev) in emac_get_priv_flags() argument
251 struct emac_adapter *adpt = netdev_priv(netdev); in emac_get_priv_flags()
284 void emac_set_ethtool_ops(struct net_device *netdev) in emac_set_ethtool_ops() argument
286 netdev->ethtool_ops = &emac_ethtool_ops; in emac_set_ethtool_ops()