Lines Matching full:grade
444 u16 grade; member
450 .grade = _grade \
475 #define MAX_GRADE (rssi_to_grade_map[ARRAY_SIZE(rssi_to_grade_map) - 1].grade)
589 /* This function calculates the grade of a link. Returns 0 in error case */
596 unsigned int grade = MAX_GRADE; in iwl_mvm_get_link_grade() local
618 /* No valid RSSI - take the lowest grade */ in iwl_mvm_get_link_grade()
622 /* Get grade based on RSSI */ in iwl_mvm_get_link_grade()
629 grade = line->grade; in iwl_mvm_get_link_grade()
634 grade = grade * iwl_mvm_get_chan_load_factor(link_conf) / SCALE_FACTOR; in iwl_mvm_get_link_grade()
635 grade = grade * iwl_mvm_get_puncturing_factor(link_conf) / SCALE_FACTOR; in iwl_mvm_get_link_grade()
636 return grade; in iwl_mvm_get_link_grade()
661 data[n_data].grade = iwl_mvm_get_link_grade(link_conf); in iwl_mvm_set_link_selection_data()
663 if (data[n_data].grade > max_grade) { in iwl_mvm_set_link_selection_data()
664 max_grade = data[n_data].grade; in iwl_mvm_set_link_selection_data()
784 * Returns the combined eSR grade of two given links.
800 if (b->grade > a->grade) in iwl_mvm_get_esr_grade()
815 return a->grade + in iwl_mvm_get_esr_grade()
816 ((b->grade * primary_load) / SCALE_FACTOR); in iwl_mvm_get_esr_grade()
845 if (WARN(!n_data, "Couldn't find a valid grade for any link!\n")) in iwl_mvm_select_links()
876 /* For equal grade - prefer EMLSR */ in iwl_mvm_select_links()
877 if (best_link->grade > max_esr_grade) { in iwl_mvm_select_links()