Lines Matching refs:num_of_ch
311 int num_of_ch, num_2ghz_channels = NUM_2GHZ_CHANNELS; in iwl_init_channel_map() local
315 num_of_ch = IWL_NVM_NUM_CHANNELS_UHB; in iwl_init_channel_map()
318 num_of_ch = IWL_NVM_NUM_CHANNELS_EXT; in iwl_init_channel_map()
321 num_of_ch = IWL_NVM_NUM_CHANNELS; in iwl_init_channel_map()
325 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { in iwl_init_channel_map()
1077 int num_of_ch, __le32 *channels, u16 fw_mcc, in iwl_parse_nvm_mcc_info() argument
1103 if (WARN_ON(num_of_ch > max_num_ch)) in iwl_parse_nvm_mcc_info()
1104 num_of_ch = max_num_ch; in iwl_parse_nvm_mcc_info()
1106 if (WARN_ON_ONCE(num_of_ch > NL80211_MAX_SUPP_REG_RULES)) in iwl_parse_nvm_mcc_info()
1110 num_of_ch); in iwl_parse_nvm_mcc_info()
1113 regd = kzalloc(struct_size(regd, reg_rules, num_of_ch), GFP_KERNEL); in iwl_parse_nvm_mcc_info()
1121 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { in iwl_parse_nvm_mcc_info()