Lines Matching refs:phy_data
138 struct ice_phy_data *phy_data);
3217 struct ice_phy_data *phy_data) in ice_intersect_phy_types_and_speeds() argument
3232 switch (phy_data->report_mode) { in ice_intersect_phy_types_and_speeds()
3237 report_type = phy_data->report_mode >> 1; in ice_intersect_phy_types_and_speeds()
3242 __func__, phy_data->report_mode); in ice_intersect_phy_types_and_speeds()
3250 if (phy_data->user_speeds_orig == 0) in ice_intersect_phy_types_and_speeds()
3251 phy_data->user_speeds_orig = USHRT_MAX; in ice_intersect_phy_types_and_speeds()
3255 status = ice_aq_get_phy_caps(pi, false, phy_data->report_mode, &pcaps, NULL); in ice_intersect_phy_types_and_speeds()
3265 phy_data->phy_low_orig = le64toh(pcaps.phy_type_low); in ice_intersect_phy_types_and_speeds()
3266 phy_data->phy_high_orig = le64toh(pcaps.phy_type_high); in ice_intersect_phy_types_and_speeds()
3267 report_speeds = ice_aq_phy_types_to_link_speeds(phy_data->phy_low_orig, in ice_intersect_phy_types_and_speeds()
3268 phy_data->phy_high_orig); in ice_intersect_phy_types_and_speeds()
3272 if ((phy_data->user_speeds_orig & temp_speeds) == 0) { in ice_intersect_phy_types_and_speeds()
3275 phy_data->user_speeds_orig); in ice_intersect_phy_types_and_speeds()
3280 ice_sysctl_speeds_to_aq_phy_types(phy_data->user_speeds_orig, in ice_intersect_phy_types_and_speeds()
3281 &phy_data->phy_low_intr, &phy_data->phy_high_intr); in ice_intersect_phy_types_and_speeds()
3282 phy_data->user_speeds_intr = phy_data->user_speeds_orig & report_speeds; in ice_intersect_phy_types_and_speeds()
3283 phy_data->phy_low_intr &= phy_data->phy_low_orig; in ice_intersect_phy_types_and_speeds()
3284 phy_data->phy_high_intr &= phy_data->phy_high_orig; in ice_intersect_phy_types_and_speeds()
3305 struct ice_phy_data phy_data = { 0 }; in ice_sysctl_advertise_speed() local
3316 phy_data.report_mode = ICE_AQC_REPORT_ACTIVE_CFG; in ice_sysctl_advertise_speed()
3317 ret = ice_intersect_phy_types_and_speeds(sc, &phy_data); in ice_sysctl_advertise_speed()
3323 sysctl_speeds = phy_data.user_speeds_intr; in ice_sysctl_advertise_speed()
9561 struct ice_phy_data phy_data = { 0 }; in ice_apply_saved_phy_req_to_cfg() local
9570 memset(&phy_data, 0, sizeof(phy_data)); in ice_apply_saved_phy_req_to_cfg()
9571 phy_data.report_mode = ICE_AQC_REPORT_DFLT_CFG; in ice_apply_saved_phy_req_to_cfg()
9572 phy_data.user_speeds_orig = link_speeds; in ice_apply_saved_phy_req_to_cfg()
9573 ret = ice_intersect_phy_types_and_speeds(sc, &phy_data); in ice_apply_saved_phy_req_to_cfg()
9578 phy_low = phy_data.phy_low_intr; in ice_apply_saved_phy_req_to_cfg()
9579 phy_high = phy_data.phy_high_intr; in ice_apply_saved_phy_req_to_cfg()
9581 if (link_speeds == 0 || phy_data.user_speeds_intr) in ice_apply_saved_phy_req_to_cfg()
9584 memset(&phy_data, 0, sizeof(phy_data)); in ice_apply_saved_phy_req_to_cfg()
9585 phy_data.report_mode = ICE_AQC_REPORT_TOPO_CAP_NO_MEDIA; in ice_apply_saved_phy_req_to_cfg()
9586 phy_data.user_speeds_orig = link_speeds; in ice_apply_saved_phy_req_to_cfg()
9587 ret = ice_intersect_phy_types_and_speeds(sc, &phy_data); in ice_apply_saved_phy_req_to_cfg()
9592 phy_low = phy_data.phy_low_intr; in ice_apply_saved_phy_req_to_cfg()
9593 phy_high = phy_data.phy_high_intr; in ice_apply_saved_phy_req_to_cfg()
9595 if (!phy_data.user_speeds_intr) { in ice_apply_saved_phy_req_to_cfg()
9596 phy_low = phy_data.phy_low_orig; in ice_apply_saved_phy_req_to_cfg()
9597 phy_high = phy_data.phy_high_orig; in ice_apply_saved_phy_req_to_cfg()
9608 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()
9613 phy_data.report_mode = ICE_AQC_REPORT_TOPO_CAP_MEDIA; in ice_apply_saved_phy_req_to_cfg()
9614 phy_data.user_speeds_orig = link_speeds; in ice_apply_saved_phy_req_to_cfg()
9615 ret = ice_intersect_phy_types_and_speeds(sc, &phy_data); in ice_apply_saved_phy_req_to_cfg()
9620 phy_low = phy_data.phy_low_intr; in ice_apply_saved_phy_req_to_cfg()
9621 phy_high = phy_data.phy_high_intr; in ice_apply_saved_phy_req_to_cfg()
9637 memset(&phy_data, 0, sizeof(phy_data)); in ice_apply_saved_phy_req_to_cfg()
9638 phy_data.report_mode = ICE_AQC_REPORT_TOPO_CAP_NO_MEDIA; in ice_apply_saved_phy_req_to_cfg()
9639 phy_data.user_speeds_orig = link_speeds; in ice_apply_saved_phy_req_to_cfg()
9640 ret = ice_intersect_phy_types_and_speeds(sc, &phy_data); in ice_apply_saved_phy_req_to_cfg()
9645 phy_low = phy_data.phy_low_intr; in ice_apply_saved_phy_req_to_cfg()
9646 phy_high = phy_data.phy_high_intr; in ice_apply_saved_phy_req_to_cfg()
9648 if (!phy_data.user_speeds_intr) { in ice_apply_saved_phy_req_to_cfg()
9649 phy_low = phy_data.phy_low_orig; in ice_apply_saved_phy_req_to_cfg()
9650 phy_high = phy_data.phy_high_orig; in ice_apply_saved_phy_req_to_cfg()
9658 pi->phy.curr_user_speed_req = phy_data.user_speeds_intr; in ice_apply_saved_phy_req_to_cfg()