Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/huawei/hinic/
A Dhinic_ethtool.c201 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
302 link_mode.advertised == HINIC_SUPPORTED_UNKNOWN) in hinic_get_link_ksettings()
348 enum hinic_link_mode link_mode; in hinic_is_support_speed() local
351 for (link_mode = 0; link_mode < HINIC_LINK_MODE_NUMBERS; link_mode++) { in hinic_is_support_speed()
352 if (!(supported_link & ((u32)1 << link_mode))) in hinic_is_support_speed()
355 idx = hinic_get_link_mode_index(link_mode); in hinic_is_support_speed()
[all …]
A Dhinic_port.c1077 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()
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_ethtool.c1831 for (i = 0; i < link_mode->m_ethtool_len; i++) in mlxsw_sp2_set_bit_ethtool()
1832 __set_bit(link_mode->mask_ethtool[i], mode); in mlxsw_sp2_set_bit_ethtool()
1913 for (i = 0; i < link_mode->m_ethtool_len; i++) { in mlxsw_sp2_test_bit_ethtool()
1914 if (test_bit(link_mode->mask_ethtool[i], mode)) in mlxsw_sp2_test_bit_ethtool()
1918 return cnt == link_mode->m_ethtool_len; in mlxsw_sp2_test_bit_ethtool()
1940 struct mlxsw_sp2_port_link_mode link_mode; in mlxsw_sp2_to_ptys_speed_lanes() local
1949 link_mode = mlxsw_sp2_port_link_mode[i]; in mlxsw_sp2_to_ptys_speed_lanes()
1956 if (mask_width & link_mode.mask_sup_width) in mlxsw_sp2_to_ptys_speed_lanes()
1957 ptys_proto |= link_mode.mask; in mlxsw_sp2_to_ptys_speed_lanes()
1958 } else if (cmd->lanes == link_mode.width) { in mlxsw_sp2_to_ptys_speed_lanes()
[all …]
/linux/include/net/bluetooth/
A Dhci_sock.h121 __u32 link_mode; member
137 __u32 link_mode; member
/linux/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_82599.c776 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 …]
A 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/drivers/s390/net/
A Dqeth_ethtool.c329 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()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dport.c392 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()
/linux/include/linux/mlx5/
A Dport.h146 #define MLX5E_PROT_MASK(link_mode) (1 << link_mode) argument
/linux/drivers/net/wireless/realtek/rtw89/
A Dcoex.c2863 u8 mode = wl_rinfo->link_mode; in _set_wl_tx_limit()
3311 wl_rinfo->link_mode = BTC_WLINK_NOLINK; in _update_wl_info()
3314 wl_rinfo->link_mode = BTC_WLINK_5G; in _update_wl_info()
3316 wl_rinfo->link_mode = BTC_WLINK_2G_NAN; in _update_wl_info()
3318 wl_rinfo->link_mode = BTC_WLINK_OTHER; in _update_wl_info()
3357 wl_rinfo->link_mode = BTC_WLINK_2G_AP; in _update_wl_info()
3359 wl_rinfo->link_mode = BTC_WLINK_2G_GO; in _update_wl_info()
3361 wl_rinfo->link_mode = BTC_WLINK_2G_GC; in _update_wl_info()
3363 wl_rinfo->link_mode = BTC_WLINK_OTHER; in _update_wl_info()
3383 cnt_connect, wl_rinfo->link_mode); in _update_wl_info()
[all …]
/linux/net/bluetooth/
A Dhci_conn.c248 if (lmp_rswitch_capable(hdev) && !(hdev->link_mode & HCI_LM_MASTER)) in hci_acl_create_connection()
1765 u32 link_mode = 0; in get_link_mode() local
1768 link_mode |= HCI_LM_MASTER; in get_link_mode()
1771 link_mode |= HCI_LM_ENCRYPT; in get_link_mode()
1774 link_mode |= HCI_LM_AUTH; in get_link_mode()
1777 link_mode |= HCI_LM_SECURE; in get_link_mode()
1780 link_mode |= HCI_LM_FIPS; in get_link_mode()
1782 return link_mode; in get_link_mode()
1820 (ci + n)->link_mode = get_link_mode(c); in hci_get_conn_list()
1856 ci.link_mode = get_link_mode(conn); in hci_get_conn_info()
/linux/drivers/net/
A Dsungem_phy.c550 int link_mode; in bcm54xx_read_link() local
555 link_mode = ((val & MII_BCM5400_AUXSTATUS_LINKMODE_MASK) >> in bcm54xx_read_link()
557 phy->duplex = phy_BCM5400_link_table[link_mode][0] ? in bcm54xx_read_link()
559 phy->speed = phy_BCM5400_link_table[link_mode][2] ? in bcm54xx_read_link()
561 (phy_BCM5400_link_table[link_mode][1] ? in bcm54xx_read_link()
/linux/drivers/gpu/drm/bridge/
A 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/net/ethtool/
A Dcommon.c583 enum ethtool_link_mode_bit_indices link_mode) in ethtool_params_from_link_mode() argument
587 if (WARN_ON_ONCE(link_mode >= __ETHTOOL_LINK_MODE_MASK_NBITS)) in ethtool_params_from_link_mode()
590 link_info = &link_mode_params[link_mode]; in ethtool_params_from_link_mode()
/linux/drivers/net/ethernet/mellanox/mlx4/
A Den_port.h75 #define MLX4_PROT_MASK(link_mode) (1<<link_mode) argument
/linux/net/core/
A Dlink_watch.c60 switch(dev->link_mode) { in rfc2863_policy()
/linux/drivers/staging/wfx/
A Dhif_api_general.h132 u8 link_mode:2; member
A Dmain.c382 wdev->keyset, wdev->hw_caps.link_mode); in wfx_probe()
398 if (wdev->hw_caps.link_mode == SEC_LINK_ENFORCED) { in wfx_probe()
/linux/drivers/net/ethernet/toshiba/
A Dps3_gelic_net.h294 int link_mode; member
A Dps3_gelic_net.c118 card->link_mode = mode; in gelic_card_set_link_mode()
1228 if (card->link_mode & GELIC_LV1_ETHER_AUTO_NEG) { in gelic_ether_get_link_ksettings()
1681 card->link_mode = GELIC_LV1_ETHER_AUTO_NEG; in ps3_gelic_driver_probe()
/linux/drivers/gpu/drm/amd/display/dc/inc/hw/
A Dlink_encoder.h250 uint32_t link_mode; member
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
A Dhclge_main.c1109 link_mode); in hclge_convert_setting_sr()
1112 link_mode); in hclge_convert_setting_sr()
1115 link_mode); in hclge_convert_setting_sr()
1118 link_mode); in hclge_convert_setting_sr()
1121 link_mode); in hclge_convert_setting_sr()
1124 link_mode); in hclge_convert_setting_sr()
1132 link_mode); in hclge_convert_setting_lr()
1135 link_mode); in hclge_convert_setting_lr()
1138 link_mode); in hclge_convert_setting_lr()
1141 link_mode); in hclge_convert_setting_lr()
[all …]
/linux/net/ncsi/
A Dncsi-pkt.h237 __be32 link_mode; /* Link setting */ member
/linux/Documentation/ABI/testing/
A Dsysfs-class-net136 authentication is performed (e.g: 802.1x). 'link_mode' attribute
209 What: /sys/class/net/<iface>/link_mode
/linux/drivers/net/ethernet/intel/igb/
A De1000_82575.c560 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()

Completed in 103 milliseconds

12