Lines Matching refs:phy_data

139 				   struct ice_phy_data *phy_data);
3218 struct ice_phy_data *phy_data) in ice_intersect_phy_types_and_speeds() argument
3233 switch (phy_data->report_mode) { in ice_intersect_phy_types_and_speeds()
3238 report_type = phy_data->report_mode >> 1; in ice_intersect_phy_types_and_speeds()
3243 __func__, phy_data->report_mode); in ice_intersect_phy_types_and_speeds()
3251 if (phy_data->user_speeds_orig == 0) in ice_intersect_phy_types_and_speeds()
3252 phy_data->user_speeds_orig = USHRT_MAX; in ice_intersect_phy_types_and_speeds()
3256 status = ice_aq_get_phy_caps(pi, false, phy_data->report_mode, &pcaps, NULL); in ice_intersect_phy_types_and_speeds()
3266 phy_data->phy_low_orig = le64toh(pcaps.phy_type_low); in ice_intersect_phy_types_and_speeds()
3267 phy_data->phy_high_orig = le64toh(pcaps.phy_type_high); in ice_intersect_phy_types_and_speeds()
3268 report_speeds = ice_aq_phy_types_to_link_speeds(phy_data->phy_low_orig, in ice_intersect_phy_types_and_speeds()
3269 phy_data->phy_high_orig); in ice_intersect_phy_types_and_speeds()
3273 if ((phy_data->user_speeds_orig & temp_speeds) == 0) { in ice_intersect_phy_types_and_speeds()
3276 phy_data->user_speeds_orig); in ice_intersect_phy_types_and_speeds()
3281 ice_sysctl_speeds_to_aq_phy_types(phy_data->user_speeds_orig, in ice_intersect_phy_types_and_speeds()
3282 &phy_data->phy_low_intr, &phy_data->phy_high_intr); in ice_intersect_phy_types_and_speeds()
3283 phy_data->user_speeds_intr = phy_data->user_speeds_orig & report_speeds; in ice_intersect_phy_types_and_speeds()
3284 phy_data->phy_low_intr &= phy_data->phy_low_orig; in ice_intersect_phy_types_and_speeds()
3285 phy_data->phy_high_intr &= phy_data->phy_high_orig; in ice_intersect_phy_types_and_speeds()
3306 struct ice_phy_data phy_data = { 0 }; in ice_sysctl_advertise_speed() local
3317 phy_data.report_mode = ICE_AQC_REPORT_ACTIVE_CFG; in ice_sysctl_advertise_speed()
3318 ret = ice_intersect_phy_types_and_speeds(sc, &phy_data); in ice_sysctl_advertise_speed()
3324 sysctl_speeds = phy_data.user_speeds_intr; in ice_sysctl_advertise_speed()
9587 struct ice_phy_data phy_data = { 0 }; in ice_apply_saved_phy_req_to_cfg() local
9596 memset(&phy_data, 0, sizeof(phy_data)); in ice_apply_saved_phy_req_to_cfg()
9597 phy_data.report_mode = ICE_AQC_REPORT_DFLT_CFG; in ice_apply_saved_phy_req_to_cfg()
9598 phy_data.user_speeds_orig = link_speeds; in ice_apply_saved_phy_req_to_cfg()
9599 ret = ice_intersect_phy_types_and_speeds(sc, &phy_data); in ice_apply_saved_phy_req_to_cfg()
9604 phy_low = phy_data.phy_low_intr; in ice_apply_saved_phy_req_to_cfg()
9605 phy_high = phy_data.phy_high_intr; in ice_apply_saved_phy_req_to_cfg()
9607 if (link_speeds == 0 || phy_data.user_speeds_intr) in ice_apply_saved_phy_req_to_cfg()
9610 memset(&phy_data, 0, sizeof(phy_data)); in ice_apply_saved_phy_req_to_cfg()
9611 phy_data.report_mode = ICE_AQC_REPORT_TOPO_CAP_NO_MEDIA; in ice_apply_saved_phy_req_to_cfg()
9612 phy_data.user_speeds_orig = link_speeds; in ice_apply_saved_phy_req_to_cfg()
9613 ret = ice_intersect_phy_types_and_speeds(sc, &phy_data); in ice_apply_saved_phy_req_to_cfg()
9618 phy_low = phy_data.phy_low_intr; in ice_apply_saved_phy_req_to_cfg()
9619 phy_high = phy_data.phy_high_intr; in ice_apply_saved_phy_req_to_cfg()
9621 if (!phy_data.user_speeds_intr) { in ice_apply_saved_phy_req_to_cfg()
9622 phy_low = phy_data.phy_low_orig; in ice_apply_saved_phy_req_to_cfg()
9623 phy_high = phy_data.phy_high_orig; in ice_apply_saved_phy_req_to_cfg()
9634 memset(&phy_data, 0, sizeof(phy_data)); in ice_apply_saved_phy_req_to_cfg()
9637 phy_data.report_mode = ICE_AQC_REPORT_TOPO_CAP_NO_MEDIA; in ice_apply_saved_phy_req_to_cfg()
9639 phy_data.report_mode = ICE_AQC_REPORT_TOPO_CAP_MEDIA; in ice_apply_saved_phy_req_to_cfg()
9640 phy_data.user_speeds_orig = link_speeds; in ice_apply_saved_phy_req_to_cfg()
9641 ret = ice_intersect_phy_types_and_speeds(sc, &phy_data); in ice_apply_saved_phy_req_to_cfg()
9646 phy_low = phy_data.phy_low_intr; in ice_apply_saved_phy_req_to_cfg()
9647 phy_high = phy_data.phy_high_intr; in ice_apply_saved_phy_req_to_cfg()
9663 memset(&phy_data, 0, sizeof(phy_data)); in ice_apply_saved_phy_req_to_cfg()
9664 phy_data.report_mode = ICE_AQC_REPORT_TOPO_CAP_NO_MEDIA; in ice_apply_saved_phy_req_to_cfg()
9665 phy_data.user_speeds_orig = link_speeds; in ice_apply_saved_phy_req_to_cfg()
9666 ret = ice_intersect_phy_types_and_speeds(sc, &phy_data); in ice_apply_saved_phy_req_to_cfg()
9671 phy_low = phy_data.phy_low_intr; in ice_apply_saved_phy_req_to_cfg()
9672 phy_high = phy_data.phy_high_intr; in ice_apply_saved_phy_req_to_cfg()
9674 if (!phy_data.user_speeds_intr) { in ice_apply_saved_phy_req_to_cfg()
9675 phy_low = phy_data.phy_low_orig; in ice_apply_saved_phy_req_to_cfg()
9676 phy_high = phy_data.phy_high_orig; in ice_apply_saved_phy_req_to_cfg()
9684 pi->phy.curr_user_speed_req = phy_data.user_speeds_intr; in ice_apply_saved_phy_req_to_cfg()