Lines Matching refs:power_rule
991 rrule->power_rule.max_antenna_gain = 0; in regdb_query_country()
992 rrule->power_rule.max_eirp = be16_to_cpu(rule->max_eirp); in regdb_query_country()
1381 struct ieee80211_power_rule *power_rule; in reg_rules_intersect() local
1390 power_rule1 = &rule1->power_rule; in reg_rules_intersect()
1391 power_rule2 = &rule2->power_rule; in reg_rules_intersect()
1392 power_rule = &intersected_rule->power_rule; in reg_rules_intersect()
1433 power_rule->max_eirp = min(power_rule1->max_eirp, in reg_rules_intersect()
1435 power_rule->max_antenna_gain = min(power_rule1->max_antenna_gain, in reg_rules_intersect()
1479 if ((r1->power_rule.max_antenna_gain > in rule_contains()
1480 r2->power_rule.max_antenna_gain) || in rule_contains()
1481 r1->power_rule.max_eirp > r2->power_rule.max_eirp) in rule_contains()
1805 const struct ieee80211_power_rule *power_rule = NULL; in handle_channel_single_rule() local
1810 power_rule = ®_rule->power_rule; in handle_channel_single_rule()
1824 (int) MBI_TO_DBI(power_rule->max_antenna_gain); in handle_channel_single_rule()
1826 (int) MBM_TO_DBM(power_rule->max_eirp); in handle_channel_single_rule()
1844 MBI_TO_DBI(power_rule->max_antenna_gain)); in handle_channel_single_rule()
1845 chan->max_reg_power = (int) MBM_TO_DBM(power_rule->max_eirp); in handle_channel_single_rule()
1887 power_rule1 = &rrule1->power_rule; in handle_channel_adjacent_rules()
1888 power_rule2 = &rrule2->power_rule; in handle_channel_adjacent_rules()
2566 const struct ieee80211_power_rule *power_rule = NULL; in handle_channel_custom() local
2588 power_rule = ®_rule->power_rule; in handle_channel_custom()
2602 chan->max_antenna_gain = (int) MBI_TO_DBI(power_rule->max_antenna_gain); in handle_channel_custom()
2604 (int) MBM_TO_DBM(power_rule->max_eirp); in handle_channel_custom()
3725 const struct ieee80211_power_rule *power_rule = NULL; in print_rd_rules() local
3733 power_rule = ®_rule->power_rule; in print_rd_rules()
3754 if (power_rule->max_antenna_gain) in print_rd_rules()
3759 power_rule->max_antenna_gain, in print_rd_rules()
3760 power_rule->max_eirp, in print_rd_rules()
3767 power_rule->max_eirp, in print_rd_rules()