Home
last modified time | relevance | path

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

12345678

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dam65-cpsw-qos.c230 static int am65_est_cmd_ns_to_cnt(u64 ns, int link_speed) in am65_est_cmd_ns_to_cnt() argument
234 temp = ns * link_speed; in am65_est_cmd_ns_to_cnt()
235 if (link_speed < SPEED_1000) in am65_est_cmd_ns_to_cnt()
272 int link_speed) in am65_cpsw_est_calc_cmd_num() argument
284 link_speed); in am65_cpsw_est_calc_cmd_num()
306 port->qos.link_speed); in am65_cpsw_est_check_scheds()
336 port->qos.link_speed); in am65_cpsw_est_set_sched_list()
540 static void am65_cpsw_est_link_up(struct net_device *ndev, int link_speed) in am65_cpsw_est_link_up() argument
546 port->qos.link_speed = link_speed; in am65_cpsw_est_link_up()
585 if (port->qos.link_speed == SPEED_UNKNOWN) in am65_cpsw_setup_taprio()
[all …]
Dam65-cpsw-qos.h21 int link_speed; member
26 void am65_cpsw_qos_link_up(struct net_device *ndev, int link_speed);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_sriov.c55 u32 ice_conv_link_speed_to_virtchnl(bool adv_link_support, u16 link_speed) in ice_conv_link_speed_to_virtchnl() argument
60 switch (link_speed) { in ice_conv_link_speed_to_virtchnl()
104 switch (link_speed) { in ice_conv_link_speed_to_virtchnl()
Dice_sriov.h14 u32 ice_conv_link_speed_to_virtchnl(bool adv_link_support, u16 link_speed);
28 u16 __always_unused link_speed) in ice_conv_link_speed_to_virtchnl() argument
/kernel/linux/linux-5.10/drivers/vfio/pci/
Dvfio_pci_nvlink2.c304 unsigned int link_speed; /* The link speed from DT's ibm,nvlink-speed */ member
373 .link_speed = data->link_speed in vfio_pci_npu2_add_capability()
402 u32 link_speed = 0xff; in vfio_pci_ibm_npu2_init() local
443 if (of_property_read_u32(npu_node, "ibm,nvlink-speed", &link_speed)) { in vfio_pci_ibm_npu2_init()
454 data->link_speed = link_speed; in vfio_pci_ibm_npu2_init()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dmad.h443 u16 link_speed, int vl);
458 static inline u16 get_link_speed(u16 link_speed) in get_link_speed() argument
460 return (link_speed == 1) ? in get_link_speed()
473 u16 link_speed) in convert_xmit_counter() argument
476 * link_speed) / DECIMAL_FACTORING; in convert_xmit_counter()
/kernel/linux/linux-5.10/drivers/pci/controller/dwc/
Dpcie-designware.c512 u32 cap, ctrl2, link_speed; in dw_pcie_link_set_max_speed() local
521 link_speed = PCI_EXP_LNKCTL2_TLS_2_5GT; in dw_pcie_link_set_max_speed()
524 link_speed = PCI_EXP_LNKCTL2_TLS_5_0GT; in dw_pcie_link_set_max_speed()
527 link_speed = PCI_EXP_LNKCTL2_TLS_8_0GT; in dw_pcie_link_set_max_speed()
530 link_speed = PCI_EXP_LNKCTL2_TLS_16_0GT; in dw_pcie_link_set_max_speed()
534 link_speed = FIELD_GET(PCI_EXP_LNKCAP_SLS, cap); in dw_pcie_link_set_max_speed()
539 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCTL2, ctrl2 | link_speed); in dw_pcie_link_set_max_speed()
542 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCAP, cap | link_speed); in dw_pcie_link_set_max_speed()
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/os_dep/
Drtw_android.c97 u16 link_speed; in rtw_android_get_link_speed() local
99 link_speed = rtw_get_cur_max_rate(padapter) / 10; in rtw_android_get_link_speed()
101 link_speed); in rtw_android_get_link_speed()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/pci/controller/cadence/
Dpci-j721e.c185 int link_speed; in j721e_pcie_set_link_speed() local
189 link_speed = of_pci_get_max_link_speed(np); in j721e_pcie_set_link_speed()
190 if (link_speed < 2) in j721e_pcie_set_link_speed()
191 link_speed = 2; in j721e_pcie_set_link_speed()
193 val = link_speed - 1; in j721e_pcie_set_link_speed()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atl1c/
Datl1c_main.c41 static void atl1c_set_aspm(struct atl1c_hw *hw, u16 link_speed);
263 if (adapter->link_speed != speed || in atl1c_check_link_status()
265 adapter->link_speed = speed; in atl1c_check_link_status()
274 adapter->link_speed, in atl1c_check_link_status()
304 adapter->link_speed = SPEED_0; in atl1c_link_chg_event()
770 adapter->link_speed = SPEED_0; in atl1c_sw_init()
1190 hw->mac_speed = adapter->link_speed == SPEED_1000 ? in atl1c_start_mac()
1287 static void atl1c_set_aspm(struct atl1c_hw *hw, u16 link_speed) in atl1c_set_aspm() argument
1300 link_speed == SPEED_1000 || link_speed == SPEED_100 ? in atl1c_set_aspm()
1307 if (link_speed != SPEED_1000 && link_speed != SPEED_100) in atl1c_set_aspm()
[all …]
Datl1c_hw.c735 adapter->link_speed = speed; in atl1c_phy_to_ps_link()
763 speed = adapter->link_speed == SPEED_1000 ? in atl1c_power_saving()
817 void atl1c_post_phy_linkchg(struct atl1c_hw *hw, u16 link_speed) in atl1c_post_phy_linkchg() argument
826 if (link_speed != SPEED_0) { /* link up */ in atl1c_post_phy_linkchg()
837 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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/microchip/
Dlan743x_ptp.h49 u32 link_speed);
/kernel/linux/linux-5.10/drivers/thunderbolt/
Dtb.c326 int link_speed, link_width, up_bw, down_bw; in tb_available_bandwidth() local
332 link_speed = port->sw->link_speed; in tb_available_bandwidth()
334 link_speed = tb_port_get_link_speed(port); in tb_available_bandwidth()
335 if (link_speed < 0) in tb_available_bandwidth()
336 return link_speed; in tb_available_bandwidth()
341 up_bw = link_speed * link_width * 1000; /* Mb/s */ in tb_available_bandwidth()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb.h114 u32 link_speed; /* For bandwidth allocation validation purpose */ member
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgb/
Dixgb.h117 u16 link_speed; member
/kernel/linux/linux-5.10/include/linux/avf/
Dvirtchnl.h607 enum virtchnl_link_speed link_speed; member
612 u32 link_speed; member

12345678