Lines Matching refs:netdev
104 uec_get_ksettings(struct net_device *netdev, struct ethtool_link_ksettings *cmd) in uec_get_ksettings() argument
106 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_ksettings()
118 uec_set_ksettings(struct net_device *netdev, in uec_set_ksettings() argument
121 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_set_ksettings()
131 uec_get_pauseparam(struct net_device *netdev, in uec_get_pauseparam() argument
134 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_pauseparam()
145 uec_set_pauseparam(struct net_device *netdev, in uec_set_pauseparam() argument
148 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_set_pauseparam()
155 if (netif_running(netdev)) { in uec_set_pauseparam()
157 netdev_info(netdev, "Please re-open the interface\n"); in uec_set_pauseparam()
176 uec_get_msglevel(struct net_device *netdev) in uec_get_msglevel() argument
178 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_msglevel()
183 uec_set_msglevel(struct net_device *netdev, uint32_t data) in uec_set_msglevel() argument
185 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_set_msglevel()
190 uec_get_regs_len(struct net_device *netdev) in uec_get_regs_len() argument
196 uec_get_regs(struct net_device *netdev, in uec_get_regs() argument
200 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_regs()
209 uec_get_ringparam(struct net_device *netdev, in uec_get_ringparam() argument
212 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_ringparam()
228 uec_set_ringparam(struct net_device *netdev, in uec_set_ringparam() argument
231 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_set_ringparam()
236 netdev_info(netdev, "RxBD ring size must be no smaller than %d\n", in uec_set_ringparam()
241 netdev_info(netdev, "RxBD ring size must be multiple of %d\n", in uec_set_ringparam()
246 netdev_info(netdev, "TxBD ring size must be no smaller than %d\n", in uec_set_ringparam()
251 if (netif_running(netdev)) in uec_set_ringparam()
260 static int uec_get_sset_count(struct net_device *netdev, int sset) in uec_get_sset_count() argument
262 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_sset_count()
282 static void uec_get_strings(struct net_device *netdev, u32 stringset, u8 *buf) in uec_get_strings() argument
284 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_strings()
302 static void uec_get_ethtool_stats(struct net_device *netdev, in uec_get_ethtool_stats() argument
305 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_ethtool_stats()
333 uec_get_drvinfo(struct net_device *netdev, in uec_get_drvinfo() argument
342 static void uec_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in uec_get_wol() argument
344 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_wol()
355 static int uec_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in uec_set_wol() argument
357 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_set_wol()
368 device_set_wakeup_enable(&netdev->dev, ugeth->wol_en); in uec_set_wol()
400 void uec_set_ethtool_ops(struct net_device *netdev) in uec_set_ethtool_ops() argument
402 netdev->ethtool_ops = &uec_ethtool_ops; in uec_set_ethtool_ops()