Home
last modified time | relevance | path

Searched refs:band (Results 1 – 25 of 45) sorted by relevance

12

/net/sched/
Dsch_multiq.c33 u32 band; in multiq_classify() local
51 band = skb_get_queue_mapping(skb); in multiq_classify()
53 if (band >= q->bands) in multiq_classify()
56 return q->queues[band]; in multiq_classify()
92 int band; in multiq_dequeue() local
94 for (band = 0; band < q->bands; band++) { in multiq_dequeue()
124 int band; in multiq_peek() local
126 for (band = 0; band < q->bands; band++) { in multiq_peek()
150 u16 band; in multiq_reset() local
153 for (band = 0; band < q->bands; band++) in multiq_reset()
[all …]
Dsch_prio.c34 u32 band = skb->priority; in prio_classify() local
55 if (TC_H_MAJ(band)) in prio_classify()
56 band = 0; in prio_classify()
57 return q->queues[q->prio2band[band & TC_PRIO_MAX]]; in prio_classify()
59 band = res.classid; in prio_classify()
61 band = TC_H_MIN(band) - 1; in prio_classify()
62 if (band >= q->bands) in prio_classify()
65 return q->queues[band]; in prio_classify()
293 unsigned long band = arg - 1; in prio_graft() local
304 *old = qdisc_replace(sch, new, &q->queues[band]); in prio_graft()
[all …]
Dsch_generic.c642 int band) in band2list() argument
644 return &priv->q[band]; in band2list()
650 int band = prio2band[skb->priority & TC_PRIO_MAX]; in pfifo_fast_enqueue() local
652 struct skb_array *q = band2list(priv, band); in pfifo_fast_enqueue()
674 int band; in pfifo_fast_dequeue() local
677 for (band = 0; band < PFIFO_FAST_BANDS && !skb; band++) { in pfifo_fast_dequeue()
678 struct skb_array *q = band2list(priv, band); in pfifo_fast_dequeue()
715 int band; in pfifo_fast_peek() local
717 for (band = 0; band < PFIFO_FAST_BANDS && !skb; band++) { in pfifo_fast_peek()
718 struct skb_array *q = band2list(priv, band); in pfifo_fast_peek()
[all …]
/net/openvswitch/
Dmeter.c112 struct dp_meter_band *band; in ovs_meter_cmd_reply_stats() local
131 band = meter->bands; in ovs_meter_cmd_reply_stats()
133 for (i = 0; i < meter->n_bands; ++i, ++band) { in ovs_meter_cmd_reply_stats()
139 &band->stats)) in ovs_meter_cmd_reply_stats()
194 struct dp_meter_band *band; in dp_meter_create() local
222 band = meter->bands; in dp_meter_create()
240 band->type = nla_get_u32(attr[OVS_BAND_ATTR_TYPE]); in dp_meter_create()
241 band->rate = nla_get_u32(attr[OVS_BAND_ATTR_RATE]); in dp_meter_create()
242 if (band->rate == 0) { in dp_meter_create()
247 band->burst_size = nla_get_u32(attr[OVS_BAND_ATTR_BURST]); in dp_meter_create()
[all …]
/net/mac80211/
Drate.c52 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init()
264 enum nl80211_band band; in ieee80211_check_rate_mask() local
272 band = sdata->vif.bss_conf.chandef.chan->band; in ieee80211_check_rate_mask()
273 user_mask = sdata->rc_rateidx_mask[band]; in ieee80211_check_rate_mask()
274 sband = local->hw.wiphy->bands[band]; in ieee80211_check_rate_mask()
281 basic_rates, user_mask, band); in ieee80211_check_rate_mask()
282 sdata->rc_rateidx_mask[band] = (1 << sband->n_bitrates) - 1; in ieee80211_check_rate_mask()
331 if ((sband->band == NL80211_BAND_2GHZ) && in __rate_control_send_low()
343 if (!rate_supported(sta, sband->band, i)) in __rate_control_send_low()
352 sta ? sta->supp_rates[sband->band] : -1, in __rate_control_send_low()
[all …]
Dmain.c866 enum nl80211_band band; in ieee80211_register_hw() local
949 for (band = 0; band < NUM_NL80211_BANDS; band++) { in ieee80211_register_hw()
952 sband = local->hw.wiphy->bands[band]; in ieee80211_register_hw()
1034 for (band = 0; band < NUM_NL80211_BANDS; band++) { in ieee80211_register_hw()
1035 if (!local->hw.wiphy->bands[band]) in ieee80211_register_hw()
1037 local->int_scan_req->rates[band] = (u32) -1; in ieee80211_register_hw()
1227 for (band = 0; band < NUM_NL80211_BANDS; band++) { in ieee80211_register_hw()
1233 sband = local->hw.wiphy->bands[band]; in ieee80211_register_hw()
1250 band); in ieee80211_register_hw()
1255 local->hw.wiphy->bands[band] = sband; in ieee80211_register_hw()
[all …]
Dibss.c93 sband = local->hw.wiphy->bands[chandef->chan->band]; in ieee80211_ibss_build_presp()
129 if (sband->band == NL80211_BAND_2GHZ) { in ieee80211_ibss_build_presp()
351 sdata->vif.bss_conf.use_short_slot = chan->band == NL80211_BAND_5GHZ; in __ieee80211_sta_join_ibss()
355 if (chan->band == NL80211_BAND_2GHZ && have_higher_than_11mbit) in __ieee80211_sta_join_ibss()
444 sband = sdata->local->hw.wiphy->bands[cbss->channel->band]; in ieee80211_sta_join_ibss()
619 int band; in ieee80211_ibss_add_sta() local
646 band = chanctx_conf->def.chan->band; in ieee80211_ibss_add_sta()
657 sband = local->hw.wiphy->bands[band]; in ieee80211_ibss_add_sta()
658 sta->sta.supp_rates[band] = supp_rates | in ieee80211_ibss_add_sta()
814 ifibss->chandef.chan->band, in ieee80211_ibss_process_chanswitch()
[all …]
Docb.c48 int band; in ieee80211_ocb_rx_no_sta() local
67 band = chanctx_conf->def.chan->band; in ieee80211_ocb_rx_no_sta()
76 sband = local->hw.wiphy->bands[band]; in ieee80211_ocb_rx_no_sta()
77 sta->sta.supp_rates[band] = in ieee80211_ocb_rx_no_sta()
Dscan.c129 local->hw.wiphy->bands[rx_status->band]; in ieee80211_update_bss_from_elems()
340 bands_used |= BIT(req->channels[i]->band); in ieee80211_prep_hw_scan()
352 if (req->channels[i]->band != in ieee80211_prep_hw_scan()
358 bands_used |= BIT(req->channels[i]->band); in ieee80211_prep_hw_scan()
619 ieee80211_tx_skb_tid_band(sdata, skb, 7, channel->band, in ieee80211_send_scan_probe_req()
630 enum nl80211_band band = local->hw.conf.chandef.chan->band; in ieee80211_scan_state_send_probe() local
652 scan_req->rates[band], flags, in ieee80211_scan_state_send_probe()
696 if (bands_counted & BIT(req->channels[i]->band)) in __ieee80211_start_scan()
698 bands_counted |= BIT(req->channels[i]->band); in __ieee80211_start_scan()
1132 enum nl80211_band band; in ieee80211_request_ibss_scan() local
[all …]
Dtx.c80 sband = local->hw.wiphy->bands[info->band]; in ieee80211_duration()
153 switch (sband->band) { in ieee80211_duration()
190 dur = ieee80211_frame_duration(sband->band, 10, rate, erp, in ieee80211_duration()
199 dur += ieee80211_frame_duration(sband->band, next_frag_len, in ieee80211_duration()
682 sband = tx->local->hw.wiphy->bands[info->band]; in ieee80211_tx_h_rate_ctrl()
693 txrc.rate_idx_mask = tx->sdata->rc_rateidx_mask[info->band]; in ieee80211_tx_h_rate_ctrl()
695 if (tx->sdata->rc_has_mcs_mask[info->band]) in ieee80211_tx_h_rate_ctrl()
697 tx->sdata->rc_rateidx_mcs_mask[info->band]; in ieee80211_tx_h_rate_ctrl()
742 info->band ? 5 : 2)) in ieee80211_tx_h_rate_ctrl()
1533 enum nl80211_band band; in ieee80211_txq_setup_flows() local
[all …]
Dmesh_plink.c106 if (sband->band == NL80211_BAND_5GHZ) { in mesh_set_short_slot_time()
110 } else if (sband->band != NL80211_BAND_2GHZ) { in mesh_set_short_slot_time()
128 if (erp_rates & sta->sta.supp_rates[sband->band]) in mesh_set_short_slot_time()
259 enum nl80211_band band; in mesh_plink_frame_tx() local
266 band = sband->band; in mesh_plink_frame_tx()
275 if (ieee80211_add_srates_ie(sdata, skb, true, band) || in mesh_plink_frame_tx()
276 ieee80211_add_ext_srates_ie(sdata, skb, true, band) || in mesh_plink_frame_tx()
422 rates = ieee80211_sta_get_rates(sdata, elems, sband->band, in mesh_sta_info_init()
434 if (sta->sta.supp_rates[sband->band] != rates) in mesh_sta_info_init()
436 sta->sta.supp_rates[sband->band] = rates; in mesh_sta_info_init()
Drc80211_minstrel.c419 calc_rate_durations(enum nl80211_band band, in calc_rate_durations() argument
427 d->perfect_tx_time = ieee80211_frame_duration(band, 1200, in calc_rate_durations()
430 d->ack_time = ieee80211_frame_duration(band, 10, in calc_rate_durations()
472 mi->sp_ack_dur = ieee80211_frame_duration(sband->band, 10, in minstrel_rate_init()
489 if (!rate_supported(sta, sband->band, i)) in minstrel_rate_init()
502 calc_rate_durations(sband->band, mr, &sband->bitrates[i], in minstrel_rate_init()
Dutil.c60 int ieee80211_frame_duration(enum nl80211_band band, size_t len, in ieee80211_frame_duration() argument
78 if (band == NL80211_BAND_5GHZ || erp) { in ieee80211_frame_duration()
130 enum nl80211_band band, in ieee80211_generic_frame_duration() argument
148 dur = ieee80211_frame_duration(band, frame_len, rate->bitrate, erp, in ieee80211_generic_frame_duration()
167 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_rts_duration()
185 dur = ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration()
188 dur += ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_rts_duration()
191 dur += ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration()
211 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_ctstoself_duration()
228 dur = ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_ctstoself_duration()
[all …]
Dieee80211_i.h1443 enum nl80211_band band; in ieee80211_get_sband() local
1453 band = chanctx_conf->def.chan->band; in ieee80211_get_sband()
1456 return local->hw.wiphy->bands[band]; in ieee80211_get_sband()
1872 enum nl80211_band band);
1875 enum nl80211_band band);
1944 int ieee80211_frame_duration(enum nl80211_band band, size_t len,
1958 enum nl80211_band band, u32 txdata_flags);
1963 enum nl80211_band band, u32 txdata_flags) in ieee80211_tx_skb_tid_band() argument
1966 __ieee80211_tx_skb_tid_band(sdata, skb, tid, band, txdata_flags); in ieee80211_tx_skb_tid_band()
1984 chanctx_conf->def.chan->band, 0); in ieee80211_tx_skb_tid()
[all …]
Dmesh.c90 ieee80211_sta_get_rates(sdata, ie, sband->band, in mesh_matches_local()
452 sband = local->hw.wiphy->bands[channel->band]; in mesh_add_ht_oper_ie()
516 sband = local->hw.wiphy->bands[channel->band]; in mesh_add_vht_oper_ie()
754 enum nl80211_band band; in ieee80211_mesh_build_beacon() local
763 band = chanctx_conf->def.chan->band; in ieee80211_mesh_build_beacon()
887 if (ieee80211_add_srates_ie(sdata, skb, true, band) || in ieee80211_mesh_build_beacon()
898 if (ieee80211_add_ext_srates_ie(sdata, skb, true, band) || in ieee80211_mesh_build_beacon()
1093 err = ieee80211_parse_ch_switch_ie(sdata, elems, sband->band, in ieee80211_mesh_process_chnswitch()
1244 enum nl80211_band band = rx_status->band; in ieee80211_mesh_rx_bcn_presp() local
1265 freq = ieee80211_channel_to_frequency(elems.ds_params[0], band); in ieee80211_mesh_rx_bcn_presp()
/net/wireless/
Dof.c45 enum nl80211_band band; in wiphy_freq_limits_apply() local
51 for (band = 0; band < NUM_NL80211_BANDS; band++) { in wiphy_freq_limits_apply()
52 struct ieee80211_supported_band *sband = wiphy->bands[band]; in wiphy_freq_limits_apply()
Dmesh.c132 enum nl80211_band band; in __cfg80211_join_mesh() local
134 for (band = 0; band < NUM_NL80211_BANDS; band++) { in __cfg80211_join_mesh()
139 sband = rdev->wiphy.bands[band]; in __cfg80211_join_mesh()
172 rdev->wiphy.bands[setup->chandef.chan->band]; in __cfg80211_join_mesh()
174 if (setup->chandef.chan->band == NL80211_BAND_2GHZ) { in __cfg80211_join_mesh()
Ddebugfs.c69 enum nl80211_band band; in ht40allow_map_read() local
79 for (band = 0; band < NUM_NL80211_BANDS; band++) { in ht40allow_map_read()
80 sband = wiphy->bands[band]; in ht40allow_map_read()
Dutil.c57 if (sband->band == NL80211_BAND_2GHZ) { in ieee80211_mandatory_rates()
75 u32 ieee80211_channel_to_freq_khz(int chan, enum nl80211_band band) in ieee80211_channel_to_freq_khz() argument
81 switch (band) { in ieee80211_channel_to_freq_khz()
141 enum nl80211_band band; in ieee80211_get_channel_khz() local
145 for (band = 0; band < NUM_NL80211_BANDS; band++) { in ieee80211_get_channel_khz()
146 sband = wiphy->bands[band]; in ieee80211_get_channel_khz()
167 switch (sband->band) { in set_mandatory_flags_band()
224 enum nl80211_band band; in ieee80211_set_bitrate_flags() local
226 for (band = 0; band < NUM_NL80211_BANDS; band++) in ieee80211_set_bitrate_flags()
227 if (wiphy->bands[band]) in ieee80211_set_bitrate_flags()
[all …]
Dibss.c108 enum nl80211_band band; in __cfg80211_join_ibss() local
112 band = params->chandef.chan->band; in __cfg80211_join_ibss()
113 if (band == NL80211_BAND_5GHZ || in __cfg80211_join_ibss()
114 band == NL80211_BAND_6GHZ) in __cfg80211_join_ibss()
119 sband = rdev->wiphy.bands[band]; in __cfg80211_join_ibss()
241 enum nl80211_band band; in cfg80211_ibss_wext_join() local
253 for (band = 0; band < NUM_NL80211_BANDS; band++) { in cfg80211_ibss_wext_join()
257 sband = rdev->wiphy.bands[band]; in cfg80211_ibss_wext_join()
Dreg.c1941 sband = wiphy->bands[reg_beacon->chan.band]; in handle_reg_beacon()
1979 if (!wiphy->bands[reg_beacon->chan.band]) in wiphy_update_new_beacon()
1982 sband = wiphy->bands[reg_beacon->chan.band]; in wiphy_update_new_beacon()
1998 if (!wiphy->bands[reg_beacon->chan.band]) in wiphy_update_beacon_reg()
2000 sband = wiphy->bands[reg_beacon->chan.band]; in wiphy_update_beacon_reg()
2033 struct ieee80211_supported_band *sband = wiphy->bands[channel->band]; in reg_process_ht_flags_channel()
2100 enum nl80211_band band; in reg_process_ht_flags() local
2105 for (band = 0; band < NUM_NL80211_BANDS; band++) in reg_process_ht_flags()
2106 reg_process_ht_flags_band(wiphy, wiphy->bands[band]); in reg_process_ht_flags()
2227 enum nl80211_band band; in wiphy_update_regulatory() local
[all …]
Dchan.c896 ht_cap = &wiphy->bands[chandef->chan->band]->ht_cap; in cfg80211_chandef_usable()
897 vht_cap = &wiphy->bands[chandef->chan->band]->vht_cap; in cfg80211_chandef_usable()
898 edmg_cap = &wiphy->bands[chandef->chan->band]->edmg_cap; in cfg80211_chandef_usable()
920 chandef->chan->band != NL80211_BAND_6GHZ) in cfg80211_chandef_usable()
929 if (chandef->chan->band == NL80211_BAND_6GHZ) in cfg80211_chandef_usable()
945 if (chandef->chan->band != NL80211_BAND_6GHZ && in cfg80211_chandef_usable()
952 if (chandef->chan->band == NL80211_BAND_6GHZ) in cfg80211_chandef_usable()
960 if (chandef->chan->band == NL80211_BAND_6GHZ) in cfg80211_chandef_usable()
1077 if (chan->band != NL80211_BAND_5GHZ && in cfg80211_ir_permissive_chan()
1078 chan->band != NL80211_BAND_6GHZ) in cfg80211_ir_permissive_chan()
Dwext-compat.c113 enum nl80211_band band; in cfg80211_wext_giwrange() local
185 for (band = 0; band < NUM_NL80211_BANDS; band ++) { in cfg80211_wext_giwrange()
188 sband = wdev->wiphy->bands[band]; in cfg80211_wext_giwrange()
235 enum nl80211_band band = NL80211_BAND_2GHZ; in cfg80211_wext_freq() local
239 band = NL80211_BAND_5GHZ; in cfg80211_wext_freq()
240 return ieee80211_channel_to_frequency(freq->m, band); in cfg80211_wext_freq()
1207 int band, ridx; in cfg80211_wext_siwrate() local
1225 for (band = 0; band < NUM_NL80211_BANDS; band++) { in cfg80211_wext_siwrate()
1226 sband = wdev->wiphy->bands[band]; in cfg80211_wext_siwrate()
1232 mask.control[band].legacy = 1 << ridx; in cfg80211_wext_siwrate()
[all …]
Dcore.c650 enum nl80211_band band; in wiphy_register() local
789 for (band = 0; band < NUM_NL80211_BANDS; band++) { in wiphy_register()
793 sband = wiphy->bands[band]; in wiphy_register()
797 sband->band = band; in wiphy_register()
804 if (WARN_ON(band != NL80211_BAND_60GHZ && in wiphy_register()
808 if (WARN_ON(band == NL80211_BAND_6GHZ && in wiphy_register()
819 band == NL80211_BAND_2GHZ && in wiphy_register()
839 sband->channels[i].band = band; in wiphy_register()
865 if (WARN_ON(!have_he && band == NL80211_BAND_6GHZ)) in wiphy_register()
Dscan.c911 enum nl80211_band band, in cfg80211_bss_type_match() argument
920 if (band == NL80211_BAND_60GHZ) { in cfg80211_bss_type_match()
976 bss->pub.channel->band, bss_type)) in cfg80211_get_bss()
1385 freq = ieee80211_channel_to_freq_khz(channel_number, channel->band); in cfg80211_get_bss_channel()
1388 if (channel->band == NL80211_BAND_2GHZ) { in cfg80211_get_bss_channel()
1502 if (channel->band == NL80211_BAND_60GHZ) { in cfg80211_inform_single_bss_data()
1932 if (channel->band == NL80211_BAND_60GHZ) { in cfg80211_inform_single_bss_frame_data()
2112 bss->pub.channel->band, in cfg80211_update_assoc_bss_entry()
2194 enum nl80211_band band; in cfg80211_wext_siwscan() local
2238 for (band = 0; band < NUM_NL80211_BANDS; band++) { in cfg80211_wext_siwscan()
[all …]

12