Home
last modified time | relevance | path

Searched refs:band (Results 1 – 200 of 362) sorted by relevance

12

/linux-4.4.14/net/sched/
Dsch_multiq.c43 u32 band; in multiq_classify() local
59 band = skb_get_queue_mapping(skb); in multiq_classify()
61 if (band >= q->bands) in multiq_classify()
64 return q->queues[band]; in multiq_classify()
99 int band; in multiq_dequeue() local
101 for (band = 0; band < q->bands; band++) { in multiq_dequeue()
131 int band; in multiq_peek() local
133 for (band = 0; band < q->bands; band++) { in multiq_peek()
157 int band; in multiq_drop() local
161 for (band = q->bands - 1; band >= 0; band--) { in multiq_drop()
[all …]
Dsch_prio.c37 u32 band = skb->priority; in prio_classify() local
56 if (TC_H_MAJ(band)) in prio_classify()
57 band = 0; in prio_classify()
58 return q->queues[q->prio2band[band & TC_PRIO_MAX]]; in prio_classify()
60 band = res.classid; in prio_classify()
62 band = TC_H_MIN(band) - 1; in prio_classify()
63 if (band >= q->bands) in prio_classify()
66 return q->queues[band]; in prio_classify()
267 unsigned long band = arg - 1; in prio_graft() local
272 *old = qdisc_replace(sch, new, &q->queues[band]); in prio_graft()
[all …]
Dsch_generic.c470 int band) in band2list() argument
472 return priv->q + band; in band2list()
478 int band = prio2band[skb->priority & TC_PRIO_MAX]; in pfifo_fast_enqueue() local
480 struct sk_buff_head *list = band2list(priv, band); in pfifo_fast_enqueue()
482 priv->bitmap |= (1 << band); in pfifo_fast_enqueue()
493 int band = bitmap2band[priv->bitmap]; in pfifo_fast_dequeue() local
495 if (likely(band >= 0)) { in pfifo_fast_dequeue()
496 struct sk_buff_head *list = band2list(priv, band); in pfifo_fast_dequeue()
501 priv->bitmap &= ~(1 << band); in pfifo_fast_dequeue()
512 int band = bitmap2band[priv->bitmap]; in pfifo_fast_peek() local
[all …]
/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-radio-rx.c147 int vivid_radio_rx_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band) in vivid_radio_rx_enum_freq_bands() argument
149 if (band->tuner != 0) in vivid_radio_rx_enum_freq_bands()
152 if (band->index >= TOT_BANDS) in vivid_radio_rx_enum_freq_bands()
155 *band = vivid_radio_bands[band->index]; in vivid_radio_rx_enum_freq_bands()
165 unsigned band; in vivid_radio_rx_s_hw_freq_seek() local
181 for (band = 0; band < TOT_BANDS; band++) in vivid_radio_rx_s_hw_freq_seek()
182 if (a->rangelow >= vivid_radio_bands[band].rangelow && in vivid_radio_rx_s_hw_freq_seek()
183 a->rangehigh <= vivid_radio_bands[band].rangehigh) in vivid_radio_rx_s_hw_freq_seek()
185 if (band == TOT_BANDS) in vivid_radio_rx_s_hw_freq_seek()
188 (a->rangelow != vivid_radio_bands[band].rangelow || in vivid_radio_rx_s_hw_freq_seek()
[all …]
Dvivid-sdr-cap.c331 struct v4l2_frequency_band *band) in vivid_sdr_enum_freq_bands() argument
333 switch (band->tuner) { in vivid_sdr_enum_freq_bands()
335 if (band->index >= ARRAY_SIZE(bands_adc)) in vivid_sdr_enum_freq_bands()
337 *band = bands_adc[band->index]; in vivid_sdr_enum_freq_bands()
340 if (band->index >= ARRAY_SIZE(bands_fm)) in vivid_sdr_enum_freq_bands()
342 *band = bands_fm[band->index]; in vivid_sdr_enum_freq_bands()
373 unsigned band; in vivid_sdr_s_frequency() local
380 band = 0; in vivid_sdr_s_frequency()
382 band = 1; in vivid_sdr_s_frequency()
384 band = 2; in vivid_sdr_s_frequency()
[all …]
Dvivid-radio-common.c165 unsigned band; in vivid_radio_s_frequency() local
171 band = BAND_FM; in vivid_radio_s_frequency()
173 band = BAND_AM; in vivid_radio_s_frequency()
175 band = BAND_SW; in vivid_radio_s_frequency()
177 freq = clamp_t(u32, vf->frequency, vivid_radio_bands[band].rangelow, in vivid_radio_s_frequency()
178 vivid_radio_bands[band].rangehigh); in vivid_radio_s_frequency()
Dvivid-radio-rx.h26 int vivid_radio_rx_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band);
Dvivid-sdr-cap.h23 int vivid_sdr_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band);
/linux-4.4.14/drivers/net/wireless/rsi/
Drsi_91x_mac80211.c23 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2412,
25 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2417,
27 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2422,
29 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2427,
31 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2432,
33 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2437,
35 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2442,
37 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2447,
39 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2452,
41 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2457,
[all …]
Drsi_91x_mgmt.c213 common->band = IEEE80211_BAND_2GHZ; in rsi_set_default_parameters()
658 if (common->band == IEEE80211_BAND_5GHZ) { in rsi_set_vap_capabilities()
864 if (common->band != curchan->band) { in rsi_band_check()
866 common->band = curchan->band; in rsi_band_check()
875 if (common->band == IEEE80211_BAND_2GHZ) { in rsi_band_check()
1012 u8 band = hw->conf.chandef.chan->band; in rsi_send_auto_rate_request() local
1015 u32 rate_bitmap = common->bitrate_mask[band]; in rsi_send_auto_rate_request()
1050 if (band == IEEE80211_BAND_2GHZ) { in rsi_send_auto_rate_request()
/linux-4.4.14/drivers/net/wireless/ti/wl12xx/
Dscan.c30 enum ieee80211_band band, bool passive) in wl1271_get_scan_channels() argument
43 (req->channels[i]->band == band) && in wl1271_get_scan_channels()
52 req->channels[i]->band, in wl1271_get_scan_channels()
95 enum ieee80211_band band, in wl1271_scan_send() argument
136 band, passive); in wl1271_scan_send()
147 if (band == IEEE80211_BAND_2GHZ) in wl1271_scan_send()
148 cmd->params.band = WL1271_SCAN_BAND_2_4_GHZ; in wl1271_scan_send()
150 cmd->params.band = WL1271_SCAN_BAND_5_GHZ; in wl1271_scan_send()
160 cmd->params.role_id, band, in wl1271_scan_send()
221 enum ieee80211_band band; in wl1271_scan_stm() local
[all …]
Dscan.h49 u8 band; member
/linux-4.4.14/drivers/media/radio/si470x/
Dradio-si470x-common.c194 static int si470x_set_band(struct si470x_device *radio, int band) in si470x_set_band() argument
196 if (radio->band == band) in si470x_set_band()
199 radio->band = band; in si470x_set_band()
201 radio->registers[SYSCONFIG2] |= radio->band << 6; in si470x_set_band()
274 *freq = chan * si470x_get_step(radio) + bands[radio->band].rangelow; in si470x_get_freq()
287 freq = clamp(freq, bands[radio->band].rangelow, in si470x_set_freq()
288 bands[radio->band].rangehigh); in si470x_set_freq()
290 chan = (freq - bands[radio->band].rangelow) / si470x_get_step(radio); in si470x_set_freq()
302 int band, retval; in si470x_set_seek() local
309 for (band = 0; band < ARRAY_SIZE(bands); band++) { in si470x_set_seek()
[all …]
Dradio-si470x.h150 int band; member
/linux-4.4.14/drivers/media/tuners/
Dmt2266.c42 u8 band; member
135 u8 band; in mt2266_set_params() local
145 band = (freq < 300000) ? MT2266_VHF : MT2266_UHF; in mt2266_set_params()
146 if (band == MT2266_VHF) in mt2266_set_params()
166 if (band == MT2266_VHF && priv->band == MT2266_UHF) { in mt2266_set_params()
171 } else if (band == MT2266_UHF && priv->band == MT2266_VHF) { in mt2266_set_params()
216 (band == MT2266_UHF) ? "UHF" : "VHF"); in mt2266_set_params()
220 if (band == MT2266_UHF) { in mt2266_set_params()
222 b[1] = (priv->band == MT2266_VHF) ? 0x52 : 0x62; in mt2266_set_params()
238 if (band == MT2266_UHF && priv->band == MT2266_VHF) in mt2266_set_params()
[all …]
Dmsi001.c354 unsigned int band; in msi001_s_frequency() local
360 band = 0; in msi001_s_frequency()
362 band = 1; in msi001_s_frequency()
364 bands[band].rangelow, bands[band].rangehigh); in msi001_s_frequency()
370 struct v4l2_frequency_band *band) in msi001_enum_freq_bands() argument
376 band->tuner, band->type, band->index); in msi001_enum_freq_bands()
378 if (band->index >= ARRAY_SIZE(bands)) in msi001_enum_freq_bands()
381 band->capability = bands[band->index].capability; in msi001_enum_freq_bands()
382 band->rangelow = bands[band->index].rangelow; in msi001_enum_freq_bands()
383 band->rangehigh = bands[band->index].rangehigh; in msi001_enum_freq_bands()
Dfc2580.c83 synth_config = fc2580_pll_lut[i].band; in fc2580_set_params()
460 struct v4l2_frequency_band *band) in fc2580_enum_freq_bands() argument
466 band->tuner, band->type, band->index); in fc2580_enum_freq_bands()
468 if (band->index >= ARRAY_SIZE(bands)) in fc2580_enum_freq_bands()
471 band->capability = bands[band->index].capability; in fc2580_enum_freq_bands()
472 band->rangelow = bands[band->index].rangelow; in fc2580_enum_freq_bands()
473 band->rangehigh = bands[band->index].rangehigh; in fc2580_enum_freq_bands()
De4000.c367 struct v4l2_frequency_band *band) in e4000_enum_freq_bands() argument
373 band->tuner, band->type, band->index); in e4000_enum_freq_bands()
375 if (band->index >= ARRAY_SIZE(bands)) in e4000_enum_freq_bands()
378 band->capability = bands[band->index].capability; in e4000_enum_freq_bands()
379 band->rangelow = bands[band->index].rangelow; in e4000_enum_freq_bands()
380 band->rangehigh = bands[band->index].rangehigh; in e4000_enum_freq_bands()
Dfc2580_priv.h57 u8 band; member
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
Dstf.c31 #define BRCMS_STF_SS_STBC_RX(wlc) (BRCMS_ISNPHY(wlc->band) && \
32 NREV_GT(wlc->band->phyrev, 3) && NREV_LE(wlc->band->phyrev, 6))
67 struct brcms_phy_pub *pi = wlc->band->pi; in brcms_c_tempsense_upd()
101 wlc_phy_txpower_get_current(wlc->band->pi, &power, in brcms_c_stf_ss_algo_channel_get()
231 if (BRCMS_PHY_11N_CAP(wlc->band)) { in _brcms_c_stf_phy_txant_upd()
237 if (BRCMS_ISNPHY(wlc->band) && in _brcms_c_stf_phy_txant_upd()
238 NREV_GE(wlc->band->phyrev, 3) in _brcms_c_stf_phy_txant_upd()
239 && NREV_LT(wlc->band->phyrev, 7)) in _brcms_c_stf_phy_txant_upd()
242 if (BRCMS_ISLCNPHY(wlc->band) || in _brcms_c_stf_phy_txant_upd()
243 BRCMS_ISSSLPNPHY(wlc->band)) in _brcms_c_stf_phy_txant_upd()
[all …]
Dmain.c361 return wlc->band->basic_rate[mcs_table[rspec & RSPEC_RATE_MASK] in brcms_basic_rate()
363 return wlc->band->basic_rate[rspec & RSPEC_RATE_MASK]; in brcms_basic_rate()
374 static u16 get_sifs(struct brcms_band *band) in get_sifs() argument
376 return band->bandtype == BRCM_BAND_5G ? APHY_SIFS_TIME : in get_sifs()
649 if (wlc->band->bandtype == BRCM_BAND_2G) in brcms_c_calc_frame_time()
661 if (wlc->band->bandtype == BRCM_BAND_2G) in brcms_c_calc_frame_time()
720 brcms_c_write_mhf(wlc_hw, wlc_hw->band->mhfs); in brcms_c_ucode_bsinit()
724 if (BRCMS_ISNPHY(wlc_hw->band)) in brcms_c_ucode_bsinit()
733 if (BRCMS_ISLCNPHY(wlc_hw->band)) in brcms_c_ucode_bsinit()
787 wlc_hw->band = wlc_hw->bandstate[bandunit]; in brcms_c_setxband()
[all …]
Dchannel.c408 struct brcms_band *band; in brcms_c_channel_reg_limits() local
423 band = wlc->bandstate[chspec_bandunit(chanspec)]; in brcms_c_channel_reg_limits()
424 li_mimo = (band->bandtype == BRCM_BAND_5G) ? in brcms_c_channel_reg_limits()
428 delta = band->antgain; in brcms_c_channel_reg_limits()
430 if (band->bandtype == BRCM_BAND_2G) in brcms_c_channel_reg_limits()
438 if (band->bandtype == BRCM_BAND_2G) { in brcms_c_channel_reg_limits()
461 if (band->antgain > QDB(6)) in brcms_c_channel_reg_limits()
462 delta = band->antgain - QDB(6); /* Excess over 6 dB */ in brcms_c_channel_reg_limits()
464 if (band->bandtype == BRCM_BAND_2G) in brcms_c_channel_reg_limits()
667 int band, i; in brcms_reg_apply_beaconing_flags() local
[all …]
Dtypes.h236 #define BRCMS_ISNPHY(band) PHYTYPE_IS((band)->phytype, PHY_TYPE_N) argument
237 #define BRCMS_ISLCNPHY(band) PHYTYPE_IS((band)->phytype, PHY_TYPE_LCN) argument
238 #define BRCMS_ISSSLPNPHY(band) PHYTYPE_IS((band)->phytype, PHY_TYPE_SSN) argument
240 #define BRCMS_PHY_11N_CAP(band) PHYTYPE_11N_CAP((band)->phytype) argument
Dmain.h145 ((uint)((wlc)->band->bandunit ? BAND_2G_INDEX : BAND_5G_INDEX))
217 (((wlc)->stf->txstreams > 1) && (((wlc)->band->band_stf_stbc_tx == ON) \
219 (wlc)->band->band_stf_stbc_tx == AUTO && \
222 #define BRCMS_STBC_CAP_PHY(wlc) (BRCMS_ISNPHY(wlc->band) && \
223 NREV_GE(wlc->band->phyrev, 3))
225 #define BRCMS_SGI_CAP_PHY(wlc) ((BRCMS_ISNPHY(wlc->band) && \
226 NREV_GE(wlc->band->phyrev, 3)) || \
227 BRCMS_ISLCNPHY(wlc->band))
277 struct ieee80211_supported_band band; member
336 struct brcms_hw_band *band;/* pointer to active per-band state */ member
[all …]
Ddebug.c102 drvr->wlc->ucode_rev, hw->band->radiorev, in brcms_debugfs_hardware_read()
103 hw->band->phytype, hw->band->phyrev, hw->band->pi->ana_rev, in brcms_debugfs_hardware_read()
Dmac80211_if.c52 .band = IEEE80211_BAND_2GHZ, \
61 .band = IEEE80211_BAND_5GHZ, \
220 .band = IEEE80211_BAND_2GHZ,
241 .band = IEEE80211_BAND_5GHZ,
1023 struct ieee80211_supported_band *band; in ieee_hw_rate_init() local
1032 band = &wlc->bandstate[BAND_2G_INDEX]->band; in ieee_hw_rate_init()
1033 *band = brcms_band_2GHz_nphy_template; in ieee_hw_rate_init()
1036 band->ht_cap.mcs.rx_mask[1] = 0; in ieee_hw_rate_init()
1037 band->ht_cap.mcs.rx_highest = cpu_to_le16(72); in ieee_hw_rate_init()
1039 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = band; in ieee_hw_rate_init()
[all …]
Dstf.h28 int brcms_c_stf_ss_update(struct brcms_c_info *wlc, struct brcms_band *band);
/linux-4.4.14/drivers/media/radio/
Dtea575x.c164 switch (tea->band) { in snd_tea575x_val_to_freq()
185 return clamp(freq * 16, bands[tea->band].rangelow, in snd_tea575x_val_to_freq()
186 bands[tea->band].rangehigh); /* from kHz */ in snd_tea575x_val_to_freq()
197 u32 band = 0; in snd_tea575x_set_freq() local
199 switch (tea->band) { in snd_tea575x_set_freq()
201 band = TEA575X_BIT_BAND_FM; in snd_tea575x_set_freq()
209 band = TEA575X_BIT_BAND_FM; in snd_tea575x_set_freq()
217 band = TEA575X_BIT_BAND_MW; in snd_tea575x_set_freq()
224 tea->val |= band; in snd_tea575x_set_freq()
251 struct v4l2_frequency_band *band) in snd_tea575x_enum_freq_bands() argument
[all …]
Dradio-raremono.c124 u32 band; member
134 static int raremono_cmd_main(struct raremono_device *radio, unsigned band, unsigned freq) in raremono_cmd_main() argument
139 switch (band) { in raremono_cmd_main()
165 radio->curfreq = (band == BAND_FM) ? freq * 10 : freq; in raremono_cmd_main()
205 struct v4l2_frequency_band *band) in vidioc_enum_freq_bands() argument
207 if (band->tuner != 0) in vidioc_enum_freq_bands()
210 if (band->index >= ARRAY_SIZE(bands)) in vidioc_enum_freq_bands()
213 *band = bands[band->index]; in vidioc_enum_freq_bands()
258 unsigned band; in vidioc_s_frequency() local
264 band = BAND_FM; in vidioc_s_frequency()
[all …]
Dradio-tea5777.c178 switch (tea->band) { in tea5777_freq_to_v4l2_freq()
192 freq = clamp(tea->freq, bands[tea->band].rangelow, in radio_tea5777_set_freq()
193 bands[tea->band].rangehigh); in radio_tea5777_set_freq()
196 switch (tea->band) { in radio_tea5777_set_freq()
284 struct v4l2_frequency_band *band) in vidioc_enum_freq_bands() argument
288 if (band->tuner != 0 || band->index >= ARRAY_SIZE(bands) || in vidioc_enum_freq_bands()
289 (!tea->has_am && band->index == BAND_AM)) in vidioc_enum_freq_bands()
292 *band = bands[band->index]; in vidioc_enum_freq_bands()
322 if (tea->band == BAND_FM && in vidioc_g_tuner()
351 if (tea->audmode != orig_audmode && tea->band == BAND_FM) in vidioc_s_tuner()
[all …]
Dradio-si476x.c81 static inline bool si476x_radio_freq_is_inside_of_the_band(u32 freq, int band) in si476x_radio_freq_is_inside_of_the_band() argument
83 return freq >= si476x_bands[band].rangelow && in si476x_radio_freq_is_inside_of_the_band()
84 freq <= si476x_bands[band].rangehigh; in si476x_radio_freq_is_inside_of_the_band()
88 int band) in si476x_radio_range_is_inside_of_the_band() argument
90 return low >= si476x_bands[band].rangelow && in si476x_radio_range_is_inside_of_the_band()
91 high <= si476x_bands[band].rangehigh; in si476x_radio_range_is_inside_of_the_band()
361 struct v4l2_frequency_band *band) in si476x_radio_enum_freq_bands() argument
366 if (band->tuner != 0) in si476x_radio_enum_freq_bands()
373 if (band->index < ARRAY_SIZE(si476x_bands)) { in si476x_radio_enum_freq_bands()
374 *band = si476x_bands[band->index]; in si476x_radio_enum_freq_bands()
[all …]
Dradio-cadet.c407 struct v4l2_frequency_band *band) in vidioc_enum_freq_bands() argument
409 if (band->tuner) in vidioc_enum_freq_bands()
411 if (band->index >= ARRAY_SIZE(bands)) in vidioc_enum_freq_bands()
413 *band = bands[band->index]; in vidioc_enum_freq_bands()
Dradio-tea5777.h71 u32 band; /* current band */ member
/linux-4.4.14/drivers/net/wireless/iwlwifi/
Diwl-eeprom-parse.c393 enum ieee80211_band band; in iwl_eeprom_enh_txp_read_element() local
395 band = txp->flags & IWL_EEPROM_ENH_TXP_FL_BAND_52G ? in iwl_eeprom_enh_txp_read_element()
406 if (band != chan->band) in iwl_eeprom_enh_txp_read_element()
529 enum ieee80211_band band, u16 channel, in iwl_mod_ht40_chan_info() argument
537 if (data->channels[i].band != band) in iwl_mod_ht40_chan_info()
551 band == IEEE80211_BAND_5GHZ ? "5.2" : "2.4", in iwl_mod_ht40_chan_info()
574 int band, ch_idx; in iwl_init_channel_map() local
583 for (band = 1; band <= 5; band++) { in iwl_init_channel_map()
586 iwl_init_band_reference(cfg, eeprom, eeprom_size, band, in iwl_init_channel_map()
601 (band != 1) ? "5.2" : "2.4"); in iwl_init_channel_map()
[all …]
Diwl-eeprom-parse.h136 int n_channels, enum ieee80211_band band);
141 enum ieee80211_band band,
Diwl-nvm-parse.c306 channel->band = (ch_idx < num_2ghz_channels) ? in iwl_init_channel_map()
310 channel->hw_value, channel->band); in iwl_init_channel_map()
319 is_5ghz = channel->band == IEEE80211_BAND_5GHZ; in iwl_init_channel_map()
425 sband->band = IEEE80211_BAND_2GHZ; in iwl_init_sbands()
434 sband->band = IEEE80211_BAND_5GHZ; in iwl_init_sbands()
744 enum ieee80211_band band; in iwl_parse_nvm_mcc_info() local
771 band = (ch_idx < NUM_2GHZ_CHANNELS) ? in iwl_parse_nvm_mcc_info()
774 band); in iwl_parse_nvm_mcc_info()
820 band == IEEE80211_BAND_5GHZ ? "5.2" : "2.4", in iwl_parse_nvm_mcc_info()
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
Dscan.c139 priv->scan_request->channels[0]->band); in iwl_process_scan_complete()
273 notif->band ? "bg" : "a", in iwl_rx_scan_start_notif()
293 notif->band ? "bg" : "a", in iwl_rx_scan_results_notif()
365 enum ieee80211_band band, u8 n_probes) in iwl_get_active_dwell_time() argument
367 if (band == IEEE80211_BAND_5GHZ) in iwl_get_active_dwell_time()
434 enum ieee80211_band band) in iwl_get_passive_dwell_time() argument
436 u16 passive = (band == IEEE80211_BAND_2GHZ) ? in iwl_get_passive_dwell_time()
445 enum ieee80211_band band) in iwl_get_single_channel_number() argument
447 struct ieee80211_supported_band *sband = priv->hw->wiphy->bands[band]; in iwl_get_single_channel_number()
473 enum ieee80211_band band, in iwl_get_channel_for_reset_scan() argument
[all …]
Drxon.c84 priv->band = priv->hw->conf.chandef.chan->band; in iwl_connection_init_rx_config()
86 iwl_set_flags_for_band(priv, ctx, priv->band, ctx->vif); in iwl_connection_init_rx_config()
722 enum ieee80211_band band = ch->band; in iwl_set_rxon_channel() local
726 (priv->band == band)) in iwl_set_rxon_channel()
730 if (band == IEEE80211_BAND_5GHZ) in iwl_set_rxon_channel()
735 priv->band = band; in iwl_set_rxon_channel()
737 IWL_DEBUG_INFO(priv, "Staging channel set to %d [%d]\n", channel, band); in iwl_set_rxon_channel()
743 enum ieee80211_band band, in iwl_set_flags_for_band() argument
746 if (band == IEEE80211_BAND_5GHZ) { in iwl_set_flags_for_band()
952 sband = priv->hw->wiphy->bands[priv->hw->conf.chandef.chan->band]; in iwl_calc_basic_rates()
[all …]
Dagn.h161 enum ieee80211_band band,
189 struct iwl_priv *priv, enum ieee80211_band band) in iwl_get_hw_mode() argument
191 return priv->hw->wiphy->bands[band]; in iwl_get_hw_mode()
201 int iwlagn_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band);
261 enum ieee80211_band band);
Drs.c602 enum ieee80211_band band, in rs_get_tbl_info_from_mcs() argument
627 if (band == IEEE80211_BAND_5GHZ) in rs_get_tbl_info_from_mcs()
805 if (lq_sta->band == IEEE80211_BAND_5GHZ) in rs_get_lower_rate()
824 if (lq_sta->band == IEEE80211_BAND_5GHZ) in rs_get_lower_rate()
941 rs_get_tbl_info_from_mcs(tx_rate, priv->band, &tbl_type, &rs_index); in rs_tx_status()
942 if (priv->band == IEEE80211_BAND_5GHZ) in rs_tx_status()
955 if (priv->band == IEEE80211_BAND_2GHZ) in rs_tx_status()
1020 rs_get_tbl_info_from_mcs(tx_rate, priv->band, &tbl_type, in rs_tx_status()
1045 rs_get_tbl_info_from_mcs(tx_rate, priv->band, in rs_tx_status()
1071 if (sta && sta->supp_rates[sband->band]) in rs_tx_status()
[all …]
Ddevices.c423 cmd.band = priv->band == IEEE80211_BAND_2GHZ; in iwl5000_hw_channel_switch()
591 cmd->band = priv->band == IEEE80211_BAND_2GHZ; in iwl6000_hw_channel_switch()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/
Dregd.c157 enum ieee80211_band band; in _rtl_reg_apply_beaconing_flags() local
163 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in _rtl_reg_apply_beaconing_flags()
165 if (!wiphy->bands[band]) in _rtl_reg_apply_beaconing_flags()
168 sband = wiphy->bands[band]; in _rtl_reg_apply_beaconing_flags()
304 enum ieee80211_band band; in _rtl_dump_channel_map() local
309 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in _rtl_dump_channel_map()
310 if (!wiphy->bands[band]) in _rtl_dump_channel_map()
312 sband = wiphy->bands[band]; in _rtl_dump_channel_map()
/linux-4.4.14/drivers/net/wireless/ti/wl18xx/
Dscan.c113 u8 band = IEEE80211_BAND_2GHZ; in wl18xx_scan_send() local
115 cmd->role_id, band, in wl18xx_scan_send()
130 u8 band = IEEE80211_BAND_5GHZ; in wl18xx_scan_send() local
132 cmd->role_id, band, in wl18xx_scan_send()
256 u8 band = IEEE80211_BAND_2GHZ; in wl18xx_scan_sched_scan_config() local
258 cmd->role_id, band, in wl18xx_scan_sched_scan_config()
261 ies->ies[band], in wl18xx_scan_sched_scan_config()
262 ies->len[band], in wl18xx_scan_sched_scan_config()
273 u8 band = IEEE80211_BAND_5GHZ; in wl18xx_scan_sched_scan_config() local
275 cmd->role_id, band, in wl18xx_scan_sched_scan_config()
[all …]
Dcmd.c50 switch (ch_switch->chandef.chan->band) { in wl18xx_cmd_channel_switch()
52 cmd->band = WLCORE_BAND_2_4GHZ; in wl18xx_cmd_channel_switch()
55 cmd->band = WLCORE_BAND_5GHZ; in wl18xx_cmd_channel_switch()
59 ch_switch->chandef.chan->band); in wl18xx_cmd_channel_switch()
190 if (wlvif->band == IEEE80211_BAND_5GHZ) in wl18xx_cmd_set_cac()
191 cmd->band = WLCORE_BAND_5GHZ; in wl18xx_cmd_set_cac()
Devent.c67 enum ieee80211_band band; in wlcore_smart_config_sync_event() local
71 band = IEEE80211_BAND_5GHZ; in wlcore_smart_config_sync_event()
73 band = IEEE80211_BAND_2GHZ; in wlcore_smart_config_sync_event()
75 freq = ieee80211_channel_to_frequency(sync_channel, band); in wlcore_smart_config_sync_event()
Dtx.c33 u8 band, struct ieee80211_tx_rate *rate) in wl18xx_get_last_tx_rate() argument
46 if (band == IEEE80211_BAND_5GHZ) in wl18xx_get_last_tx_rate()
108 info->band, &info->status.rates[0]); in wl18xx_tx_complete_packet()
Dcmd.h43 u8 band; member
82 u8 band; member
/linux-4.4.14/init/
Dcalibrate.c190 int trials = 0, band = 0, trial_in_band = 0; in calibrate_delay_converge() local
201 if (++trial_in_band == (1<<band)) { in calibrate_delay_converge()
202 ++band; in calibrate_delay_converge()
205 __delay(lpj * band); in calibrate_delay_converge()
206 trials += band; in calibrate_delay_converge()
212 trials -= band; in calibrate_delay_converge()
213 loopadd_base = lpj * band; in calibrate_delay_converge()
/linux-4.4.14/net/wireless/
Ddebugfs.c72 enum ieee80211_band band; in ht40allow_map_read() local
81 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in ht40allow_map_read()
82 sband = wiphy->bands[band]; in ht40allow_map_read()
Dmesh.c131 enum ieee80211_band band; in __cfg80211_join_mesh() local
133 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in __cfg80211_join_mesh()
138 sband = rdev->wiphy.bands[band]; in __cfg80211_join_mesh()
171 rdev->wiphy.bands[setup->chandef.chan->band]; in __cfg80211_join_mesh()
Dutil.c50 if (sband->band == IEEE80211_BAND_2GHZ) { in ieee80211_mandatory_rates()
68 int ieee80211_channel_to_frequency(int chan, enum ieee80211_band band) in ieee80211_channel_to_frequency() argument
74 switch (band) { in ieee80211_channel_to_frequency()
119 enum ieee80211_band band; in __ieee80211_get_channel() local
123 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in __ieee80211_get_channel()
124 sband = wiphy->bands[band]; in __ieee80211_get_channel()
140 enum ieee80211_band band) in set_mandatory_flags_band() argument
144 switch (band) { in set_mandatory_flags_band()
201 enum ieee80211_band band; in ieee80211_set_bitrate_flags() local
203 for (band = 0; band < IEEE80211_NUM_BANDS; band++) in ieee80211_set_bitrate_flags()
[all …]
Dreg.c1444 sband = wiphy->bands[reg_beacon->chan.band]; in handle_reg_beacon()
1483 if (!wiphy->bands[reg_beacon->chan.band]) in wiphy_update_new_beacon()
1486 sband = wiphy->bands[reg_beacon->chan.band]; in wiphy_update_new_beacon()
1502 if (!wiphy->bands[reg_beacon->chan.band]) in wiphy_update_beacon_reg()
1504 sband = wiphy->bands[reg_beacon->chan.band]; in wiphy_update_beacon_reg()
1537 struct ieee80211_supported_band *sband = wiphy->bands[channel->band]; in reg_process_ht_flags_channel()
1589 enum ieee80211_band band; in reg_process_ht_flags() local
1594 for (band = 0; band < IEEE80211_NUM_BANDS; band++) in reg_process_ht_flags()
1595 reg_process_ht_flags_band(wiphy, wiphy->bands[band]); in reg_process_ht_flags()
1716 enum ieee80211_band band; in wiphy_update_regulatory() local
[all …]
Dibss.c105 rdev->wiphy.bands[params->chandef.chan->band]; in __cfg80211_join_ibss()
107 u32 flag = params->chandef.chan->band == IEEE80211_BAND_5GHZ ? in __cfg80211_join_ibss()
239 enum ieee80211_band band; in cfg80211_ibss_wext_join() local
251 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in cfg80211_ibss_wext_join()
255 sband = rdev->wiphy.bands[band]; in cfg80211_ibss_wext_join()
Dcore.c550 enum ieee80211_band band; in wiphy_register() local
633 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in wiphy_register()
634 sband = wiphy->bands[band]; in wiphy_register()
638 sband->band = band; in wiphy_register()
645 if (WARN_ON(band != IEEE80211_BAND_60GHZ && in wiphy_register()
655 band == IEEE80211_BAND_2GHZ && in wiphy_register()
675 sband->channels[i].band = band; in wiphy_register()
Dwext-compat.c146 enum ieee80211_band band; in cfg80211_wext_giwrange() local
218 for (band = 0; band < IEEE80211_NUM_BANDS; band ++) { in cfg80211_wext_giwrange()
221 sband = wdev->wiphy->bands[band]; in cfg80211_wext_giwrange()
268 enum ieee80211_band band = IEEE80211_BAND_2GHZ; in cfg80211_wext_freq() local
272 band = IEEE80211_BAND_5GHZ; in cfg80211_wext_freq()
273 return ieee80211_channel_to_frequency(freq->m, band); in cfg80211_wext_freq()
1230 int band, ridx; in cfg80211_wext_siwrate() local
1248 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in cfg80211_wext_siwrate()
1249 sband = wdev->wiphy->bands[band]; in cfg80211_wext_siwrate()
1255 mask.control[band].legacy = 1 << ridx; in cfg80211_wext_siwrate()
[all …]
Dsme.c84 enum ieee80211_band band = wdev->conn->params.channel->band; in cfg80211_conn_scan() local
86 wdev->wiphy->bands[band]; in cfg80211_conn_scan()
93 request->rates[band] = (1 << sband->n_bitrates) - 1; in cfg80211_conn_scan()
96 enum ieee80211_band band; in cfg80211_conn_scan() local
100 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in cfg80211_conn_scan()
101 bands = wdev->wiphy->bands[band]; in cfg80211_conn_scan()
110 request->rates[band] = (1 << bands->n_bitrates) - 1; in cfg80211_conn_scan()
739 regulatory_hint_country_ie(wdev->wiphy, bss->channel->band, in __cfg80211_connect_result()
Dscan.c534 enum ieee80211_band band, in cfg80211_bss_type_match() argument
543 if (band == IEEE80211_BAND_60GHZ) { in cfg80211_bss_type_match()
599 bss->pub.channel->band, bss_type)) in cfg80211_get_bss()
931 freq = ieee80211_channel_to_frequency(channel_number, channel->band); in cfg80211_get_bss_channel()
1009 if (channel->band == IEEE80211_BAND_60GHZ) { in cfg80211_inform_bss_data()
1092 if (channel->band == IEEE80211_BAND_60GHZ) { in cfg80211_inform_bss_frame_data()
1188 enum ieee80211_band band; in cfg80211_wext_siwscan() local
1232 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in cfg80211_wext_siwscan()
1235 if (!wiphy->bands[band]) in cfg80211_wext_siwscan()
1238 for (j = 0; j < wiphy->bands[band]->n_channels; j++) { in cfg80211_wext_siwscan()
[all …]
Dreg.h107 enum ieee80211_band band,
Dnl80211.c1268 enum ieee80211_band band; in nl80211_send_wiphy() local
1400 for (band = state->band_start; in nl80211_send_wiphy()
1401 band < IEEE80211_NUM_BANDS; band++) { in nl80211_send_wiphy()
1404 sband = rdev->wiphy.bands[band]; in nl80211_send_wiphy()
1409 nl_band = nla_nest_start(msg, band); in nl80211_send_wiphy()
1457 band--; in nl80211_send_wiphy()
1463 if (band < IEEE80211_NUM_BANDS) in nl80211_send_wiphy()
1464 state->band_start = band + 1; in nl80211_send_wiphy()
5871 enum ieee80211_band band; in nl80211_trigger_scan() local
5874 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in nl80211_trigger_scan()
[all …]
Dchan.c611 ht_cap = &wiphy->bands[chandef->chan->band]->ht_cap; in cfg80211_chandef_usable()
612 vht_cap = &wiphy->bands[chandef->chan->band]->vht_cap; in cfg80211_chandef_usable()
771 if (chan->band != IEEE80211_BAND_5GHZ) in cfg80211_ir_permissive_chan()
/linux-4.4.14/drivers/media/dvb-frontends/
Ds921.c269 int band, rc, i; in s921_pll_tune() local
276 for (band = 0; band < ARRAY_SIZE(s921_bandselect); band++) in s921_pll_tune()
277 if (p->frequency < s921_bandselect[band].freq_low) in s921_pll_tune()
279 band--; in s921_pll_tune()
281 if (band < 0) { in s921_pll_tune()
286 f_switch = s921_bandselect[band].band_reg; in s921_pll_tune()
Drtl2832_sdr.c1063 struct v4l2_frequency_band *band) in rtl2832_sdr_enum_freq_bands() argument
1070 band->tuner, band->type, band->index); in rtl2832_sdr_enum_freq_bands()
1072 if (band->tuner == 0) { in rtl2832_sdr_enum_freq_bands()
1073 if (band->index >= ARRAY_SIZE(bands_adc)) in rtl2832_sdr_enum_freq_bands()
1076 *band = bands_adc[band->index]; in rtl2832_sdr_enum_freq_bands()
1078 } else if (band->tuner == 1 && in rtl2832_sdr_enum_freq_bands()
1080 ret = v4l2_subdev_call(dev->v4l2_subdev, tuner, enum_freq_bands, band); in rtl2832_sdr_enum_freq_bands()
1081 } else if (band->tuner == 1) { in rtl2832_sdr_enum_freq_bands()
1082 if (band->index >= ARRAY_SIZE(bands_fm)) in rtl2832_sdr_enum_freq_bands()
1085 *band = bands_fm[band->index]; in rtl2832_sdr_enum_freq_bands()
[all …]
Dcx24123.c522 int band = 0; in cx24123_pll_calculate() local
551 band = i; in cx24123_pll_calculate()
554 band = force_band - 1; in cx24123_pll_calculate()
556 state->bandselectarg = cx24123_bandselect_vals[band].progdata; in cx24123_pll_calculate()
557 vco_div = cx24123_bandselect_vals[band].VCOdivider; in cx24123_pll_calculate()
560 if (p->frequency < (cx24123_bandselect_vals[band].freq_low + in cx24123_pll_calculate()
561 cx24123_bandselect_vals[band].freq_high) / 2) in cx24123_pll_calculate()
Ddib0070.c345 u8 band = (u8)BAND_OF_FREQUENCY(fe->dtv_property_cache.frequency/1000); in dib0070_tune_digital() local
346 …u32 freq = fe->dtv_property_cache.frequency/1000 + (band == BAND_VHF ? state->cfg->freq_offset_khz… in dib0070_tune_digital()
383 dprintk("Tuning for Band: %hd (%d kHz)", band, freq); in dib0070_tune_digital()
398 switch (band) { in dib0070_tune_digital()
451 if (band == BAND_SBAND) { in dib0070_tune_digital()
Ddib7000m.c675 static int dib7000m_set_agc_config(struct dib7000m_state *state, u8 band) in dib7000m_set_agc_config() argument
679 if (state->current_band == band && state->current_agc != NULL) in dib7000m_set_agc_config()
681 state->current_band = band; in dib7000m_set_agc_config()
684 if (state->cfg.agc[i].band_caps & band) { in dib7000m_set_agc_config()
690 dprintk( "no valid AGC configuration found for band 0x%02x",band); in dib7000m_set_agc_config()
/linux-4.4.14/drivers/net/wireless/ti/wlcore/
Dcmd.c426 enum ieee80211_band band, in wl12xx_cmd_role_start_dev() argument
441 if (band == IEEE80211_BAND_5GHZ) in wl12xx_cmd_role_start_dev()
442 cmd->band = WLCORE_BAND_5GHZ; in wl12xx_cmd_role_start_dev()
527 if (wlvif->band == IEEE80211_BAND_5GHZ) in wl12xx_cmd_role_start_sta()
528 cmd->band = WLCORE_BAND_5GHZ; in wl12xx_cmd_role_start_sta()
695 switch (wlvif->band) { in wl12xx_cmd_role_start_ap()
697 cmd->band = WLCORE_BAND_2_4GHZ; in wl12xx_cmd_role_start_ap()
700 cmd->band = WLCORE_BAND_5GHZ; in wl12xx_cmd_role_start_ap()
703 wl1271_warning("ap start - unknown band: %d", (int)wlvif->band); in wl12xx_cmd_role_start_ap()
704 cmd->band = WLCORE_BAND_2_4GHZ; in wl12xx_cmd_role_start_ap()
[all …]
Drx.c67 status->band = IEEE80211_BAND_2GHZ; in wl1271_rx_status()
69 status->band = IEEE80211_BAND_5GHZ; in wl1271_rx_status()
71 status->rate_idx = wlcore_rate_to_idx(wl, desc->rate, status->band); in wl1271_rx_status()
94 status->band); in wl1271_rx_status()
111 status->band); in wl1271_rx_status()
Dscan.c139 u32 band, bool radar, bool passive, in wlcore_scan_get_channels() argument
167 if (band == IEEE80211_BAND_5GHZ) in wlcore_scan_get_channels()
193 if ((req_channels[i]->band == band) && in wlcore_scan_get_channels()
218 (band == IEEE80211_BAND_2GHZ) && in wlcore_scan_get_channels()
Dcmd.h43 enum ieee80211_band band, int channel);
63 u8 role_id, u8 band,
86 enum ieee80211_band band, u8 channel);
93 enum ieee80211_band band);
306 u8 band; member
572 u8 band; member
Dwlcore.h348 enum ieee80211_band band; member
522 wlcore_set_ht_cap(struct wl1271 *wl, enum ieee80211_band band, in wlcore_set_ht_cap() argument
525 memcpy(&wl->ht_cap[band], ht_cap, sizeof(*ht_cap)); in wlcore_set_ht_cap()
Drx.h149 u8 wl1271_rate_to_idx(int rate, enum ieee80211_band band);
Dps.c205 if ((wlvif->band == IEEE80211_BAND_2GHZ) && in wl1271_ps_set_mode()
216 if ((wlvif->band == IEEE80211_BAND_2GHZ) && in wl1271_ps_set_mode()
Dscan.h34 const u8 *ie, size_t ie_len, u8 band);
Dtx.c458 struct ieee80211_supported_band *band; in wl1271_tx_enabled_rates_get() local
462 band = wl->hw->wiphy->bands[rate_band]; in wl1271_tx_enabled_rates_get()
463 for (bit = 0; bit < band->n_bitrates; bit++) { in wl1271_tx_enabled_rates_get()
465 enabled_rates |= band->bitrates[bit].hw_value; in wl1271_tx_enabled_rates_get()
470 rate_set >>= HW_HT_RATES_OFFSET - band->n_bitrates; in wl1271_tx_enabled_rates_get()
945 wlvif->band); in wl1271_tx_complete_packet()
Dmain.c2007 wl->band = IEEE80211_BAND_2GHZ; in wlcore_op_stop_locked()
2325 wlvif->band = wl->band; in wl12xx_init_vif_data()
3029 wlvif->band); in wlcore_set_assoc()
3095 wlvif->basic_rate_set = wlvif->bitrate_masks[wlvif->band]; in wl1271_set_band_rate()
4187 wlvif->band); in wl1271_bss_info_changed_ap()
4285 wlvif->band); in wlcore_set_bssid()
4294 wlvif->band); in wlcore_set_bssid()
4411 sta_rate_set = sta->supp_rates[wlvif->band]; in wl1271_bss_info_changed_sta()
4447 wlvif->band); in wl1271_bss_info_changed_sta()
4738 wlvif->band = ctx->def.chan->band; in wlcore_op_assign_vif_chanctx()
[all …]
/linux-4.4.14/drivers/net/wireless/iwlegacy/
D3945-rs.c100 il3945_get_rate_idx_by_rssi(s32 rssi, enum ieee80211_band band) in il3945_get_rate_idx_by_rssi() argument
109 switch (band) { in il3945_get_rate_idx_by_rssi()
349 sband = hw->wiphy->bands[conf->chandef.chan->band]; in il3945_rs_rate_init()
375 if (sta->supp_rates[sband->band] & (1 << i)) { in il3945_rs_rate_init()
381 il->_3945.sta_supp_rates = sta->supp_rates[sband->band]; in il3945_rs_rate_init()
383 if (sband->band == IEEE80211_BAND_5GHZ) { in il3945_rs_rate_init()
544 enum ieee80211_band band) in il3945_get_adjacent_rate() argument
552 if (unlikely(band == IEEE80211_BAND_5GHZ)) { in il3945_get_adjacent_rate()
656 rate_mask = sta->supp_rates[sband->band]; in il3945_rs_get_rate()
660 if (sband->band == IEEE80211_BAND_5GHZ && max_rate_idx != -1) in il3945_rs_get_rate()
[all …]
D4965.c779 get_min_power_idx(s32 rate_power_idx, u32 band) in get_min_power_idx() argument
781 if (!band) { in get_min_power_idx()
1019 il4965_fill_txpower_tbl(struct il_priv *il, u8 band, u16 channel, u8 is_ht40, in il4965_fill_txpower_tbl() argument
1052 D_TXPOWER("chan %d band %d is_ht40 %d\n", channel, band, is_ht40); in il4965_fill_txpower_tbl()
1054 ch_info = il_get_channel_info(il, il->band, channel); in il4965_fill_txpower_tbl()
1079 if (band) in il4965_fill_txpower_tbl()
1086 if (band) in il4965_fill_txpower_tbl()
1101 if (band) in il4965_fill_txpower_tbl()
1209 if (power_idx < get_min_power_idx(i, band)) in il4965_fill_txpower_tbl()
1210 power_idx = get_min_power_idx(i, band); in il4965_fill_txpower_tbl()
[all …]
Dcommon.c865 il_mod_ht40_chan_info(struct il_priv *il, enum ieee80211_band band, u16 channel, in il_mod_ht40_chan_info() argument
872 (struct il_channel_info *)il_get_channel_info(il, band, channel); in il_mod_ht40_chan_info()
909 int band, ch; in il_init_channel_map() local
940 for (band = 1; band <= 5; band++) { in il_init_channel_map()
942 il_init_band_reference(il, band, &eeprom_ch_count, in il_init_channel_map()
948 ch_info->band = in il_init_channel_map()
949 (band == in il_init_channel_map()
1007 for (band = 6; band <= 7; band++) { in il_init_channel_map()
1010 il_init_band_reference(il, band, &eeprom_ch_count, in il_init_channel_map()
1015 (band == 6) ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ; in il_init_channel_map()
[all …]
D4965-rs.c552 enum ieee80211_band band, in il4965_rs_get_tbl_info_from_mcs() argument
577 if (band == IEEE80211_BAND_5GHZ) in il4965_rs_get_tbl_info_from_mcs()
746 if (lq_sta->band == IEEE80211_BAND_5GHZ) in il4965_rs_get_lower_rate()
765 if (lq_sta->band == IEEE80211_BAND_5GHZ) in il4965_rs_get_lower_rate()
853 il4965_rs_get_tbl_info_from_mcs(tx_rate, il->band, &tbl_type, &rs_idx); in il4965_rs_tx_status()
854 if (il->band == IEEE80211_BAND_5GHZ) in il4965_rs_tx_status()
867 if (il->band == IEEE80211_BAND_2GHZ) in il4965_rs_tx_status()
934 il4965_rs_get_tbl_info_from_mcs(tx_rate, il->band, &tbl_type, in il4965_rs_tx_status()
960 il4965_rs_get_tbl_info_from_mcs(tx_rate, il->band, in il4965_rs_tx_status()
988 if (sta->supp_rates[sband->band]) in il4965_rs_tx_status()
[all …]
D3945.c257 switch (il->band) { in il3945_rs_next_rate()
352 if (info->band == IEEE80211_BAND_5GHZ) in il3945_hdl_tx()
555 rx_status.band = in il3945_hdl_rx()
561 rx_status.band); in il3945_hdl_rx()
564 if (rx_status.band == IEEE80211_BAND_5GHZ) in il3945_hdl_rx()
1412 txpower.band = (il->band == IEEE80211_BAND_5GHZ) ? 0 : 1; in il3945_send_tx_power()
1413 ch_info = il_get_channel_info(il, il->band, chan); in il3945_send_tx_power()
1416 il->band); in il3945_send_tx_power()
1434 le16_to_cpu(txpower.channel), txpower.band, in il3945_send_tx_power()
1445 le16_to_cpu(txpower.channel), txpower.band, in il3945_send_tx_power()
[all …]
Dcommands.h759 u8 band; member
769 u8 band; member
782 __le16 band; member
1741 u8 band; /* 0: 5 GHz, 1: 2.4 GHz */ member
1748 u8 band; /* 0: 5 GHz, 1: 2.4 GHz */ member
2213 u8 band; /* 0 - 5.2GHz, 1 - 2.4GHz */ member
2590 u8 band; member
2610 u8 band; member
Dcommon.h435 enum ieee80211_band band,
500 enum ieee80211_band band; member
1144 enum ieee80211_band band; member
1482 return ch_info->band == IEEE80211_BAND_5GHZ; in il_is_channel_a_band()
1710 void il_set_flags_for_band(struct il_priv *il, enum ieee80211_band band,
1712 u8 il_get_single_channel_number(struct il_priv *il, enum ieee80211_band band);
1796 u16 il_get_active_dwell_time(struct il_priv *il, enum ieee80211_band band,
1798 u16 il_get_passive_dwell_time(struct il_priv *il, enum ieee80211_band band,
1958 il_get_hw_mode(struct il_priv *il, enum ieee80211_band band) in il_get_hw_mode() argument
1960 return il->hw->wiphy->bands[band]; in il_get_hw_mode()
[all …]
D4965-mac.c460 il4965_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band) in il4965_hwrate_to_mac80211_idx() argument
471 if (band == IEEE80211_BAND_5GHZ) in il4965_hwrate_to_mac80211_idx()
689 rx_status.band = in il4965_hdl_rx()
695 rx_status.band); in il4965_hdl_rx()
697 il4965_hwrate_to_mac80211_idx(rate_n_flags, rx_status.band); in il4965_hdl_rx()
769 enum ieee80211_band band, u8 is_active, in il4965_get_channels_for_scan() argument
780 sband = il_get_hw_mode(il, band); in il4965_get_channels_for_scan()
784 active_dwell = il_get_active_dwell_time(il, band, n_probes); in il4965_get_channels_for_scan()
785 passive_dwell = il_get_passive_dwell_time(il, band, vif); in il4965_get_channels_for_scan()
793 if (chan->band != band) in il4965_get_channels_for_scan()
[all …]
D3945-mac.c1550 il3945_get_channels_for_scan(struct il_priv *il, enum ieee80211_band band, in il3945_get_channels_for_scan() argument
1562 sband = il_get_hw_mode(il, band); in il3945_get_channels_for_scan()
1566 active_dwell = il_get_active_dwell_time(il, band, n_probes); in il3945_get_channels_for_scan()
1567 passive_dwell = il_get_passive_dwell_time(il, band, vif); in il3945_get_channels_for_scan()
1575 if (chan->band != band) in il3945_get_channels_for_scan()
1580 ch_info = il_get_channel_info(il, band, scan_ch->channel); in il3945_get_channels_for_scan()
1621 if (band == IEEE80211_BAND_5GHZ) in il3945_get_channels_for_scan()
2537 enum ieee80211_band band; in il3945_request_scan() local
2621 band = IEEE80211_BAND_2GHZ; in il3945_request_scan()
2625 band = IEEE80211_BAND_5GHZ; in il3945_request_scan()
[all …]
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dcfg80211.c136 .band = IEEE80211_BAND_2GHZ, \
145 .band = IEEE80211_BAND_5GHZ, \
173 .band = IEEE80211_BAND_2GHZ,
179 .band = IEEE80211_BAND_5GHZ,
284 switch (ch->chan->band) { in chandef_to_chanspec()
286 ch_inf.band = BRCMU_CHAN_BAND_2G; in chandef_to_chanspec()
289 ch_inf.band = BRCMU_CHAN_BAND_5G; in chandef_to_chanspec()
2603 struct ieee80211_supported_band *band; in brcmf_inform_single_bss() local
2626 band = wiphy->bands[IEEE80211_BAND_2GHZ]; in brcmf_inform_single_bss()
2628 band = wiphy->bands[IEEE80211_BAND_5GHZ]; in brcmf_inform_single_bss()
[all …]
Dcommon.c134 join_pref_params[0].band = WLC_BAND_5G; in brcmf_c_preinit_dcmds()
138 join_pref_params[1].band = 0; in brcmf_c_preinit_dcmds()
Dfwil_types.h178 __le32 band; member
380 u8 band; member
/linux-4.4.14/drivers/net/wireless/p54/
Deeprom.c79 enum ieee80211_band band; member
127 enum ieee80211_band band) in p54_fill_band_bitrates() argument
131 switch (band) { in p54_fill_band_bitrates()
150 enum ieee80211_band band) in p54_generate_band() argument
157 if ((!list->entries) || (!list->band_channel_num[band])) in p54_generate_band()
165 list->band_channel_num[band], GFP_KERNEL); in p54_generate_band()
169 ret = p54_fill_band_bitrates(dev, tmp, band); in p54_generate_band()
173 for (i = 0, j = 0; (j < list->band_channel_num[band]) && in p54_generate_band()
178 if (chan->band != band) in p54_generate_band()
194 dest->band = chan->band; in p54_generate_band()
[all …]
/linux-4.4.14/drivers/net/wireless/orinoco/
Dcfg.c55 priv->band.bitrates = orinoco_rates; in orinoco_wiphy_register()
56 priv->band.n_bitrates = ARRAY_SIZE(orinoco_rates); in orinoco_wiphy_register()
67 priv->band.channels = priv->channels; in orinoco_wiphy_register()
68 priv->band.n_channels = channels; in orinoco_wiphy_register()
70 wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band; in orinoco_wiphy_register()
178 if (chandef->chan->band != IEEE80211_BAND_2GHZ) in orinoco_set_monitor_channel()
/linux-4.4.14/Documentation/networking/
Dmultiqueue.txt41 associated with the band is not stopped prior to dequeuing a packet.
45 will be queued to the band associated with the hardware queue.
59 queues, the band mapping would look like:
61 band 0 => queue 0
62 band 1 => queue 1
63 band 2 => queue 2
64 band 3 => queue 3
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
Dpcu.c113 ath5k_hw_get_frame_duration(struct ath5k_hw *ah, enum ieee80211_band band, in ath5k_hw_get_frame_duration() argument
123 NULL, band, len, rate); in ath5k_hw_get_frame_duration()
224 if (channel->band == IEEE80211_BAND_5GHZ) in ath5k_hw_get_default_sifs()
282 u8 band = IEEE80211_BAND_2GHZ; in ath5k_hw_write_rate_duration() local
285 for (i = 0; i < ah->sbands[band].n_bitrates; i++) { in ath5k_hw_write_rate_duration()
290 rate = &ah->sbands[band].bitrates[ack_rates_high[i]]; in ath5k_hw_write_rate_duration()
293 rate = &ah->sbands[band].bitrates[0]; in ath5k_hw_write_rate_duration()
296 rate = &ah->sbands[band].bitrates[4]; in ath5k_hw_write_rate_duration()
307 tx_time = ath5k_hw_get_frame_duration(ah, band, 10, in ath5k_hw_write_rate_duration()
315 tx_time = ath5k_hw_get_frame_duration(ah, band, 10, rate, true); in ath5k_hw_write_rate_duration()
Ddebug.c1047 struct ieee80211_supported_band *band = &ah->sbands[b]; in ath5k_debug_dump_bands() local
1049 switch (band->band) { in ath5k_debug_dump_bands()
1058 band->band); in ath5k_debug_dump_bands()
1062 band->n_channels, band->n_bitrates); in ath5k_debug_dump_bands()
1064 for (i = 0; i < band->n_channels; i++) in ath5k_debug_dump_bands()
1067 band->channels[i].center_freq), in ath5k_debug_dump_bands()
1068 band->channels[i].center_freq, in ath5k_debug_dump_bands()
1069 band->channels[i].hw_value, in ath5k_debug_dump_bands()
1070 band->channels[i].flags); in ath5k_debug_dump_bands()
1072 for (i = 0; i < band->n_bitrates; i++) in ath5k_debug_dump_bands()
[all …]
Dqcu.c562 enum ieee80211_band band; in ath5k_hw_set_ifs_intervals() local
599 if (channel->band == IEEE80211_BAND_5GHZ) in ath5k_hw_set_ifs_intervals()
600 band = IEEE80211_BAND_5GHZ; in ath5k_hw_set_ifs_intervals()
602 band = IEEE80211_BAND_2GHZ; in ath5k_hw_set_ifs_intervals()
615 sband = &ah->sbands[band]; in ath5k_hw_set_ifs_intervals()
626 ack_tx_time = ath5k_hw_get_frame_duration(ah, band, 10, rate, false); in ath5k_hw_set_ifs_intervals()
Dbase.c271 static bool ath5k_is_standard_channel(short chan, enum ieee80211_band band) in ath5k_is_standard_channel() argument
277 static bool ath5k_is_standard_channel(short chan, enum ieee80211_band band) in ath5k_is_standard_channel() argument
279 if (band == IEEE80211_BAND_2GHZ && chan <= 14) in ath5k_is_standard_channel()
300 enum ieee80211_band band; in ath5k_setup_channels() local
306 band = IEEE80211_BAND_5GHZ; in ath5k_setup_channels()
311 band = IEEE80211_BAND_2GHZ; in ath5k_setup_channels()
320 freq = ieee80211_channel_to_frequency(ch, band); in ath5k_setup_channels()
327 channels[count].band = band; in ath5k_setup_channels()
334 if (!ath5k_is_standard_channel(ch, band)) in ath5k_setup_channels()
349 ah->rate_idx[b->band][i] = -1; in ath5k_setup_rate_idx()
[all …]
Dphy.c84 ath5k_hw_radio_revision(struct ath5k_hw *ah, enum ieee80211_band band) in ath5k_hw_radio_revision() argument
93 switch (band) { in ath5k_hw_radio_revision()
141 if (channel->band == IEEE80211_BAND_2GHZ) { in ath5k_channel_ok()
145 } else if (channel->band == IEEE80211_BAND_5GHZ) in ath5k_channel_ok()
754 ath5k_hw_rfgain_init(struct ath5k_hw *ah, enum ieee80211_band band) in ath5k_hw_rfgain_init() argument
789 index = (band == IEEE80211_BAND_2GHZ) ? 1 : 0; in ath5k_hw_rfgain_init()
920 if (channel->band == IEEE80211_BAND_2GHZ) { in ath5k_hw_rfregs_init()
947 } else if ((channel->band == IEEE80211_BAND_5GHZ) || in ath5k_hw_rfregs_init()
1148 channel->band == IEEE80211_BAND_2GHZ) { in ath5k_hw_rfregs_init()
1273 if (channel->band == IEEE80211_BAND_2GHZ) { in ath5k_hw_rf5111_channel()
[all …]
/linux-4.4.14/net/mac80211/
Drate.c54 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init()
290 if ((sband->band == IEEE80211_BAND_2GHZ) && in __rate_control_send_low()
302 if (!rate_supported(sta, sband->band, i)) in __rate_control_send_low()
310 sta ? sta->supp_rates[sband->band] : -1, in __rate_control_send_low()
336 mcast_rate = txrc->bss_conf->mcast_rate[sband->band]; in rate_control_send_low()
692 *mask = sdata->rc_rateidx_mask[sband->band]; in rate_control_cap_mask()
700 !sdata->rc_has_mcs_mask[sband->band] && in rate_control_cap_mask()
701 !sdata->rc_has_vht_mcs_mask[sband->band]) in rate_control_cap_mask()
704 if (sdata->rc_has_mcs_mask[sband->band]) in rate_control_cap_mask()
705 memcpy(mcs_mask, sdata->rc_rateidx_mcs_mask[sband->band], in rate_control_cap_mask()
[all …]
Docb.c51 int band; in ieee80211_ocb_rx_no_sta() local
70 band = chanctx_conf->def.chan->band; in ieee80211_ocb_rx_no_sta()
81 sband = local->hw.wiphy->bands[band]; in ieee80211_ocb_rx_no_sta()
82 sta->sta.supp_rates[band] = in ieee80211_ocb_rx_no_sta()
Dscan.c158 local->hw.wiphy->bands[rx_status->band]; in ieee80211_bss_info_update()
267 bands_used |= BIT(req->channels[i]->band); in ieee80211_prep_hw_scan()
279 if (req->channels[i]->band != in ieee80211_prep_hw_scan()
285 bands_used |= BIT(req->channels[i]->band); in ieee80211_prep_hw_scan()
485 enum ieee80211_band band = local->hw.conf.chandef.chan->band; in ieee80211_scan_state_send_probe() local
503 scan_req->rates[band], false, in ieee80211_scan_state_send_probe()
542 if (bands_counted & BIT(req->channels[i]->band)) in __ieee80211_start_scan()
544 bands_counted |= BIT(req->channels[i]->band); in __ieee80211_start_scan()
952 enum ieee80211_band band; in ieee80211_request_ibss_scan() local
964 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in ieee80211_request_ibss_scan()
[all …]
Dibss.c93 sband = local->hw.wiphy->bands[chandef->chan->band]; in ieee80211_ibss_build_presp()
129 if (sband->band == IEEE80211_BAND_2GHZ) { in ieee80211_ibss_build_presp()
351 sdata->vif.bss_conf.use_short_slot = chan->band == IEEE80211_BAND_5GHZ; in __ieee80211_sta_join_ibss()
355 if (chan->band == IEEE80211_BAND_2GHZ && have_higher_than_11mbit) in __ieee80211_sta_join_ibss()
443 sband = sdata->local->hw.wiphy->bands[cbss->channel->band]; in ieee80211_sta_join_ibss()
614 int band; in ieee80211_ibss_add_sta() local
641 band = chanctx_conf->def.chan->band; in ieee80211_ibss_add_sta()
654 sband = local->hw.wiphy->bands[band]; in ieee80211_ibss_add_sta()
655 sta->sta.supp_rates[band] = supp_rates | in ieee80211_ibss_add_sta()
811 ifibss->chandef.chan->band, in ieee80211_ibss_process_chanswitch()
[all …]
Dtx.c79 sband = local->hw.wiphy->bands[info->band]; in ieee80211_duration()
152 switch (sband->band) { in ieee80211_duration()
188 dur = ieee80211_frame_duration(sband->band, 10, rate, erp, in ieee80211_duration()
197 dur += ieee80211_frame_duration(sband->band, next_frag_len, in ieee80211_duration()
666 sband = tx->local->hw.wiphy->bands[info->band]; in ieee80211_tx_h_rate_ctrl()
677 txrc.rate_idx_mask = tx->sdata->rc_rateidx_mask[info->band]; in ieee80211_tx_h_rate_ctrl()
683 if (tx->sdata->rc_has_mcs_mask[info->band]) in ieee80211_tx_h_rate_ctrl()
685 tx->sdata->rc_rateidx_mcs_mask[info->band]; in ieee80211_tx_h_rate_ctrl()
726 info->band ? 5 : 2)) in ieee80211_tx_h_rate_ctrl()
1516 int band, struct ieee80211_sta **sta) in ieee80211_tx_prepare_skb() argument
[all …]
Dmesh_plink.c96 enum ieee80211_band band = ieee80211_get_sdata_band(sdata); in mesh_set_short_slot_time() local
97 struct ieee80211_supported_band *sband = local->hw.wiphy->bands[band]; in mesh_set_short_slot_time()
103 if (band == IEEE80211_BAND_5GHZ) { in mesh_set_short_slot_time()
107 } else if (band != IEEE80211_BAND_2GHZ) in mesh_set_short_slot_time()
124 if (erp_rates & sta->sta.supp_rates[band]) in mesh_set_short_slot_time()
250 enum ieee80211_band band = ieee80211_get_sdata_band(sdata); in mesh_plink_frame_tx() local
260 if (ieee80211_add_srates_ie(sdata, skb, true, band) || in mesh_plink_frame_tx()
261 ieee80211_add_ext_srates_ie(sdata, skb, true, band) || in mesh_plink_frame_tx()
386 enum ieee80211_band band = ieee80211_get_sdata_band(sdata); in mesh_sta_info_init() local
391 sband = local->hw.wiphy->bands[band]; in mesh_sta_info_init()
[all …]
Dmesh.c416 enum ieee80211_band band = ieee80211_get_sdata_band(sdata); in mesh_add_ht_cap_ie() local
420 sband = local->hw.wiphy->bands[band]; in mesh_add_ht_cap_ie()
455 sband = local->hw.wiphy->bands[channel->band]; in mesh_add_ht_oper_ie()
479 enum ieee80211_band band = ieee80211_get_sdata_band(sdata); in mesh_add_vht_cap_ie() local
483 sband = local->hw.wiphy->bands[band]; in mesh_add_vht_cap_ie()
518 sband = local->hw.wiphy->bands[channel->band]; in mesh_add_vht_oper_ie()
681 enum ieee80211_band band; in ieee80211_mesh_build_beacon() local
690 band = chanctx_conf->def.chan->band; in ieee80211_mesh_build_beacon()
772 if (ieee80211_add_srates_ie(sdata, skb, true, band) || in ieee80211_mesh_build_beacon()
783 if (ieee80211_add_ext_srates_ie(sdata, skb, true, band) || in ieee80211_mesh_build_beacon()
[all …]
Dvht.c381 enum ieee80211_band band) in __ieee80211_vht_handle_opmode() argument
389 sband = local->hw.wiphy->bands[band]; in __ieee80211_vht_handle_opmode()
430 enum ieee80211_band band) in ieee80211_vht_handle_opmode() argument
433 struct ieee80211_supported_band *sband = local->hw.wiphy->bands[band]; in ieee80211_vht_handle_opmode()
435 u32 changed = __ieee80211_vht_handle_opmode(sdata, sta, opmode, band); in ieee80211_vht_handle_opmode()
Dutil.c62 int ieee80211_frame_duration(enum ieee80211_band band, size_t len, in ieee80211_frame_duration() argument
80 if (band == IEEE80211_BAND_5GHZ || erp) { in ieee80211_frame_duration()
132 enum ieee80211_band band, in ieee80211_generic_frame_duration() argument
150 dur = ieee80211_frame_duration(band, frame_len, rate->bitrate, erp, in ieee80211_generic_frame_duration()
169 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_rts_duration()
187 dur = ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration()
190 dur += ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_rts_duration()
193 dur += ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration()
213 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_ctstoself_duration()
230 dur = ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_ctstoself_duration()
[all …]
Dieee80211_i.h962 enum ieee80211_band band = IEEE80211_BAND_2GHZ; in ieee80211_get_sdata_band() local
968 band = chanctx_conf->def.chan->band; in ieee80211_get_sdata_band()
971 return band; in ieee80211_get_sdata_band()
1712 enum ieee80211_band band);
1715 enum ieee80211_band band);
1768 int ieee80211_frame_duration(enum ieee80211_band band, size_t len,
1778 enum ieee80211_band band);
1783 enum ieee80211_band band) in ieee80211_tx_skb_tid_band() argument
1786 __ieee80211_tx_skb_tid_band(sdata, skb, tid, band); in ieee80211_tx_skb_tid_band()
1804 chanctx_conf->def.chan->band); in ieee80211_tx_skb_tid()
[all …]
Dmain.c795 enum ieee80211_band band; in ieee80211_register_hw() local
868 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in ieee80211_register_hw()
871 sband = local->hw.wiphy->bands[band]; in ieee80211_register_hw()
930 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in ieee80211_register_hw()
931 if (!local->hw.wiphy->bands[band]) in ieee80211_register_hw()
933 local->int_scan_req->rates[band] = (u32) -1; in ieee80211_register_hw()
Drc80211_minstrel.c439 calc_rate_durations(enum ieee80211_band band, in calc_rate_durations() argument
447 d->perfect_tx_time = ieee80211_frame_duration(band, 1200, in calc_rate_durations()
450 d->ack_time = ieee80211_frame_duration(band, 10, in calc_rate_durations()
492 mi->sp_ack_dur = ieee80211_frame_duration(sband->band, 10, in minstrel_rate_init()
509 if (!rate_supported(sta, sband->band, i)) in minstrel_rate_init()
522 calc_rate_durations(sband->band, mr, &sband->bitrates[i], in minstrel_rate_init()
Dtdls.c49 enum ieee80211_band band = ieee80211_get_sdata_band(sdata); in ieee80211_tdls_add_ext_capab() local
50 struct ieee80211_supported_band *sband = local->hw.wiphy->bands[band]; in ieee80211_tdls_add_ext_capab()
358 enum ieee80211_band band = ieee80211_get_sdata_band(sdata); in ieee80211_tdls_add_setup_start_ies() local
367 ieee80211_add_srates_ie(sdata, skb, false, band); in ieee80211_tdls_add_setup_start_ies()
368 ieee80211_add_ext_srates_ie(sdata, skb, false, band); in ieee80211_tdls_add_setup_start_ies()
439 sband = local->hw.wiphy->bands[band]; in ieee80211_tdls_add_setup_start_ies()
545 enum ieee80211_band band = ieee80211_get_sdata_band(sdata); in ieee80211_tdls_add_setup_cfm_ies() local
612 if (band != IEEE80211_BAND_2GHZ && sta->sta.vht_cap.vht_supported) { in ieee80211_tdls_add_setup_cfm_ies()
1749 enum ieee80211_band band; in ieee80211_process_tdls_channel_switch_req() local
1781 band = IEEE80211_BAND_5GHZ; in ieee80211_process_tdls_channel_switch_req()
[all …]
Dcfg.c1048 enum ieee80211_band band = ieee80211_get_sdata_band(sdata); in sta_apply_parameters() local
1051 sband = local->hw.wiphy->bands[band]; in sta_apply_parameters()
1156 &sta->sta.supp_rates[band]); in sta_apply_parameters()
1172 params->opmode_notif, band); in sta_apply_parameters()
1824 enum ieee80211_band band; in ieee80211_change_bss() local
1830 band = ieee80211_get_sdata_band(sdata); in ieee80211_change_bss()
1843 band == IEEE80211_BAND_5GHZ) { in ieee80211_change_bss()
1856 wiphy->bands[band], in ieee80211_change_bss()
3101 if (sdata->u.ibss.chandef.chan->band != in ieee80211_set_csa_beacon()
3102 params->chandef.chan->band) in ieee80211_set_csa_beacon()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dmac.c480 switch (chandef->chan->band) { in chan_to_phymode()
2024 enum ieee80211_band band; in ath10k_peer_assoc_h_rates() local
2034 band = def.chan->band; in ath10k_peer_assoc_h_rates()
2035 sband = ar->hw->wiphy->bands[band]; in ath10k_peer_assoc_h_rates()
2036 ratemask = sta->supp_rates[band]; in ath10k_peer_assoc_h_rates()
2037 ratemask &= arvif->bitrate_mask.control[band].legacy; in ath10k_peer_assoc_h_rates()
2084 enum ieee80211_band band; in ath10k_peer_assoc_h_ht() local
2099 band = def.chan->band; in ath10k_peer_assoc_h_ht()
2100 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs; in ath10k_peer_assoc_h_ht()
2101 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs; in ath10k_peer_assoc_h_ht()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/net/wireless/
Dbrcm,bcm43xx-fmac.txt16 - interrupts : specifies attributes for the out-of-band interrupt (host-wake).
17 When not specified the device will use in-band SDIO interrupts.
18 - interrupt-names : name of the out-of-band interrupt, which must be set
Dti,wlcore.txt19 - interrupts : specifies attributes for the out-of-band interrupt.
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmutil/
Dd11.c134 ch->band = BRCMU_CHAN_BAND_5G; in brcmu_d11n_decchspec()
137 ch->band = BRCMU_CHAN_BAND_2G; in brcmu_d11n_decchspec()
200 ch->band = BRCMU_CHAN_BAND_5G; in brcmu_d11ac_decchspec()
203 ch->band = BRCMU_CHAN_BAND_2G; in brcmu_d11ac_decchspec()
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-wusb_cbaf16 3. The CM writes the host name, supported band groups,
22 4. The CM can verify that the device's supported band
60 Writes fetches device's supported band groups and the
75 The band groups supported by the host, in the format
83 The band groups supported by the device, in the format
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Ddebug_sta.c142 if (ah->curchan->chan->band == IEEE80211_BAND_2GHZ) in ath_debug_rate_stats()
176 enum ieee80211_band band; in read_file_node_recv() local
186 band = ah->curchan->chan->band; in read_file_node_recv()
209 if (band == IEEE80211_BAND_2GHZ) { in read_file_node_recv()
Dcommon-init.c22 .band = IEEE80211_BAND_2GHZ, \
29 .band = IEEE80211_BAND_5GHZ, \
143 common->sbands[IEEE80211_BAND_2GHZ].band = IEEE80211_BAND_2GHZ; in ath9k_cmn_init_channels_rates()
160 common->sbands[IEEE80211_BAND_5GHZ].band = IEEE80211_BAND_5GHZ; in ath9k_cmn_init_channels_rates()
Dcommon.c176 enum ieee80211_band band; in ath9k_cmn_process_rate() local
180 band = ah->curchan->chan->band; in ath9k_cmn_process_rate()
181 sband = hw->wiphy->bands[band]; in ath9k_cmn_process_rate()
308 if (chan->band == IEEE80211_BAND_5GHZ) in ath9k_cmn_update_ichannel()
Dcalib.c148 enum ieee80211_band band, in ath9k_hw_get_nf_thresh() argument
151 switch (band) { in ath9k_hw_get_nf_thresh()
378 if (ath9k_hw_get_nf_thresh(ah, c->band, &nfThresh) in ath9k_hw_getnf()
Dtx99.c85 tx_info->band = sc->cur_chan->chandef.chan->band; in ath9k_build_tx99_skb()
Ddynack.c214 rate = &common->sbands[info->band].bitrates[rates[ridx].idx]; in ath_dynack_sample_tx_ts()
215 if (info->band == IEEE80211_BAND_2GHZ && in ath_dynack_sample_tx_ts()
/linux-4.4.14/drivers/net/wireless/ath/
Dregd.c339 enum ieee80211_band band; in ath_reg_apply_beaconing_flags() local
344 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in ath_reg_apply_beaconing_flags()
345 if (!wiphy->bands[band]) in ath_reg_apply_beaconing_flags()
347 sband = wiphy->bands[band]; in ath_reg_apply_beaconing_flags()
775 enum ieee80211_band band) in ath_regd_get_band_ctl() argument
796 switch (band) { in ath_regd_get_band_ctl()
Dregd.h258 enum ieee80211_band band);
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dscan.c166 static __le32 iwl_mvm_scan_rxon_flags(enum ieee80211_band band) in iwl_mvm_scan_rxon_flags() argument
168 if (band == IEEE80211_BAND_2GHZ) in iwl_mvm_scan_rxon_flags()
175 iwl_mvm_scan_rate_n_flags(struct iwl_mvm *mvm, enum ieee80211_band band, in iwl_mvm_scan_rate_n_flags() argument
185 if (band == IEEE80211_BAND_2GHZ && !no_cck) in iwl_mvm_scan_rate_n_flags()
812 cmd->flags = iwl_mvm_scan_rxon_flags(params->channels[0]->band); in iwl_mvm_scan_lmac()
885 struct ieee80211_supported_band *band; in iwl_mvm_scan_config_rates() local
889 band = &mvm->nvm_data->bands[IEEE80211_BAND_2GHZ]; in iwl_mvm_scan_config_rates()
890 for (i = 0; i < band->n_bitrates; i++) in iwl_mvm_scan_config_rates()
891 rates |= rate_to_scan_rate_flag(band->bitrates[i].hw_value); in iwl_mvm_scan_config_rates()
892 band = &mvm->nvm_data->bands[IEEE80211_BAND_5GHZ]; in iwl_mvm_scan_config_rates()
[all …]
Drs.c825 enum ieee80211_band band, in rs_rate_from_ucode_rate() argument
844 if (band == IEEE80211_BAND_5GHZ) in rs_rate_from_ucode_rate()
1039 if (lq_sta->band == IEEE80211_BAND_5GHZ) in rs_get_lower_rate_down_column()
1187 rs_rate_from_ucode_rate(tx_resp_hwrate, info->band, &tx_resp_rate); in iwl_mvm_rs_tx_status()
1229 iwl_mvm_rs_rate_init(mvm, sta, info->band, false); in iwl_mvm_rs_tx_status()
1243 rs_rate_from_ucode_rate(lq_hwrate, info->band, &lq_rate); in iwl_mvm_rs_tx_status()
1332 rs_rate_from_ucode_rate(lq_hwrate, info->band, in iwl_mvm_rs_tx_status()
1362 if (sta->supp_rates[info->band]) in iwl_mvm_rs_tx_status()
1815 if (lq_sta->band == IEEE80211_BAND_5GHZ) in rs_switch_to_column()
1985 struct rs_rate *rate, enum ieee80211_band band) in rs_tpc_allowed() argument
[all …]
Dtx.c239 &mvm->nvm_data->bands[info->band], sta); in iwl_mvm_set_tx_cmd_rate()
242 if (info->band == IEEE80211_BAND_5GHZ) in iwl_mvm_set_tx_cmd_rate()
255 if (info->band == IEEE80211_BAND_2GHZ && in iwl_mvm_set_tx_cmd_rate()
625 enum ieee80211_band band, in iwl_mvm_hwrate_to_tx_rate() argument
656 band); in iwl_mvm_hwrate_to_tx_rate()
670 iwl_mvm_hwrate_to_tx_rate(rate_n_flags, info->band, r); in iwl_mvm_hwrate_to_tx_status()
1087 ba_info.band = chanctx_conf->def.chan->band; in iwl_mvm_rx_ba_notif()
Dphy-ctxt.c150 cmd->ci.band = (chandef->chan->band == IEEE80211_BAND_2GHZ ? in iwl_mvm_phy_ctxt_cmd_data()
Dcoex.c381 chanctx_conf->def.chan->band != IEEE80211_BAND_2GHZ) { in iwl_get_coex_type()
546 chanctx_conf->def.chan->band != IEEE80211_BAND_2GHZ)) { in iwl_mvm_bt_notif_iterator()
890 enum ieee80211_band band) in iwl_mvm_bt_coex_is_tpc_allowed() argument
895 return iwl_mvm_bt_coex_is_tpc_allowed_old(mvm, band); in iwl_mvm_bt_coex_is_tpc_allowed()
897 if (band != IEEE80211_BAND_2GHZ) in iwl_mvm_bt_coex_is_tpc_allowed()
908 if (info->band != IEEE80211_BAND_2GHZ) in iwl_mvm_bt_coex_tx_prio()
Drs.h308 enum ieee80211_band band; member
361 enum ieee80211_band band, bool init);
Drx.c317 rx_status->band = in iwl_mvm_rx_rx_mpdu()
322 rx_status->band); in iwl_mvm_rx_rx_mpdu()
432 rx_status->band); in iwl_mvm_rx_rx_mpdu()
Dcoex_legacy.c579 chanctx_conf->def.chan->band != IEEE80211_BAND_2GHZ) { in iwl_get_coex_type()
870 chanctx_conf->def.chan->band != IEEE80211_BAND_2GHZ)) { in iwl_mvm_bt_notif_iterator()
1103 chanctx_conf->def.chan->band != IEEE80211_BAND_2GHZ) { in iwl_mvm_bt_rssi_iterator()
1230 enum ieee80211_band band) in iwl_mvm_bt_coex_is_tpc_allowed_old() argument
1235 if (band != IEEE80211_BAND_2GHZ) in iwl_mvm_bt_coex_is_tpc_allowed_old()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dphy.c362 u32 phy_get_tx_swing_8812A(struct ieee80211_hw *hw, u8 band, in phy_get_tx_swing_8812A() argument
382 if (band == BAND_ON_2_4G) { in phy_get_tx_swing_8812A()
396 } else if (band == BAND_ON_5G) { in phy_get_tx_swing_8812A()
423 if (band == BAND_ON_2_4G) { in phy_get_tx_swing_8812A()
463 if (band == BAND_ON_2_4G) in phy_get_tx_swing_8812A()
469 if (band == BAND_ON_2_4G) in phy_get_tx_swing_8812A()
475 if (band == BAND_ON_2_4G) in phy_get_tx_swing_8812A()
481 if (band == BAND_ON_2_4G) in phy_get_tx_swing_8812A()
489 if (band == BAND_ON_2_4G) in phy_get_tx_swing_8812A()
495 if (band == BAND_ON_2_4G) in phy_get_tx_swing_8812A()
[all …]
Dphy.h222 u8 band);
257 u32 phy_get_tx_swing_8812A(struct ieee80211_hw *hw, u8 band, u8 rf_path);
/linux-4.4.14/drivers/net/wireless/mwifiex/
Dcfg80211.c478 enum ieee80211_band band; in mwifiex_send_domain_info_cmd_fw() local
490 band = mwifiex_band_to_radio_type(adapter->config_bands); in mwifiex_send_domain_info_cmd_fw()
491 if (!wiphy->bands[band]) { in mwifiex_send_domain_info_cmd_fw()
497 sband = wiphy->bands[band]; in mwifiex_send_domain_info_cmd_fw()
1406 enum ieee80211_band band; in mwifiex_cfg80211_dump_survey() local
1414 u8 curr_bss_band = priv->curr_bss_params.band; in mwifiex_cfg80211_dump_survey()
1417 band = mwifiex_band_to_radio_type(curr_bss_band); in mwifiex_cfg80211_dump_survey()
1419 ieee80211_channel_to_frequency(chan, band)); in mwifiex_cfg80211_dump_survey()
1434 band = pchan_stats[idx].bandcfg; in mwifiex_cfg80211_dump_survey()
1436 ieee80211_channel_to_frequency(pchan_stats[idx].chan_num, band)); in mwifiex_cfg80211_dump_survey()
[all …]
Dcfp.c314 mwifiex_get_cfp(struct mwifiex_private *priv, u8 band, u16 channel, u32 freq) in mwifiex_get_cfp() argument
324 if (mwifiex_band_to_radio_type(band) == HostCmd_SCAN_RADIO_TYPE_BG) in mwifiex_get_cfp()
332 __func__, band); in mwifiex_get_cfp()
356 __func__, band, channel, freq); in mwifiex_get_cfp()
Dscan.c497 enum ieee80211_band band; in mwifiex_scan_create_channel_list() local
503 for (band = 0; (band < IEEE80211_NUM_BANDS) ; band++) { in mwifiex_scan_create_channel_list()
505 if (!priv->wdev.wiphy->bands[band]) in mwifiex_scan_create_channel_list()
508 sband = priv->wdev.wiphy->bands[band]; in mwifiex_scan_create_channel_list()
514 scan_chan_list[chan_idx].radio_type = band; in mwifiex_scan_create_channel_list()
1648 bss->channel->band; in mwifiex_save_hidden_ssid_channels()
1816 u8 band; in mwifiex_parse_single_response_buf() local
1825 band = BAND_G; in mwifiex_parse_single_response_buf()
1827 band = mwifiex_radio_type_to_band(*radio_type & in mwifiex_parse_single_response_buf()
1830 cfp = mwifiex_get_cfp(priv, band, channel, 0); in mwifiex_parse_single_response_buf()
[all …]
Djoin.c716 priv->curr_bss_params.band = (u8) bss_desc->bss_band; in mwifiex_ret_802_11_associate()
905 priv->curr_bss_params.band = adapter->adhoc_start_band; in mwifiex_cmd_802_11_ad_hoc_start()
989 = mwifiex_band_to_radio_type(priv->curr_bss_params.band); in mwifiex_cmd_802_11_ad_hoc_start()
1184 priv->curr_bss_params.band = (u8) bss_desc->bss_band; in mwifiex_cmd_802_11_ad_hoc_join()
1374 priv->curr_bss_params.band); in mwifiex_adhoc_start()
1430 priv->curr_bss_params.band); in mwifiex_adhoc_join()
1511 mwifiex_band_to_radio_type(u8 band) in mwifiex_band_to_radio_type() argument
1513 switch (band) { in mwifiex_band_to_radio_type()
D11ac.c323 u8 mwifiex_get_center_freq_index(struct mwifiex_private *priv, u8 band, in mwifiex_get_center_freq_index() argument
328 if (band & BAND_AAC) { in mwifiex_get_center_freq_index()
Dtdls.c184 mwifiex_fill_vht_cap_tlv(priv, &vht_cap, priv->curr_bss_params.band); in mwifiex_tdls_add_vht_capab()
470 radio = mwifiex_band_to_radio_type(priv->curr_bss_params.band); in mwifiex_prep_tdls_encap_data()
508 radio = mwifiex_band_to_radio_type(priv->curr_bss_params.band); in mwifiex_prep_tdls_encap_data()
739 radio = mwifiex_band_to_radio_type(priv->curr_bss_params.band); in mwifiex_construct_tdls_action_frame()
1482 u8 primary_chan, u8 second_chan_offset, u8 band) in mwifiex_start_tdls_cs() argument
1489 start_tdls_cs_params.band = band; in mwifiex_start_tdls_cs()
/linux-4.4.14/drivers/media/pci/ttpci/
Dbudget-ci.c751 u8 band, cp, filter; in philips_tdm1316l_tuner_set_params() local
782 band = 1; in philips_tdm1316l_tuner_set_params()
784 band = 2; in philips_tdm1316l_tuner_set_params()
786 band = 4; in philips_tdm1316l_tuner_set_params()
819 tuner_buf[3] = (cp << 5) | (filter << 3) | band; in philips_tdm1316l_tuner_set_params()
870 u8 band, cp, filter; in dvbc_philips_tdm1316l_tuner_set_params() local
878 band = 1; in dvbc_philips_tdm1316l_tuner_set_params()
881 band = 1; in dvbc_philips_tdm1316l_tuner_set_params()
884 band = 1; in dvbc_philips_tdm1316l_tuner_set_params()
887 band = 2; in dvbc_philips_tdm1316l_tuner_set_params()
[all …]
Dbudget-av.c709 u8 band, cp, filter; in philips_tu1216_tuner_set_params() local
740 band = 1; in philips_tu1216_tuner_set_params()
742 band = 2; in philips_tu1216_tuner_set_params()
744 band = 4; in philips_tu1216_tuner_set_params()
774 tuner_buf[3] = (cp << 5) | (filter << 3) | band; in philips_tu1216_tuner_set_params()
/linux-4.4.14/drivers/staging/vt6655/
Ddpc.c68 sband = hw->wiphy->bands[hw->conf.chandef.chan->band]; in vnt_rx_data()
106 rx_status.band = hw->conf.chandef.chan->band; in vnt_rx_data()
/linux-4.4.14/include/media/
Dtea575x.h63 u32 band; /* 0: FM, 1: FM-Japan, 2: AM */ member
75 struct v4l2_frequency_band *band);
/linux-4.4.14/drivers/staging/vt6656/
Ddpc.c100 sband = hw->wiphy->bands[hw->conf.chandef.chan->band]; in vnt_rx_data()
156 rx_status.band = hw->conf.chandef.chan->band; in vnt_rx_data()
/linux-4.4.14/drivers/net/wireless/ath/ar5523/
Dar5523.c596 rx_status->band = hw->conf.chandef.chan->band; in ar5523_data_rx_cb()
1152 struct ieee80211_supported_band *band; in ar5523_get_wlan_mode() local
1157 band = ar->hw->wiphy->bands[ar->hw->conf.chandef.chan->band]; in ar5523_get_wlan_mode()
1163 sta_rate_set = sta->supp_rates[ar->hw->conf.chandef.chan->band]; in ar5523_get_wlan_mode()
1165 for (bit = 0; bit < band->n_bitrates; bit++) { in ar5523_get_wlan_mode()
1167 int rate = band->bitrates[bit].bitrate; in ar5523_get_wlan_mode()
1190 struct ieee80211_supported_band *band; in ar5523_create_rateset() local
1201 sta_rate_set = sta->supp_rates[ar->hw->conf.chandef.chan->band]; in ar5523_create_rateset()
1205 band = ar->hw->wiphy->bands[ar->hw->conf.chandef.chan->band]; in ar5523_create_rateset()
1206 for (bit = 0; bit < band->n_bitrates; bit++) { in ar5523_create_rateset()
[all …]
Dar5523.h129 struct ieee80211_supported_band band; member
/linux-4.4.14/drivers/net/wireless/cw1200/
Dmain.c105 .band = IEEE80211_BAND_2GHZ, \
114 .band = IEEE80211_BAND_5GHZ, \
258 int i, band; in cw1200_init_common() local
319 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in cw1200_init_common()
320 struct ieee80211_supported_band *sband = hw->wiphy->bands[band]; in cw1200_init_common()
Dscan.c199 if ((*it)->band != first->band) in cw1200_scan_work()
208 scan.band = first->band; in cw1200_scan_work()
405 scan.band = (priv->channel->band == IEEE80211_BAND_5GHZ) ? in cw1200_probe_work()
Dsta.c1287 join.band = (priv->channel->band == IEEE80211_BAND_5GHZ) ? in cw1200_do_join()
1463 .band = WSM_PHY_BAND_2_4G, in cw1200_enable_listening()
1471 start.band = priv->channel->band == IEEE80211_BAND_5GHZ ? in cw1200_enable_listening()
1475 start.band = WSM_PHY_BAND_2_4G; in cw1200_enable_listening()
1922 sta->supp_rates[priv->channel->band]); in cw1200_bss_info_changed()
2326 .band = (priv->channel->band == IEEE80211_BAND_5GHZ) ? in cw1200_start_ap()
2355 start.channel_number, start.band, in cw1200_start_ap()
/linux-4.4.14/drivers/net/wireless/
Dmwl8k.c349 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2412, .hw_value = 1, },
350 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2417, .hw_value = 2, },
351 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2422, .hw_value = 3, },
352 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2427, .hw_value = 4, },
353 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2432, .hw_value = 5, },
354 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2437, .hw_value = 6, },
355 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2442, .hw_value = 7, },
356 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2447, .hw_value = 8, },
357 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2452, .hw_value = 9, },
358 { .band = IEEE80211_BAND_2GHZ, .center_freq = 2457, .hw_value = 10, },
[all …]
Dmac80211_hwsim.c258 .band = IEEE80211_BAND_2GHZ, \
265 .band = IEEE80211_BAND_5GHZ, \
1132 rx_status.band = chan->band; in mac80211_hwsim_tx_frame_no_nl()
2299 enum ieee80211_band band; in mac80211_hwsim_new_radio() local
2426 for (band = IEEE80211_BAND_2GHZ; band < IEEE80211_NUM_BANDS; band++) { in mac80211_hwsim_new_radio()
2427 struct ieee80211_supported_band *sband = &data->bands[band]; in mac80211_hwsim_new_radio()
2428 switch (band) { in mac80211_hwsim_new_radio()
2484 hw->wiphy->bands[band] = sband; in mac80211_hwsim_new_radio()
2834 rx_status.band = data2->channel->band; in hwsim_cloned_frame_received_nl()
/linux-4.4.14/drivers/staging/wlan-ng/
Dcfg80211.c40 struct ieee80211_supported_band band; member
754 priv->band.channels = priv->channels; in wlan_create_wiphy()
755 priv->band.n_channels = ARRAY_SIZE(prism2_channels); in wlan_create_wiphy()
756 priv->band.bitrates = priv->rates; in wlan_create_wiphy()
757 priv->band.n_bitrates = ARRAY_SIZE(prism2_rates); in wlan_create_wiphy()
758 priv->band.band = IEEE80211_BAND_2GHZ; in wlan_create_wiphy()
759 priv->band.ht_cap.ht_supported = false; in wlan_create_wiphy()
760 wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band; in wlan_create_wiphy()
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Dwmi.c2008 int i, band, ret; in ath6kl_wmi_beginscan_cmd() local
2046 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in ath6kl_wmi_beginscan_cmd()
2047 sband = ar->wiphy->bands[band]; in ath6kl_wmi_beginscan_cmd()
2052 if (WARN_ON(band >= ATH6KL_NUM_BANDS)) in ath6kl_wmi_beginscan_cmd()
2055 ratemask = rates[band]; in ath6kl_wmi_beginscan_cmd()
2056 supp_rates = sc->supp_rates[band].rates; in ath6kl_wmi_beginscan_cmd()
2065 sc->supp_rates[band].nrates = num_rates; in ath6kl_wmi_beginscan_cmd()
2761 int ret, mode, band; in ath6kl_set_bitrate_mask64() local
2768 for (band = 0; band <= IEEE80211_BAND_5GHZ; band++) { in ath6kl_set_bitrate_mask64()
2770 ratemask[band] = mask->control[band].legacy; in ath6kl_set_bitrate_mask64()
[all …]
Dcfg80211.c37 .band = IEEE80211_BAND_2GHZ, \
46 .band = IEEE80211_BAND_5GHZ, \
2586 static int ath6kl_set_htcap(struct ath6kl_vif *vif, enum ieee80211_band band, in ath6kl_set_htcap() argument
2589 struct ath6kl_htcap *htcap = &vif->htcap[band]; in ath6kl_set_htcap()
2597 htcap->cap_info = (band == IEEE80211_BAND_2GHZ) ? in ath6kl_set_htcap()
2604 band, htcap); in ath6kl_set_htcap()
2610 int band, ret = 0; in ath6kl_restore_htcap() local
2612 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in ath6kl_restore_htcap()
2613 if (!wiphy->bands[band]) in ath6kl_restore_htcap()
2616 ret = ath6kl_set_htcap(vif, band, in ath6kl_restore_htcap()
[all …]
/linux-4.4.14/drivers/media/usb/ttusb-budget/
Ddvb-ttusb-budget.c1084 u8 band, cp, filter; in philips_tdm1316l_tuner_set_params() local
1104 band = 1; in philips_tdm1316l_tuner_set_params()
1106 band = 2; in philips_tdm1316l_tuner_set_params()
1108 band = 4; in philips_tdm1316l_tuner_set_params()
1140 tuner_buf[3] = (cp << 5) | (filter << 3) | band; in philips_tdm1316l_tuner_set_params()
1411 u8 band, cp, filter; in dvbc_philips_tdm1316l_tuner_set_params() local
1416 else if (tuner_frequency < 130000000) {cp = 3; band = 1;} in dvbc_philips_tdm1316l_tuner_set_params()
1417 else if (tuner_frequency < 160000000) {cp = 5; band = 1;} in dvbc_philips_tdm1316l_tuner_set_params()
1418 else if (tuner_frequency < 200000000) {cp = 6; band = 1;} in dvbc_philips_tdm1316l_tuner_set_params()
1419 else if (tuner_frequency < 290000000) {cp = 3; band = 2;} in dvbc_philips_tdm1316l_tuner_set_params()
[all …]
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dphy.c409 u8 band = BAND_ON_2_4G, rf = 0, txnum = 0, sec = 0; in _rtl92ee_phy_init_tx_power_by_rate() local
411 for (; band <= BAND_ON_5G; ++band) in _rtl92ee_phy_init_tx_power_by_rate()
416 [band][rf][txnum][sec] = 0; in _rtl92ee_phy_init_tx_power_by_rate()
420 u8 band, u8 path, in _rtl92ee_phy_set_txpower_by_rate_base() argument
433 if (band == BAND_ON_2_4G) { in _rtl92ee_phy_set_txpower_by_rate_base()
455 "Invalid Band %d\n", band); in _rtl92ee_phy_set_txpower_by_rate_base()
460 u8 band, u8 path, u8 txnum, in _rtl92ee_phy_get_txpower_by_rate_base() argument
473 if (band == BAND_ON_2_4G) { in _rtl92ee_phy_get_txpower_by_rate_base()
495 "Invalid Band %d()\n", band); in _rtl92ee_phy_get_txpower_by_rate_base()
575 u8 base = 0, rf = 0, band = BAND_ON_2_4G; in phy_convert_txpwr_dbm_to_rel_val() local
[all …]
/linux-4.4.14/Documentation/video4linux/bttv/
DICs24 TDA5737: VHF, hyperband and UHF mixer/oscillator for TV and VCR 3-band tuners
28 TDA5731: VHF, hyperband and UHF mixer/oscillator for TV and VCR 3-band tuners
DTuners38 3-wire/I2C tuning, 2-band/3-band
/linux-4.4.14/drivers/net/wireless/ath/carl9170/
Dmac.c51 if (ar->hw->conf.chandef.chan->band == IEEE80211_BAND_2GHZ) in carl9170_set_dyn_sifs_ack()
69 if (ar->hw->conf.chandef.chan->band == IEEE80211_BAND_2GHZ) { in carl9170_set_rts_cts_rate()
96 if ((ar->hw->conf.chandef.chan->band == IEEE80211_BAND_5GHZ) || in carl9170_set_slot_time()
123 if (ar->hw->conf.chandef.chan->band == IEEE80211_BAND_5GHZ) in carl9170_set_mac_rates()
514 switch (channel->band) { in carl9170_set_mac_tpc()
Dphy.c543 static int carl9170_init_phy(struct ar9170 *ar, enum ieee80211_band band) in carl9170_init_phy() argument
547 bool is_2ghz = band == IEEE80211_BAND_2GHZ; in carl9170_init_phy()
1127 switch (channel->band) { in carl9170_set_freq_cal_data()
1160 switch (channel->band) { in carl9170_set_freq_cal_data()
1333 ar->hw->conf.chandef.chan->band); in carl9170_calc_ctl()
1343 if (ar->hw->conf.chandef.chan->band == IEEE80211_BAND_2GHZ) { in carl9170_calc_ctl()
1605 err = carl9170_init_phy(ar, channel->band); in carl9170_set_channel()
1610 channel->band == IEEE80211_BAND_5GHZ); in carl9170_set_channel()
1624 channel->band == IEEE80211_BAND_5GHZ, in carl9170_set_channel()
Drx.c354 status->band = chan->band; in carl9170_rx_mac_status()
420 if (status->band == IEEE80211_BAND_2GHZ) in carl9170_rx_mac_status()
/linux-4.4.14/drivers/input/misc/
Dpmic8xxx-pwrkey.c172 u8 vref_sel, vlow_sel, band, vprog, bank; in pm8058_disable_smps_locally_set_pull_down() local
192 band = reg & PM8058_SMPS_ADVANCED_BAND_MASK; in pm8058_disable_smps_locally_set_pull_down()
193 band >>= PM8058_SMPS_ADVANCED_BAND_SHIFT; in pm8058_disable_smps_locally_set_pull_down()
194 switch (band) { in pm8058_disable_smps_locally_set_pull_down()
/linux-4.4.14/drivers/net/wireless/b43/
Dxmit.c294 dev->wl->hw, info->control.vif, info->band, in b43_generate_txhdr()
806 status.band = IEEE80211_BAND_5GHZ; in b43_rx()
811 ieee80211_channel_to_frequency(chanid, status.band); in b43_rx()
814 status.band = IEEE80211_BAND_2GHZ; in b43_rx()
819 status.freq = ieee80211_channel_to_frequency(chanid, status.band); in b43_rx()
829 status.band = IEEE80211_BAND_5GHZ; in b43_rx()
831 status.band = IEEE80211_BAND_2GHZ; in b43_rx()
833 ieee80211_channel_to_frequency(chanid, status.band); in b43_rx()
Dppr.c78 enum b43_band band) in b43_ppr_load_max_from_sprom() argument
89 switch (band) { in b43_ppr_load_max_from_sprom()
127 if (band == B43_BAND_2G) { in b43_ppr_load_max_from_sprom()
Dppr.h43 enum b43_band band);
Dtables_nphy.c3701 enum ieee80211_band band = b43_current_band(dev->wl); in b43_nphy_get_tx_gain_table() local
3708 if ((dev->phy.n->ipa2g_on && band == IEEE80211_BAND_2GHZ) || in b43_nphy_get_tx_gain_table()
3709 (dev->phy.n->ipa5g_on && band == IEEE80211_BAND_5GHZ)) { in b43_nphy_get_tx_gain_table()
/linux-4.4.14/drivers/media/usb/ttusb-dec/
Dttusbdecfe.c134 __be32 band; in ttusbdecfe_dvbs_set_frontend() local
142 band = htonl(state->hi_band ? LOF_HI : LOF_LO); in ttusbdecfe_dvbs_set_frontend()
143 memcpy(&b[24], &band, sizeof(u32)); in ttusbdecfe_dvbs_set_frontend()
/linux-4.4.14/fs/
Dfcntl.c490 void send_sigio(struct fown_struct *fown, int fd, int band) in send_sigio() argument
511 send_sigio_to_task(p, fown, fd, band, group); in send_sigio()
698 static void kill_fasync_rcu(struct fasync_struct *fa, int sig, int band) in kill_fasync_rcu() argument
716 send_sigio(fown, fa->fa_fd, band); in kill_fasync_rcu()
723 void kill_fasync(struct fasync_struct **fp, int sig, int band) in kill_fasync() argument
730 kill_fasync_rcu(rcu_dereference(*fp), sig, band); in kill_fasync()
/linux-4.4.14/drivers/media/usb/msi2500/
Dmsi2500.c1085 struct v4l2_frequency_band *band) in msi2500_enum_freq_bands() argument
1091 band->tuner, band->type, band->index); in msi2500_enum_freq_bands()
1093 if (band->tuner == 0) { in msi2500_enum_freq_bands()
1094 if (band->index >= ARRAY_SIZE(bands)) { in msi2500_enum_freq_bands()
1097 *band = bands[band->index]; in msi2500_enum_freq_bands()
1100 } else if (band->tuner == 1) { in msi2500_enum_freq_bands()
1102 enum_freq_bands, band); in msi2500_enum_freq_bands()
/linux-4.4.14/Documentation/input/
Dinteractive.fig37 4 1 0 50 0 0 12 0.0000 4 135 810 2775 7725 Dead band\001
/linux-4.4.14/drivers/media/usb/airspy/
Dairspy.c799 struct v4l2_frequency_band *band) in airspy_enum_freq_bands() argument
803 if (band->tuner == 0) { in airspy_enum_freq_bands()
804 if (band->index >= ARRAY_SIZE(bands)) { in airspy_enum_freq_bands()
807 *band = bands[band->index]; in airspy_enum_freq_bands()
810 } else if (band->tuner == 1) { in airspy_enum_freq_bands()
811 if (band->index >= ARRAY_SIZE(bands_rf)) { in airspy_enum_freq_bands()
814 *band = bands_rf[band->index]; in airspy_enum_freq_bands()
/linux-4.4.14/drivers/net/wireless/libertas_tf/
Dmain.c573 stats.band = IEEE80211_BAND_2GHZ; in lbtf_rx()
641 priv->band.n_bitrates = ARRAY_SIZE(lbtf_rates); in lbtf_add_card()
642 priv->band.bitrates = priv->rates; in lbtf_add_card()
643 priv->band.n_channels = ARRAY_SIZE(lbtf_channels); in lbtf_add_card()
644 priv->band.channels = priv->channels; in lbtf_add_card()
645 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band; in lbtf_add_card()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_hal.h223 void wlc_phy_chanspec_band_validch(struct brcms_phy_pub *ppi, uint band,
225 u16 wlc_phy_chanspec_band_firstch(struct brcms_phy_pub *ppi, uint band);
231 void wlc_phy_txpower_boardlimit_band(struct brcms_phy_pub *ppi, uint band,
Dphy_cmn.c1246 wlc_phy_chanspec_band_validch(struct brcms_phy_pub *ppi, uint band, in wlc_phy_chanspec_band_validch() argument
1262 if ((band == BRCM_BAND_2G && channel <= CH_MAX_2G_CHANNEL) || in wlc_phy_chanspec_band_validch()
1263 (band == BRCM_BAND_5G && channel > CH_MAX_2G_CHANNEL)) in wlc_phy_chanspec_band_validch()
1268 u16 wlc_phy_chanspec_band_firstch(struct brcms_phy_pub *ppi, uint band) in wlc_phy_chanspec_band_firstch() argument
1293 if (band == BRCM_BAND_2G) in wlc_phy_chanspec_band_firstch()
1304 if ((band == BRCM_BAND_2G && channel <= CH_MAX_2G_CHANNEL) || in wlc_phy_chanspec_band_firstch()
1305 (band == BRCM_BAND_5G && channel > CH_MAX_2G_CHANNEL)) in wlc_phy_chanspec_band_firstch()
1524 static void wlc_phy_upd_env_txpwr_rate_limits(struct brcms_phy *pi, u32 band) in wlc_phy_upd_env_txpwr_rate_limits() argument
1538 wlc_user_txpwr_antport_to_rfport(struct brcms_phy *pi, uint chan, u32 band, in wlc_user_txpwr_antport_to_rfport() argument
1555 u32 band = CHSPEC2BAND(pi->radio_chanspec); in wlc_phy_txpower_recalc_target() local
[all …]
/linux-4.4.14/drivers/net/wireless/ti/wl1251/
Drx.c56 status->band = IEEE80211_BAND_2GHZ; in wl1251_rx_status()
82 status->band); in wl1251_rx_status()
Drx.h113 u8 band; member
/linux-4.4.14/Documentation/devicetree/bindings/thermal/
Dti_soc_thermal.txt4 and a temperature sensor feature that are gathered in the band
5 gap voltage and temperature sensor (VBGAPTS) module. The band
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dphy.c214 u8 band, path, txnum, section; in _rtl8723be_phy_init_tx_power_by_rate() local
216 for (band = BAND_ON_2_4G; band <= BAND_ON_5G; ++band) in _rtl8723be_phy_init_tx_power_by_rate()
223 [band][path][txnum][section] = 0; in _rtl8723be_phy_init_tx_power_by_rate()
248 u8 band, in _rtl8723be_phy_set_txpower_by_rate_base() argument
262 if (band == BAND_ON_2_4G) { in _rtl8723be_phy_set_txpower_by_rate_base()
285 band); in _rtl8723be_phy_set_txpower_by_rate_base()
291 u8 band, u8 path, u8 txnum, in _rtl8723be_phy_get_txpower_by_rate_base() argument
304 if (band == BAND_ON_2_4G) { in _rtl8723be_phy_get_txpower_by_rate_base()
327 band); in _rtl8723be_phy_get_txpower_by_rate_base()
696 u32 band, u32 rfpath, in _rtl8723be_store_tx_power_by_rate() argument
[all …]
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/
Dmac.c114 int band = dev->chandef.chan->band; in mt76_mac_tx_rate_val() local
117 r = &dev->hw->wiphy->bands[band]->bitrates[rate->idx]; in mt76_mac_tx_rate_val()
474 status->band = dev->chandef.chan->band; in mt76_mac_process_rx()
/linux-4.4.14/include/net/
Dmac80211.h849 u8 band; member
1122 u8 band; member
2171 return &hw->wiphy->bands[c->band]->bitrates[c->control.rates[0].idx]; in ieee80211_get_tx_rate()
2180 return &hw->wiphy->bands[c->band]->bitrates[c->control.rts_cts_rate_idx]; in ieee80211_get_rts_cts_rate()
2189 return &hw->wiphy->bands[c->band]->bitrates[c->control.rates[idx + 1].idx]; in ieee80211_get_alt_retry_rate()
4277 enum ieee80211_band band,
5185 enum ieee80211_band band, in rate_supported() argument
5188 return (sta == NULL || sta->supp_rates[band] & BIT(index)); in rate_supported()
5221 if (rate_supported(sta, sband->band, i)) in rate_lowest_index()
5238 if (rate_supported(sta, sband->band, i)) in rate_usable_index_exists()
[all …]
/linux-4.4.14/drivers/media/usb/hackrf/
Dhackrf.c1188 struct v4l2_frequency_band *band) in hackrf_enum_freq_bands() argument
1194 band->tuner, band->type, band->index); in hackrf_enum_freq_bands()
1196 if (band->tuner == 0) { in hackrf_enum_freq_bands()
1197 if (band->index >= ARRAY_SIZE(bands_adc_dac)) { in hackrf_enum_freq_bands()
1200 *band = bands_adc_dac[band->index]; in hackrf_enum_freq_bands()
1203 } else if (band->tuner == 1) { in hackrf_enum_freq_bands()
1204 if (band->index >= ARRAY_SIZE(bands_rx_tx)) { in hackrf_enum_freq_bands()
1207 *band = bands_rx_tx[band->index]; in hackrf_enum_freq_bands()
/linux-4.4.14/drivers/staging/wilc1000/
DKconfig65 bool "Use out of band interrupt"
69 This option enables out-of-band interrupt support for the WILC1000
/linux-4.4.14/drivers/net/wireless/rt2x00/
Drt2800lib.c3548 enum ieee80211_band band) in rt2800_get_txpower_bw_comp() argument
3564 if (band == IEEE80211_BAND_2GHZ) { in rt2800_get_txpower_bw_comp()
3613 enum ieee80211_band band, int power_level, in rt2800_compensate_txpower() argument
3641 if (band == IEEE80211_BAND_2GHZ) in rt2800_compensate_txpower()
3688 enum ieee80211_band band = chan->band; in rt2800_config_txpower_rt3593() local
3699 if (band == IEEE80211_BAND_5GHZ) in rt2800_config_txpower_rt3593()
3713 txpower = rt2800_compensate_txpower(rt2x00dev, 1, band, power_level, in rt2800_config_txpower_rt3593()
3724 txpower = rt2800_compensate_txpower(rt2x00dev, 1, band, power_level, in rt2800_config_txpower_rt3593()
3735 txpower = rt2800_compensate_txpower(rt2x00dev, 0, band, power_level, in rt2800_config_txpower_rt3593()
3746 txpower = rt2800_compensate_txpower(rt2x00dev, 0, band, power_level, in rt2800_config_txpower_rt3593()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/iio/frequency/
Dadf4350.txt46 - adi,band-select-clock-mode-high-enable: Enables faster band
/linux-4.4.14/Documentation/video4linux/
Dsi470x.txt30 - Si4707: Dedicated weather band radio receiver with SAME decoder, RDS Support
98 (0444) are not updated, even if space, band and de are changed using private
106 When timed out or band limit is reached, hw_freq_seek returns -EAGAIN.
/linux-4.4.14/drivers/net/wireless/brcm80211/include/
Dbrcmu_d11.h131 u8 band; member
/linux-4.4.14/drivers/devfreq/
Dtegra-devfreq.c222 u32 band = avg_band_freq * ACTMON_SAMPLING_PERIOD; in tegra_devfreq_update_avg_wmark() local
224 device_writel(dev, avg + band, ACTMON_DEV_AVG_UPPER_WMARK); in tegra_devfreq_update_avg_wmark()
226 avg = max(dev->avg_count, band); in tegra_devfreq_update_avg_wmark()
227 device_writel(dev, avg - band, ACTMON_DEV_AVG_LOWER_WMARK); in tegra_devfreq_update_avg_wmark()
/linux-4.4.14/drivers/net/wireless/zd1211rw/
Dzd_mac.c1071 stats.band = IEEE80211_BAND_2GHZ; in zd_mac_rx()
1077 for (i = 0; i < mac->band.n_bitrates; i++) in zd_mac_rx()
1078 if (rate == mac->band.bitrates[i].hw_value) in zd_mac_rx()
1393 mac->band.n_bitrates = ARRAY_SIZE(zd_rates); in zd_mac_alloc_hw()
1394 mac->band.bitrates = mac->rates; in zd_mac_alloc_hw()
1395 mac->band.n_channels = ARRAY_SIZE(zd_channels); in zd_mac_alloc_hw()
1396 mac->band.channels = mac->channels; in zd_mac_alloc_hw()
1398 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = &mac->band; in zd_mac_alloc_hw()
/linux-4.4.14/drivers/net/wireless/realtek/rtl818x/rtl8187/
Ddev.c305 info->band, in rtl8187_tx()
389 rx_status.band = dev->conf.chandef.chan->band; in rtl8187_rx_cb()
1473 priv->band.band = IEEE80211_BAND_2GHZ; in rtl8187_probe()
1474 priv->band.channels = priv->channels; in rtl8187_probe()
1475 priv->band.n_channels = ARRAY_SIZE(rtl818x_channels); in rtl8187_probe()
1476 priv->band.bitrates = priv->rates; in rtl8187_probe()
1477 priv->band.n_bitrates = ARRAY_SIZE(rtl818x_rates); in rtl8187_probe()
1478 dev->wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band; in rtl8187_probe()
/linux-4.4.14/drivers/net/wireless/libertas/
Dcfg.c26 .band = IEEE80211_BAND_2GHZ, \
1268 enum ieee80211_band band; in _new_connect_scan_req() local
1283 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in _new_connect_scan_req()
1286 if (!wiphy->bands[band]) in _new_connect_scan_req()
1289 for (j = 0; j < wiphy->bands[band]->n_channels; j++) { in _new_connect_scan_req()
1291 if (wiphy->bands[band]->channels[j].flags & in _new_connect_scan_req()
1295 creq->channels[i] = &wiphy->bands[band]->channels[j]; in _new_connect_scan_req()
Dcmd.c746 enum ieee80211_band band; in lbs_set_11d_domain_info() local
779 for (band = 0; in lbs_set_11d_domain_info()
780 (band < IEEE80211_NUM_BANDS) && (num_triplet < MAX_11D_TRIPLETS); in lbs_set_11d_domain_info()
781 band++) { in lbs_set_11d_domain_info()
783 if (!bands[band]) in lbs_set_11d_domain_info()
787 (i < bands[band]->n_channels) && (num_triplet < MAX_11D_TRIPLETS); in lbs_set_11d_domain_info()
789 ch = &bands[band]->channels[i]; in lbs_set_11d_domain_info()
/linux-4.4.14/drivers/net/wireless/realtek/rtl818x/rtl8180/
Ddev.c314 rx_status.band = dev->conf.chandef.chan->band; in rtl8180_handle_rx()
1798 priv->band.band = IEEE80211_BAND_2GHZ; in rtl8180_probe()
1799 priv->band.channels = priv->channels; in rtl8180_probe()
1800 priv->band.n_channels = ARRAY_SIZE(rtl818x_channels); in rtl8180_probe()
1801 priv->band.bitrates = priv->rates; in rtl8180_probe()
1802 priv->band.n_bitrates = 4; in rtl8180_probe()
1803 dev->wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band; in rtl8180_probe()
1867 priv->band.n_bitrates = ARRAY_SIZE(rtl818x_rates); in rtl8180_probe()
Drtl8180.h120 struct ieee80211_supported_band band; member
/linux-4.4.14/Documentation/devicetree/bindings/ata/
Dqcom-sata.txt20 "rxoob" - RX out-of-band clock
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dtrx.c330 rx_status->band = hw->conf.chandef.chan->band; in rtl92cu_rx_query_desc()
399 rx_status->band = hw->conf.chandef.chan->band; in _rtl_rx_process()
/linux-4.4.14/drivers/net/wireless/ath/wcn36xx/
Dmain.c29 .band = IEEE80211_BAND_2GHZ, \
36 .band = IEEE80211_BAND_5GHZ, \
519 enum ieee80211_band band) in wcn36xx_update_allowed_rates() argument
524 u32 rates = sta->supp_rates[band]; in wcn36xx_update_allowed_rates()
532 if (band == IEEE80211_BAND_2GHZ) { in wcn36xx_update_allowed_rates()
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
DKconfig10 60 GHz band, covered by the IEEE802.11ad standard.
/linux-4.4.14/Documentation/filesystems/
Dinotify.txt38 fd returns all watch events and also any potential out-of-band data. If
55 - No way to get out of band data.
/linux-4.4.14/Documentation/hwmon/
Dlm7717 sensor incorporates a band-gap type temperature sensor,
/linux-4.4.14/drivers/gpu/drm/exynos/
Dexynos_drm_dsi.c613 int band; in exynos_dsi_set_pll() local
615 for (band = 0; band < ARRAY_SIZE(freq_bands); ++band) in exynos_dsi_set_pll()
616 if (fout < freq_bands[band]) in exynos_dsi_set_pll()
619 dev_dbg(dsi->dev, "band %d\n", band); in exynos_dsi_set_pll()
621 reg |= DSIM_FREQ_BAND(band); in exynos_dsi_set_pll()
/linux-4.4.14/Documentation/devicetree/bindings/display/
Dssd1307fb.txt14 - solomon,page-offset: Offset of pages (band of 8 pixels) that the screen is

12