/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/ |
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()
|
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.12.1/drivers/net/ethernet/oki-semi/pch_gbe/ |
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.12.1/drivers/leds/trigger/ |
D | ledtrig-netdev.c | 71 int link_speed; member 108 trigger_data->link_speed == SPEED_10) in set_baseline_state() 112 trigger_data->link_speed == SPEED_100) in set_baseline_state() 116 trigger_data->link_speed == SPEED_1000) in set_baseline_state() 120 trigger_data->link_speed == SPEED_2500) in set_baseline_state() 124 trigger_data->link_speed == SPEED_5000) in set_baseline_state() 128 trigger_data->link_speed == SPEED_10000) in set_baseline_state() 235 trigger_data->link_speed = cmd.base.speed; in get_device_state() 289 trigger_data->link_speed = SPEED_UNKNOWN; in set_device_name() 490 #define CHECK_LINK_MODE_ATTR(link_speed) \ argument [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/ |
D | smu_cmn.h | 43 extern const int link_speed[]; 48 return ((gen == 0) ? link_speed[0] : link_speed[gen - 1]); in pcie_gen_to_speed()
|
/linux-6.12.1/drivers/net/ethernet/ti/ |
D | am65-cpsw-qos.c | 63 if (p_mqprio->max_rate_total > port->qos.link_speed) in am65_cpsw_tx_pn_shaper_apply() 388 if (port->qos.link_speed == SPEED_UNKNOWN) in am65_cpsw_iet_commit_preemptible_tcs() 609 static int am65_est_cmd_ns_to_cnt(u64 ns, int link_speed) in am65_est_cmd_ns_to_cnt() argument 613 temp = ns * link_speed; in am65_est_cmd_ns_to_cnt() 614 if (link_speed < SPEED_1000) in am65_est_cmd_ns_to_cnt() 651 int link_speed) in am65_cpsw_est_calc_cmd_num() argument 663 link_speed); in am65_cpsw_est_calc_cmd_num() 685 port->qos.link_speed); in am65_cpsw_est_check_scheds() 715 port->qos.link_speed); in am65_cpsw_est_set_sched_list() 855 if (port->qos.link_speed == SPEED_UNKNOWN) in am65_cpsw_taprio_replace() [all …]
|
D | am65-cpsw-qos.h | 41 int link_speed; member 99 void am65_cpsw_qos_link_up(struct net_device *ndev, int link_speed); 114 int link_speed) in am65_cpsw_qos_link_up() argument
|
/linux-6.12.1/drivers/infiniband/hw/hfi1/ |
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.12.1/drivers/net/ethernet/intel/ice/ |
D | ice_vf_mbx.h | 21 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
|
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.12.1/drivers/thunderbolt/ |
D | dma_test.c | 103 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() 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()
|
D | tb.c | 698 int link_speed, link_width, up_bw, down_bw; in tb_maximum_bandwidth() local 708 link_speed = port->sw->link_speed; in tb_maximum_bandwidth() 714 up_bw = link_speed * 3 * 1000; in tb_maximum_bandwidth() 715 down_bw = link_speed * 1 * 1000; in tb_maximum_bandwidth() 717 up_bw = link_speed * 1 * 1000; in tb_maximum_bandwidth() 718 down_bw = link_speed * 3 * 1000; in tb_maximum_bandwidth() 727 up_bw = link_speed * 1 * 1000; in tb_maximum_bandwidth() 728 down_bw = link_speed * 3 * 1000; in tb_maximum_bandwidth() 730 up_bw = link_speed * 3 * 1000; in tb_maximum_bandwidth() 731 down_bw = link_speed * 1 * 1000; in tb_maximum_bandwidth() [all …]
|
/linux-6.12.1/drivers/net/ethernet/cavium/thunder/ |
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.12.1/drivers/net/ethernet/atheros/alx/ |
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() 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.12.1/drivers/pci/controller/cadence/ |
D | pci-j721e.c | 193 int link_speed; in j721e_pcie_set_link_speed() local 197 link_speed = of_pci_get_max_link_speed(np); in j721e_pcie_set_link_speed() 198 if (link_speed < 2) in j721e_pcie_set_link_speed() 199 link_speed = 2; in j721e_pcie_set_link_speed() 201 val = link_speed - 1; in j721e_pcie_set_link_speed()
|
/linux-6.12.1/drivers/pci/controller/dwc/ |
D | pcie-designware.c | 694 u32 cap, ctrl2, link_speed; in dw_pcie_link_set_max_speed() local 714 link_speed = PCI_EXP_LNKCTL2_TLS_2_5GT; in dw_pcie_link_set_max_speed() 717 link_speed = PCI_EXP_LNKCTL2_TLS_5_0GT; in dw_pcie_link_set_max_speed() 720 link_speed = PCI_EXP_LNKCTL2_TLS_8_0GT; in dw_pcie_link_set_max_speed() 723 link_speed = PCI_EXP_LNKCTL2_TLS_16_0GT; in dw_pcie_link_set_max_speed() 727 link_speed = FIELD_GET(PCI_EXP_LNKCAP_SLS, cap); in dw_pcie_link_set_max_speed() 732 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCTL2, ctrl2 | link_speed); in dw_pcie_link_set_max_speed() 735 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCAP, cap | link_speed); in dw_pcie_link_set_max_speed()
|
/linux-6.12.1/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 776 u32 link_speed = hw_link_info->link_speed; in i40e_get_settings_link_up() local 1004 switch (link_speed) { in i40e_get_settings_link_up() 1157 enum i40e_aq_link_speed link_speed = I40E_LINK_SPEED_UNKNOWN; in i40e_speed_to_link_speed() local 1163 enum i40e_aq_link_speed link_speed; in i40e_speed_to_link_speed() member 1201 link_speed = i40e_speed_lut[i].link_speed; in i40e_speed_to_link_speed() 1206 return link_speed; in i40e_speed_to_link_speed() 1227 enum i40e_aq_link_speed link_speed; in i40e_set_link_ksettings() local 1358 config.link_speed |= I40E_LINK_SPEED_100MB; in i40e_set_link_ksettings() 1365 config.link_speed |= I40E_LINK_SPEED_1GB; in i40e_set_link_ksettings() 1378 config.link_speed |= I40E_LINK_SPEED_10GB; in i40e_set_link_ksettings() [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | devlink.c | 482 u32 link_speed = 0; in mlx5_devlink_hairpin_params_init_values() local 486 mlx5_port_max_linkspeed(dev, &link_speed); in mlx5_devlink_hairpin_params_init_values() 487 link_speed = max_t(u32, link_speed, 50000); in mlx5_devlink_hairpin_params_init_values() 488 link_speed64 = link_speed; in mlx5_devlink_hairpin_params_init_values()
|
/linux-6.12.1/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-ipq806x.c | 276 int link_speed; in ipq806x_gmac_configure_qsgmii_pcs_speed() local 288 ret = of_property_read_u32(dn, "speed", &link_speed); in ipq806x_gmac_configure_qsgmii_pcs_speed() 297 switch (link_speed) { in ipq806x_gmac_configure_qsgmii_pcs_speed()
|
/linux-6.12.1/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_main.c | 75 static void atl1c_set_aspm(struct atl1c_hw *hw, u16 link_speed); 285 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() 1231 hw->mac_speed = adapter->link_speed == SPEED_1000 ? in atl1c_start_mac() 1328 static void atl1c_set_aspm(struct atl1c_hw *hw, u16 link_speed) in atl1c_set_aspm() argument 1341 link_speed == SPEED_1000 || link_speed == SPEED_100 ? in atl1c_set_aspm() 1348 if (link_speed != SPEED_1000 && link_speed != SPEED_100) in atl1c_set_aspm() [all …]
|
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()
|
/linux-6.12.1/drivers/net/usb/ |
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.12.1/drivers/firewire/ |
D | core-card.c | 109 BIB_LINK_SPEED(card->link_speed) | in generate_config_rom() 574 int fw_card_add(struct fw_card *card, u32 max_receive, u32 link_speed, u64 guid, in fw_card_add() argument 599 card->link_speed = link_speed; in fw_card_add()
|
/linux-6.12.1/drivers/net/ethernet/microchip/ |
D | lan743x_ptp.h | 53 u32 link_speed);
|
/linux-6.12.1/drivers/net/ethernet/meta/fbnic/ |
D | fbnic_fw.h | 43 u8 link_speed; member
|