/drivers/net/ethernet/huawei/hinic/ |
D | hinic_ethtool.c | 185 static int hinic_get_link_mode_index(enum hinic_link_mode link_mode) in hinic_get_link_mode_index() argument 190 if (link_mode == hw_to_ethtool_link_mode_table[i].hw_link_mode) in hinic_get_link_mode_index() 201 enum hinic_link_mode link_mode; in hinic_add_ethtool_link_mode() local 204 for (link_mode = 0; link_mode < HINIC_LINK_MODE_NUMBERS; link_mode++) { in hinic_add_ethtool_link_mode() 205 if (hw_link_mode & ((u32)1 << link_mode)) { in hinic_add_ethtool_link_mode() 206 idx = hinic_get_link_mode_index(link_mode); in hinic_add_ethtool_link_mode() 261 struct hinic_link_mode_cmd link_mode = { 0 }; in hinic_get_link_ksettings() local 300 err = hinic_get_link_mode(nic_dev->hwdev, &link_mode); in hinic_get_link_ksettings() 301 if (err || link_mode.supported == HINIC_SUPPORTED_UNKNOWN || in hinic_get_link_ksettings() 302 link_mode.advertised == HINIC_SUPPORTED_UNKNOWN) in hinic_get_link_ksettings() [all …]
|
D | hinic_port.c | 1077 struct hinic_link_mode_cmd *link_mode) in hinic_get_link_mode() argument 1082 if (!hwdev || !link_mode) in hinic_get_link_mode() 1085 link_mode->func_id = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_get_link_mode() 1086 out_size = sizeof(*link_mode); in hinic_get_link_mode() 1089 link_mode, sizeof(*link_mode), in hinic_get_link_mode() 1090 link_mode, &out_size); in hinic_get_link_mode() 1091 if (err || !out_size || link_mode->status) { in hinic_get_link_mode() 1094 err, link_mode->status, out_size); in hinic_get_link_mode()
|
D | hinic_port.h | 840 struct hinic_link_mode_cmd *link_mode);
|
/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_mbx.c | 299 struct hclge_mbx_link_mode *link_mode; in hclgevf_mbx_async_handler() local 340 link_mode = (struct hclge_mbx_link_mode *)(msg_q + 1); in hclgevf_mbx_async_handler() 341 idx = le16_to_cpu(link_mode->idx); in hclgevf_mbx_async_handler() 344 le64_to_cpu(link_mode->link_mode); in hclgevf_mbx_async_handler() 347 le64_to_cpu(link_mode->link_mode); in hclgevf_mbx_async_handler()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_ethtool.c | 1781 mlxsw_sp2_set_bit_ethtool(const struct mlxsw_sp2_port_link_mode *link_mode, in mlxsw_sp2_set_bit_ethtool() argument 1786 for (i = 0; i < link_mode->m_ethtool_len; i++) in mlxsw_sp2_set_bit_ethtool() 1787 __set_bit(link_mode->mask_ethtool[i], mode); in mlxsw_sp2_set_bit_ethtool() 1862 mlxsw_sp2_test_bit_ethtool(const struct mlxsw_sp2_port_link_mode *link_mode, in mlxsw_sp2_test_bit_ethtool() argument 1868 for (i = 0; i < link_mode->m_ethtool_len; i++) { in mlxsw_sp2_test_bit_ethtool() 1869 if (test_bit(link_mode->mask_ethtool[i], mode)) in mlxsw_sp2_test_bit_ethtool() 1873 return cnt == link_mode->m_ethtool_len; in mlxsw_sp2_test_bit_ethtool() 1895 struct mlxsw_sp2_port_link_mode link_mode; in mlxsw_sp2_to_ptys_speed_lanes() local 1904 link_mode = mlxsw_sp2_port_link_mode[i]; in mlxsw_sp2_to_ptys_speed_lanes() 1911 if (mask_width & link_mode.mask_sup_width) in mlxsw_sp2_to_ptys_speed_lanes() [all …]
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_82599.c | 776 u32 pma_pmd_1g, link_mode, links_reg, i; in ixgbe_setup_mac_link_82599() local 805 link_mode = autoc & IXGBE_AUTOC_LMS_MASK; in ixgbe_setup_mac_link_82599() 808 if (link_mode == IXGBE_AUTOC_LMS_KX4_KX_KR || in ixgbe_setup_mac_link_82599() 809 link_mode == IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN || in ixgbe_setup_mac_link_82599() 810 link_mode == IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII) { in ixgbe_setup_mac_link_82599() 823 (link_mode == IXGBE_AUTOC_LMS_1G_LINK_NO_AN || in ixgbe_setup_mac_link_82599() 824 link_mode == IXGBE_AUTOC_LMS_1G_AN)) { in ixgbe_setup_mac_link_82599() 832 (link_mode == IXGBE_AUTOC_LMS_10G_SERIAL)) { in ixgbe_setup_mac_link_82599() 852 if (link_mode == IXGBE_AUTOC_LMS_KX4_KX_KR || in ixgbe_setup_mac_link_82599() 853 link_mode == IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN || in ixgbe_setup_mac_link_82599() [all …]
|
D | ixgbe_82598.c | 590 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()
|
/drivers/s390/net/ |
D | qeth_ethtool.c | 329 enum qeth_link_mode link_mode) in qeth_set_ethtool_link_modes() argument 397 if (link_mode == QETH_LINK_MODE_FIBRE_LONG) { in qeth_set_ethtool_link_modes() 402 } else if (link_mode == QETH_LINK_MODE_FIBRE_SHORT) { in qeth_set_ethtool_link_modes() 450 qeth_set_ethtool_link_modes(cmd, card->info.link_info.link_mode); in qeth_get_link_ksettings()
|
D | qeth_core_main.c | 4916 link_info->link_mode = QETH_LINK_MODE_UNKNOWN; in qeth_init_link_info_oat_cb() 4920 link_info->link_mode = QETH_LINK_MODE_FIBRE_SHORT; in qeth_init_link_info_oat_cb() 4924 link_info->link_mode = QETH_LINK_MODE_FIBRE_LONG; in qeth_init_link_info_oat_cb() 4928 link_info->link_mode = QETH_LINK_MODE_UNKNOWN; in qeth_init_link_info_oat_cb() 4942 card->info.link_info.link_mode = QETH_LINK_MODE_FIBRE_SHORT; in qeth_init_link_info() 4970 card->info.link_info.link_mode = QETH_LINK_MODE_UNKNOWN; in qeth_init_link_info() 4996 if (link_info.link_mode != QETH_LINK_MODE_UNKNOWN) in qeth_init_link_info() 4997 card->info.link_info.link_mode = link_info.link_mode; in qeth_init_link_info()
|
D | qeth_core.h | 701 enum qeth_link_mode link_mode; member
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_mbx.c | 522 struct hclge_mbx_link_mode link_mode; in hclge_get_link_mode() local 534 link_mode.idx = cpu_to_le16((u16)mbx_req->msg.data[0]); in hclge_get_link_mode() 535 link_mode.link_mode = cpu_to_le64(send_data); in hclge_get_link_mode() 537 hclge_send_mbx_msg(vport, (u8 *)&link_mode, sizeof(link_mode), in hclge_get_link_mode()
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | port.c | 392 enum mlx5e_fec_supported_link_mode link_mode) in mlx5e_fec_admin_field() argument 394 switch (link_mode) { in mlx5e_fec_admin_field() 433 enum mlx5e_fec_supported_link_mode link_mode) in mlx5e_get_fec_cap_field() argument 435 switch (link_mode) { in mlx5e_get_fec_cap_field()
|
/drivers/net/ |
D | sungem_phy.c | 551 int link_mode; in bcm54xx_read_link() local 556 link_mode = ((val & MII_BCM5400_AUXSTATUS_LINKMODE_MASK) >> in bcm54xx_read_link() 558 phy->duplex = phy_BCM5400_link_table[link_mode][0] ? in bcm54xx_read_link() 560 phy->speed = phy_BCM5400_link_table[link_mode][2] ? in bcm54xx_read_link() 562 (phy_BCM5400_link_table[link_mode][1] ? in bcm54xx_read_link()
|
/drivers/net/ethernet/marvell/prestera/ |
D | prestera_hw.c | 209 u64 link_mode; member 215 u64 link_mode; member 240 u32 link_mode; member 793 caps->supp_link_modes = resp.param.cap.link_mode; in prestera_hw_port_cap_get() 817 *link_mode_bitmap = resp.param.cap.link_mode; in prestera_hw_port_remote_cap_get() 1253 .link_mode = mode, in prestera_hw_port_link_mode_set() 1276 *mode = resp.param.link_mode; in prestera_hw_port_link_mode_get() 1310 .link_mode = link_modes, in prestera_hw_port_autoneg_set()
|
/drivers/gpu/drm/bridge/ |
D | sil-sii8620.c | 1165 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()
|
/drivers/net/ethernet/hisilicon/hns3/ |
D | hclge_mbx.h | 188 __le64 link_mode; member
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_port.h | 75 #define MLX4_PROT_MASK(link_mode) (1<<link_mode) argument
|
/drivers/staging/wfx/ |
D | main.c | 373 wdev->keyset, wdev->hw_caps.link_mode); in wfx_probe() 389 if (wdev->hw_caps.link_mode == SEC_LINK_ENFORCED) { in wfx_probe()
|
D | hif_api_general.h | 137 u8 link_mode:2; member
|
/drivers/net/ethernet/toshiba/ |
D | ps3_gelic_net.h | 295 int link_mode; member
|
D | ps3_gelic_net.c | 118 card->link_mode = mode; in gelic_card_set_link_mode() 1231 if (card->link_mode & GELIC_LV1_ETHER_AUTO_NEG) { in gelic_ether_get_link_ksettings() 1684 card->link_mode = GELIC_LV1_ETHER_AUTO_NEG; in ps3_gelic_driver_probe()
|
/drivers/net/ethernet/intel/igb/ |
D | e1000_82575.c | 560 u32 link_mode = 0; in igb_get_invariants_82575() local 629 link_mode = ctrl_ext & E1000_CTRL_EXT_LINK_MODE_MASK; in igb_get_invariants_82575() 630 switch (link_mode) { in igb_get_invariants_82575() 652 if (link_mode == E1000_CTRL_EXT_LINK_MODE_SGMII) { in igb_get_invariants_82575()
|
/drivers/net/ethernet/sun/ |
D | cassini.c | 178 static int link_mode; variable 186 module_param(link_mode, int, 0); 187 MODULE_PARM_DESC(link_mode, "default link mode"); 5029 if (link_mode >= 0 && link_mode < 6) in cas_init_one() 5030 cp->link_cntl = link_modes[link_mode]; in cas_init_one()
|
/drivers/net/phy/ |
D | phy_device.c | 2685 void phy_remove_link_mode(struct phy_device *phydev, u32 link_mode) in phy_remove_link_mode() argument 2687 linkmode_clear_bit(link_mode, phydev->supported); in phy_remove_link_mode()
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ethtool.c | 33 enum link_mode { enum
|