Home
last modified time | relevance | path

Searched refs:link_speed (Results 1 – 25 of 196) sorted by relevance

12345678

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Den_selftest.c156 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()
Den_port.c93 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.1.9/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_param.c328 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.1.9/drivers/net/ethernet/ti/
Dam65-cpsw-qos.c231 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()
537 static void am65_cpsw_est_link_up(struct net_device *ndev, int link_speed) in am65_cpsw_est_link_up() argument
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()
[all …]
Dam65-cpsw-qos.h26 int link_speed; member
34 void am65_cpsw_qos_link_up(struct net_device *ndev, int link_speed);
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dmad.h402 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.1.9/drivers/net/ethernet/intel/ice/
Dice_vf_mbx.h21 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
Dice_vf_mbx.c54 u32 ice_conv_link_speed_to_virtchnl(bool adv_link_support, u16 link_speed) in ice_conv_link_speed_to_virtchnl() argument
59 switch (link_speed) { in ice_conv_link_speed_to_virtchnl()
103 switch (link_speed) { in ice_conv_link_speed_to_virtchnl()
/linux-6.1.9/drivers/pci/controller/dwc/
Dpcie-designware.c491 u32 cap, ctrl2, link_speed; in dw_pcie_link_set_max_speed() local
500 link_speed = PCI_EXP_LNKCTL2_TLS_2_5GT; in dw_pcie_link_set_max_speed()
503 link_speed = PCI_EXP_LNKCTL2_TLS_5_0GT; in dw_pcie_link_set_max_speed()
506 link_speed = PCI_EXP_LNKCTL2_TLS_8_0GT; in dw_pcie_link_set_max_speed()
509 link_speed = PCI_EXP_LNKCTL2_TLS_16_0GT; in dw_pcie_link_set_max_speed()
513 link_speed = FIELD_GET(PCI_EXP_LNKCAP_SLS, cap); in dw_pcie_link_set_max_speed()
518 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCTL2, ctrl2 | link_speed); in dw_pcie_link_set_max_speed()
521 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCAP, cap | link_speed); in dw_pcie_link_set_max_speed()
/linux-6.1.9/drivers/thunderbolt/
Ddma_test.c103 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()
Dtb.c370 int link_speed, link_width, up_bw, down_bw; in tb_available_bandwidth() local
376 link_speed = port->sw->link_speed; in tb_available_bandwidth()
378 link_speed = tb_port_get_link_speed(port); in tb_available_bandwidth()
379 if (link_speed < 0) in tb_available_bandwidth()
380 return link_speed; in tb_available_bandwidth()
385 up_bw = link_speed * link_width * 1000; /* Mb/s */ in tb_available_bandwidth()
/linux-6.1.9/drivers/net/ethernet/cavium/thunder/
Dthunder_xcv.c110 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.1.9/drivers/net/ethernet/atheros/alx/
Dhw.c70 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()
622 hw->link_speed == SPEED_1000 ? ALX_MAC_CTRL_SPEED_1000 : in alx_start_mac()
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()
[all …]
/linux-6.1.9/drivers/pci/controller/cadence/
Dpci-j721e.c189 int link_speed; in j721e_pcie_set_link_speed() local
193 link_speed = of_pci_get_max_link_speed(np); in j721e_pcie_set_link_speed()
194 if (link_speed < 2) in j721e_pcie_set_link_speed()
195 link_speed = 2; in j721e_pcie_set_link_speed()
197 val = link_speed - 1; in j721e_pcie_set_link_speed()
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c774 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()
1155 enum i40e_aq_link_speed link_speed = I40E_LINK_SPEED_UNKNOWN; in i40e_speed_to_link_speed() local
1161 enum i40e_aq_link_speed link_speed; in i40e_speed_to_link_speed() member
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
1354 config.link_speed |= I40E_LINK_SPEED_100MB; in i40e_set_link_ksettings()
1361 config.link_speed |= I40E_LINK_SPEED_1GB; in i40e_set_link_ksettings()
1374 config.link_speed |= I40E_LINK_SPEED_10GB; in i40e_set_link_ksettings()
[all …]
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-ipq806x.c273 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.1.9/drivers/firewire/
Dcore-card.c108 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.1.9/drivers/net/ethernet/atheros/atl1c/
Datl1c_main.c75 static void atl1c_set_aspm(struct atl1c_hw *hw, u16 link_speed);
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()
1349 static void atl1c_set_aspm(struct atl1c_hw *hw, u16 link_speed) in atl1c_set_aspm() argument
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()
[all …]
Datl1c_hw.c761 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()
Datl1c_ethtool.c38 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.1.9/drivers/net/usb/
Daqc111.c300 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.1.9/drivers/net/ethernet/microchip/
Dlan743x_ptp.h52 u32 link_speed);
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb.h114 u32 link_speed; /* For bandwidth allocation validation purpose */ member
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
Dhw_atl2.c246 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.1.9/drivers/net/ethernet/intel/ixgb/
Dixgb.h117 u16 link_speed; member

12345678