Lines Matching refs:regd
310 static bool rtw89_regd_is_ww(const struct rtw89_regd *regd)
312 return regd == &rtw89_ww_regd;
315 static u8 rtw89_regd_get_index(const struct rtw89_regd *regd)
319 if (rtw89_regd_is_ww(regd))
322 return regd - rtw89_regd_map;
327 const struct rtw89_regd *regd;
329 regd = rtw89_regd_find_reg_by_name(alpha2);
330 return rtw89_regd_get_index(regd);
386 const struct rtw89_regd *regd = &rtw89_regd_map[i];
388 switch (regd->txpwr_regd[RTW89_BAND_5G]) {
556 rtw89_debug(rtwdev, RTW89_DBG_REGD, "regd: allow 6ghz: %d\n",
604 rtwdev->regulatory.regd = chip_regd;
608 rtwdev->regulatory.regd = chip_regd;
615 rtwdev->regulatory.regd->alpha2);
623 rtw89_debug_regd(rtwdev, rtwdev->regulatory.regd,
633 const struct rtw89_regd *regd = regulatory->regd;
645 index = rtw89_regd_get_index(regd);
651 regd->alpha2[0], regd->alpha2[1]);
660 const struct rtw89_regd *regd = regulatory->regd;
663 index = rtw89_regd_get_index(regd);
669 regd->alpha2[0], regd->alpha2[1]);
676 const struct rtw89_regd *regd = regulatory->regd;
678 if (regd->txpwr_regd[RTW89_BAND_6G] != RTW89_NA)
681 rtw89_debug(rtwdev, RTW89_DBG_REGD, "%c%c 6 GHz is N/A in regd map\n",
682 regd->alpha2[0], regd->alpha2[1]);
708 rtwdev->regulatory.regd = rtw89_regd_find_reg_by_name(request->alpha2);
714 !rtw89_regd_is_ww(rtwdev->regulatory.regd))
731 if (wiphy->regd) {
737 rtw89_debug_regd(rtwdev, rtwdev->regulatory.regd,
906 const struct rtw89_regd *regd = regulatory->regd;
933 index = rtw89_regd_get_index(regd);
938 regd->alpha2[0], regd->alpha2[1]);