Home
last modified time | relevance | path

Searched refs:band (Results 1 – 25 of 43) 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.c616 int band) in band2list() argument
618 return &priv->q[band]; in band2list()
624 int band = prio2band[skb->priority & TC_PRIO_MAX]; in pfifo_fast_enqueue() local
626 struct skb_array *q = band2list(priv, band); in pfifo_fast_enqueue()
647 int band; in pfifo_fast_dequeue() local
649 for (band = 0; band < PFIFO_FAST_BANDS && !skb; band++) { in pfifo_fast_dequeue()
650 struct skb_array *q = band2list(priv, band); in pfifo_fast_dequeue()
670 int band; in pfifo_fast_peek() local
672 for (band = 0; band < PFIFO_FAST_BANDS && !skb; band++) { in pfifo_fast_peek()
673 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()
271 enum nl80211_band band; in ieee80211_check_rate_mask() local
279 band = sdata->vif.bss_conf.chandef.chan->band; in ieee80211_check_rate_mask()
280 user_mask = sdata->rc_rateidx_mask[band]; in ieee80211_check_rate_mask()
281 sband = local->hw.wiphy->bands[band]; in ieee80211_check_rate_mask()
288 basic_rates, user_mask, band); in ieee80211_check_rate_mask()
289 sdata->rc_rateidx_mask[band] = (1 << sband->n_bitrates) - 1; in ieee80211_check_rate_mask()
338 if ((sband->band == NL80211_BAND_2GHZ) && in __rate_control_send_low()
350 if (!rate_supported(sta, sband->band, i)) in __rate_control_send_low()
359 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()
1023 for (band = 0; band < NUM_NL80211_BANDS; band++) { in ieee80211_register_hw()
1024 if (!local->hw.wiphy->bands[band]) in ieee80211_register_hw()
1026 local->int_scan_req->rates[band] = (u32) -1; in ieee80211_register_hw()
1219 for (band = 0; band < NUM_NL80211_BANDS; band++) { in ieee80211_register_hw()
1225 sband = local->hw.wiphy->bands[band]; in ieee80211_register_hw()
1242 band); in ieee80211_register_hw()
1247 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()
615 int band; in ieee80211_ibss_add_sta() local
642 band = chanctx_conf->def.chan->band; in ieee80211_ibss_add_sta()
653 sband = local->hw.wiphy->bands[band]; in ieee80211_ibss_add_sta()
654 sta->sta.supp_rates[band] = supp_rates | in ieee80211_ibss_add_sta()
810 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()
327 bands_used |= BIT(req->channels[i]->band); in ieee80211_prep_hw_scan()
339 if (req->channels[i]->band != in ieee80211_prep_hw_scan()
345 bands_used |= BIT(req->channels[i]->band); in ieee80211_prep_hw_scan()
603 ieee80211_tx_skb_tid_band(sdata, skb, 7, channel->band, in ieee80211_send_scan_probe_req()
614 enum nl80211_band band = local->hw.conf.chandef.chan->band; in ieee80211_scan_state_send_probe() local
636 scan_req->rates[band], flags, in ieee80211_scan_state_send_probe()
680 if (bands_counted & BIT(req->channels[i]->band)) in __ieee80211_start_scan()
682 bands_counted |= BIT(req->channels[i]->band); in __ieee80211_start_scan()
1106 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()
675 sband = tx->local->hw.wiphy->bands[info->band]; in ieee80211_tx_h_rate_ctrl()
686 txrc.rate_idx_mask = tx->sdata->rc_rateidx_mask[info->band]; in ieee80211_tx_h_rate_ctrl()
688 if (tx->sdata->rc_has_mcs_mask[info->band]) in ieee80211_tx_h_rate_ctrl()
690 tx->sdata->rc_rateidx_mcs_mask[info->band]; in ieee80211_tx_h_rate_ctrl()
735 info->band ? 5 : 2)) in ieee80211_tx_h_rate_ctrl()
1526 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()
258 enum nl80211_band band; in mesh_plink_frame_tx() local
265 band = sband->band; in mesh_plink_frame_tx()
274 if (ieee80211_add_srates_ie(sdata, skb, true, band) || in mesh_plink_frame_tx()
275 ieee80211_add_ext_srates_ie(sdata, skb, true, band) || in mesh_plink_frame_tx()
420 rates = ieee80211_sta_get_rates(sdata, elems, sband->band, in mesh_sta_info_init()
432 if (sta->sta.supp_rates[sband->band] != rates) in mesh_sta_info_init()
434 sta->sta.supp_rates[sband->band] = rates; in mesh_sta_info_init()
Drc80211_minstrel.c436 calc_rate_durations(enum nl80211_band band, in calc_rate_durations() argument
444 d->perfect_tx_time = ieee80211_frame_duration(band, 1200, in calc_rate_durations()
447 d->ack_time = ieee80211_frame_duration(band, 10, in calc_rate_durations()
489 mi->sp_ack_dur = ieee80211_frame_duration(sband->band, 10, in minstrel_rate_init()
506 if (!rate_supported(sta, sband->band, i)) in minstrel_rate_init()
519 calc_rate_durations(sband->band, mr, &sband->bitrates[i], in minstrel_rate_init()
Dieee80211_i.h1430 enum nl80211_band band; in ieee80211_get_sband() local
1440 band = chanctx_conf->def.chan->band; in ieee80211_get_sband()
1443 return local->hw.wiphy->bands[band]; in ieee80211_get_sband()
1859 enum nl80211_band band);
1862 enum nl80211_band band);
1931 int ieee80211_frame_duration(enum nl80211_band band, size_t len,
1945 enum nl80211_band band, u32 txdata_flags);
1950 enum nl80211_band band, u32 txdata_flags) in ieee80211_tx_skb_tid_band() argument
1953 __ieee80211_tx_skb_tid_band(sdata, skb, tid, band, txdata_flags); in ieee80211_tx_skb_tid_band()
1971 chanctx_conf->def.chan->band, 0); in ieee80211_tx_skb_tid()
[all …]
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 …]
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()
734 enum nl80211_band band; in ieee80211_mesh_build_beacon() local
743 band = chanctx_conf->def.chan->band; in ieee80211_mesh_build_beacon()
866 if (ieee80211_add_srates_ie(sdata, skb, true, band) || in ieee80211_mesh_build_beacon()
877 if (ieee80211_add_ext_srates_ie(sdata, skb, true, band) || in ieee80211_mesh_build_beacon()
1071 err = ieee80211_parse_ch_switch_ie(sdata, elems, sband->band, in ieee80211_mesh_process_chnswitch()
1222 enum nl80211_band band = rx_status->band; in ieee80211_mesh_rx_bcn_presp() local
1243 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
78 for (band = 0; band < NUM_NL80211_BANDS; band++) { in ht40allow_map_read()
79 sband = wiphy->bands[band]; in ht40allow_map_read()
Dutil.c57 if (sband->band == NL80211_BAND_2GHZ) { in ieee80211_mandatory_rates()
75 int ieee80211_channel_to_frequency(int chan, enum nl80211_band band) in ieee80211_channel_to_frequency() argument
81 switch (band) { in ieee80211_channel_to_frequency()
133 enum nl80211_band band; in ieee80211_get_channel() local
137 for (band = 0; band < NUM_NL80211_BANDS; band++) { in ieee80211_get_channel()
138 sband = wiphy->bands[band]; in ieee80211_get_channel()
157 switch (sband->band) { in set_mandatory_flags_band()
214 enum nl80211_band band; in ieee80211_set_bitrate_flags() local
216 for (band = 0; band < NUM_NL80211_BANDS; band++) in ieee80211_set_bitrate_flags()
217 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.c1934 sband = wiphy->bands[reg_beacon->chan.band]; in handle_reg_beacon()
1972 if (!wiphy->bands[reg_beacon->chan.band]) in wiphy_update_new_beacon()
1975 sband = wiphy->bands[reg_beacon->chan.band]; in wiphy_update_new_beacon()
1991 if (!wiphy->bands[reg_beacon->chan.band]) in wiphy_update_beacon_reg()
1993 sband = wiphy->bands[reg_beacon->chan.band]; in wiphy_update_beacon_reg()
2026 struct ieee80211_supported_band *sband = wiphy->bands[channel->band]; in reg_process_ht_flags_channel()
2093 enum nl80211_band band; in reg_process_ht_flags() local
2098 for (band = 0; band < NUM_NL80211_BANDS; band++) in reg_process_ht_flags()
2099 reg_process_ht_flags_band(wiphy, wiphy->bands[band]); in reg_process_ht_flags()
2220 enum nl80211_band band; in wiphy_update_regulatory() local
[all …]
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()
792 sband = wiphy->bands[band]; in wiphy_register()
796 sband->band = band; in wiphy_register()
803 if (WARN_ON(band != NL80211_BAND_60GHZ && in wiphy_register()
813 band == NL80211_BAND_2GHZ && in wiphy_register()
833 sband->channels[i].band = band; in wiphy_register()
Dsme.c88 enum nl80211_band band = wdev->conn->params.channel->band; in cfg80211_conn_scan() local
90 wdev->wiphy->bands[band]; in cfg80211_conn_scan()
97 request->rates[band] = (1 << sband->n_bitrates) - 1; in cfg80211_conn_scan()
100 enum nl80211_band band; in cfg80211_conn_scan() local
104 for (band = 0; band < NUM_NL80211_BANDS; band++) { in cfg80211_conn_scan()
105 bands = wdev->wiphy->bands[band]; in cfg80211_conn_scan()
114 request->rates[band] = (1 << bands->n_bitrates) - 1; in cfg80211_conn_scan()
782 regulatory_hint_country_ie(wdev->wiphy, cr->bss->channel->band, in __cfg80211_connect_result()
Dscan.c867 enum nl80211_band band, in cfg80211_bss_type_match() argument
876 if (band == NL80211_BAND_60GHZ) { in cfg80211_bss_type_match()
932 bss->pub.channel->band, bss_type)) in cfg80211_get_bss()
1326 freq = ieee80211_channel_to_frequency(channel_number, channel->band); in cfg80211_get_bss_channel()
1329 if (channel->band == NL80211_BAND_2GHZ) { in cfg80211_get_bss_channel()
1443 if (channel->band == NL80211_BAND_60GHZ) { in cfg80211_inform_single_bss_data()
1862 if (channel->band == NL80211_BAND_60GHZ) { in cfg80211_inform_single_bss_frame_data()
2038 bss->pub.channel->band, in cfg80211_update_assoc_bss_entry()
2120 enum nl80211_band band; in cfg80211_wext_siwscan() local
2164 for (band = 0; band < NUM_NL80211_BANDS; band++) { in cfg80211_wext_siwscan()
[all …]

12