Lines Matching full:regulatory
310 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_find_reg_by_name() local
311 const struct rtw89_regd_ctrl *regd_ctrl = ®ulatory->ctrl; in rtw89_regd_find_reg_by_name()
329 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_get_index() local
330 const struct rtw89_regd_ctrl *regd_ctrl = ®ulatory->ctrl; in rtw89_regd_get_index()
362 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_setup_unii4() local
380 bitmap_fill(regulatory->block_unii4, RTW89_REGD_MAX_COUNTRY_NUM); in rtw89_regd_setup_unii4()
399 clear_bit(index, regulatory->block_unii4); in rtw89_regd_setup_unii4()
404 clear_bit(index, regulatory->block_unii4); in rtw89_regd_setup_unii4()
410 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in __rtw89_regd_setup_policy_6ghz() local
421 set_bit(index, regulatory->block_6ghz); in __rtw89_regd_setup_policy_6ghz()
423 clear_bit(index, regulatory->block_6ghz); in __rtw89_regd_setup_policy_6ghz()
428 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_setup_policy_6ghz() local
452 bitmap_fill(regulatory->block_6ghz, RTW89_REGD_MAX_COUNTRY_NUM); in rtw89_regd_setup_policy_6ghz()
480 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_setup_policy_6ghz_sp() local
508 bitmap_fill(regulatory->block_6ghz_sp, RTW89_REGD_MAX_COUNTRY_NUM); in rtw89_regd_setup_policy_6ghz_sp()
513 clear_bit(index, regulatory->block_6ghz_sp); in rtw89_regd_setup_policy_6ghz_sp()
518 clear_bit(index, regulatory->block_6ghz_sp); in rtw89_regd_setup_policy_6ghz_sp()
526 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_setup_policy_6ghz_vlp() local
563 set_bit(index, regulatory->block_6ghz_vlp); in rtw89_regd_setup_policy_6ghz_vlp()
568 set_bit(index, regulatory->block_6ghz_vlp); in rtw89_regd_setup_policy_6ghz_vlp()
663 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_setup_reg_rules() local
668 regulatory->txpwr_uk_follow_etsi = true; in rtw89_regd_setup_reg_rules()
679 regulatory->txpwr_uk_follow_etsi = in rtw89_regd_setup_reg_rules()
687 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_setup() local
693 regulatory->ctrl.nr = regd_data->nr; in rtw89_regd_setup()
694 regulatory->ctrl.map = regd_data->map; in rtw89_regd_setup()
696 regulatory->ctrl.nr = ARRAY_SIZE(rtw89_regd_map); in rtw89_regd_setup()
697 regulatory->ctrl.map = rtw89_regd_map; in rtw89_regd_setup()
700 regulatory->reg_6ghz_power = RTW89_REG_6GHZ_POWER_DFLT; in rtw89_regd_setup()
725 rtwdev->regulatory.regd = chip_regd; in rtw89_regd_init_hint()
731 rtwdev->regulatory.regd->alpha2); in rtw89_regd_init_hint()
733 rtw89_warn(rtwdev, "failed to hint regulatory:%d\n", ret); in rtw89_regd_init_hint()
739 rtw89_debug_regd(rtwdev, rtwdev->regulatory.regd, in rtw89_regd_init_hint()
747 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_apply_policy_unii4() local
749 const struct rtw89_regd *regd = regulatory->regd; in rtw89_regd_apply_policy_unii4()
763 !test_bit(index, regulatory->block_unii4)) in rtw89_regd_apply_policy_unii4()
775 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in regd_is_6ghz_blocked() local
776 const struct rtw89_regd *regd = regulatory->regd; in regd_is_6ghz_blocked()
781 !test_bit(index, regulatory->block_6ghz)) in regd_is_6ghz_blocked()
791 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in regd_is_6ghz_not_applicable() local
792 const struct rtw89_regd *regd = regulatory->regd; in regd_is_6ghz_not_applicable()
822 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_apply_policy_tas() local
823 const struct rtw89_regd *regd = regulatory->regd; in rtw89_regd_apply_policy_tas()
845 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_apply_policy_ant_gain() local
848 const struct rtw89_regd *regd = regulatory->regd; in rtw89_regd_apply_policy_ant_gain()
860 rtwdev->regulatory.regd = rtw89_regd_find_reg_by_name(rtwdev, request->alpha2); in rtw89_regd_notifier_apply()
862 * and it does not expect the regulatory will be modified by in rtw89_regd_notifier_apply()
866 !rtw89_regd_is_ww(rtwdev->regulatory.regd)) in rtw89_regd_notifier_apply()
892 rtw89_debug_regd(rtwdev, rtwdev->regulatory.regd, in rtw89_regd_notifier()
979 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in __rtw89_reg_6ghz_tpe_recalc() local
1003 if (memcmp(®ulatory->reg_6ghz_tpe, &new, in __rtw89_reg_6ghz_tpe_recalc()
1004 sizeof(regulatory->reg_6ghz_tpe)) != 0) in __rtw89_reg_6ghz_tpe_recalc()
1016 regulatory->reg_6ghz_tpe = new; in __rtw89_reg_6ghz_tpe_recalc()
1060 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in __rtw89_reg_6ghz_power_recalc() local
1061 const struct rtw89_regd *regd = regulatory->regd; in __rtw89_reg_6ghz_power_recalc()
1090 test_bit(index, regulatory->block_6ghz_sp)) { in __rtw89_reg_6ghz_power_recalc()
1098 if (regulatory->reg_6ghz_power == sel) in __rtw89_reg_6ghz_power_recalc()
1104 regulatory->reg_6ghz_power = sel; in __rtw89_reg_6ghz_power_recalc()
1112 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_reg_6ghz_power_recalc() local
1113 const struct rtw89_regd *regd = regulatory->regd; in rtw89_reg_6ghz_power_recalc()
1120 test_bit(index, regulatory->block_6ghz_vlp)) in rtw89_reg_6ghz_power_recalc()