| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | mcc.c | 88 struct ieee80211_regdomain *regd = NULL; in iwl_mld_get_regdomain() local 113 regd = iwl_parse_nvm_mcc_info(mld->trans, in iwl_mld_get_regdomain() 120 if (IS_ERR(regd)) { in iwl_mld_get_regdomain() 122 PTR_ERR(regd)); in iwl_mld_get_regdomain() 127 regd->alpha2, regd->alpha2[0], in iwl_mld_get_regdomain() 128 regd->alpha2[1], resp->source_id); in iwl_mld_get_regdomain() 144 return regd; in iwl_mld_get_regdomain() 158 struct ieee80211_regdomain *regd; in iwl_mld_update_changed_regdomain() local 161 regd = iwl_mld_get_current_regdomain(mld, &changed); in iwl_mld_update_changed_regdomain() 163 if (IS_ERR_OR_NULL(regd)) in iwl_mld_update_changed_regdomain() [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/ |
| H A D | regd.c | 335 const struct ieee80211_regdomain *regd; in _rtl_regd_init_wiphy() local 342 regd = _rtl_regdomain_select(reg); in _rtl_regd_init_wiphy() 343 wiphy_apply_custom_regulatory(wiphy, regd); in _rtl_regd_init_wiphy() 393 rtlpriv->regd.country_code = in rtl_regd_init() 398 rtlpriv->efuse.channel_plan, rtlpriv->regd.country_code); in rtl_regd_init() 400 if (rtlpriv->regd.country_code >= COUNTRY_CODE_MAX) { in rtl_regd_init() 404 rtlpriv->regd.country_code = COUNTRY_CODE_WORLD_WIDE_13; in rtl_regd_init() 407 country = _rtl_regd_find_country(rtlpriv->regd.country_code); in rtl_regd_init() 410 rtlpriv->regd.alpha2[0] = country->iso_name[0]; in rtl_regd_init() 411 rtlpriv->regd.alpha2[1] = country->iso_name[1]; in rtl_regd_init() [all …]
|
| H A D | Makefile | 11 regd.o \
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | reg.c | 34 const struct ieee80211_regdomain *regd; in ath12k_regdom_changes() local 36 regd = rcu_dereference_rtnl(hw->wiphy->regd); in ath12k_regdom_changes() 41 if (!regd) in ath12k_regdom_changes() 44 return memcmp(regd->alpha2, alpha2, 2) != 0; in ath12k_regdom_changes() 275 struct ieee80211_regdomain *regd, *regd_copy = NULL; in ath12k_regd_update() local 362 regd = ab->default_regd[pdev_id]; in ath12k_regd_update() 366 regd = (struct ieee80211_regdomain *)&ath12k_world_regd; in ath12k_regd_update() 369 regd = ab->new_regd[pdev_id]; in ath12k_regd_update() 372 if (!regd) { in ath12k_regd_update() 378 regd_len = sizeof(*regd) + (regd->n_reg_rules * in ath12k_regd_update() [all …]
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | reg.c | 34 const struct ieee80211_regdomain *regd; in ath11k_regdom_changes() local 36 regd = rcu_dereference_rtnl(ar->hw->wiphy->regd); in ath11k_regdom_changes() 41 if (!regd) in ath11k_regdom_changes() 44 return memcmp(regd->alpha2, alpha2, 2) != 0; in ath11k_regdom_changes() 240 struct ieee80211_regdomain *regd, *regd_copy = NULL; in ath11k_regd_update() local 251 regd = ab->new_regd[pdev_id]; in ath11k_regd_update() 259 regd = ab->default_regd[pdev_id]; in ath11k_regd_update() 263 regd = (struct ieee80211_regdomain *)&ath11k_world_regd; in ath11k_regd_update() 267 if (!regd) { in ath11k_regd_update() 273 regd_len = sizeof(*regd) + (regd->n_reg_rules * in ath11k_regd_update() [all …]
|
| /linux/drivers/net/wireless/realtek/rtw88/ |
| H A D | regd.c | 19 const struct rtw_regd *__r = &__d->regd; \ 348 rtwdev->regd.state = RTW_REGD_STATE_PROGRAMMED; in rtw_regd_init() 357 rtwdev->regd.state = RTW_REGD_STATE_WORLDWIDE; in rtw_regd_init() 360 rtwdev->regd.regulatory = &rtw_reg_ww; in rtw_regd_init() 361 rtwdev->regd.dfs_region = NL80211_DFS_UNSET; in rtw_regd_init() 362 rtw_dbg_regd_dump(rtwdev, "regd init state %d: ", rtwdev->regd.state); in rtw_regd_init() 377 if (rtwdev->regd.state == RTW_REGD_STATE_PROGRAMMED) { in rtw_regd_hint() 456 return rtw_regd_handler[rtwdev->regd.state](rtwdev, next_regd, request); in rtw_regd_state_hdl() 472 rtwdev->regd.state, in rtw_regd_notifier() 480 rtwdev->regd.state, next_regd.state); in rtw_regd_notifier() [all …]
|
| H A D | phy.c | 187 switch (rtwdev->regd.dfs_region) { in rtw_phy_adaptivity_set_mode() 1613 static void rtw_phy_set_tx_power_limit(struct rtw_dev *rtwdev, u8 regd, u8 band, in rtw_phy_set_tx_power_limit() argument 1625 if (regd >= RTW_REGD_MAX || bw >= RTW_CHANNEL_WIDTH_MAX || in rtw_phy_set_tx_power_limit() 1629 regd, band, bw, rs, ch_idx, pwr_limit); in rtw_phy_set_tx_power_limit() 1634 hal->tx_pwr_limit_2g[regd][bw][rs][ch_idx] = pwr_limit; in rtw_phy_set_tx_power_limit() 1639 hal->tx_pwr_limit_5g[regd][bw][rs][ch_idx] = pwr_limit; in rtw_phy_set_tx_power_limit() 1648 rtw_xref_5g_txpwr_lmt(struct rtw_dev *rtwdev, u8 regd, in rtw_xref_5g_txpwr_lmt() argument 1653 s8 lmt_ht = hal->tx_pwr_limit_5g[regd][bw][rs_ht][ch_idx]; in rtw_xref_5g_txpwr_lmt() 1654 s8 lmt_vht = hal->tx_pwr_limit_5g[regd][bw][rs_vht][ch_idx]; in rtw_xref_5g_txpwr_lmt() 1660 hal->tx_pwr_limit_5g[regd][bw][rs_ht][ch_idx] = lmt_vht; in rtw_xref_5g_txpwr_lmt() [all …]
|
| H A D | phy.h | 51 enum rtw_bandwidth bw, u8 channel, u8 regd); 73 u8 regd; member 160 u8 rate, u8 bw, u8 ch, u8 regd,
|
| H A D | regd.h | 70 bool rtw_regd_has_alt(u8 regd, u8 *regd_alt);
|
| H A D | debug.c | 672 static const char *rtw_get_regd_string(u8 regd) in rtw_get_regd_string() argument 674 switch (regd) { in rtw_get_regd_string() 698 u8 path, rate, bw, ch, regd; in rtw_debugfs_get_tx_pwr_tbl() local 704 regd = rtw_regd_get(rtwdev); in rtw_debugfs_get_tx_pwr_tbl() 708 seq_printf(m, "regulatory: %s\n", rtw_get_regd_string(regd)); in rtw_debugfs_get_tx_pwr_tbl() 732 ch, regd, &pwr_param); in rtw_debugfs_get_tx_pwr_tbl()
|
| H A D | Makefile | 19 regd.o
|
| H A D | rtw8723x.c | 273 efuse->regd = map->rf_board_option & 0x7; in __rtw8723x_read_efuse() 328 efuse->regd = 0; in __rtw8723x_read_efuse()
|
| H A D | rtw8821c.c | 68 efuse->regd = map->rf_board_option & 0x7; in rtw8821c_read_efuse() 1077 u8 regd = rtw_regd_get(rtwdev); in rtw8821c_pwrtrack_set() local 1082 band_width, channel, regd); in rtw8821c_pwrtrack_set()
|
| H A D | rtw8822b.c | 61 efuse->regd = map->rf_board_option & 0x7; in rtw8822b_read_efuse() 1423 u8 regd = rtw_regd_get(rtwdev); in rtw8822b_pwrtrack_set() local 1428 band_width, channel, regd); in rtw8822b_pwrtrack_set()
|
| H A D | rtw8814a.c | 149 efuse->regd = map->rf_board_option & 0x7; in rtw8814a_read_efuse() 1905 u8 regd = rtw_regd_get(rtwdev); in rtw8814a_pwrtrack_set() local 1909 band_width, channel, regd); in rtw8814a_pwrtrack_set()
|
| H A D | main.h | 1803 u8 regd; member 2067 struct rtw_regd regd; member
|
| /linux/drivers/net/wireless/realtek/rtw89/ |
| H A D | acpi.c | 654 rtw89_acpi_geo_sar_regd_convert_hp_idx(enum rtw89_regulation_type regd) in rtw89_acpi_geo_sar_regd_convert_hp_idx() argument 656 switch (regd) { in rtw89_acpi_geo_sar_regd_convert_hp_idx() 676 rtw89_acpi_geo_sar_regd_convert_rt_idx(enum rtw89_regulation_type regd) in rtw89_acpi_geo_sar_regd_convert_rt_idx() argument 678 switch (regd) { in rtw89_acpi_geo_sar_regd_convert_rt_idx() 726 enum rtw89_regulation_type regd, in rtw89_acpi_geo_sar_load_hp_legacy() argument 733 rtw89_acpi_geo_sar_regd_convert_hp_idx(regd); in rtw89_acpi_geo_sar_load_hp_legacy() 767 enum rtw89_regulation_type regd, in rtw89_acpi_geo_sar_load_hp_has_6ghz() argument 774 rtw89_acpi_geo_sar_regd_convert_hp_idx(regd); in rtw89_acpi_geo_sar_load_hp_has_6ghz() 810 enum rtw89_regulation_type regd, in rtw89_acpi_geo_sar_load_rt_legacy() argument 817 rtw89_acpi_geo_sar_regd_convert_rt_idx(regd); in rtw89_acpi_geo_sar_load_rt_legacy() [all …]
|
| H A D | acpi.h | 271 enum rtw89_regulation_type regd,
|
| /linux/drivers/staging/rtl8723bs/os_dep/ |
| H A D | wifi_regd.c | 108 const struct ieee80211_regdomain *regd; in _rtw_regd_init_wiphy() local 116 regd = _rtw_regdomain_select(reg); in _rtw_regd_init_wiphy() 117 wiphy_apply_custom_regulatory(wiphy, regd); in _rtw_regd_init_wiphy()
|
| /linux/drivers/net/wireless/ath/ |
| H A D | regd.c | 198 static inline bool is_wwr_sku(u16 regd) in is_wwr_sku() argument 200 return ((regd & COUNTRY_ERD_FLAG) != COUNTRY_ERD_FLAG) && in is_wwr_sku() 201 (((regd & WORLD_SKU_MASK) == WORLD_SKU_PREFIX) || in is_wwr_sku() 202 (regd == WORLD)); in is_wwr_sku() 640 const struct ieee80211_regdomain *regd; in ath_regd_init_wiphy() local 651 regd = ath_world_regdomain(reg); in ath_regd_init_wiphy() 659 regd = ath_default_world_regdomain(); in ath_regd_init_wiphy() 662 wiphy_apply_custom_regulatory(wiphy, regd); in ath_regd_init_wiphy()
|
| H A D | Makefile | 16 regd.o \
|
| /linux/drivers/net/wireless/marvell/mwifiex/ |
| H A D | sta_cmdresp.c | 1045 struct ieee80211_regdomain *regd; in mwifiex_create_custom_regdomain() local 1055 regd = kzalloc(struct_size(regd, reg_rules, num_chan), GFP_KERNEL); in mwifiex_create_custom_regdomain() 1056 if (!regd) in mwifiex_create_custom_regdomain() 1065 kfree(regd); in mwifiex_create_custom_regdomain() 1096 rule = ®d->reg_rules[valid_rules - 1]; in mwifiex_create_custom_regdomain() 1119 regd->n_reg_rules = valid_rules; in mwifiex_create_custom_regdomain() 1120 regd->alpha2[0] = '9'; in mwifiex_create_custom_regdomain() 1121 regd->alpha2[1] = '9'; in mwifiex_create_custom_regdomain() 1123 return regd; in mwifiex_create_custom_regdomain() 1133 struct ieee80211_regdomain *regd; in mwifiex_ret_chan_region_cfg() local [all …]
|
| /linux/drivers/net/usb/ |
| H A D | pegasus.c | 175 static int __mii_op(pegasus_t *p, __u8 phy, __u8 indx, __u16 *regd, __u8 cmd) in __mii_op() argument 183 *t = cpu_to_le16(*regd); in __mii_op() 203 *regd = le16_to_cpu(regdi); in __mii_op() 212 static int read_mii_word(pegasus_t *pegasus, __u8 phy, __u8 indx, __u16 *regd) in read_mii_word() argument 214 return __mii_op(pegasus, phy, indx, regd, PHY_READ); in read_mii_word() 218 static int write_mii_word(pegasus_t *pegasus, __u8 phy, __u8 indx, __u16 *regd) in write_mii_word() argument 220 return __mii_op(pegasus, phy, indx, regd, PHY_WRITE); in write_mii_word()
|
| /linux/drivers/net/ethernet/8390/ |
| H A D | ne2k-pci.c | 254 int regd; in ne2k_pci_init_one() local 257 regd = inb(ioaddr + 0x0d); in ne2k_pci_init_one() 265 outb(regd, ioaddr + 0x0d); in ne2k_pci_init_one()
|
| /linux/drivers/net/wireless/virtual/ |
| H A D | mac80211_hwsim.c | 689 const struct ieee80211_regdomain *regd; member 4243 const struct ieee80211_regdomain *regd; member 4293 if (param->regd) { in append_radio_msg() 4297 if (hwsim_world_regdom_custom[i] != param->regd) in append_radio_msg() 5787 if (param->regd) { in mac80211_hwsim_new_radio() 5788 data->regd = param->regd; in mac80211_hwsim_new_radio() 5790 wiphy_apply_custom_regulatory(hw->wiphy, param->regd); in mac80211_hwsim_new_radio() 5949 param.regd = data->regd; in mac80211_hwsim_get_radio() 6402 param.regd = hwsim_world_regdom_custom[idx]; in hwsim_new_radio_nl() 7116 param.regd = &hwsim_world_regdom_custom_01; in init_mac80211_hwsim() [all …]
|