Home
last modified time | relevance | path

Searched refs:if_running (Results 1 – 23 of 23) sorted by relevance

/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_xdp.c108 bool if_running; in stmmac_xdp_set_prog() local
110 if_running = netif_running(dev); in stmmac_xdp_set_prog()
124 if (if_running && need_update) in stmmac_xdp_set_prog()
134 if (if_running && need_update) in stmmac_xdp_set_prog()
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_xsk.c28 bool if_running; in ixgbe_xsk_pool_enable() local
42 if_running = netif_running(adapter->netdev) && in ixgbe_xsk_pool_enable()
45 if (if_running) in ixgbe_xsk_pool_enable()
50 if (if_running) { in ixgbe_xsk_pool_enable()
68 bool if_running; in ixgbe_xsk_pool_disable() local
74 if_running = netif_running(adapter->netdev) && in ixgbe_xsk_pool_disable()
77 if (if_running) in ixgbe_xsk_pool_disable()
83 if (if_running) in ixgbe_xsk_pool_disable()
H A Dixgbe_ethtool.c2182 bool if_running = netif_running(netdev); in ixgbe_diag_test() local
2225 if (if_running) in ixgbe_diag_test()
2264 if (if_running) in ixgbe_diag_test()
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch-ethtool.c106 bool if_running; in dpaa2_switch_set_link_ksettings() local
121 if_running = netif_running(netdev); in dpaa2_switch_set_link_ksettings()
122 if (if_running) { in dpaa2_switch_set_link_ksettings()
147 if (if_running) { in dpaa2_switch_set_link_ksettings()
/openbmc/linux/drivers/net/ethernet/intel/igc/
H A Digc_xdp.c14 bool if_running = netif_running(dev); in igc_xdp_set_prog() local
25 if (if_running) in igc_xdp_set_prog()
37 if (if_running) in igc_xdp_set_prog()
H A Digc_ethtool.c1942 bool if_running = netif_running(netdev); in igc_ethtool_diag_test() local
1954 if (if_running) in igc_ethtool_diag_test()
1978 if (if_running) in igc_ethtool_diag_test()
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_xsk.c86 bool if_running; in i40e_xsk_pool_enable() local
105 if_running = netif_running(vsi->netdev) && i40e_enabled_xdp_vsi(vsi); in i40e_xsk_pool_enable()
107 if (if_running) { in i40e_xsk_pool_enable()
141 bool if_running; in i40e_xsk_pool_disable() local
148 if_running = netif_running(vsi->netdev) && i40e_enabled_xdp_vsi(vsi); in i40e_xsk_pool_disable()
150 if (if_running) { in i40e_xsk_pool_disable()
159 if (if_running) { in i40e_xsk_pool_disable()
H A Di40e_ethtool.c2670 bool if_running = netif_running(netdev); in i40e_diag_test() local
2693 if (if_running) in i40e_diag_test()
2720 if (if_running) in i40e_diag_test()
H A Di40e_main.c13018 bool if_running = netif_running(vsi->netdev) && in i40e_set_loopback() local
13022 if (if_running) in i40e_set_loopback()
13028 if (if_running) in i40e_set_loopback()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_ethtool.c331 static void hns3_selftest_prepare(struct net_device *ndev, bool if_running) in hns3_selftest_prepare() argument
336 if (if_running) in hns3_selftest_prepare()
356 static void hns3_selftest_restore(struct net_device *ndev, bool if_running) in hns3_selftest_restore() argument
372 if (if_running) in hns3_selftest_restore()
428 bool if_running = netif_running(ndev); in hns3_self_test() local
454 hns3_external_lb_prepare(ndev, if_running); in hns3_self_test()
456 hns3_external_lb_restore(ndev, if_running); in hns3_self_test()
459 hns3_selftest_prepare(ndev, if_running); in hns3_self_test()
461 hns3_selftest_restore(ndev, if_running); in hns3_self_test()
1235 bool if_running = netif_running(ndev); in hns3_set_ringparam() local
[all …]
H A Dhns3_enet.h757 void hns3_external_lb_prepare(struct net_device *ndev, bool if_running);
758 void hns3_external_lb_restore(struct net_device *ndev, bool if_running);
H A Dhns3_enet.c5870 void hns3_external_lb_prepare(struct net_device *ndev, bool if_running) in hns3_external_lb_prepare() argument
5876 if (!if_running) in hns3_external_lb_prepare()
5901 void hns3_external_lb_restore(struct net_device *ndev, bool if_running) in hns3_external_lb_restore() argument
5907 if (!if_running) in hns3_external_lb_restore()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_xsk.c390 bool if_running, pool_present = !!pool; in ice_xsk_pool_setup() local
399 if_running = !test_bit(ICE_VSI_DOWN, vsi->state) && in ice_xsk_pool_setup()
402 if (if_running) { in ice_xsk_pool_setup()
420 if (if_running) { in ice_xsk_pool_setup()
H A Dice_main.c2918 bool if_running; in ice_xdp_setup_prog() local
2935 if_running = netif_running(vsi->netdev) && in ice_xdp_setup_prog()
2939 if (if_running) { in ice_xdp_setup_prog()
2973 if (if_running) in ice_xdp_setup_prog()
6173 bool if_running = netif_running(vsi->netdev); in ice_set_loopback() local
6176 if (if_running && !test_and_set_bit(ICE_VSI_DOWN, vsi->state)) { in ice_set_loopback()
6186 if (if_running) in ice_set_loopback()
H A Dice_ethtool.c984 bool if_running = netif_running(netdev); in ice_self_test() local
1007 if (if_running) in ice_self_test()
1026 if (if_running) { in ice_self_test()
/openbmc/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dethtool.c728 bool if_running = netif_running(netdev); in ixgbevf_diag_test() local
750 if (if_running) in ixgbevf_diag_test()
763 if (if_running) in ixgbevf_diag_test()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhns_ethtool.c586 bool if_running = netif_running(ndev); in hns_nic_self_test() local
603 if (if_running) in hns_nic_self_test()
629 if (if_running) in hns_nic_self_test()
H A Dhns_enet.c1735 bool if_running = netif_running(ndev); in hns_nic_change_mtu() local
1749 if (if_running) { in hns_nic_change_mtu()
1783 if (if_running) { in hns_nic_change_mtu()
/openbmc/linux/drivers/net/ethernet/intel/e1000e/
H A Dethtool.c1817 bool if_running = netif_running(netdev); in e1000_diag_test() local
1823 if (!if_running) { in e1000_diag_test()
1845 if (if_running) in e1000_diag_test()
1879 if (if_running) in e1000_diag_test()
1898 if (!if_running) { in e1000_diag_test()
/openbmc/linux/drivers/net/ethernet/intel/e1000/
H A De1000_ethtool.c1515 bool if_running = netif_running(netdev); in e1000_diag_test() local
1534 if (if_running) in e1000_diag_test()
1564 if (if_running) in e1000_diag_test()
/openbmc/linux/drivers/net/ethernet/ti/
H A Dcpsw_new.c1634 bool if_running = false; in cpsw_dl_switch_mode_set() local
1659 if_running = true; in cpsw_dl_switch_mode_set()
1662 if (!if_running) { in cpsw_dl_switch_mode_set()
H A Dam65-cpsw-nuss.c2519 bool if_running = false; in am65_cpsw_dl_switch_mode_set() local
2545 if_running = true; in am65_cpsw_dl_switch_mode_set()
2548 if (!if_running) { in am65_cpsw_dl_switch_mode_set()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A Digb_ethtool.c2019 bool if_running = netif_running(netdev); in igb_diag_test() local
2045 if (if_running) in igb_diag_test()
2079 if (if_running) in igb_diag_test()
2085 if (if_running && igb_link_test(adapter, &data[TEST_LINK])) in igb_diag_test()