/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/ |
A D | en_selftest.c | 156 if (priv->port_state.link_speed != SPEED_100 && in mlx4_en_test_speed() 157 priv->port_state.link_speed != SPEED_1000 && in mlx4_en_test_speed() 158 priv->port_state.link_speed != SPEED_10000 && in mlx4_en_test_speed() 159 priv->port_state.link_speed != SPEED_20000 && in mlx4_en_test_speed() 160 priv->port_state.link_speed != SPEED_40000 && in mlx4_en_test_speed() 161 priv->port_state.link_speed != SPEED_56000) in mlx4_en_test_speed() 162 return priv->port_state.link_speed; in mlx4_en_test_speed()
|
A D | en_port.c | 93 switch (qport_context->link_speed & MLX4_EN_SPEED_MASK) { in mlx4_en_QUERY_PORT() 95 state->link_speed = SPEED_100; in mlx4_en_QUERY_PORT() 98 state->link_speed = SPEED_1000; in mlx4_en_QUERY_PORT() 102 state->link_speed = SPEED_10000; in mlx4_en_QUERY_PORT() 105 state->link_speed = SPEED_20000; in mlx4_en_QUERY_PORT() 108 state->link_speed = SPEED_40000; in mlx4_en_QUERY_PORT() 111 state->link_speed = SPEED_56000; in mlx4_en_QUERY_PORT() 114 state->link_speed = -1; in mlx4_en_QUERY_PORT()
|
/linux-6.3-rc2/drivers/net/ethernet/oki-semi/pch_gbe/ |
A D | pch_gbe_param.c | 328 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options() 339 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options() 351 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options() 362 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options() 369 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options() 376 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options() 387 hw->mac.link_speed = SPEED_100; in pch_gbe_check_copper_options() 395 hw->mac.link_speed = SPEED_100; in pch_gbe_check_copper_options() 403 hw->mac.link_speed = SPEED_100; in pch_gbe_check_copper_options() 420 hw->mac.link_speed = SPEED_1000; in pch_gbe_check_copper_options()
|
/linux-6.3-rc2/drivers/net/ethernet/ti/ |
A D | am65-cpsw-qos.c | 231 static int am65_est_cmd_ns_to_cnt(u64 ns, int link_speed) in am65_est_cmd_ns_to_cnt() argument 235 temp = ns * link_speed; in am65_est_cmd_ns_to_cnt() 236 if (link_speed < SPEED_1000) in am65_est_cmd_ns_to_cnt() 273 int link_speed) in am65_cpsw_est_calc_cmd_num() argument 285 link_speed); in am65_cpsw_est_calc_cmd_num() 307 port->qos.link_speed); in am65_cpsw_est_check_scheds() 337 port->qos.link_speed); in am65_cpsw_est_set_sched_list() 543 port->qos.link_speed = link_speed; in am65_cpsw_est_link_up() 582 if (port->qos.link_speed == SPEED_UNKNOWN) in am65_cpsw_setup_taprio() 806 am65_cpsw_est_link_up(ndev, link_speed); in am65_cpsw_qos_link_up() [all …]
|
A D | am65-cpsw-qos.h | 26 int link_speed; member 34 void am65_cpsw_qos_link_up(struct net_device *ndev, int link_speed);
|
/linux-6.3-rc2/drivers/infiniband/hw/hfi1/ |
A D | mad.h | 402 u16 link_speed, int vl); 417 static inline u16 get_link_speed(u16 link_speed) in get_link_speed() argument 419 return (link_speed == 1) ? in get_link_speed() 432 u16 link_speed) in convert_xmit_counter() argument 435 * link_speed) / DECIMAL_FACTORING; in convert_xmit_counter()
|
/linux-6.3-rc2/drivers/net/ethernet/intel/ice/ |
A D | ice_vf_mbx.h | 21 u32 ice_conv_link_speed_to_virtchnl(bool adv_link_support, u16 link_speed); 46 u16 __always_unused link_speed) in ice_conv_link_speed_to_virtchnl() argument
|
A D | ice_vf_mbx.c | 68 u32 ice_conv_link_speed_to_virtchnl(bool adv_link_support, u16 link_speed) in ice_conv_link_speed_to_virtchnl() argument 71 u32 index = fls(link_speed) - 1; in ice_conv_link_speed_to_virtchnl()
|
/linux-6.3-rc2/drivers/thunderbolt/ |
A D | dma_test.c | 103 unsigned int link_speed; member 409 *val = dt->link_speed; in speed_get() 426 dt->link_speed = val; in speed_set() 490 if (dt->link_speed && dt->xd->link_speed != dt->link_speed) { in dma_test_check_errors() 528 if (dt->link_speed) in test_store() 529 dev_dbg(&svc->dev, "link_speed: %u Gb/s\n", dt->link_speed); in test_store()
|
/linux-6.3-rc2/drivers/net/ethernet/cavium/thunder/ |
A D | thunder_xcv.c | 110 void xcv_setup_link(bool link_up, int link_speed) in xcv_setup_link() argument 120 if (link_speed == 100) in xcv_setup_link() 122 else if (link_speed == 10) in xcv_setup_link()
|
/linux-6.3-rc2/drivers/net/ethernet/atheros/alx/ |
A D | hw.c | 70 clk_sel = hw->link_speed != SPEED_UNKNOWN ? in alx_read_phy_core() 104 clk_sel = hw->link_speed != SPEED_UNKNOWN ? in alx_write_phy_core() 788 if (hw->link_speed != SPEED_UNKNOWN) { in alx_post_phy_link() 795 if ((hw->link_speed == SPEED_1000 && in alx_post_phy_link() 798 (hw->link_speed == SPEED_100 && in alx_post_phy_link() 818 if (hw->link_speed == SPEED_100) { in alx_post_phy_link() 821 } else if (hw->link_speed == SPEED_1000) { in alx_post_phy_link() 880 hw->link_speed = SPEED_UNKNOWN; in alx_read_phy_link() 895 hw->link_speed = SPEED_1000; in alx_read_phy_link() 898 hw->link_speed = SPEED_100; in alx_read_phy_link() [all …]
|
/linux-6.3-rc2/drivers/pci/controller/cadence/ |
A D | pci-j721e.c | 188 int link_speed; in j721e_pcie_set_link_speed() local 192 link_speed = of_pci_get_max_link_speed(np); in j721e_pcie_set_link_speed() 193 if (link_speed < 2) in j721e_pcie_set_link_speed() 194 link_speed = 2; in j721e_pcie_set_link_speed() 196 val = link_speed - 1; in j721e_pcie_set_link_speed()
|
/linux-6.3-rc2/drivers/pci/controller/dwc/ |
A D | pcie-designware.c | 701 u32 cap, ctrl2, link_speed; in dw_pcie_link_set_max_speed() local 710 link_speed = PCI_EXP_LNKCTL2_TLS_2_5GT; in dw_pcie_link_set_max_speed() 713 link_speed = PCI_EXP_LNKCTL2_TLS_5_0GT; in dw_pcie_link_set_max_speed() 716 link_speed = PCI_EXP_LNKCTL2_TLS_8_0GT; in dw_pcie_link_set_max_speed() 719 link_speed = PCI_EXP_LNKCTL2_TLS_16_0GT; in dw_pcie_link_set_max_speed() 723 link_speed = FIELD_GET(PCI_EXP_LNKCAP_SLS, cap); in dw_pcie_link_set_max_speed() 728 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCTL2, ctrl2 | link_speed); in dw_pcie_link_set_max_speed() 731 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCAP, cap | link_speed); in dw_pcie_link_set_max_speed()
|
/linux-6.3-rc2/drivers/net/ethernet/intel/i40e/ |
A D | i40e_ethtool.c | 774 u32 link_speed = hw_link_info->link_speed; in i40e_get_settings_link_up() local 1002 switch (link_speed) { in i40e_get_settings_link_up() 1199 link_speed = i40e_speed_lut[i].link_speed; in i40e_speed_to_link_speed() 1204 return link_speed; in i40e_speed_to_link_speed() 1225 enum i40e_aq_link_speed link_speed; in i40e_set_link_ksettings() local 1413 config.link_speed = link_speed; in i40e_set_link_ksettings() 1428 if (!config.link_speed) in i40e_set_link_ksettings() 1429 config.link_speed = abilities.link_speed; in i40e_set_link_ksettings() 1430 if (autoneg_changed || abilities.link_speed != config.link_speed) { in i40e_set_link_ksettings() 1512 config.link_speed = abilities.link_speed; in i40e_set_fec_cfg() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/stmicro/stmmac/ |
A D | dwmac-ipq806x.c | 273 int link_speed; in ipq806x_gmac_configure_qsgmii_pcs_speed() local 285 ret = of_property_read_u32(dn, "speed", &link_speed); in ipq806x_gmac_configure_qsgmii_pcs_speed() 294 switch (link_speed) { in ipq806x_gmac_configure_qsgmii_pcs_speed()
|
/linux-6.3-rc2/drivers/firewire/ |
A D | core-card.c | 108 BIB_LINK_SPEED(card->link_speed) | in generate_config_rom() 547 u32 max_receive, u32 link_speed, u64 guid) in fw_card_add() argument 552 card->link_speed = link_speed; in fw_card_add()
|
/linux-6.3-rc2/drivers/net/ethernet/atheros/atl1c/ |
A D | atl1c_main.c | 295 if (adapter->link_speed != speed || in atl1c_check_link_status() 297 adapter->link_speed = speed; in atl1c_check_link_status() 306 adapter->link_speed, in atl1c_check_link_status() 333 adapter->link_speed = SPEED_0; in atl1c_link_chg_event() 803 adapter->link_speed = SPEED_0; in atl1c_sw_init() 1252 hw->mac_speed = adapter->link_speed == SPEED_1000 ? in atl1c_start_mac() 1362 link_speed == SPEED_1000 || link_speed == SPEED_100 ? in atl1c_set_aspm() 1369 if (link_speed != SPEED_1000 && link_speed != SPEED_100) in atl1c_set_aspm() 1395 if (link_speed == SPEED_0 || hw->nic_type == athr_l2c_b) in atl1c_set_aspm() 1400 if (link_speed != SPEED_0) { in atl1c_set_aspm() [all …]
|
A D | atl1c_hw.c | 761 adapter->link_speed = speed; in atl1c_phy_to_ps_link() 789 speed = adapter->link_speed == SPEED_1000 ? in atl1c_power_saving() 843 void atl1c_post_phy_linkchg(struct atl1c_hw *hw, u16 link_speed) in atl1c_post_phy_linkchg() argument 852 if (link_speed != SPEED_0) { /* link up */ in atl1c_post_phy_linkchg() 863 if (adj_thresh && link_speed == SPEED_100 && hw->msi_lnkpatch) { in atl1c_post_phy_linkchg()
|
A D | atl1c_ethtool.c | 38 if (adapter->link_speed != SPEED_0) { in atl1c_get_link_ksettings() 39 cmd->base.speed = adapter->link_speed; in atl1c_get_link_ksettings()
|
/linux-6.3-rc2/drivers/net/usb/ |
A D | aqc111.c | 300 switch (aqc111_data->link_speed) { in aqc111_get_link_ksettings() 792 aqc111_data->link_speed = (*event_data & AQ_SPEED_MASK) >> in aqc111_status() 804 u16 link_speed = 0, usb_host = 0; in aqc111_configure_rx() local 813 switch (aqc111_data->link_speed) { in aqc111_configure_rx() 815 link_speed = 5000; in aqc111_configure_rx() 820 link_speed = 2500; in aqc111_configure_rx() 824 link_speed = 1000; in aqc111_configure_rx() 828 link_speed = 100; in aqc111_configure_rx() 877 netdev_info(dev->net, "Link Speed %d, USB %d", link_speed, usb_host); in aqc111_configure_rx()
|
/linux-6.3-rc2/drivers/net/ethernet/microchip/ |
A D | lan743x_ptp.h | 52 u32 link_speed);
|
/linux-6.3-rc2/drivers/net/ethernet/intel/ixgbe/ |
A D | ixgbe_dcb.h | 114 u32 link_speed; /* For bandwidth allocation validation purpose */ member
|
/linux-6.3-rc2/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
A D | hw_atl2.c | 246 const u32 link_speed = self->aq_link_status.mbps; in hw_atl2_hw_init_tx_tc_rate_limit() local 261 if (link_speed) { in hw_atl2_hw_init_tx_tc_rate_limit() 275 tc_weight[tc] = (-1L + link_speed + in hw_atl2_hw_init_tx_tc_rate_limit() 278 link_speed; in hw_atl2_hw_init_tx_tc_rate_limit()
|
/linux-6.3-rc2/drivers/net/ethernet/intel/ixgb/ |
A D | ixgb.h | 117 u16 link_speed; member
|
/linux-6.3-rc2/drivers/scsi/esas2r/ |
A D | atvda.h | 55 u8 link_speed; /* VDALINKSPEED_xxx */ member 66 u8 link_speed; member 265 u8 link_speed; member 309 u8 link_speed; member
|