/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_82598.c | 282 bool link_up; in ixgbe_fc_enable_82598() local 305 hw->mac.ops.check_link(hw, &link_speed, &link_up, false); in ixgbe_fc_enable_82598() 306 if (link_up && link_speed == IXGBE_LINK_SPEED_1GB_FULL) { in ixgbe_fc_enable_82598() 497 ixgbe_link_speed *speed, bool *link_up, in ixgbe_check_mac_link_82598() argument 519 *link_up = true; in ixgbe_check_mac_link_82598() 522 *link_up = false; in ixgbe_check_mac_link_82598() 534 *link_up = true; in ixgbe_check_mac_link_82598() 536 *link_up = false; in ixgbe_check_mac_link_82598() 539 if (!*link_up) in ixgbe_check_mac_link_82598() 547 *link_up = true; in ixgbe_check_mac_link_82598() [all …]
|
D | ixgbe_x550.c | 1911 bool *link_up, in ixgbe_check_link_t_X550em() argument 1920 status = ixgbe_check_mac_link_generic(hw, speed, link_up, in ixgbe_check_link_t_X550em() 1924 if (status || !(*link_up)) in ixgbe_check_link_t_X550em() 1942 *link_up = false; in ixgbe_check_link_t_X550em() 2104 bool link_up; in ixgbe_fc_autoneg_sgmii_x550em_a() local 2114 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_fc_autoneg_sgmii_x550em_a() 2115 if (!link_up) in ixgbe_fc_autoneg_sgmii_x550em_a() 2607 static s32 ixgbe_ext_phy_t_x550em_get_link(struct ixgbe_hw *hw, bool *link_up) in ixgbe_ext_phy_t_x550em_get_link() argument 2612 *link_up = false; in ixgbe_ext_phy_t_x550em_get_link() 2625 *link_up = !!(autoneg_status & IXGBE_MDIO_AUTO_NEG_LINK_STATUS); in ixgbe_ext_phy_t_x550em_get_link() [all …]
|
D | ixgbe_common.c | 53 bool link_up; in ixgbe_device_supports_autoneg_fc() local 64 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_device_supports_autoneg_fc() 66 if (link_up) in ixgbe_device_supports_autoneg_fc() 2399 bool link_up; in ixgbe_fc_autoneg() local 2413 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_fc_autoneg() 2414 if (!link_up) in ixgbe_fc_autoneg() 2740 bool link_up = false; in ixgbe_blink_led_start_generic() local 2753 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_blink_led_start_generic() 2755 if (!link_up) { in ixgbe_blink_led_start_generic() 3280 bool *link_up, bool link_up_wait_to_complete) in ixgbe_check_mac_link_generic() argument [all …]
|
D | ixgbe_82599.c | 667 bool link_up = false; in ixgbe_setup_mac_link_smartspeed() local 708 &link_up, false); in ixgbe_setup_mac_link_smartspeed() 712 if (link_up) in ixgbe_setup_mac_link_smartspeed() 743 &link_up, false); in ixgbe_setup_mac_link_smartspeed() 747 if (link_up) in ixgbe_setup_mac_link_smartspeed() 757 if (link_up && (link_speed == IXGBE_LINK_SPEED_1GB_FULL)) in ixgbe_setup_mac_link_smartspeed() 914 bool link_up = false; in ixgbe_reset_hw_82599() local 957 hw->mac.ops.check_link(hw, &link_speed, &link_up, false); in ixgbe_reset_hw_82599() 958 if (link_up) in ixgbe_reset_hw_82599()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | lag_mp.c | 59 tracker.netdev_state[MLX5_LAG_P1].link_up = true; in mlx5_lag_set_port_affinity() 60 tracker.netdev_state[MLX5_LAG_P2].link_up = true; in mlx5_lag_set_port_affinity() 64 tracker.netdev_state[MLX5_LAG_P1].link_up = true; in mlx5_lag_set_port_affinity() 66 tracker.netdev_state[MLX5_LAG_P2].link_up = false; in mlx5_lag_set_port_affinity() 70 tracker.netdev_state[MLX5_LAG_P1].link_up = false; in mlx5_lag_set_port_affinity() 72 tracker.netdev_state[MLX5_LAG_P2].link_up = true; in mlx5_lag_set_port_affinity()
|
/drivers/net/usb/ |
D | sierra_net.c | 64 u16 link_up; /* air link up or down */ member 416 int link_up; in sierra_net_handle_lsi() local 418 link_up = sierra_net_parse_lsi(dev, data + hh->hdrlen, in sierra_net_handle_lsi() 420 if (link_up < 0) { in sierra_net_handle_lsi() 424 if (link_up) { in sierra_net_handle_lsi() 426 priv->link_up = 1; in sierra_net_handle_lsi() 428 priv->link_up = 0; in sierra_net_handle_lsi() 430 usbnet_link_change(dev, link_up, 0); in sierra_net_handle_lsi() 623 return sierra_net_get_private(dev)->link_up && netif_running(net); in sierra_net_get_link() 867 if (priv->link_up && check_ethip_packet(skb, dev) && is_ip(skb)) { in sierra_net_tx_fixup() [all …]
|
/drivers/net/ethernet/cavium/thunder/ |
D | thunder_bgx.c | 54 bool link_up; member 217 link->link_up = lmac->link_up; in bgx_get_lmac_link_state() 429 xcv_setup_link(enable ? lmac->link_up : 0, lmac->last_speed); in bgx_lmac_rx_tx_enable() 536 if (lmac->link_up) { in bgx_sgmii_change_link_state() 588 xcv_setup_link(lmac->link_up, lmac->last_speed); in bgx_sgmii_change_link_state() 620 lmac->link_up = true; in bgx_lmac_handler() 622 lmac->link_up = false; in bgx_lmac_handler() 957 lmac->link_up = false; in bgx_poll_for_sgmii_link() 963 lmac->link_up = ((pcs_link & PCS_MRX_STATUS_LINK) != 0) ? true : false; in bgx_poll_for_sgmii_link() 980 lmac->link_up = false; in bgx_poll_for_sgmii_link() [all …]
|
D | thunder_xcv.c | 110 void xcv_setup_link(bool link_up, int link_speed) in xcv_setup_link() argument 125 if (link_up) { in xcv_setup_link()
|
/drivers/net/ethernet/intel/igc/ |
D | igc_diag.c | 171 bool link_up; in igc_link_test() local 179 link_up = igc_has_link(adapter); in igc_link_test() 180 if (!link_up) { in igc_link_test()
|
/drivers/net/ethernet/ti/ |
D | netcp_xgbepcsr.c | 395 int retries = 0, link_up; in netcp_xgbe_serdes_check_lane() local 402 link_up = netcp_xgbe_check_link_status(serdes_regs, sw_regs, 2, in netcp_xgbe_serdes_check_lane() 409 if (link_up) in netcp_xgbe_serdes_check_lane() 423 } while (!link_up); in netcp_xgbe_serdes_check_lane()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_link.c | 502 if (vars->link_up) { in bnx2x_ets_get_min_w_val_nig() 2236 if (!vars->link_up) in bnx2x_update_pfc() 4705 vars->link_up = (vars->link_status & LINK_STATUS_LINK_UP); in bnx2x_sync_link() 4706 if (vars->link_up) { in bnx2x_sync_link() 5624 u16 gp_status, duplex = DUPLEX_HALF, link_up = 0, speed_mask; in bnx2x_link_settings_status() local 5635 link_up = 1; in bnx2x_link_settings_status() 5638 gp_status, link_up, speed_mask); in bnx2x_link_settings_status() 5639 rc = bnx2x_get_link_speed_duplex(phy, params, vars, link_up, speed_mask, in bnx2x_link_settings_status() 5698 u16 gp_status1, gp_speed, link_up, duplex = DUPLEX_FULL; in bnx2x_warpcore_read_status() local 5705 MDIO_WC_REG_DIGITAL5_LINK_STATUS, &link_up); in bnx2x_warpcore_read_status() [all …]
|
/drivers/staging/octeon/ |
D | ethernet-mdio.c | 70 if (li.s.link_up) { in cvm_oct_note_carrier() 87 link_info.s.link_up = dev->phydev->link ? 1 : 0; in cvm_oct_adjust_link()
|
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_sriov.c | 412 bool link_forced, link_up; in hinic_get_vf_link_status_msg_handler() local 417 link_up = vf_infos[HW_VF_ID_TO_OS(vf_id)].link_up; in hinic_get_vf_link_status_msg_handler() 420 get_link->state = link_up ? in hinic_get_vf_link_status_msg_handler() 571 else if (vfinfo->link_up) in hinic_get_vf_config() 973 vf_infos[HW_VF_ID_TO_OS(vf_id)].link_up = nic_io->link_status ? in hinic_set_vf_link_state() 979 vf_infos[HW_VF_ID_TO_OS(vf_id)].link_up = true; in hinic_set_vf_link_state() 984 vf_infos[HW_VF_ID_TO_OS(vf_id)].link_up = false; in hinic_set_vf_link_state() 1097 vf_infos[vf_id].link_up = true; in hinic_init_vf_infos() 1101 vf_infos[vf_id].link_up = false; in hinic_init_vf_infos()
|
/drivers/infiniband/hw/usnic/ |
D | usnic_fwd.c | 131 ufdev->link_up = 1; in usnic_fwd_carrier_up() 138 ufdev->link_up = 0; in usnic_fwd_carrier_down() 153 if (!ufdev->link_up) in usnic_fwd_dev_ready_locked()
|
/drivers/net/ethernet/tundra/ |
D | tsi108_eth.c | 102 unsigned int link_up; member 169 data->link_up, data->speed, data->duplex); in dump_eth_one() 335 if (data->link_up == 0) { in tsi108_check_phy() 345 data->link_up = 1; in tsi108_check_phy() 349 if (data->link_up == 1) { in tsi108_check_phy() 351 data->link_up = 0; in tsi108_check_phy() 640 if (is_valid_ether_addr(dev->dev_addr) && data->link_up) in tsi108_complete_tx() 654 if (!data->link_up) { in tsi108_send_packet() 1158 if (data->txfree && data->link_up) in tsi108_set_mac() 1254 data->link_up = 0; in tsi108_init_phy()
|
/drivers/net/ethernet/sfc/falcon/ |
D | selftest.c | 585 bool link_up; in ef4_wait_for_link() local 597 link_up = link_state->up; in ef4_wait_for_link() 598 if (link_up) in ef4_wait_for_link() 599 link_up = !efx->type->check_mac_fault(efx); in ef4_wait_for_link() 602 if (link_up) { in ef4_wait_for_link()
|
/drivers/net/ethernet/sfc/ |
D | selftest.c | 583 bool link_up; in efx_wait_for_link() local 595 link_up = link_state->up; in efx_wait_for_link() 596 if (link_up) in efx_wait_for_link() 597 link_up = !efx->type->check_mac_fault(efx); in efx_wait_for_link() 600 if (link_up) { in efx_wait_for_link()
|
/drivers/pci/controller/mobiveil/ |
D | pcie-mobiveil.c | 129 if (pcie->ops->link_up) in mobiveil_pcie_link_up() 130 return pcie->ops->link_up(pcie); in mobiveil_pcie_link_up()
|
/drivers/scsi/libfc/ |
D | fc_lport.c | 266 if (!lport->link_up) in fc_get_host_port_state() 550 if (!lport->link_up) { in __fc_linkup() 551 lport->link_up = 1; in __fc_linkup() 581 if (lport->link_up) { in __fc_linkdown() 582 lport->link_up = 0; in __fc_linkdown() 640 lport->link_up = 0; in fc_lport_destroy() 883 if (!lport->link_up) in fc_lport_recv_els_req() 1016 if (lport->port_id && (!lport->point_to_multipoint || !lport->link_up)) in fc_lport_reset_locked() 1035 if (lport->link_up) in fc_lport_enter_reset() 1045 if (lport->link_up) in fc_lport_enter_reset()
|
/drivers/net/dsa/b53/ |
D | b53_serdes.c | 142 phy_interface_t interface, bool link_up) in b53_serdes_link_set() argument 152 if (link_up) in b53_serdes_link_set()
|
/drivers/pci/controller/cadence/ |
D | pcie-cadence.h | 265 bool (*link_up)(struct cdns_pcie *pcie); member 488 if (pcie->ops->link_up) in cdns_pcie_link_up() 489 return pcie->ops->link_up(pcie); in cdns_pcie_link_up()
|
/drivers/pci/controller/ |
D | pci-xgene.c | 71 bool link_up; member 317 port->link_up = false; in xgene_pcie_linkup() 320 port->link_up = true; in xgene_pcie_linkup() 587 if (!port->link_up) in xgene_pcie_setup()
|
/drivers/net/ethernet/intel/iavf/ |
D | iavf_virtchnl.c | 953 if (!adapter->link_up) { in iavf_print_link_message() 1278 bool link_up = iavf_get_vpe_link_status(adapter, vpe); in iavf_virtchnl_completion() local 1285 if (adapter->link_up == link_up) in iavf_virtchnl_completion() 1288 if (link_up) { in iavf_virtchnl_completion() 1308 adapter->link_up = link_up; in iavf_virtchnl_completion() 1309 if (link_up) { in iavf_virtchnl_completion()
|
/drivers/net/ethernet/intel/ixgbevf/ |
D | vf.c | 651 bool *link_up, in ixgbevf_check_mac_link_vf() argument 724 *link_up = !mac->get_link_status; in ixgbevf_check_mac_link_vf() 737 bool *link_up, in ixgbevf_hv_check_mac_link_vf() argument 789 *link_up = !mac->get_link_status; in ixgbevf_hv_check_mac_link_vf()
|
/drivers/net/ethernet/broadcom/ |
D | bnx2.c | 679 if (bp->link_up) in bnx2_netif_start() 940 if (bp->link_up) { in bnx2_report_fw_link() 1002 if (bp->link_up) { in bnx2_report_link() 1111 bp->link_up = 1; in bnx2_5709s_linkup() 1150 bp->link_up = 1; in bnx2_5708s_linkup() 1179 bp->link_up = 1; in bnx2_5706s_linkup() 1257 bp->link_up = 0; in bnx2_copper_linkup() 1276 if (bp->link_up) { in bnx2_copper_linkup() 1321 if (bp->link_up && (bp->line_speed == SPEED_1000) && in bnx2_set_mac_link() 1333 if (bp->link_up) { in bnx2_set_mac_link() [all …]
|