Lines Matching refs:netdev

74 static void otx2_get_drvinfo(struct net_device *netdev,  in otx2_get_drvinfo()  argument
77 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_drvinfo()
110 static void otx2_get_strings(struct net_device *netdev, u32 sset, u8 *data) in otx2_get_strings() argument
112 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_strings()
198 static void otx2_get_ethtool_stats(struct net_device *netdev, in otx2_get_ethtool_stats() argument
201 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_ethtool_stats()
254 static int otx2_get_sset_count(struct net_device *netdev, int sset) in otx2_get_sset_count() argument
256 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_sset_count()
327 static void otx2_get_pauseparam(struct net_device *netdev, in otx2_get_pauseparam() argument
330 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_pauseparam()
352 static int otx2_set_pauseparam(struct net_device *netdev, in otx2_set_pauseparam() argument
355 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_set_pauseparam()
376 static void otx2_get_ringparam(struct net_device *netdev, in otx2_get_ringparam() argument
381 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_ringparam()
392 static int otx2_set_ringparam(struct net_device *netdev, in otx2_set_ringparam() argument
397 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_set_ringparam()
401 bool if_up = netif_running(netdev); in otx2_set_ringparam()
412 netdev_err(netdev, in otx2_set_ringparam()
418 netdev_err(netdev, in otx2_set_ringparam()
445 netdev->netdev_ops->ndo_stop(netdev); in otx2_set_ringparam()
455 return netdev->netdev_ops->ndo_open(netdev); in otx2_set_ringparam()
460 static int otx2_get_coalesce(struct net_device *netdev, in otx2_get_coalesce() argument
465 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_coalesce()
484 static int otx2_set_coalesce(struct net_device *netdev, in otx2_set_coalesce() argument
489 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_set_coalesce()
498 netdev_err(netdev, in otx2_set_coalesce()
564 if (netif_running(netdev)) { in otx2_set_coalesce()
630 netdev_err(pfvf->netdev, in otx2_set_rss_hash_opts()
701 netdev_err(pfvf->netdev, in otx2_set_rss_hash_opts()
790 static u32 otx2_get_rxfh_key_size(struct net_device *netdev) in otx2_get_rxfh_key_size() argument
792 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_rxfh_key_size()
940 static u32 otx2_get_msglevel(struct net_device *netdev) in otx2_get_msglevel() argument
942 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_msglevel()
947 static void otx2_set_msglevel(struct net_device *netdev, u32 val) in otx2_set_msglevel() argument
949 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_set_msglevel()
954 static u32 otx2_get_link(struct net_device *netdev) in otx2_get_link() argument
956 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_link()
964 static int otx2_get_ts_info(struct net_device *netdev, in otx2_get_ts_info() argument
967 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_ts_info()
970 return ethtool_op_get_ts_info(netdev, info); in otx2_get_ts_info()
1016 static int otx2_get_fecparam(struct net_device *netdev, in otx2_get_fecparam() argument
1019 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_fecparam()
1043 static int otx2_set_fecparam(struct net_device *netdev, in otx2_set_fecparam() argument
1046 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_set_fecparam()
1064 netdev_warn(pfvf->netdev, "Unsupported FEC mode: %d", in otx2_set_fecparam()
1195 static int otx2_get_link_ksettings(struct net_device *netdev, in otx2_get_link_ksettings() argument
1198 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_link_ksettings()
1239 static int otx2_set_link_ksettings(struct net_device *netdev, in otx2_set_link_ksettings() argument
1242 struct otx2_nic *pf = netdev_priv(netdev); in otx2_set_link_ksettings()
1258 otx2_get_link_ksettings(netdev, &cur_ks); in otx2_set_link_ksettings()
1286 static void otx2_get_fec_stats(struct net_device *netdev, in otx2_get_fec_stats() argument
1289 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_fec_stats()
1356 void otx2_set_ethtool_ops(struct net_device *netdev) in otx2_set_ethtool_ops() argument
1358 netdev->ethtool_ops = &otx2_ethtool_ops; in otx2_set_ethtool_ops()
1362 static void otx2vf_get_drvinfo(struct net_device *netdev, in otx2vf_get_drvinfo() argument
1365 struct otx2_nic *vf = netdev_priv(netdev); in otx2vf_get_drvinfo()
1371 static void otx2vf_get_strings(struct net_device *netdev, u32 sset, u8 *data) in otx2vf_get_strings() argument
1373 struct otx2_nic *vf = netdev_priv(netdev); in otx2vf_get_strings()
1395 static void otx2vf_get_ethtool_stats(struct net_device *netdev, in otx2vf_get_ethtool_stats() argument
1398 struct otx2_nic *vf = netdev_priv(netdev); in otx2vf_get_ethtool_stats()
1414 static int otx2vf_get_sset_count(struct net_device *netdev, int sset) in otx2vf_get_sset_count() argument
1416 struct otx2_nic *vf = netdev_priv(netdev); in otx2vf_get_sset_count()
1428 static int otx2vf_get_link_ksettings(struct net_device *netdev, in otx2vf_get_link_ksettings() argument
1431 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2vf_get_link_ksettings()
1437 return otx2_get_link_ksettings(netdev, cmd); in otx2vf_get_link_ksettings()
1475 void otx2vf_set_ethtool_ops(struct net_device *netdev) in otx2vf_set_ethtool_ops() argument
1477 netdev->ethtool_ops = &otx2vf_ethtool_ops; in otx2vf_set_ethtool_ops()