Lines Matching refs:link_mode
1933 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()
2064 ptys_proto |= link_mode.mask; in mlxsw_sp2_to_ptys_speed_lanes()
2065 } else if (cmd->lanes == link_mode.width) { in mlxsw_sp2_to_ptys_speed_lanes()
2070 ptys_proto |= link_mode.mask; in mlxsw_sp2_to_ptys_speed_lanes()