Home
last modified time | relevance | path

Searched refs:link_up (Results 1 – 25 of 168) sorted by relevance

1234567

/Linux-v4.19/arch/mips/cavium-octeon/executive/
Dcvmx-helper-board.c223 result.s.link_up = 1; in __cvmx_helper_board_link_get()
233 result.s.link_up = 1; in __cvmx_helper_board_link_get()
243 result.s.link_up = 1; in __cvmx_helper_board_link_get()
257 result.s.link_up = 1; in __cvmx_helper_board_link_get()
281 result.s.link_up = inband_status.s.status; in __cvmx_helper_board_link_get()
308 if (!result.s.link_up) in __cvmx_helper_board_link_get()
Dcvmx-helper-spi.c152 result.s.link_up = 1; in __cvmx_helper_spi_link_get()
158 result.s.link_up = inband.s.status; in __cvmx_helper_spi_link_get()
172 result.s.link_up = 0; in __cvmx_helper_spi_link_get()
178 result.s.link_up = 1; in __cvmx_helper_spi_link_get()
Dcvmx-helper-sgmii.c243 pcsx_miscx_ctl_reg.s.gmxeno = !link_info.s.link_up; in __cvmx_helper_sgmii_hardware_init_link_speed()
246 if (link_info.s.link_up) in __cvmx_helper_sgmii_hardware_init_link_speed()
409 result.s.link_up = 1; in __cvmx_helper_sgmii_link_get()
419 result.s.link_up = 1; in __cvmx_helper_sgmii_link_get()
463 result.s.link_up = in __cvmx_helper_sgmii_link_get()
477 result.s.link_up = 0; in __cvmx_helper_sgmii_link_get()
486 result.s.link_up = 0; in __cvmx_helper_sgmii_link_get()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_82598.c282 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 …]
Dixgbe_x550.c1894 bool *link_up, in ixgbe_check_link_t_X550em() argument
1903 status = ixgbe_check_mac_link_generic(hw, speed, link_up, in ixgbe_check_link_t_X550em()
1907 if (status || !(*link_up)) in ixgbe_check_link_t_X550em()
1925 *link_up = false; in ixgbe_check_link_t_X550em()
2087 bool link_up; in ixgbe_fc_autoneg_sgmii_x550em_a() local
2097 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_fc_autoneg_sgmii_x550em_a()
2098 if (!link_up) in ixgbe_fc_autoneg_sgmii_x550em_a()
2587 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
2592 *link_up = false; in ixgbe_ext_phy_t_x550em_get_link()
2605 *link_up = !!(autoneg_status & IXGBE_MDIO_AUTO_NEG_LINK_STATUS); in ixgbe_ext_phy_t_x550em_get_link()
[all …]
Dixgbe_common.c53 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()
2412 bool link_up; in ixgbe_fc_autoneg() local
2426 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_fc_autoneg()
2427 if (!link_up) in ixgbe_fc_autoneg()
2753 bool link_up = false; in ixgbe_blink_led_start_generic() local
2766 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_blink_led_start_generic()
2768 if (!link_up) { in ixgbe_blink_led_start_generic()
3293 bool *link_up, bool link_up_wait_to_complete) in ixgbe_check_mac_link_generic() argument
[all …]
Dixgbe_82599.c667 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()
915 bool link_up = false; in ixgbe_reset_hw_82599() local
958 hw->mac.ops.check_link(hw, &link_speed, &link_up, false); in ixgbe_reset_hw_82599()
959 if (link_up) in ixgbe_reset_hw_82599()
/Linux-v4.19/drivers/net/ethernet/cavium/thunder/
Dthunder_bgx.c57 bool link_up; member
220 link->link_up = lmac->link_up; in bgx_get_lmac_link_state()
423 xcv_setup_link(enable ? lmac->link_up : 0, lmac->last_speed); in bgx_lmac_rx_tx_enable()
530 if (lmac->link_up) { in bgx_sgmii_change_link_state()
582 xcv_setup_link(lmac->link_up, lmac->last_speed); in bgx_sgmii_change_link_state()
614 lmac->link_up = true; in bgx_lmac_handler()
616 lmac->link_up = false; in bgx_lmac_handler()
951 lmac->link_up = false; in bgx_poll_for_sgmii_link()
957 lmac->link_up = ((pcs_link & PCS_MRX_STATUS_LINK) != 0) ? true : false; in bgx_poll_for_sgmii_link()
974 lmac->link_up = false; in bgx_poll_for_sgmii_link()
[all …]
Dthunder_xcv.c113 void xcv_setup_link(bool link_up, int link_speed) in xcv_setup_link() argument
128 if (link_up) { in xcv_setup_link()
/Linux-v4.19/arch/mips/pci/
Dpci-ar724x.c50 bool link_up; member
85 if (!apc->link_up) in ar724x_pci_local_write()
124 if (!apc->link_up) in ar724x_pci_read()
172 if (!apc->link_up) in ar724x_pci_write()
428 apc->link_up = ar724x_pci_check_link(apc); in ar724x_pci_probe()
429 if (!apc->link_up) in ar724x_pci_probe()
/Linux-v4.19/drivers/net/usb/
Dsierra_net.c76 u16 link_up; /* air link up or down */ member
433 int link_up; in sierra_net_handle_lsi() local
435 link_up = sierra_net_parse_lsi(dev, data + hh->hdrlen, in sierra_net_handle_lsi()
437 if (link_up < 0) { in sierra_net_handle_lsi()
441 if (link_up) { in sierra_net_handle_lsi()
443 priv->link_up = 1; in sierra_net_handle_lsi()
445 priv->link_up = 0; in sierra_net_handle_lsi()
447 usbnet_link_change(dev, link_up, 0); in sierra_net_handle_lsi()
640 return sierra_net_get_private(dev)->link_up && netif_running(net); in sierra_net_get_link()
884 if (priv->link_up && check_ethip_packet(skb, dev) && is_ip(skb)) { in sierra_net_tx_fixup()
[all …]
/Linux-v4.19/drivers/net/ethernet/ti/
Dnetcp_xgbepcsr.c402 int retries = 0, link_up; in netcp_xgbe_serdes_check_lane() local
409 link_up = netcp_xgbe_check_link_status(serdes_regs, sw_regs, 2, in netcp_xgbe_serdes_check_lane()
416 if (link_up) in netcp_xgbe_serdes_check_lane()
430 } while (!link_up); in netcp_xgbe_serdes_check_lane()
/Linux-v4.19/sound/hda/ext/
Dhdac_ext_controller.c295 bool link_up = false; in snd_hdac_ext_bus_link_put() local
312 link_up = true; in snd_hdac_ext_bus_link_put()
317 if (!link_up) { in snd_hdac_ext_bus_link_put()
/Linux-v4.19/drivers/net/ethernet/intel/ice/
Dice_ethtool.c342 bool link_up; in ice_get_link_ksettings() local
345 link_up = hw_link_info->link_info & ICE_AQ_LINK_UP; in ice_get_link_ksettings()
353 if (link_up) { in ice_get_link_ksettings()
668 bool link_up; in ice_nway_reset() local
672 link_up = hw_link_info->link_info & ICE_AQ_LINK_UP; in ice_nway_reset()
674 status = ice_aq_set_link_restart_an(pi, link_up, NULL); in ice_nway_reset()
726 bool link_up; in ice_set_pauseparam() local
731 link_up = hw_link_info->link_info & ICE_AQ_LINK_UP; in ice_set_pauseparam()
772 status = ice_set_fc(pi, &aq_failures, link_up); in ice_set_pauseparam()
/Linux-v4.19/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.c502 if (vars->link_up) { in bnx2x_ets_get_min_w_val_nig()
2240 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 …]
/Linux-v4.19/drivers/staging/octeon/
Dethernet-mdio.c75 if (li.s.link_up) { in cvm_oct_note_carrier()
92 link_info.s.link_up = dev->phydev->link ? 1 : 0; in cvm_oct_adjust_link()
/Linux-v4.19/drivers/infiniband/hw/usnic/
Dusnic_fwd.c131 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()
/Linux-v4.19/arch/mips/include/asm/octeon/
Dcvmx-helper.h58 uint64_t link_up:1; /**< Is the physical link up? */ member
/Linux-v4.19/drivers/net/ethernet/sfc/
Dselftest.c588 bool link_up; in efx_wait_for_link() local
600 link_up = link_state->up; in efx_wait_for_link()
601 if (link_up) in efx_wait_for_link()
602 link_up = !efx->type->check_mac_fault(efx); in efx_wait_for_link()
605 if (link_up) { in efx_wait_for_link()
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/
Dselftest.c588 bool link_up; in ef4_wait_for_link() local
600 link_up = link_state->up; in ef4_wait_for_link()
601 if (link_up) in ef4_wait_for_link()
602 link_up = !efx->type->check_mac_fault(efx); in ef4_wait_for_link()
605 if (link_up) { in ef4_wait_for_link()
/Linux-v4.19/drivers/scsi/fnic/
Dfnic_attrs.c43 return snprintf(buf, PAGE_SIZE, "%s\n", (lp->link_up) in fnic_show_link_state()
/Linux-v4.19/drivers/net/ethernet/tundra/
Dtsi108_eth.c114 unsigned int link_up; member
181 data->link_up, data->speed, data->duplex); in dump_eth_one()
347 if (data->link_up == 0) { in tsi108_check_phy()
357 data->link_up = 1; in tsi108_check_phy()
361 if (data->link_up == 1) { in tsi108_check_phy()
363 data->link_up = 0; in tsi108_check_phy()
651 if (is_valid_ether_addr(dev->dev_addr) && data->link_up) in tsi108_complete_tx()
665 if (!data->link_up) { in tsi108_send_packet()
1169 if (data->txfree && data->link_up) in tsi108_set_mac()
1265 data->link_up = 0; in tsi108_init_phy()
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/
Di40evf_virtchnl.c913 if (!adapter->link_up) { in i40evf_print_link_message()
1178 bool link_up = vpe->event_data.link_event.link_status; in i40evf_virtchnl_completion() local
1185 if (adapter->link_up == link_up) in i40evf_virtchnl_completion()
1188 if (link_up) { in i40evf_virtchnl_completion()
1208 adapter->link_up = link_up; in i40evf_virtchnl_completion()
1209 if (link_up) { in i40evf_virtchnl_completion()
/Linux-v4.19/include/net/
Dncsi.h26 int link_up; member
/Linux-v4.19/drivers/scsi/libfc/
Dfc_lport.c272 if (!lport->link_up) in fc_get_host_port_state()
556 if (!lport->link_up) { in __fc_linkup()
557 lport->link_up = 1; in __fc_linkup()
587 if (lport->link_up) { in __fc_linkdown()
588 lport->link_up = 0; in __fc_linkdown()
646 lport->link_up = 0; in fc_lport_destroy()
889 if (!lport->link_up) in fc_lport_recv_els_req()
1022 if (lport->port_id && (!lport->point_to_multipoint || !lport->link_up)) in fc_lport_reset_locked()
1041 if (lport->link_up) in fc_lport_enter_reset()
1051 if (lport->link_up) in fc_lport_enter_reset()

1234567