Lines Matching refs:netdev
191 static void xgbe_get_strings(struct net_device *netdev, u32 stringset, u8 *data) in xgbe_get_strings() argument
193 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_strings()
219 static void xgbe_get_ethtool_stats(struct net_device *netdev, in xgbe_get_ethtool_stats() argument
222 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_ethtool_stats()
241 static int xgbe_get_sset_count(struct net_device *netdev, int stringset) in xgbe_get_sset_count() argument
243 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_sset_count()
260 static void xgbe_get_pauseparam(struct net_device *netdev, in xgbe_get_pauseparam() argument
263 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_pauseparam()
270 static int xgbe_set_pauseparam(struct net_device *netdev, in xgbe_set_pauseparam() argument
273 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_pauseparam()
278 netdev_err(netdev, in xgbe_set_pauseparam()
303 if (netif_running(netdev)) in xgbe_set_pauseparam()
309 static int xgbe_get_link_ksettings(struct net_device *netdev, in xgbe_get_link_ksettings() argument
312 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_link_ksettings()
317 if (netif_carrier_ok(netdev)) { in xgbe_get_link_ksettings()
335 static int xgbe_set_link_ksettings(struct net_device *netdev, in xgbe_set_link_ksettings() argument
338 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_link_ksettings()
347 netdev_err(netdev, "invalid phy address %hhu\n", in xgbe_set_link_ksettings()
354 netdev_err(netdev, "unsupported autoneg %hhu\n", in xgbe_set_link_ksettings()
361 netdev_err(netdev, "unsupported speed %u\n", speed); in xgbe_set_link_ksettings()
366 netdev_err(netdev, "unsupported duplex %hhu\n", in xgbe_set_link_ksettings()
372 netif_dbg(pdata, link, netdev, in xgbe_set_link_ksettings()
383 netdev_err(netdev, in xgbe_set_link_ksettings()
400 if (netif_running(netdev)) in xgbe_set_link_ksettings()
406 static void xgbe_get_drvinfo(struct net_device *netdev, in xgbe_get_drvinfo() argument
409 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_drvinfo()
421 static u32 xgbe_get_msglevel(struct net_device *netdev) in xgbe_get_msglevel() argument
423 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_msglevel()
428 static void xgbe_set_msglevel(struct net_device *netdev, u32 msglevel) in xgbe_set_msglevel() argument
430 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_msglevel()
435 static int xgbe_get_coalesce(struct net_device *netdev, in xgbe_get_coalesce() argument
438 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_coalesce()
450 static int xgbe_set_coalesce(struct net_device *netdev, in xgbe_set_coalesce() argument
453 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_coalesce()
468 netdev_err(netdev, "rx-usec is limited to %d usecs\n", in xgbe_set_coalesce()
473 netdev_err(netdev, "rx-frames is limited to %d frames\n", in xgbe_set_coalesce()
482 netdev_err(netdev, "tx-frames is limited to %d frames\n", in xgbe_set_coalesce()
498 static int xgbe_get_rxnfc(struct net_device *netdev, in xgbe_get_rxnfc() argument
501 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_rxnfc()
514 static u32 xgbe_get_rxfh_key_size(struct net_device *netdev) in xgbe_get_rxfh_key_size() argument
516 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_rxfh_key_size()
521 static u32 xgbe_get_rxfh_indir_size(struct net_device *netdev) in xgbe_get_rxfh_indir_size() argument
523 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_rxfh_indir_size()
528 static int xgbe_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in xgbe_get_rxfh() argument
531 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_rxfh()
549 static int xgbe_set_rxfh(struct net_device *netdev, const u32 *indir, in xgbe_set_rxfh() argument
552 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_rxfh()
557 netdev_err(netdev, "unsupported hash function\n"); in xgbe_set_rxfh()
576 static int xgbe_get_ts_info(struct net_device *netdev, in xgbe_get_ts_info() argument
579 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_ts_info()
609 static int xgbe_get_module_info(struct net_device *netdev, in xgbe_get_module_info() argument
612 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_module_info()
617 static int xgbe_get_module_eeprom(struct net_device *netdev, in xgbe_get_module_eeprom() argument
620 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_module_eeprom()
625 static void xgbe_get_ringparam(struct net_device *netdev, in xgbe_get_ringparam() argument
628 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_ringparam()
636 static int xgbe_set_ringparam(struct net_device *netdev, in xgbe_set_ringparam() argument
639 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_ringparam()
643 netdev_err(netdev, "unsupported ring parameter\n"); in xgbe_set_ringparam()
649 netdev_err(netdev, in xgbe_set_ringparam()
657 netdev_err(netdev, in xgbe_set_ringparam()
665 netdev_notice(netdev, in xgbe_set_ringparam()
671 netdev_notice(netdev, in xgbe_set_ringparam()
688 static void xgbe_get_channels(struct net_device *netdev, in xgbe_get_channels() argument
691 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_channels()
725 static void xgbe_print_set_channels_input(struct net_device *netdev, in xgbe_print_set_channels_input() argument
728 netdev_err(netdev, "channel inputs: combined=%u, rx-only=%u, tx-only=%u\n", in xgbe_print_set_channels_input()
733 static int xgbe_set_channels(struct net_device *netdev, in xgbe_set_channels() argument
736 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_channels()
755 netdev_err(netdev, in xgbe_set_channels()
762 netdev_err(netdev, in xgbe_set_channels()
764 xgbe_print_set_channels_input(netdev, channels); in xgbe_set_channels()
770 netdev_err(netdev, in xgbe_set_channels()
773 xgbe_print_set_channels_input(netdev, channels); in xgbe_set_channels()
779 netdev_err(netdev, in xgbe_set_channels()
781 xgbe_print_set_channels_input(netdev, channels); in xgbe_set_channels()
787 netdev_err(netdev, in xgbe_set_channels()
790 xgbe_print_set_channels_input(netdev, channels); in xgbe_set_channels()
795 netdev_err(netdev, in xgbe_set_channels()
798 xgbe_print_set_channels_input(netdev, channels); in xgbe_set_channels()