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()
330 static int xgbe_set_link_ksettings(struct net_device *netdev, in xgbe_set_link_ksettings() argument
333 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_link_ksettings()
342 netdev_err(netdev, "invalid phy address %hhu\n", in xgbe_set_link_ksettings()
349 netdev_err(netdev, "unsupported autoneg %hhu\n", in xgbe_set_link_ksettings()
356 netdev_err(netdev, "unsupported speed %u\n", speed); in xgbe_set_link_ksettings()
361 netdev_err(netdev, "unsupported duplex %hhu\n", in xgbe_set_link_ksettings()
367 netif_dbg(pdata, link, netdev, in xgbe_set_link_ksettings()
378 netdev_err(netdev, in xgbe_set_link_ksettings()
395 if (netif_running(netdev)) in xgbe_set_link_ksettings()
401 static void xgbe_get_drvinfo(struct net_device *netdev, in xgbe_get_drvinfo() argument
404 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_drvinfo()
417 static u32 xgbe_get_msglevel(struct net_device *netdev) in xgbe_get_msglevel() argument
419 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_msglevel()
424 static void xgbe_set_msglevel(struct net_device *netdev, u32 msglevel) in xgbe_set_msglevel() argument
426 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_msglevel()
431 static int xgbe_get_coalesce(struct net_device *netdev, in xgbe_get_coalesce() argument
434 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_coalesce()
446 static int xgbe_set_coalesce(struct net_device *netdev, in xgbe_set_coalesce() argument
449 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_coalesce()
474 netdev_err(netdev, "unsupported coalescing parameter\n"); in xgbe_set_coalesce()
488 netdev_err(netdev, "rx-usec is limited to %d usecs\n", in xgbe_set_coalesce()
493 netdev_err(netdev, "rx-frames is limited to %d frames\n", in xgbe_set_coalesce()
502 netdev_err(netdev, "tx-frames is limited to %d frames\n", in xgbe_set_coalesce()
518 static int xgbe_get_rxnfc(struct net_device *netdev, in xgbe_get_rxnfc() argument
521 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_rxnfc()
534 static u32 xgbe_get_rxfh_key_size(struct net_device *netdev) in xgbe_get_rxfh_key_size() argument
536 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_rxfh_key_size()
541 static u32 xgbe_get_rxfh_indir_size(struct net_device *netdev) in xgbe_get_rxfh_indir_size() argument
543 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_rxfh_indir_size()
548 static int xgbe_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in xgbe_get_rxfh() argument
551 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_rxfh()
569 static int xgbe_set_rxfh(struct net_device *netdev, const u32 *indir, in xgbe_set_rxfh() argument
572 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_rxfh()
577 netdev_err(netdev, "unsupported hash function\n"); in xgbe_set_rxfh()
596 static int xgbe_get_ts_info(struct net_device *netdev, in xgbe_get_ts_info() argument
599 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_ts_info()
629 static int xgbe_get_module_info(struct net_device *netdev, in xgbe_get_module_info() argument
632 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_module_info()
637 static int xgbe_get_module_eeprom(struct net_device *netdev, in xgbe_get_module_eeprom() argument
640 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_module_eeprom()
645 static void xgbe_get_ringparam(struct net_device *netdev, in xgbe_get_ringparam() argument
648 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_ringparam()
656 static int xgbe_set_ringparam(struct net_device *netdev, in xgbe_set_ringparam() argument
659 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_ringparam()
663 netdev_err(netdev, "unsupported ring parameter\n"); in xgbe_set_ringparam()
669 netdev_err(netdev, in xgbe_set_ringparam()
677 netdev_err(netdev, in xgbe_set_ringparam()
685 netdev_notice(netdev, in xgbe_set_ringparam()
691 netdev_notice(netdev, in xgbe_set_ringparam()
708 static void xgbe_get_channels(struct net_device *netdev, in xgbe_get_channels() argument
711 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_channels()
745 static void xgbe_print_set_channels_input(struct net_device *netdev, in xgbe_print_set_channels_input() argument
748 netdev_err(netdev, "channel inputs: combined=%u, rx-only=%u, tx-only=%u\n", in xgbe_print_set_channels_input()
753 static int xgbe_set_channels(struct net_device *netdev, in xgbe_set_channels() argument
756 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_channels()
775 netdev_err(netdev, in xgbe_set_channels()
782 netdev_err(netdev, in xgbe_set_channels()
784 xgbe_print_set_channels_input(netdev, channels); in xgbe_set_channels()
790 netdev_err(netdev, in xgbe_set_channels()
793 xgbe_print_set_channels_input(netdev, channels); in xgbe_set_channels()
799 netdev_err(netdev, in xgbe_set_channels()
801 xgbe_print_set_channels_input(netdev, channels); in xgbe_set_channels()
807 netdev_err(netdev, in xgbe_set_channels()
810 xgbe_print_set_channels_input(netdev, channels); in xgbe_set_channels()
815 netdev_err(netdev, in xgbe_set_channels()
818 xgbe_print_set_channels_input(netdev, channels); in xgbe_set_channels()