Lines Matching full:grade
442 u16 grade; member
448 .grade = _grade \
473 #define MAX_GRADE (rssi_to_grade_map[ARRAY_SIZE(rssi_to_grade_map) - 1].grade)
587 /* This function calculates the grade of a link. Returns 0 in error case */
594 unsigned int grade = MAX_GRADE; in iwl_mvm_get_link_grade() local
616 /* No valid RSSI - take the lowest grade */ in iwl_mvm_get_link_grade()
620 /* Get grade based on RSSI */ in iwl_mvm_get_link_grade()
627 grade = line->grade; in iwl_mvm_get_link_grade()
632 grade = grade * iwl_mvm_get_chan_load_factor(link_conf) / SCALE_FACTOR; in iwl_mvm_get_link_grade()
633 grade = grade * iwl_mvm_get_puncturing_factor(link_conf) / SCALE_FACTOR; in iwl_mvm_get_link_grade()
634 return grade; in iwl_mvm_get_link_grade()
659 data[n_data].grade = iwl_mvm_get_link_grade(link_conf); in iwl_mvm_set_link_selection_data()
661 if (data[n_data].grade > max_grade) { in iwl_mvm_set_link_selection_data()
662 max_grade = data[n_data].grade; in iwl_mvm_set_link_selection_data()
782 * Returns the combined eSR grade of two given links.
798 if (b->grade > a->grade) in iwl_mvm_get_esr_grade()
813 return a->grade + in iwl_mvm_get_esr_grade()
814 ((b->grade * primary_load) / SCALE_FACTOR); in iwl_mvm_get_esr_grade()
843 if (WARN(!n_data, "Couldn't find a valid grade for any link!\n")) in iwl_mvm_select_links()
874 /* For equal grade - prefer EMLSR */ in iwl_mvm_select_links()
875 if (best_link->grade > max_esr_grade) { in iwl_mvm_select_links()