Home
last modified time | relevance | path

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

123456789

/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A 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()
H A 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()
/openbmc/linux/drivers/net/ethernet/oki-semi/pch_gbe/
H A 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()
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/
H A Dsmu_cmn.h33 extern const int link_speed[];
38 return ((gen == 0) ? link_speed[0] : link_speed[gen - 1]); in pcie_gen_to_speed()
/openbmc/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-qos.c232 static int am65_est_cmd_ns_to_cnt(u64 ns, int link_speed) in am65_est_cmd_ns_to_cnt() argument
236 temp = ns * link_speed; in am65_est_cmd_ns_to_cnt()
237 if (link_speed < SPEED_1000) in am65_est_cmd_ns_to_cnt()
274 int link_speed) in am65_cpsw_est_calc_cmd_num() argument
286 link_speed); in am65_cpsw_est_calc_cmd_num()
308 port->qos.link_speed); in am65_cpsw_est_check_scheds()
338 port->qos.link_speed); in am65_cpsw_est_set_sched_list()
544 port->qos.link_speed = link_speed; in am65_cpsw_est_link_up()
588 if (port->qos.link_speed == SPEED_UNKNOWN) in am65_cpsw_setup_taprio()
812 am65_cpsw_est_link_up(ndev, link_speed); in am65_cpsw_qos_link_up()
[all …]
H A Dam65-cpsw-qos.h28 int link_speed; member
36 void am65_cpsw_qos_link_up(struct net_device *ndev, int link_speed);
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_vf_mbx.h21 u32 ice_conv_link_speed_to_virtchnl(bool adv_link_support, u16 link_speed);
41 u16 __always_unused link_speed) in ice_conv_link_speed_to_virtchnl() argument
H A Dice_vf_mbx.c68 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()
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A 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()
/openbmc/u-boot/drivers/net/phy/
H A Dfixed.c37 priv->link_speed = val; in fixedphy_probe()
55 phydev->speed = priv->link_speed; in fixedphy_startup()
/openbmc/linux/drivers/leds/trigger/
H A Dledtrig-netdev.c57 int link_speed; member
91 trigger_data->link_speed == SPEED_10) in set_baseline_state()
95 trigger_data->link_speed == SPEED_100) in set_baseline_state()
99 trigger_data->link_speed == SPEED_1000) in set_baseline_state()
203 trigger_data->link_speed = cmd.base.speed; in get_device_state()
251 trigger_data->link_speed = SPEED_UNKNOWN; in set_device_name()
461 trigger_data->link_speed = SPEED_UNKNOWN; in netdev_trig_notify()
/openbmc/linux/drivers/net/ethernet/cavium/thunder/
H A 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()
/openbmc/linux/drivers/thunderbolt/
H A Dtb.c808 link_speed = port->sw->link_speed; in tb_maximum_bandwidth()
814 up_bw = link_speed * 3 * 1000; in tb_maximum_bandwidth()
817 up_bw = link_speed * 1 * 1000; in tb_maximum_bandwidth()
827 up_bw = link_speed * 1 * 1000; in tb_maximum_bandwidth()
830 up_bw = link_speed * 3 * 1000; in tb_maximum_bandwidth()
839 if (link_speed < 0) in tb_maximum_bandwidth()
840 return link_speed; in tb_maximum_bandwidth()
847 up_bw = link_speed * 1 * 1000; in tb_maximum_bandwidth()
850 up_bw = link_speed * 3 * 1000; in tb_maximum_bandwidth()
860 up_bw = link_speed * 1 * 1000; in tb_maximum_bandwidth()
[all …]
H A Ddma_test.c103 unsigned int link_speed; member
409 *val = dt->link_speed; in speed_get()
427 dt->link_speed = val; in speed_set()
491 if (dt->link_speed && dt->xd->link_speed != dt->link_speed) { in dma_test_check_errors()
532 if (dt->link_speed) in test_store()
533 dev_dbg(&svc->dev, "link_speed: %u Gb/s\n", dt->link_speed); in test_store()
/openbmc/linux/drivers/net/ethernet/atheros/alx/
H A 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()
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 …]
/openbmc/linux/drivers/pci/controller/cadence/
H A Dpci-j721e.c188 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()
/openbmc/linux/drivers/pci/controller/dwc/
H A Dpcie-designware.c701 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()
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c775 u32 link_speed = hw_link_info->link_speed; in i40e_get_settings_link_up() local
1003 switch (link_speed) { in i40e_get_settings_link_up()
1200 link_speed = i40e_speed_lut[i].link_speed; in i40e_speed_to_link_speed()
1205 return link_speed; in i40e_speed_to_link_speed()
1226 enum i40e_aq_link_speed link_speed; in i40e_set_link_ksettings() local
1414 config.link_speed = link_speed; in i40e_set_link_ksettings()
1429 if (!config.link_speed) in i40e_set_link_ksettings()
1430 config.link_speed = abilities.link_speed; in i40e_set_link_ksettings()
1431 if (autoneg_changed || abilities.link_speed != config.link_speed) { in i40e_set_link_ksettings()
1513 config.link_speed = abilities.link_speed; in i40e_set_fec_cfg()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Ddevlink.c493 u32 link_speed = 0; in mlx5_devlink_hairpin_params_init_values() local
497 mlx5_port_max_linkspeed(dev, &link_speed); in mlx5_devlink_hairpin_params_init_values()
498 link_speed = max_t(u32, link_speed, 50000); in mlx5_devlink_hairpin_params_init_values()
499 link_speed64 = link_speed; in mlx5_devlink_hairpin_params_init_values()
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A 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()
/openbmc/linux/drivers/firewire/
H A Dcore-card.c108 BIB_LINK_SPEED(card->link_speed) | in generate_config_rom()
575 u32 max_receive, u32 link_speed, u64 guid) in fw_card_add() argument
580 card->link_speed = link_speed; in fw_card_add()
/openbmc/linux/drivers/net/ethernet/atheros/atl1c/
H A 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()
H A Datl1c_main.c285 if (adapter->link_speed != speed || in atl1c_check_link_status()
287 adapter->link_speed = speed; in atl1c_check_link_status()
296 adapter->link_speed, in atl1c_check_link_status()
323 adapter->link_speed = SPEED_0; in atl1c_link_chg_event()
788 adapter->link_speed = SPEED_0; in atl1c_sw_init()
1230 hw->mac_speed = adapter->link_speed == SPEED_1000 ? in atl1c_start_mac()
1340 link_speed == SPEED_1000 || link_speed == SPEED_100 ? in atl1c_set_aspm()
1347 if (link_speed != SPEED_1000 && link_speed != SPEED_100) in atl1c_set_aspm()
1373 if (link_speed == SPEED_0 || hw->nic_type == athr_l2c_b) in atl1c_set_aspm()
1378 if (link_speed != SPEED_0) { in atl1c_set_aspm()
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/
H A Dlan743x_ptp.h52 u32 link_speed);
/openbmc/linux/drivers/net/usb/
H A 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()

123456789