Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_ethtool.c185 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 …]
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()
Dhinic_port.h839 struct hinic_link_mode_cmd *link_mode);
/kernel/linux/linux-5.10/include/net/bluetooth/
Dhci_sock.h121 __u32 link_mode; member
137 __u32 link_mode; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
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 …]
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()
/kernel/linux/linux-5.10/include/linux/mlx5/
Dport.h136 #define MLX5E_PROT_MASK(link_mode) (1 << link_mode) argument
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_hw.c174 u64 link_mode; member
180 u64 link_mode; member
200 u32 link_mode; member
633 caps->supp_link_modes = resp.param.cap.link_mode; in prestera_hw_port_cap_get()
657 *link_mode_bitmap = resp.param.cap.link_mode; in prestera_hw_port_remote_cap_get()
825 .link_mode = mode, in prestera_hw_port_link_mode_set()
848 *mode = resp.param.link_mode; in prestera_hw_port_link_mode_get()
882 .link_mode = link_modes, in prestera_hw_port_autoneg_set()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
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()
/kernel/linux/linux-5.10/net/bluetooth/
Dhci_conn.c231 if (lmp_rswitch_capable(hdev) && !(hdev->link_mode & HCI_LM_MASTER)) in hci_acl_create_connection()
1582 u32 link_mode = 0; in get_link_mode() local
1585 link_mode |= HCI_LM_MASTER; in get_link_mode()
1588 link_mode |= HCI_LM_ENCRYPT; in get_link_mode()
1591 link_mode |= HCI_LM_AUTH; in get_link_mode()
1594 link_mode |= HCI_LM_SECURE; in get_link_mode()
1597 link_mode |= HCI_LM_FIPS; in get_link_mode()
1599 return link_mode; in get_link_mode()
1637 (ci + n)->link_mode = get_link_mode(c); in hci_get_conn_list()
1673 ci.link_mode = get_link_mode(conn); in hci_get_conn_info()
Dhci_core.c2072 hdev->link_mode = ((__u16) dr.dev_opt) & in hci_dev_cmd()
2194 di.link_mode = hdev->link_mode; in hci_get_dev_info()
3599 hdev->link_mode = (HCI_LM_ACCEPT); in hci_alloc_dev()
/kernel/linux/linux-5.10/drivers/net/
Dsungem_phy.c551 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ethtool.c1616 mlxsw_sp2_set_bit_ethtool(const struct mlxsw_sp2_port_link_mode *link_mode, in mlxsw_sp2_set_bit_ethtool() argument
1621 for (i = 0; i < link_mode->m_ethtool_len; i++) in mlxsw_sp2_set_bit_ethtool()
1622 __set_bit(link_mode->mask_ethtool[i], mode); in mlxsw_sp2_set_bit_ethtool()
1691 mlxsw_sp2_test_bit_ethtool(const struct mlxsw_sp2_port_link_mode *link_mode, in mlxsw_sp2_test_bit_ethtool() argument
1697 for (i = 0; i < link_mode->m_ethtool_len; i++) { in mlxsw_sp2_test_bit_ethtool()
1698 if (test_bit(link_mode->mask_ethtool[i], mode)) in mlxsw_sp2_test_bit_ethtool()
1702 return cnt == link_mode->m_ethtool_len; in mlxsw_sp2_test_bit_ethtool()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/core/
Dlink_watch.c60 switch(dev->link_mode) { in rfc2863_policy()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Den_port.h75 #define MLX4_PROT_MASK(link_mode) (1<<link_mode) argument
/kernel/linux/linux-5.10/drivers/net/ethernet/toshiba/
Dps3_gelic_net.h294 int link_mode; member
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()
1679 card->link_mode = GELIC_LV1_ETHER_AUTO_NEG; in ps3_gelic_driver_probe()
/kernel/linux/linux-5.10/drivers/staging/wfx/
Dhif_api_general.h137 u8 link_mode:2; member
Dmain.c374 wdev->keyset, wdev->hw_caps.link_mode); in wfx_probe()
390 if (wdev->hw_caps.link_mode == SEC_LINK_ENFORCED) { in wfx_probe()
/kernel/linux/linux-5.10/net/ncsi/
Dncsi-pkt.h231 __be32 link_mode; /* Link setting */ member
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-net136 authentication is performed (e.g: 802.1x). 'link_mode' attribute
209 What: /sys/class/net/<iface>/link_mode
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
Dcassini.c178 static int link_mode; variable
186 module_param(link_mode, int, 0);
187 MODULE_PARM_DESC(link_mode, "default link mode");
5028 if (link_mode >= 0 && link_mode < 6) in cas_init_one()
5029 cp->link_cntl = link_modes[link_mode]; in cas_init_one()
/kernel/linux/linux-5.10/drivers/net/phy/
Dphy_device.c2550 void phy_remove_link_mode(struct phy_device *phydev, u32 link_mode) in phy_remove_link_mode() argument
2552 linkmode_clear_bit(link_mode, phydev->supported); in phy_remove_link_mode()

12