/linux/drivers/net/ethernet/sfc/siena/ |
H A D | efx_channels.c | 130 unsigned int n_channels = parallelism; in efx_allocate_msix_channels() local 137 n_channels *= 2; in efx_allocate_msix_channels() 138 n_channels += extra_channels; in efx_allocate_msix_channels() 160 if (n_channels >= max_channels) { in efx_allocate_msix_channels() 164 n_xdp_ev, n_channels, max_channels); in efx_allocate_msix_channels() 167 } else if (n_channels + n_xdp_tx > efx->max_vis) { in efx_allocate_msix_channels() 171 n_xdp_tx, n_channels, efx->max_vis); in efx_allocate_msix_channels() 174 } else if (n_channels + n_xdp_ev > max_channels) { in efx_allocate_msix_channels() 178 n_xdp_ev, n_channels, max_channels); in efx_allocate_msix_channels() 180 n_xdp_ev = max_channels - n_channels; in efx_allocate_msix_channels() [all …]
|
/linux/drivers/net/ethernet/sfc/ |
H A D | efx_channels.c | 129 unsigned int n_channels = parallelism; in efx_allocate_msix_channels() local 136 n_channels *= 2; in efx_allocate_msix_channels() 137 n_channels += extra_channels; in efx_allocate_msix_channels() 159 if (n_channels >= max_channels) { in efx_allocate_msix_channels() 163 n_xdp_ev, n_channels, max_channels); in efx_allocate_msix_channels() 166 } else if (n_channels + n_xdp_tx > efx->max_vis) { in efx_allocate_msix_channels() 170 n_xdp_tx, n_channels, efx->max_vis); in efx_allocate_msix_channels() 173 } else if (n_channels + n_xdp_ev > max_channels) { in efx_allocate_msix_channels() 177 n_xdp_ev, n_channels, max_channels); in efx_allocate_msix_channels() 179 n_xdp_ev = max_channels - n_channels; in efx_allocate_msix_channels() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | nvm.c | 432 int resp_len, n_channels; in iwl_mvm_update_mcc() local 456 n_channels = __le32_to_cpu(mcc_resp_v8->n_channels); in iwl_mvm_update_mcc() 458 struct_size(mcc_resp_v8, channels, n_channels)) { in iwl_mvm_update_mcc() 462 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc() 474 resp_cp->n_channels = mcc_resp_v8->n_channels; in iwl_mvm_update_mcc() 476 n_channels * sizeof(__le32)); in iwl_mvm_update_mcc() 481 n_channels = __le32_to_cpu(mcc_resp_v4->n_channels); in iwl_mvm_update_mcc() 483 struct_size(mcc_resp_v4, channels, n_channels)) { in iwl_mvm_update_mcc() 487 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc() 500 resp_cp->n_channels = mcc_resp_v4->n_channels; in iwl_mvm_update_mcc() [all …]
|
H A D | scan.c | 85 u32 n_channels; member 683 int n_channels, u32 ssid_bitmap, in iwl_mvm_lmac_scan_cfg_channels() argument 689 for (i = 0; i < n_channels; i++) { in iwl_mvm_lmac_scan_cfg_channels() 835 int n_channels) in iwl_mvm_scan_fits() argument 838 (n_channels <= mvm->fw->ucode_capa.n_scan_channels) & in iwl_mvm_scan_fits() 956 cmd->n_channels = (u8)params->n_channels; in iwl_mvm_scan_lmac() 1008 params->n_channels, ssid_bitmap, cmd); in iwl_mvm_scan_lmac() 1070 for (i = 0; i < band->n_channels && j < max_channels; i++, j++) in iwl_mvm_fill_channels() 1073 for (i = 0; i < band->n_channels && j < max_channels; i++, j++) in iwl_mvm_fill_channels() 1165 mvm->nvm_data->bands[NL80211_BAND_2GHZ].n_channels + in iwl_mvm_legacy_config_scan() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | eeprom.c | 333 int n_channels, s8 max_txpower_avg) in iwl_eeprom_enh_txp_read_element() argument 341 for (ch_idx = 0; ch_idx < n_channels; ch_idx++) { in iwl_eeprom_enh_txp_read_element() 361 int n_channels) in iwl_eeprom_enhanced_txpower() argument 411 iwl_eeprom_enh_txp_read_element(data, txp, n_channels, in iwl_eeprom_enhanced_txpower() 471 struct iwl_nvm_data *data, int n_channels, in iwl_mod_ht40_chan_info() argument 479 for (i = 0; i < n_channels; i++) { in iwl_mod_ht40_chan_info() 521 int n_channels = 0; in iwl_init_channel_map() local 548 channel = &data->channels[n_channels]; in iwl_init_channel_map() 549 n_channels++; in iwl_init_channel_map() 601 n_channels); in iwl_init_channel_map() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-nvm-utils.c | 15 int n_channels, enum nl80211_band band) in iwl_init_sband_channels() argument 20 while (idx < n_channels && chan->band != band) in iwl_init_sband_channels() 25 while (idx < n_channels && chan->band == band) { in iwl_init_sband_channels() 30 sband->n_channels = n; in iwl_init_sband_channels()
|
H A D | iwl-nvm-parse.c | 403 int n_channels = 0; in iwl_init_channel_map() local 458 channel = &data->channels[n_channels]; in iwl_init_channel_map() 459 n_channels++; in iwl_init_channel_map() 493 return n_channels; in iwl_init_channel_map() 1181 int n_channels; in iwl_init_sbands() local 1185 n_channels = iwl_init_channel_map(trans, fw, data, nvm_ch_flags, in iwl_init_sbands() 1191 n_used += iwl_init_sband_channels(data, sband, n_channels, in iwl_init_sbands() 1204 n_used += iwl_init_sband_channels(data, sband, n_channels, in iwl_init_sbands() 1222 n_used += iwl_init_sband_channels(data, sband, n_channels, in iwl_init_sbands() 1229 sband->n_channels = 0; in iwl_init_sbands() [all …]
|
H A D | iwl-nvm-utils.h | 63 int n_channels, enum nl80211_band band);
|
/linux/drivers/net/wireless/ti/wlcore/ |
H A D | scan.c | 126 u32 n_channels, in wlcore_scan_get_channels() argument 176 i < n_channels && j < max_channels; in wlcore_scan_get_channels() 247 u32 n_channels, in wlcore_set_scan_chan_params() argument 256 n_channels, in wlcore_set_scan_chan_params() 267 n_channels, in wlcore_set_scan_chan_params() 279 n_channels, in wlcore_set_scan_chan_params() 290 n_channels, in wlcore_set_scan_chan_params() 302 n_channels, in wlcore_set_scan_chan_params() 340 BUG_ON(req->n_channels > WL1271_MAX_CHANNELS); in wlcore_scan()
|
/linux/net/mac80211/ |
H A D | scan.c | 372 local->hw_scan_req->req.n_channels = req->n_channels; in ieee80211_prep_hw_scan() 374 for (i = 0; i < req->n_channels; i++) { in ieee80211_prep_hw_scan() 383 n_chans = &local->hw_scan_req->req.n_channels; in ieee80211_prep_hw_scan() 386 for (i = 0; i < req->n_channels; i++) { in ieee80211_prep_hw_scan() 740 for (i = 0; i < req->n_channels; i++) { in __ieee80211_start_scan() 752 req->n_channels) + in __ieee80211_start_scan() 763 local->hw_scan_req->req.n_channels = req->n_channels; in __ieee80211_start_scan() 767 req->n_channels * sizeof(req->channels[0]); in __ieee80211_start_scan() 804 } else if ((req->n_channels == 1) && in __ieee80211_start_scan() 1133 if (local->scan_channel_idx >= scan_req->n_channels) { in ieee80211_scan_work() [all …]
|
/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | efx.c | 797 for (i = 0; i < efx->n_channels; i++) { in ef4_realloc_channels() 813 for (i = 0; i < efx->n_channels; i++) { in ef4_realloc_channels() 820 for (i = 0; i < efx->n_channels; i++) { in ef4_realloc_channels() 832 for (i = 0; i < efx->n_channels; i++) { in ef4_realloc_channels() 857 for (i = 0; i < efx->n_channels; i++) { in ef4_realloc_channels() 1366 unsigned int n_channels; in ef4_probe_interrupts() local 1368 n_channels = ef4_wanted_parallelism(efx); in ef4_probe_interrupts() 1370 n_channels *= 2; in ef4_probe_interrupts() 1371 n_channels += extra_channels; in ef4_probe_interrupts() 1372 n_channels = min(n_channels, efx->max_channels); in ef4_probe_interrupts() [all …]
|
/linux/drivers/dma/sh/ |
H A D | usb-dmac.c | 102 unsigned int n_channels; member 350 for (i = 0; i < dmac->n_channels; ++i) { in usb_dmac_soft_reset() 679 for (i = 0; i < dmac->n_channels; ++i) { in usb_dmac_runtime_suspend() 751 ret = of_property_read_u32(np, "dma-channels", &dmac->n_channels); in usb_dmac_parse_of() 757 if (dmac->n_channels <= 0 || dmac->n_channels >= 100) { in usb_dmac_parse_of() 759 dmac->n_channels); in usb_dmac_parse_of() 785 dmac->channels = devm_kcalloc(&pdev->dev, dmac->n_channels, in usb_dmac_probe() 813 for (i = 0; i < dmac->n_channels; ++i) { in usb_dmac_probe() 874 for (i = 0; i < dmac->n_channels; ++i) in usb_dmac_remove()
|
H A D | rz-dmac.c | 99 unsigned int n_channels; member 831 ret = of_property_read_u32(np, "dma-channels", &dmac->n_channels); in rz_dmac_parse_of() 837 if (!dmac->n_channels || dmac->n_channels > RZ_DMAC_MAX_CHANNELS) { in rz_dmac_parse_of() 838 dev_err(dev, "invalid number of channels %u\n", dmac->n_channels); in rz_dmac_parse_of() 866 dmac->channels = devm_kcalloc(&pdev->dev, dmac->n_channels, in rz_dmac_probe() 912 for (i = 0; i < dmac->n_channels; i++) { in rz_dmac_probe() 982 for (i = 0; i < dmac->n_channels; i++) { in rz_dmac_remove()
|
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | nvm-reg.h | 234 __le32 n_channels; member 331 __le32 n_channels; member 360 __le32 n_channels; member 391 __le32 n_channels; member
|
/linux/drivers/net/wireless/ti/wl1251/ |
H A D | cmd.c | 415 unsigned int n_channels, unsigned int n_probes) in wl1251_cmd_scan() argument 420 wl1251_debug(DEBUG_CMD, "cmd scan channels %d", n_channels); in wl1251_cmd_scan() 422 WARN_ON(n_channels > SCAN_MAX_NUM_OF_CHANNELS); in wl1251_cmd_scan() 440 cmd->params.num_channels = n_channels; in wl1251_cmd_scan() 445 for (i = 0; i < n_channels; i++) { in wl1251_cmd_scan()
|
/linux/net/wireless/ |
H A D | scan.c | 754 u32 n_channels = request->n_channels; in cfg80211_scan_req_add_chan() local 758 for (i = 0; i < n_channels; i++) { in cfg80211_scan_req_add_chan() 766 request->channels[n_channels] = chan; in cfg80211_scan_req_add_chan() 769 n_channels; in cfg80211_scan_req_add_chan() 771 request->n_channels++; in cfg80211_scan_req_add_chan() 810 int n_channels, count = 0, err; in cfg80211_scan_6ghz() local 827 n_channels = rdev->wiphy.bands[NL80211_BAND_6GHZ]->n_channels; in cfg80211_scan_6ghz() 881 size = struct_size(request, channels, n_channels); in cfg80211_scan_6ghz() 896 request->n_channels = 0; in cfg80211_scan_6ghz() 938 for (i = 0; i < rdev_req->n_channels; i++) { in cfg80211_scan_6ghz() [all …]
|
/linux/drivers/edac/ |
H A D | i3200_edac.c | 107 int n_channels; in how_many_channels() local 115 n_channels = 1; in how_many_channels() 118 n_channels = 2; in how_many_channels() 126 return n_channels; in how_many_channels()
|
H A D | ie31200_edac.c | 218 int n_channels; in how_many_channels() local 226 n_channels = 1; in how_many_channels() 229 n_channels = 2; in how_many_channels() 238 return n_channels; in how_many_channels()
|
/linux/drivers/net/wireless/silabs/wfx/ |
H A D | scan.c | 46 for (i = start_idx; i < req->n_channels; i++) { in send_scan_req() 118 } while (ret >= 0 && chan_cur < hw_req->req.n_channels); in wfx_hw_scan_work() 129 WARN_ON(hw_req->req.n_channels > HIF_API_MAX_NB_CHANNELS); in wfx_hw_scan()
|
/linux/drivers/net/wireless/ath/wcn36xx/ |
H A D | main.c | 133 .n_channels = ARRAY_SIZE(wcn_2ghz_channels), 156 .n_channels = ARRAY_SIZE(wcn_5ghz_channels), 336 for (j = 0; j < band->n_channels; j++) { in wcn36xx_change_opchannel() 643 if (hw_req->req.n_channels > 48) { in wcn36xx_hw_scan() 645 hw_req->req.n_channels); in wcn36xx_hw_scan() 1302 if (band_idx >= sband->n_channels) { in wcn36xx_get_survey() 1303 band_idx -= sband->n_channels; in wcn36xx_get_survey() 1307 if (!sband || band_idx >= sband->n_channels) in wcn36xx_get_survey() 1564 int n_channels; in wcn36xx_probe() local 1592 n_channels = wcn_band_2ghz.n_channels + wcn_band_5ghz.n_channels; in wcn36xx_probe() [all …]
|
/linux/drivers/staging/vt6655/ |
H A D | channel.c | 47 .n_channels = ARRAY_SIZE(vnt_channels_2ghz), 58 for (i = 0; i < supported_band->n_channels; i++) { in vnt_init_band()
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | 11h.c | 58 ie_header->len = cpu_to_le16(2 * sband->n_channels + 2); in mwifiex_11h_process_infra_join() 61 *(*buffer)++ = 2 * sband->n_channels; in mwifiex_11h_process_infra_join() 62 for (i = 0; i < sband->n_channels; i++) { in mwifiex_11h_process_infra_join()
|
/linux/drivers/net/wireless/marvell/libertas/ |
H A D | cfg.c | 77 .n_channels = ARRAY_SIZE(lbs_2ghz_channels), 759 if (last_channel > priv->scan_req->n_channels) in lbs_scan_worker() 760 last_channel = priv->scan_req->n_channels; in lbs_scan_worker() 772 if (priv->scan_channel < priv->scan_req->n_channels) { in lbs_scan_worker() 790 if (priv->scan_channel >= priv->scan_req->n_channels) { in lbs_scan_worker() 815 request->n_ssids, request->n_channels, request->ie_len); in _internal_start_scan() 1275 int i, n_channels = ieee80211_get_num_supported_channels(wiphy); in _new_connect_scan_req() local 1279 n_channels * sizeof(void *), in _new_connect_scan_req() 1285 creq->ssids = (void *)&creq->channels[n_channels]; in _new_connect_scan_req() 1286 creq->n_channels = n_channels; in _new_connect_scan_req() [all …]
|
/linux/drivers/net/wireless/ath/ath9k/ |
H A D | common-init.c | 144 common->sbands[NL80211_BAND_2GHZ].n_channels = in ath9k_cmn_init_channels_rates() 161 common->sbands[NL80211_BAND_5GHZ].n_channels = in ath9k_cmn_init_channels_rates()
|
/linux/drivers/net/wireless/quantenna/qtnfmac/ |
H A D | commands.c | 1377 if (band->n_channels == resp->num_chans) { in qtnf_cmd_resp_fill_band_info() 1379 sizeof(*band->channels) * band->n_channels); in qtnf_cmd_resp_fill_band_info() 1382 band->n_channels = 0; in qtnf_cmd_resp_fill_band_info() 1387 band->n_channels = resp->num_chans; in qtnf_cmd_resp_fill_band_info() 1388 if (band->n_channels == 0) in qtnf_cmd_resp_fill_band_info() 1392 band->channels = kcalloc(band->n_channels, sizeof(*chan), in qtnf_cmd_resp_fill_band_info() 1395 band->n_channels = 0; in qtnf_cmd_resp_fill_band_info() 1411 if (chidx == band->n_channels) { in qtnf_cmd_resp_fill_band_info() 1517 if (band->n_channels != chidx) { in qtnf_cmd_resp_fill_band_info() 1519 band->n_channels, chidx); in qtnf_cmd_resp_fill_band_info() [all …]
|