Lines Matching refs:netdev

1288 static int cxgb4_ethtool_flash_bootcfg(struct net_device *netdev,  in cxgb4_ethtool_flash_bootcfg()  argument
1291 struct adapter *adap = netdev2adap(netdev); in cxgb4_ethtool_flash_bootcfg()
1301 static int cxgb4_ethtool_flash_boot(struct net_device *netdev, in cxgb4_ethtool_flash_boot() argument
1304 struct adapter *adap = netdev2adap(netdev); in cxgb4_ethtool_flash_boot()
1336 static int cxgb4_ethtool_flash_phy(struct net_device *netdev, in cxgb4_ethtool_flash_phy() argument
1339 struct adapter *adap = netdev2adap(netdev); in cxgb4_ethtool_flash_phy()
1371 static int cxgb4_ethtool_flash_fw(struct net_device *netdev, in cxgb4_ethtool_flash_fw() argument
1374 struct adapter *adap = netdev2adap(netdev); in cxgb4_ethtool_flash_fw()
1394 static int cxgb4_ethtool_flash_region(struct net_device *netdev, in cxgb4_ethtool_flash_region() argument
1397 struct adapter *adap = netdev2adap(netdev); in cxgb4_ethtool_flash_region()
1402 ret = cxgb4_ethtool_flash_fw(netdev, data, size); in cxgb4_ethtool_flash_region()
1405 ret = cxgb4_ethtool_flash_phy(netdev, data, size); in cxgb4_ethtool_flash_region()
1408 ret = cxgb4_ethtool_flash_boot(netdev, data, size); in cxgb4_ethtool_flash_region()
1411 ret = cxgb4_ethtool_flash_bootcfg(netdev, data, size); in cxgb4_ethtool_flash_region()
1495 static int set_flash(struct net_device *netdev, struct ethtool_flash *ef) in set_flash() argument
1497 struct adapter *adap = netdev2adap(netdev); in set_flash()
1535 ret = cxgb4_ethtool_flash_region(netdev, fw_data, size, in set_flash()
1544 ret = cxgb4_ethtool_flash_region(netdev, fw_data, fw_size, in set_flash()
1866 static int cxgb4_ntuple_set_filter(struct net_device *netdev, in cxgb4_ntuple_set_filter() argument
1871 struct adapter *adapter = netdev2adap(netdev); in cxgb4_ntuple_set_filter()
1872 struct port_info *pi = netdev_priv(netdev); in cxgb4_ntuple_set_filter()
1906 ret = cxgb4_flow_rule_replace(netdev, flow->rule, cmd->fs.location, in cxgb4_ntuple_set_filter()
2103 static u32 cxgb4_get_priv_flags(struct net_device *netdev) in cxgb4_get_priv_flags() argument
2105 struct port_info *pi = netdev_priv(netdev); in cxgb4_get_priv_flags()
2122 static int cxgb4_set_priv_flags(struct net_device *netdev, u32 flags) in cxgb4_set_priv_flags() argument
2124 struct port_info *pi = netdev_priv(netdev); in cxgb4_set_priv_flags()
2133 static void cxgb4_lb_test(struct net_device *netdev, u64 *lb_status) in cxgb4_lb_test() argument
2135 int dev_state = netif_running(netdev); in cxgb4_lb_test()
2138 netif_tx_stop_all_queues(netdev); in cxgb4_lb_test()
2139 netif_carrier_off(netdev); in cxgb4_lb_test()
2142 *lb_status = cxgb4_selftest_lb_pkt(netdev); in cxgb4_lb_test()
2145 netif_tx_start_all_queues(netdev); in cxgb4_lb_test()
2146 netif_carrier_on(netdev); in cxgb4_lb_test()
2150 static void cxgb4_self_test(struct net_device *netdev, in cxgb4_self_test() argument
2153 struct port_info *pi = netdev_priv(netdev); in cxgb4_self_test()
2165 cxgb4_lb_test(netdev, &data[CXGB4_ETHTOOL_LB_TEST]); in cxgb4_self_test()
2296 void cxgb4_set_ethtool_ops(struct net_device *netdev) in cxgb4_set_ethtool_ops() argument
2298 netdev->ethtool_ops = &cxgb_ethtool_ops; in cxgb4_set_ethtool_ops()