Home
last modified time | relevance | path

Searched refs:netif_carrier_ok (Results 1 – 25 of 231) sorted by relevance

12345678910

/linux-6.6.21/net/core/
Dlink_watch.c44 if (!netif_carrier_ok(dev)) { in default_operstate()
55 return netif_carrier_ok(peer) ? IF_OPER_DOWN : in default_operstate()
99 if (!netif_carrier_ok(dev) || netif_dormant(dev) || in linkwatch_init_dev()
116 return netif_carrier_ok(dev) && qdisc_tx_changing(dev); in linkwatch_urgent_event()
177 if (netif_carrier_ok(dev)) in linkwatch_do_dev()
/linux-6.6.21/Documentation/networking/
Doperstates.rst118 netif_carrier_ok() can be used to query that bit.
129 to netif_carrier_ok() and !netif_dormant().
136 !netif_carrier_ok():
141 netif_carrier_ok() && netif_dormant():
144 netif_carrier_ok() && !netif_dormant():
157 netif_carrier_ok() && !netif_dormant() is set by the
/linux-6.6.21/drivers/staging/octeon/
Dethernet-rgmii.c123 if (!netif_carrier_ok(dev)) in cvm_oct_rgmii_poll()
125 } else if (netif_carrier_ok(dev)) { in cvm_oct_rgmii_poll()
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/
Daq_macsec.c295 if (netif_carrier_ok(nic->ndev)) in aq_mdo_dev_open()
467 if (netif_carrier_ok(nic->ndev) && netif_running(secy->netdev)) in aq_mdo_add_secy()
486 if (netif_carrier_ok(nic->ndev) && netif_running(secy->netdev)) in aq_mdo_upd_secy()
596 if (netif_carrier_ok(nic->ndev) && netif_running(secy->netdev)) in aq_mdo_add_txsa()
618 if (netif_carrier_ok(nic->ndev) && netif_running(secy->netdev)) in aq_mdo_upd_txsa()
635 if ((clear_type & AQ_CLEAR_HW) && netif_carrier_ok(nic->ndev)) { in aq_clear_txsa()
765 if (netif_carrier_ok(nic->ndev) && netif_running(ctx->secy->netdev)) in aq_mdo_add_rxsc()
786 if (netif_carrier_ok(nic->ndev) && netif_running(ctx->secy->netdev)) in aq_mdo_upd_rxsc()
850 if (netif_carrier_ok(nic->ndev)) in aq_mdo_del_rxsc()
926 if (netif_carrier_ok(nic->ndev) && netif_running(secy->netdev)) in aq_mdo_add_rxsa()
[all …]
/linux-6.6.21/net/lapb/
Dlapb_iface.c477 if (netif_carrier_ok(dev)) { in lapb_device_event()
491 if (netif_carrier_ok(dev)) in lapb_device_event()
504 if (netif_carrier_ok(dev)) { in lapb_device_event()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_selftest.c51 if (!netif_carrier_ok(priv->netdev)) in mlx5e_test_link_state()
62 if (!netif_carrier_ok(priv->netdev)) in mlx5e_test_link_speed()
/linux-6.6.21/drivers/infiniband/hw/usnic/
Dusnic_ib_main.c158 netif_carrier_ok(netdev)) { in usnic_ib_handle_usdev_event()
167 !netif_carrier_ok(netdev)) { in usnic_ib_handle_usdev_event()
415 if (netif_carrier_ok(us_ibdev->netdev)) in usnic_ib_device_add()
/linux-6.6.21/drivers/net/can/dev/
Ddev.c135 if (netif_carrier_ok(dev)) in can_restart()
400 if (!netif_carrier_ok(dev)) in open_candev()
/linux-6.6.21/drivers/net/ethernet/silan/
Dsc92031.c481 if (netif_carrier_ok(dev) && priv->mc_flags != old_mc_flags) in _sc92031_set_rx_config()
948 if (unlikely(!netif_carrier_ok(dev))) { in sc92031_start_xmit()
1027 if (netif_carrier_ok(dev)) in sc92031_open()
1100 if (netif_carrier_ok(dev)) in sc92031_tx_timeout()
1547 if (netif_carrier_ok(dev)) in sc92031_resume()
/linux-6.6.21/drivers/net/wan/
Dhdlc_fr.c218 if (!netif_carrier_ok(pvc->main)) in pvc_carrier()
221 if (!netif_carrier_ok(pvc->ether)) in pvc_carrier()
225 if (netif_carrier_ok(pvc->main)) in pvc_carrier()
228 if (netif_carrier_ok(pvc->ether)) in pvc_carrier()
334 pvc->state.active = netif_carrier_ok(pvc->frad); in pvc_open()
Dhdlc.c111 on = netif_carrier_ok(dev); in hdlc_device_event()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Den_selftest.c177 carrier_ok = netif_carrier_ok(dev); in mlx4_en_ex_selftest()
/linux-6.6.21/drivers/infiniband/ulp/ipoib/
Dipoib_ethtool.c189 if (!netif_carrier_ok(netdev)) { in ipoib_get_link_ksettings()
/linux-6.6.21/drivers/net/ethernet/atheros/atlx/
Datlx.c93 if (netif_carrier_ok(netdev)) { in atlx_check_for_link()
/linux-6.6.21/drivers/net/ethernet/google/gve/
Dgve_main.c1454 if (link_status == netif_carrier_ok(priv->dev)) in gve_handle_link_status()
1474 if (!netif_carrier_ok(priv->dev)) { in gve_set_xdp()
1699 if (netif_carrier_ok(priv->dev)) { in gve_adjust_queues()
1735 if (netif_carrier_ok(priv->dev)) in gve_turndown()
1853 if (netif_carrier_ok(netdev)) { in gve_set_features()
2154 bool was_up = netif_carrier_ok(priv->dev); in gve_reset()
2358 bool was_up = netif_carrier_ok(priv->dev); in gve_shutdown()
2376 bool was_up = netif_carrier_ok(priv->dev); in gve_suspend()
/linux-6.6.21/drivers/net/ethernet/apm/xgene/
Dxgene_enet_xgmac.c488 if (!netif_carrier_ok(ndev)) { in xgene_enet_link_state()
496 if (netif_carrier_ok(ndev)) { in xgene_enet_link_state()
Dxgene_enet_sgmac.c543 if (!netif_carrier_ok(ndev)) { in xgene_enet_link_state()
553 if (netif_carrier_ok(ndev)) { in xgene_enet_link_state()
/linux-6.6.21/drivers/net/wireless/marvell/mwifiex/
Dsta_event.c231 if (netif_carrier_ok(priv->netdev)) in mwifiex_reset_connect_state()
708 if (!netif_carrier_ok(priv->netdev)) in mwifiex_process_sta_event()
834 if (netif_carrier_ok(priv->netdev)) in mwifiex_process_sta_event()
/linux-6.6.21/drivers/net/ethernet/ibm/ehea/
Dehea_ethtool.c33 if (netif_carrier_ok(dev)) { in ehea_get_link_ksettings()
/linux-6.6.21/drivers/net/hyperv/
Dnetvsc_bpf.c269 netif_carrier_ok(vf_netdev) && !netpoll_tx_running(ndev) && in netvsc_ndoxdp_xmit()
/linux-6.6.21/drivers/net/
Dmii.c485 int prev_link = netif_carrier_ok(mii->dev); in mii_check_link()
511 old_carrier = netif_carrier_ok(mii->dev) ? 1 : 0; in mii_check_media()
Dnet_failover.c32 return netif_running(dev) && netif_carrier_ok(dev); in net_failover_xmit_ready()
437 if (netif_carrier_ok(slave_dev)) in net_failover_lower_state_changed()
/linux-6.6.21/drivers/net/ethernet/dec/tulip/
Dde2104x.c900 if (!netif_carrier_ok(de->dev)) { in de_link_up()
909 if (netif_carrier_ok(de->dev)) { in de_link_down()
980 if (!netif_carrier_ok(dev)) in de21040_media_timer()
1067 if (!netif_carrier_ok(dev)) in de21041_media_timer()
1175 if (netif_carrier_ok(de->dev) && de->media_type != DE_MEDIA_AUI && in de_media_interrupt()
1679 if (netif_carrier_ok(de->dev)) in de_nway_reset()
/linux-6.6.21/drivers/usb/gadget/function/
Du_ether.c431 if (netif_carrier_ok(dev->net)) in tx_complete()
620 if (netif_carrier_ok(dev->net)) in eth_open()
668 if (netif_carrier_ok(net)) { in eth_stop()
/linux-6.6.21/net/bridge/
Dbr_forward.c151 if (rcu_access_pointer(to->backup_port) && !netif_carrier_ok(to->dev)) { in br_forward()

12345678910