Home
last modified time | relevance | path

Searched refs:link_mode (Results 1 – 25 of 59) sorted by relevance

123

/linux-6.12.1/drivers/net/ethernet/meta/fbnic/
Dfbnic_mac.c477 switch (fbn->link_mode & FBNIC_LINK_MODE_MASK) { in fbnic_mac_get_pcs_link_status()
552 u8 link_mode = fbn->link_mode; in fbnic_pcs_get_fw_settings() local
575 if (fbn->link_mode & FBNIC_LINK_AUTO) { in fbnic_pcs_get_fw_settings()
578 link_mode = FBNIC_LINK_25R1; in fbnic_pcs_get_fw_settings()
581 link_mode = FBNIC_LINK_50R2; in fbnic_pcs_get_fw_settings()
584 link_mode = FBNIC_LINK_50R1; in fbnic_pcs_get_fw_settings()
588 link_mode = FBNIC_LINK_100R2; in fbnic_pcs_get_fw_settings()
595 fbn->link_mode = link_mode; in fbnic_pcs_get_fw_settings()
Dfbnic_netdev.h34 u8 link_mode; member
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_mbx.c303 struct hclge_mbx_link_mode *link_mode; in hclgevf_mbx_async_handler() local
345 link_mode = (struct hclge_mbx_link_mode *)(msg_q + 1); in hclgevf_mbx_async_handler()
346 idx = le16_to_cpu(link_mode->idx); in hclgevf_mbx_async_handler()
349 le64_to_cpu(link_mode->link_mode); in hclgevf_mbx_async_handler()
352 le64_to_cpu(link_mode->link_mode); in hclgevf_mbx_async_handler()
/linux-6.12.1/drivers/net/ethernet/huawei/hinic/
Dhinic_ethtool.c184 static int hinic_get_link_mode_index(enum hinic_link_mode link_mode) in hinic_get_link_mode_index() argument
189 if (link_mode == hw_to_ethtool_link_mode_table[i].hw_link_mode) in hinic_get_link_mode_index()
200 enum hinic_link_mode link_mode; in hinic_add_ethtool_link_mode() local
203 for (link_mode = 0; link_mode < HINIC_LINK_MODE_NUMBERS; link_mode++) { in hinic_add_ethtool_link_mode()
204 if (hw_link_mode & ((u32)1 << link_mode)) { in hinic_add_ethtool_link_mode()
205 idx = hinic_get_link_mode_index(link_mode); in hinic_add_ethtool_link_mode()
260 struct hinic_link_mode_cmd link_mode = { 0 }; in hinic_get_link_ksettings() local
299 err = hinic_get_link_mode(nic_dev->hwdev, &link_mode); in hinic_get_link_ksettings()
300 if (err || link_mode.supported == HINIC_SUPPORTED_UNKNOWN || in hinic_get_link_ksettings()
301 link_mode.advertised == HINIC_SUPPORTED_UNKNOWN) in hinic_get_link_ksettings()
[all …]
Dhinic_port.c1092 struct hinic_link_mode_cmd *link_mode) in hinic_get_link_mode() argument
1097 if (!hwdev || !link_mode) in hinic_get_link_mode()
1100 link_mode->func_id = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_get_link_mode()
1101 out_size = sizeof(*link_mode); in hinic_get_link_mode()
1104 link_mode, sizeof(*link_mode), in hinic_get_link_mode()
1105 link_mode, &out_size); in hinic_get_link_mode()
1106 if (err || !out_size || link_mode->status) { in hinic_get_link_mode()
1109 err, link_mode->status, out_size); in hinic_get_link_mode()
/linux-6.12.1/drivers/net/wireless/realtek/rtw89/
Dcoex.c330 u8 link_mode; member
2935 u8 level_id = 0, link_mode = 0, i, dbcc_2g_phy = 0; in _set_rf_trx_para() local
2938 link_mode = wl->role_info.link_mode; in _set_rf_trx_para()
2944 link_mode = wl->role_info_v1.link_mode; in _set_rf_trx_para()
2947 link_mode = wl->role_info_v2.link_mode; in _set_rf_trx_para()
2963 link_mode == BTC_WLINK_2G_STA && in _set_rf_trx_para()
2998 link_mode == BTC_WLINK_5G || in _set_rf_trx_para()
2999 link_mode == BTC_WLINK_NOLINK || in _set_rf_trx_para()
3062 mode = wl_rinfo->link_mode; in _set_bt_afh_info()
3065 mode = wl_rinfo_v1->link_mode; in _set_bt_afh_info()
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Dport.c318 enum mlx5e_fec_supported_link_mode link_mode) in mlx5e_is_fec_supported_link_mode() argument
320 return link_mode < MLX5E_FEC_FIRST_50G_PER_LANE_MODE || in mlx5e_is_fec_supported_link_mode()
321 (link_mode < MLX5E_FEC_FIRST_100G_PER_LANE_MODE && in mlx5e_is_fec_supported_link_mode()
323 (link_mode >= MLX5E_FEC_FIRST_100G_PER_LANE_MODE && in mlx5e_is_fec_supported_link_mode()
329 enum mlx5e_fec_supported_link_mode link_mode) in mlx5e_fec_admin_field() argument
331 switch (link_mode) { in mlx5e_fec_admin_field()
382 enum mlx5e_fec_supported_link_mode link_mode) in mlx5e_get_fec_cap_field() argument
384 switch (link_mode) { in mlx5e_get_fec_cap_field()
/linux-6.12.1/include/net/bluetooth/
Dhci_sock.h121 __u32 link_mode; member
137 __u32 link_mode; member
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ethtool.c1933 mlxsw_sp2_set_bit_ethtool(const struct mlxsw_sp2_port_link_mode *link_mode, in mlxsw_sp2_set_bit_ethtool() argument
1938 for (i = 0; i < link_mode->m_ethtool_len; i++) in mlxsw_sp2_set_bit_ethtool()
1939 __set_bit(link_mode->mask_ethtool[i], mode); in mlxsw_sp2_set_bit_ethtool()
2014 mlxsw_sp2_test_bit_ethtool(const struct mlxsw_sp2_port_link_mode *link_mode, in mlxsw_sp2_test_bit_ethtool() argument
2020 for (i = 0; i < link_mode->m_ethtool_len; i++) { in mlxsw_sp2_test_bit_ethtool()
2021 if (test_bit(link_mode->mask_ethtool[i], mode)) in mlxsw_sp2_test_bit_ethtool()
2025 return cnt == link_mode->m_ethtool_len; in mlxsw_sp2_test_bit_ethtool()
2047 struct mlxsw_sp2_port_link_mode link_mode; in mlxsw_sp2_to_ptys_speed_lanes() local
2056 link_mode = mlxsw_sp2_port_link_mode[i]; in mlxsw_sp2_to_ptys_speed_lanes()
2063 if (mask_width & link_mode.mask_sup_width) in mlxsw_sp2_to_ptys_speed_lanes()
[all …]
/linux-6.12.1/drivers/s390/net/
Dqeth_ethtool.c331 enum qeth_link_mode link_mode) in qeth_set_ethtool_link_modes() argument
399 if (link_mode == QETH_LINK_MODE_FIBRE_LONG) { in qeth_set_ethtool_link_modes()
404 } else if (link_mode == QETH_LINK_MODE_FIBRE_SHORT) { in qeth_set_ethtool_link_modes()
442 qeth_set_ethtool_link_modes(cmd, card->info.link_info.link_mode); in qeth_get_link_ksettings()
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_ethtool.h9 u8 link_mode; member
46 .link_mode = ETHTOOL_LINK_MODE_##ETHTOOL_LINK_MODE##_BIT, \
/linux-6.12.1/drivers/net/ethernet/intel/ixgbe/
Dixgbe_82599.c777 u32 pma_pmd_10g_serial, pma_pmd_1g, link_mode, links_reg, i; in ixgbe_setup_mac_link_82599() local
808 link_mode = autoc & IXGBE_AUTOC_LMS_MASK; in ixgbe_setup_mac_link_82599()
811 if (link_mode == IXGBE_AUTOC_LMS_KX4_KX_KR || in ixgbe_setup_mac_link_82599()
812 link_mode == IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN || in ixgbe_setup_mac_link_82599()
813 link_mode == IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII) { in ixgbe_setup_mac_link_82599()
826 (link_mode == IXGBE_AUTOC_LMS_1G_LINK_NO_AN || in ixgbe_setup_mac_link_82599()
827 link_mode == IXGBE_AUTOC_LMS_1G_AN)) { in ixgbe_setup_mac_link_82599()
835 (link_mode == IXGBE_AUTOC_LMS_10G_SERIAL)) { in ixgbe_setup_mac_link_82599()
855 if (link_mode == IXGBE_AUTOC_LMS_KX4_KX_KR || in ixgbe_setup_mac_link_82599()
856 link_mode == IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN || in ixgbe_setup_mac_link_82599()
[all …]
Dixgbe_82598.c590 u32 link_mode = autoc & IXGBE_AUTOC_LMS_MASK; in ixgbe_setup_mac_link_82598() local
600 else if (link_mode == IXGBE_AUTOC_LMS_KX4_AN || in ixgbe_setup_mac_link_82598()
601 link_mode == IXGBE_AUTOC_LMS_KX4_AN_1G_AN) { in ixgbe_setup_mac_link_82598()
/linux-6.12.1/include/linux/mlx5/
Dport.h151 #define MLX5E_PROT_MASK(link_mode) (1U << link_mode) argument
/linux-6.12.1/drivers/net/
Dsungem_phy.c547 int link_mode; in bcm54xx_read_link() local
552 link_mode = ((val & MII_BCM5400_AUXSTATUS_LINKMODE_MASK) >> in bcm54xx_read_link()
554 phy->duplex = phy_BCM5400_link_table[link_mode][0] ? in bcm54xx_read_link()
556 phy->speed = phy_BCM5400_link_table[link_mode][2] ? in bcm54xx_read_link()
558 (phy_BCM5400_link_table[link_mode][1] ? in bcm54xx_read_link()
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_mbx.c603 struct hclge_mbx_link_mode link_mode; in hclge_get_link_mode() local
615 link_mode.idx = cpu_to_le16((u16)mbx_req->msg.data[0]); in hclge_get_link_mode()
616 link_mode.link_mode = cpu_to_le64(send_data); in hclge_get_link_mode()
618 hclge_send_mbx_msg(vport, (u8 *)&link_mode, sizeof(link_mode), in hclge_get_link_mode()
/linux-6.12.1/drivers/gpu/drm/bridge/
Dsil-sii8620.c1165 u8 link_mode = MHL_DST_LM_PATH_ENABLED; in sii8620_start_video() local
1168 link_mode |= MHL_DST_LM_CLK_MODE_PACKED_PIXEL; in sii8620_start_video()
1170 link_mode |= MHL_DST_LM_CLK_MODE_NORMAL; in sii8620_start_video()
1172 sii8620_mt_write_stat(ctx, MHL_DST_REG(LINK_MODE), link_mode); in sii8620_start_video()
1683 u8 link_mode; in sii8620_status_changed_path() local
1686 link_mode = MHL_DST_LM_CLK_MODE_PACKED_PIXEL; in sii8620_status_changed_path()
1688 link_mode = MHL_DST_LM_CLK_MODE_NORMAL; in sii8620_status_changed_path()
1691 link_mode |= MHL_DST_LM_PATH_ENABLED; in sii8620_status_changed_path()
1694 link_mode); in sii8620_status_changed_path()
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/
Dhclge_mbx.h192 __le64 link_mode; member
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/
Den_port.h75 #define MLX4_PROT_MASK(link_mode) (1<<link_mode) argument
/linux-6.12.1/drivers/net/wireless/silabs/wfx/
Dhif_api_general.h122 u8 link_mode:2; member
Dmain.c376 wdev->keyset, wdev->hw_caps.link_mode); in wfx_probe()
391 if (wdev->hw_caps.link_mode == SEC_LINK_ENFORCED) { in wfx_probe()
/linux-6.12.1/net/core/
Dlink_watch.c72 switch(dev->link_mode) { in rfc2863_policy()
/linux-6.12.1/net/bluetooth/
Dhci_conn.c2599 u32 link_mode = 0; in get_link_mode() local
2602 link_mode |= HCI_LM_MASTER; in get_link_mode()
2605 link_mode |= HCI_LM_ENCRYPT; in get_link_mode()
2608 link_mode |= HCI_LM_AUTH; in get_link_mode()
2611 link_mode |= HCI_LM_SECURE; in get_link_mode()
2614 link_mode |= HCI_LM_FIPS; in get_link_mode()
2616 return link_mode; in get_link_mode()
2654 (ci + n)->link_mode = get_link_mode(c); in hci_get_conn_list()
2690 ci.link_mode = get_link_mode(conn); in hci_get_conn_info()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/inc/hw/
Dlink_encoder.h218 uint32_t link_mode; member
/linux-6.12.1/drivers/net/ethernet/toshiba/
Dps3_gelic_net.h301 int link_mode; member

123