Home
last modified time | relevance | path

Searched refs:regd (Results 1 – 25 of 47) sorted by relevance

12

/linux/drivers/net/wireless/realtek/rtlwifi/
H A Dregd.c335 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 DMakefile11 regd.o \
/linux/drivers/net/wireless/realtek/rtw89/
H A Dregd.c307 static bool rtw89_regd_is_ww(const struct rtw89_regd *regd) in rtw89_regd_is_ww() argument
309 return regd == &rtw89_ww_regd; in rtw89_regd_is_ww()
312 static u8 rtw89_regd_get_index(const struct rtw89_regd *regd) in rtw89_regd_get_index() argument
316 if (rtw89_regd_is_ww(regd)) in rtw89_regd_get_index()
319 return regd - rtw89_regd_map; in rtw89_regd_get_index()
324 const struct rtw89_regd *regd; in rtw89_regd_get_index_by_name() local
326 regd = rtw89_regd_find_reg_by_name(alpha2); in rtw89_regd_get_index_by_name()
327 return rtw89_regd_get_index(regd); in rtw89_regd_get_index_by_name()
383 const struct rtw89_regd *regd = &rtw89_regd_map[i]; in rtw89_regd_setup_unii4() local
385 switch (regd->txpwr_regd[RTW89_BAND_5G]) { in rtw89_regd_setup_unii4()
[all …]
H A DMakefile14 regd.o \
/linux/drivers/net/wireless/ath/ath12k/
H A Dreg.c33 const struct ieee80211_regdomain *regd; in ath12k_regdom_changes() local
35 regd = rcu_dereference_rtnl(hw->wiphy->regd); in ath12k_regdom_changes()
40 if (!regd) in ath12k_regdom_changes()
43 return memcmp(regd->alpha2, alpha2, 2) != 0; in ath12k_regdom_changes()
211 struct ieee80211_regdomain *regd, *regd_copy = NULL; in ath12k_regd_update() local
248 regd = ab->default_regd[pdev_id]; in ath12k_regd_update()
252 regd = (struct ieee80211_regdomain *)&ath12k_world_regd; in ath12k_regd_update()
255 regd = ab->new_regd[pdev_id]; in ath12k_regd_update()
258 if (!regd) { in ath12k_regd_update()
264 regd_len = sizeof(*regd) + (regd->n_reg_rules * in ath12k_regd_update()
[all …]
/linux/drivers/net/wireless/ath/ath11k/
H A Dreg.c34 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()
242 struct ieee80211_regdomain *regd, *regd_copy = NULL; in ath11k_regd_update() local
253 regd = ab->new_regd[pdev_id]; in ath11k_regd_update()
261 regd = ab->default_regd[pdev_id]; in ath11k_regd_update()
265 regd = (struct ieee80211_regdomain *)&ath11k_world_regd; in ath11k_regd_update()
269 if (!regd) { in ath11k_regd_update()
275 regd_len = sizeof(*regd) + (regd->n_reg_rules * in ath11k_regd_update()
[all …]
/linux/drivers/net/wireless/realtek/rtw88/
H A Dregd.c19 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 Dphy.h47 enum rtw_bandwidth bw, u8 channel, u8 regd);
69 u8 regd; member
156 u8 rate, u8 bw, u8 ch, u8 regd,
H A Dregd.h70 bool rtw_regd_has_alt(u8 regd, u8 *regd_alt);
H A Ddebug.c672 static const char *rtw_get_regd_string(u8 regd) in rtw_get_regd_string() argument
674 switch (regd) { in rtw_get_regd_string()
696 u8 path, rate, bw, ch, regd; in rtw_debugfs_get_tx_pwr_tbl() local
702 regd = rtw_regd_get(rtwdev); in rtw_debugfs_get_tx_pwr_tbl()
706 seq_printf(m, "regulatory: %s\n", rtw_get_regd_string(regd)); in rtw_debugfs_get_tx_pwr_tbl()
726 ch, regd, &pwr_param); in rtw_debugfs_get_tx_pwr_tbl()
/linux/net/wireless/
H A Dreg.c152 return rcu_dereference_check(wiphy->regd, in get_wiphy_regdom()
175 const struct ieee80211_regdomain *regd = NULL; in reg_get_dfs_region() local
180 regd = get_cfg80211_regdom(); in reg_get_dfs_region()
181 dfs_region = regd->dfs_region; in reg_get_dfs_region()
195 if (wiphy_regd->dfs_region == regd->dfs_region) in reg_get_dfs_region()
201 reg_dfs_region_str(regd->dfs_region)); in reg_get_dfs_region()
451 struct ieee80211_regdomain *regd; in reg_copy_regd() local
454 regd = kzalloc(struct_size(regd, reg_rules, src_regd->n_reg_rules), in reg_copy_regd()
456 if (!regd) in reg_copy_regd()
459 memcpy(regd, src_regd, sizeof(struct ieee80211_regdomain)); in reg_copy_regd()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dnvm.c554 struct ieee80211_regdomain *regd; in iwl_mvm_init_mcc() local
587 regd = iwl_mvm_get_current_regdomain(mvm, NULL); in iwl_mvm_init_mcc()
588 if (IS_ERR_OR_NULL(regd)) in iwl_mvm_init_mcc()
593 kfree(regd); in iwl_mvm_init_mcc()
594 regd = iwl_mvm_get_regdomain(mvm->hw->wiphy, mcc, in iwl_mvm_init_mcc()
596 if (IS_ERR_OR_NULL(regd)) in iwl_mvm_init_mcc()
600 retval = regulatory_set_wiphy_regd_sync(mvm->hw->wiphy, regd); in iwl_mvm_init_mcc()
601 kfree(regd); in iwl_mvm_init_mcc()
612 struct ieee80211_regdomain *regd; in iwl_mvm_rx_chub_update_mcc() local
634 regd = iwl_mvm_get_regdomain(mvm->hw->wiphy, mcc, src, &changed); in iwl_mvm_rx_chub_update_mcc()
[all …]
H A Dmac80211.c121 struct ieee80211_regdomain *regd = NULL; in iwl_mvm_get_regdomain() local
149 regd = iwl_parse_nvm_mcc_info(mvm->trans->dev, mvm->cfg, in iwl_mvm_get_regdomain()
157 if (IS_ERR_OR_NULL(regd)) { in iwl_mvm_get_regdomain()
159 PTR_ERR_OR_ZERO(regd)); in iwl_mvm_get_regdomain()
164 regd->alpha2, regd->alpha2[0], regd->alpha2[1], src_id); in iwl_mvm_get_regdomain()
178 return regd; in iwl_mvm_get_regdomain()
184 struct ieee80211_regdomain *regd; in iwl_mvm_update_changed_regdom() local
189 regd = iwl_mvm_get_current_regdomain(mvm, &changed); in iwl_mvm_update_changed_regdom()
190 if (!IS_ERR_OR_NULL(regd)) { in iwl_mvm_update_changed_regdom()
193 regulatory_set_wiphy_regd(mvm->hw->wiphy, regd); in iwl_mvm_update_changed_regdom()
[all …]
/linux/drivers/staging/rtl8723bs/os_dep/
H A Dwifi_regd.c122 const struct ieee80211_regdomain *regd; in _rtw_regd_init_wiphy() local
130 regd = _rtw_regdomain_select(reg); in _rtw_regd_init_wiphy()
131 wiphy_apply_custom_regulatory(wiphy, regd); in _rtw_regd_init_wiphy()
/linux/drivers/net/wireless/ath/
H A Dregd.c198 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 DMakefile16 regd.o \
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsta_cmdresp.c1045 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 = &regd->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/wireless/broadcom/brcm80211/brcmsmac/
H A Dchannel.c203 const struct brcms_regd *regd = NULL; in brcms_world_regd() local
208 regd = &cntry_locales[i]; in brcms_world_regd()
213 return regd; in brcms_world_regd()
310 const struct brcms_regd *regd) in brcms_c_set_country() argument
740 const struct brcms_regd *regd = wlc->cmi->world_regd; in brcms_c_regd_init() local
769 wiphy_apply_custom_regulatory(wlc->wiphy, regd->regdomain); in brcms_c_regd_init()
/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-nvm-parse.c1732 struct ieee80211_regdomain *regd, *copy_rd; in iwl_parse_nvm_mcc_info() local
1765 regd = kzalloc(struct_size(regd, reg_rules, num_of_ch), GFP_KERNEL); in iwl_parse_nvm_mcc_info()
1766 if (!regd) in iwl_parse_nvm_mcc_info()
1770 regd->alpha2[0] = fw_mcc >> 8; in iwl_parse_nvm_mcc_info()
1771 regd->alpha2[1] = fw_mcc & 0xff; in iwl_parse_nvm_mcc_info()
1802 rule = &regd->reg_rules[valid_rules - 1]; in iwl_parse_nvm_mcc_info()
1831 reg_query_regdb_wmm(regd->alpha2, center_freq, rule); in iwl_parse_nvm_mcc_info()
1844 rule = &regd->reg_rules[valid_rules - 1]; in iwl_parse_nvm_mcc_info()
1853 regd->n_reg_rules = valid_rules; in iwl_parse_nvm_mcc_info()
1859 copy_rd = kmemdup(regd, struct_size(regd, reg_rules, valid_rules), in iwl_parse_nvm_mcc_info()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/
H A Deeprom.c215 struct property *regd = of_find_property(cur, "regdomain", NULL); in mt76_find_power_limits_node() local
217 if (!country && !regd) { in mt76_find_power_limits_node()
223 mt76_string_prop_find(regd, region_name)) { in mt76_find_power_limits_node()
/linux/drivers/net/usb/
H A Dpegasus.c175 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/video/fbdev/sis/
H A Dsis_main.c5096 u32 rega, regb, regd; in sisfb_post_xgi() local
5294 pci_read_config_dword(mypdev, 0x94, &regd); in sisfb_post_xgi()
5295 regd &= 0xfffffeff; in sisfb_post_xgi()
5296 pci_write_config_dword(mypdev, 0x94, regd); in sisfb_post_xgi()
5317 regd = bios[0x90 + 3] | (bios[0x90 + 4] << 8); in sisfb_post_xgi()
5318 if( (!(v1 & 0x02)) && (v2 & 0x30) && (regd < 0xcf) ) in sisfb_post_xgi()
5343 pci_read_config_dword(pdev, 0x50, &regd); in sisfb_post_xgi()
5344 regd = (regd >> 20) & 0x0f; in sisfb_post_xgi()
5345 if(regd == 1) { in sisfb_post_xgi()
5411 regd = le32_to_cpu(((u32 *)ptr)[regb]); in sisfb_post_xgi()
[all …]
/linux/drivers/net/ethernet/8390/
H A Dne2k-pci.c254 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 Dmac80211_hwsim.c688 const struct ieee80211_regdomain *regd; member
4026 const struct ieee80211_regdomain *regd; member
4075 if (param->regd) { in append_radio_msg()
4079 if (hwsim_world_regdom_custom[i] != param->regd) in append_radio_msg()
5495 if (param->regd) { in mac80211_hwsim_new_radio()
5496 data->regd = param->regd; in mac80211_hwsim_new_radio()
5498 wiphy_apply_custom_regulatory(hw->wiphy, param->regd); in mac80211_hwsim_new_radio()
5656 param.regd = data->regd; in mac80211_hwsim_get_radio()
6108 param.regd = hwsim_world_regdom_custom[idx]; in hwsim_new_radio_nl()
6814 param.regd = &hwsim_world_regdom_custom_01; in init_mac80211_hwsim()
[all …]
/linux/drivers/net/ethernet/altera/
H A Daltera_tse.h133 u32 regd; member

12