Lines Matching refs:phy_data

137 				   struct ice_phy_data *phy_data);
2920 struct ice_phy_data *phy_data) in ice_intersect_phy_types_and_speeds() argument
2935 switch (phy_data->report_mode) { in ice_intersect_phy_types_and_speeds()
2940 report_type = phy_data->report_mode >> 1; in ice_intersect_phy_types_and_speeds()
2945 __func__, phy_data->report_mode); in ice_intersect_phy_types_and_speeds()
2953 if (phy_data->user_speeds_orig == 0) in ice_intersect_phy_types_and_speeds()
2954 phy_data->user_speeds_orig = USHRT_MAX; in ice_intersect_phy_types_and_speeds()
2958 status = ice_aq_get_phy_caps(pi, false, phy_data->report_mode, &pcaps, NULL); in ice_intersect_phy_types_and_speeds()
2968 phy_data->phy_low_orig = le64toh(pcaps.phy_type_low); in ice_intersect_phy_types_and_speeds()
2969 phy_data->phy_high_orig = le64toh(pcaps.phy_type_high); in ice_intersect_phy_types_and_speeds()
2970 report_speeds = ice_aq_phy_types_to_link_speeds(phy_data->phy_low_orig, in ice_intersect_phy_types_and_speeds()
2971 phy_data->phy_high_orig); in ice_intersect_phy_types_and_speeds()
2975 if ((phy_data->user_speeds_orig & temp_speeds) == 0) { in ice_intersect_phy_types_and_speeds()
2978 phy_data->user_speeds_orig); in ice_intersect_phy_types_and_speeds()
2983 ice_sysctl_speeds_to_aq_phy_types(phy_data->user_speeds_orig, in ice_intersect_phy_types_and_speeds()
2984 &phy_data->phy_low_intr, &phy_data->phy_high_intr); in ice_intersect_phy_types_and_speeds()
2985 phy_data->user_speeds_intr = phy_data->user_speeds_orig & report_speeds; in ice_intersect_phy_types_and_speeds()
2986 phy_data->phy_low_intr &= phy_data->phy_low_orig; in ice_intersect_phy_types_and_speeds()
2987 phy_data->phy_high_intr &= phy_data->phy_high_orig; in ice_intersect_phy_types_and_speeds()
3008 struct ice_phy_data phy_data = { 0 }; in ice_sysctl_advertise_speed() local
3019 phy_data.report_mode = ICE_AQC_REPORT_ACTIVE_CFG; in ice_sysctl_advertise_speed()
3020 ret = ice_intersect_phy_types_and_speeds(sc, &phy_data); in ice_sysctl_advertise_speed()
3026 sysctl_speeds = phy_data.user_speeds_intr; in ice_sysctl_advertise_speed()
8267 struct ice_phy_data phy_data = { 0 }; in ice_apply_saved_phy_req_to_cfg() local
8276 memset(&phy_data, 0, sizeof(phy_data)); in ice_apply_saved_phy_req_to_cfg()
8277 phy_data.report_mode = ICE_AQC_REPORT_DFLT_CFG; in ice_apply_saved_phy_req_to_cfg()
8278 phy_data.user_speeds_orig = link_speeds; in ice_apply_saved_phy_req_to_cfg()
8279 ret = ice_intersect_phy_types_and_speeds(sc, &phy_data); in ice_apply_saved_phy_req_to_cfg()
8284 phy_low = phy_data.phy_low_intr; in ice_apply_saved_phy_req_to_cfg()
8285 phy_high = phy_data.phy_high_intr; in ice_apply_saved_phy_req_to_cfg()
8287 if (link_speeds == 0 || phy_data.user_speeds_intr) in ice_apply_saved_phy_req_to_cfg()
8290 memset(&phy_data, 0, sizeof(phy_data)); in ice_apply_saved_phy_req_to_cfg()
8291 phy_data.report_mode = ICE_AQC_REPORT_TOPO_CAP_NO_MEDIA; in ice_apply_saved_phy_req_to_cfg()
8292 phy_data.user_speeds_orig = link_speeds; in ice_apply_saved_phy_req_to_cfg()
8293 ret = ice_intersect_phy_types_and_speeds(sc, &phy_data); in ice_apply_saved_phy_req_to_cfg()
8298 phy_low = phy_data.phy_low_intr; in ice_apply_saved_phy_req_to_cfg()
8299 phy_high = phy_data.phy_high_intr; in ice_apply_saved_phy_req_to_cfg()
8301 if (!phy_data.user_speeds_intr) { in ice_apply_saved_phy_req_to_cfg()
8302 phy_low = phy_data.phy_low_orig; in ice_apply_saved_phy_req_to_cfg()
8303 phy_high = phy_data.phy_high_orig; in ice_apply_saved_phy_req_to_cfg()
8314 memset(&phy_data, 0, sizeof(phy_data)); in ice_apply_saved_phy_req_to_cfg()
8317 phy_data.report_mode = ICE_AQC_REPORT_TOPO_CAP_NO_MEDIA; in ice_apply_saved_phy_req_to_cfg()
8319 phy_data.report_mode = ICE_AQC_REPORT_TOPO_CAP_MEDIA; in ice_apply_saved_phy_req_to_cfg()
8320 phy_data.user_speeds_orig = link_speeds; in ice_apply_saved_phy_req_to_cfg()
8321 ret = ice_intersect_phy_types_and_speeds(sc, &phy_data); in ice_apply_saved_phy_req_to_cfg()
8326 phy_low = phy_data.phy_low_intr; in ice_apply_saved_phy_req_to_cfg()
8327 phy_high = phy_data.phy_high_intr; in ice_apply_saved_phy_req_to_cfg()
8343 memset(&phy_data, 0, sizeof(phy_data)); in ice_apply_saved_phy_req_to_cfg()
8344 phy_data.report_mode = ICE_AQC_REPORT_TOPO_CAP_NO_MEDIA; in ice_apply_saved_phy_req_to_cfg()
8345 phy_data.user_speeds_orig = link_speeds; in ice_apply_saved_phy_req_to_cfg()
8346 ret = ice_intersect_phy_types_and_speeds(sc, &phy_data); in ice_apply_saved_phy_req_to_cfg()
8351 phy_low = phy_data.phy_low_intr; in ice_apply_saved_phy_req_to_cfg()
8352 phy_high = phy_data.phy_high_intr; in ice_apply_saved_phy_req_to_cfg()
8354 if (!phy_data.user_speeds_intr) { in ice_apply_saved_phy_req_to_cfg()
8355 phy_low = phy_data.phy_low_orig; in ice_apply_saved_phy_req_to_cfg()
8356 phy_high = phy_data.phy_high_orig; in ice_apply_saved_phy_req_to_cfg()
8364 pi->phy.curr_user_speed_req = phy_data.user_speeds_intr; in ice_apply_saved_phy_req_to_cfg()