Lines Matching refs:speed_ability

957 	u32 speed_ability = hdev->hw.mac.speed_ability;  in hclge_check_port_speed()  local
965 if (speed_bit & speed_ability) in hclge_check_port_speed()
1046 static void hclge_convert_setting_sr(u16 speed_ability, in hclge_convert_setting_sr() argument
1052 if (speed_ability & hclge_sr_link_mode_bmap[i].support_bit) in hclge_convert_setting_sr()
1058 static void hclge_convert_setting_lr(u16 speed_ability, in hclge_convert_setting_lr() argument
1064 if (speed_ability & hclge_lr_link_mode_bmap[i].support_bit) in hclge_convert_setting_lr()
1070 static void hclge_convert_setting_cr(u16 speed_ability, in hclge_convert_setting_cr() argument
1076 if (speed_ability & hclge_cr_link_mode_bmap[i].support_bit) in hclge_convert_setting_cr()
1082 static void hclge_convert_setting_kr(u16 speed_ability, in hclge_convert_setting_kr() argument
1088 if (speed_ability & hclge_kr_link_mode_bmap[i].support_bit) in hclge_convert_setting_kr()
1129 u16 speed_ability) in hclge_parse_fiber_link_mode() argument
1133 if (speed_ability & HCLGE_SUPPORT_1G_BIT) in hclge_parse_fiber_link_mode()
1137 hclge_convert_setting_sr(speed_ability, mac->supported); in hclge_parse_fiber_link_mode()
1138 hclge_convert_setting_lr(speed_ability, mac->supported); in hclge_parse_fiber_link_mode()
1139 hclge_convert_setting_cr(speed_ability, mac->supported); in hclge_parse_fiber_link_mode()
1151 u16 speed_ability) in hclge_parse_backplane_link_mode() argument
1155 hclge_convert_setting_kr(speed_ability, mac->supported); in hclge_parse_backplane_link_mode()
1167 u16 speed_ability) in hclge_parse_copper_link_mode() argument
1172 if (!speed_ability) in hclge_parse_copper_link_mode()
1173 speed_ability = HCLGE_SUPPORT_GE; in hclge_parse_copper_link_mode()
1175 if (speed_ability & HCLGE_SUPPORT_1G_BIT) in hclge_parse_copper_link_mode()
1179 if (speed_ability & HCLGE_SUPPORT_100M_BIT) { in hclge_parse_copper_link_mode()
1186 if (speed_ability & HCLGE_SUPPORT_10M_BIT) { in hclge_parse_copper_link_mode()
1200 static void hclge_parse_link_mode(struct hclge_dev *hdev, u16 speed_ability) in hclge_parse_link_mode() argument
1205 hclge_parse_fiber_link_mode(hdev, speed_ability); in hclge_parse_link_mode()
1207 hclge_parse_copper_link_mode(hdev, speed_ability); in hclge_parse_link_mode()
1209 hclge_parse_backplane_link_mode(hdev, speed_ability); in hclge_parse_link_mode()
1212 static u32 hclge_get_max_speed(u16 speed_ability) in hclge_get_max_speed() argument
1214 if (speed_ability & HCLGE_SUPPORT_200G_BITS) in hclge_get_max_speed()
1217 if (speed_ability & HCLGE_SUPPORT_100G_BITS) in hclge_get_max_speed()
1220 if (speed_ability & HCLGE_SUPPORT_50G_BITS) in hclge_get_max_speed()
1223 if (speed_ability & HCLGE_SUPPORT_40G_BIT) in hclge_get_max_speed()
1226 if (speed_ability & HCLGE_SUPPORT_25G_BIT) in hclge_get_max_speed()
1229 if (speed_ability & HCLGE_SUPPORT_10G_BIT) in hclge_get_max_speed()
1232 if (speed_ability & HCLGE_SUPPORT_1G_BIT) in hclge_get_max_speed()
1235 if (speed_ability & HCLGE_SUPPORT_100M_BIT) in hclge_get_max_speed()
1238 if (speed_ability & HCLGE_SUPPORT_10M_BIT) in hclge_get_max_speed()
1294 cfg->speed_ability = hnae3_get_field(__le32_to_cpu(req->param[1]), in hclge_parse_cfg()
1300 cfg->speed_ability |= speed_ability_ext << SPEED_ABILITY_EXT_SHIFT; in hclge_parse_cfg()
1589 hclge_parse_link_mode(hdev, cfg.speed_ability); in hclge_configure()
1591 hdev->hw.mac.max_speed = hclge_get_max_speed(cfg.speed_ability); in hclge_configure()
3144 u32 speed_ability; in hclge_update_speed_advertising() local
3146 if (hclge_get_speed_bit(mac->speed, &speed_ability)) in hclge_update_speed_advertising()
3151 hclge_convert_setting_lr(speed_ability, mac->advertising); in hclge_update_speed_advertising()
3155 hclge_convert_setting_sr(speed_ability, mac->advertising); in hclge_update_speed_advertising()
3158 hclge_convert_setting_cr(speed_ability, mac->advertising); in hclge_update_speed_advertising()
3161 hclge_convert_setting_kr(speed_ability, mac->advertising); in hclge_update_speed_advertising()
3300 if (resp->speed_ability) { in hclge_get_sfp_info()
3302 mac->speed_ability = le32_to_cpu(resp->speed_ability); in hclge_get_sfp_info()