Lines Matching full:regulatory
347 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_setup_unii4() local
366 bitmap_fill(regulatory->block_unii4, RTW89_REGD_MAX_COUNTRY_NUM); in rtw89_regd_setup_unii4()
391 clear_bit(i, regulatory->block_unii4); in rtw89_regd_setup_unii4()
395 clear_bit(i, regulatory->block_unii4); in rtw89_regd_setup_unii4()
406 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in __rtw89_regd_setup_policy_6ghz() local
417 set_bit(index, regulatory->block_6ghz); in __rtw89_regd_setup_policy_6ghz()
419 clear_bit(index, regulatory->block_6ghz); in __rtw89_regd_setup_policy_6ghz()
424 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_setup_policy_6ghz() local
448 bitmap_fill(regulatory->block_6ghz, RTW89_REGD_MAX_COUNTRY_NUM); in rtw89_regd_setup_policy_6ghz()
476 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_setup_policy_6ghz_sp() local
504 bitmap_fill(regulatory->block_6ghz_sp, RTW89_REGD_MAX_COUNTRY_NUM); in rtw89_regd_setup_policy_6ghz_sp()
512 clear_bit(i, regulatory->block_6ghz_sp); in rtw89_regd_setup_policy_6ghz_sp()
592 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_init() local
597 regulatory->reg_6ghz_power = RTW89_REG_6GHZ_POWER_DFLT; in rtw89_regd_init()
604 rtwdev->regulatory.regd = chip_regd; in rtw89_regd_init()
610 rtwdev->regulatory.regd->alpha2); in rtw89_regd_init()
612 rtw89_warn(rtwdev, "failed to hint regulatory:%d\n", ret); in rtw89_regd_init()
618 rtw89_debug_regd(rtwdev, rtwdev->regulatory.regd, in rtw89_regd_init()
626 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in rtw89_regd_apply_policy_unii4() local
628 const struct rtw89_regd *regd = regulatory->regd; in rtw89_regd_apply_policy_unii4()
642 !test_bit(index, regulatory->block_unii4)) in rtw89_regd_apply_policy_unii4()
654 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in regd_is_6ghz_blocked() local
655 const struct rtw89_regd *regd = regulatory->regd; in regd_is_6ghz_blocked()
660 !test_bit(index, regulatory->block_6ghz)) in regd_is_6ghz_blocked()
670 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in regd_is_6ghz_not_applicable() local
671 const struct rtw89_regd *regd = regulatory->regd; in regd_is_6ghz_not_applicable()
703 rtwdev->regulatory.regd = rtw89_regd_find_reg_by_name(request->alpha2); in rtw89_regd_notifier_apply()
705 * and it does not expect the regulatory will be modified by in rtw89_regd_notifier_apply()
709 !rtw89_regd_is_ww(rtwdev->regulatory.regd)) in rtw89_regd_notifier_apply()
732 rtw89_debug_regd(rtwdev, rtwdev->regulatory.regd, in rtw89_regd_notifier()
819 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in __rtw89_reg_6ghz_tpe_recalc() local
843 if (memcmp(®ulatory->reg_6ghz_tpe, &new, in __rtw89_reg_6ghz_tpe_recalc()
844 sizeof(regulatory->reg_6ghz_tpe)) != 0) in __rtw89_reg_6ghz_tpe_recalc()
856 regulatory->reg_6ghz_tpe = new; in __rtw89_reg_6ghz_tpe_recalc()
900 struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory; in __rtw89_reg_6ghz_power_recalc() local
901 const struct rtw89_regd *regd = regulatory->regd; in __rtw89_reg_6ghz_power_recalc()
930 test_bit(index, regulatory->block_6ghz_sp)) { in __rtw89_reg_6ghz_power_recalc()
938 if (regulatory->reg_6ghz_power == sel) in __rtw89_reg_6ghz_power_recalc()
944 regulatory->reg_6ghz_power = sel; in __rtw89_reg_6ghz_power_recalc()