Lines Matching refs:net_dev
44 static u32 hns_nic_get_link(struct net_device *net_dev) in hns_nic_get_link() argument
46 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_nic_get_link()
68 static void hns_get_mdix_mode(struct net_device *net_dev, in hns_get_mdix_mode() argument
72 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_get_mdix_mode()
123 static int hns_nic_get_settings(struct net_device *net_dev, in hns_nic_get_settings() argument
126 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_nic_get_settings()
142 netdev_err(net_dev, "%s get_info error!\n", __func__); in hns_nic_get_settings()
154 link_stat = hns_nic_get_link(net_dev); in hns_nic_get_settings()
181 hns_get_mdix_mode(net_dev, cmd); in hns_nic_get_settings()
192 static int hns_nic_set_settings(struct net_device *net_dev, in hns_nic_set_settings() argument
195 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_nic_set_settings()
199 if (!netif_running(net_dev)) in hns_nic_set_settings()
227 netdev_err(net_dev, "Not supported!"); in hns_nic_set_settings()
236 netdev_err(net_dev, "Not supported!"); in hns_nic_set_settings()
651 static void hns_nic_get_drvinfo(struct net_device *net_dev, in hns_nic_get_drvinfo() argument
654 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_nic_get_drvinfo()
677 void hns_get_ringparam(struct net_device *net_dev, in hns_get_ringparam() argument
680 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_get_ringparam()
702 static void hns_get_pauseparam(struct net_device *net_dev, in hns_get_pauseparam() argument
705 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_get_pauseparam()
722 static int hns_set_pauseparam(struct net_device *net_dev, in hns_set_pauseparam() argument
725 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_set_pauseparam()
748 static int hns_get_coalesce(struct net_device *net_dev, in hns_get_coalesce() argument
751 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_get_coalesce()
782 static int hns_set_coalesce(struct net_device *net_dev, in hns_set_coalesce() argument
785 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_set_coalesce()
818 void hns_get_channels(struct net_device *net_dev, struct ethtool_channels *ch) in hns_get_channels() argument
820 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_get_channels()
1125 void hns_get_regs(struct net_device *net_dev, struct ethtool_regs *cmd, in hns_get_regs() argument
1128 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_get_regs()
1137 netdev_err(net_dev, "ops->get_regs is null!\n"); in hns_get_regs()
1149 static int hns_get_regs_len(struct net_device *net_dev) in hns_get_regs_len() argument
1152 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_get_regs_len()
1159 netdev_err(net_dev, "ops->get_regs_len is null!\n"); in hns_get_regs_len()