| /linux/net/sched/ |
| H A D | sch_prio.c | 22 int bands; member 62 if (band >= q->bands) in prio_classify() 102 for (prio = 0; prio < q->bands; prio++) { in prio_peek() 116 for (prio = 0; prio < q->bands; prio++) { in prio_dequeue() 136 for (prio = 0; prio < q->bands; prio++) in prio_reset() 153 opt.replace_params.bands = qopt->bands; in prio_offload() 172 for (prio = 0; prio < q->bands; prio++) in prio_destroy() 181 int oldbands = q->bands, i; in prio_tune() 188 if (qopt->bands > TCQ_PRIO_BANDS || qopt->bands < TCQ_MIN_PRIO_BANDS) in prio_tune() 192 if (qopt->priomap[i] >= qopt->bands) in prio_tune() [all …]
|
| H A D | sch_multiq.c | 20 u16 bands; member 53 if (band >= q->bands) in multiq_classify() 94 for (band = 0; band < q->bands; band++) { in multiq_dequeue() 97 if (q->curband >= q->bands) in multiq_dequeue() 126 for (band = 0; band < q->bands; band++) { in multiq_peek() 129 if (curband >= q->bands) in multiq_peek() 153 for (band = 0; band < q->bands; band++) in multiq_reset() 165 for (band = 0; band < q->bands; band++) in multiq_destroy() 186 qopt->bands = qdisc_dev(sch)->real_num_tx_queues; in multiq_tune() 188 removed = kmalloc(sizeof(*removed) * (q->max_bands - qopt->bands), in multiq_tune() [all …]
|
| /linux/drivers/media/radio/ |
| H A D | radio-tea5777.c | 138 static const struct v4l2_frequency_band bands[] = { variable 178 freq = clamp(tea->freq, bands[tea->band].rangelow, in radio_tea5777_set_freq() 179 bands[tea->band].rangehigh); in radio_tea5777_set_freq() 271 if (band->tuner != 0 || band->index >= ARRAY_SIZE(bands) || in vidioc_enum_freq_bands() 275 *band = bands[band->index]; in vidioc_enum_freq_bands() 302 v->rangelow = tea->has_am ? bands[BAND_AM].rangelow : in vidioc_g_tuner() 303 bands[BAND_FM].rangelow; in vidioc_g_tuner() 304 v->rangehigh = bands[BAND_FM].rangehigh; in vidioc_g_tuner() 386 for (i = 0; i < ARRAY_SIZE(bands); i++) { in vidioc_s_hw_freq_seek() 389 if (bands[i].rangelow >= rangelow && in vidioc_s_hw_freq_seek() [all …]
|
| H A D | radio-cadet.c | 94 static const struct v4l2_frequency_band bands[] = { variable 220 freq = clamp(freq, bands[dev->is_fm_band].rangelow, in cadet_setfreq() 221 bands[dev->is_fm_band].rangehigh); in cadet_setfreq() 372 v->capability = bands[0].capability | bands[1].capability; in vidioc_g_tuner() 373 v->rangelow = bands[0].rangelow; /* 520 kHz (start of AM band) */ in vidioc_g_tuner() 374 v->rangehigh = bands[1].rangehigh; /* 108.0 MHz (end of FM band) */ in vidioc_g_tuner() 404 if (band->index >= ARRAY_SIZE(bands)) in vidioc_enum_freq_bands() 406 *band = bands[band->index]; in vidioc_enum_freq_bands() 431 f->frequency >= (bands[0].rangehigh + bands[1].rangelow) / 2; in vidioc_s_frequency() 573 cadet_setfreq(dev, bands[1].rangelow); in cadet_probe() [all …]
|
| H A D | tea575x.c | 49 static const struct v4l2_frequency_band bands[] = { variable 170 return clamp(freq * 16, bands[tea->band].rangelow, in snd_tea575x_val_to_freq() 171 bands[tea->band].rangehigh); /* from kHz */ in snd_tea575x_val_to_freq() 257 *band = bands[index]; in snd_tea575x_enum_freq_bands() 287 v->rangelow = tea->has_am ? bands[BAND_AM].rangelow : band_fm.rangelow; in snd_tea575x_g_tuner() 350 tea->freq = clamp_t(u32, f->frequency, bands[tea->band].rangelow, in vidioc_s_frequency() 351 bands[tea->band].rangehigh); in vidioc_s_frequency() 371 for (i = 0; i < ARRAY_SIZE(bands); i++) { in snd_tea575x_s_hw_freq_seek() 376 if (bands[i].rangelow == a->rangelow && in snd_tea575x_s_hw_freq_seek() 377 bands[i].rangehigh == a->rangehigh) in snd_tea575x_s_hw_freq_seek() [all …]
|
| H A D | radio-raremono.c | 73 static const struct v4l2_frequency_band bands[] = { variable 196 if (band->index >= ARRAY_SIZE(bands)) in vidioc_enum_freq_bands() 199 *band = bands[band->index]; in vidioc_enum_freq_bands() 256 freq = clamp_t(u32, f->frequency, bands[band].rangelow, bands[band].rangehigh); in vidioc_s_frequency()
|
| /linux/drivers/media/radio/si470x/ |
| H A D | radio-si470x-common.c | 133 static const struct v4l2_frequency_band bands[] = { variable 268 *freq = chan * si470x_get_step(radio) + bands[radio->band].rangelow; in si470x_get_freq() 281 freq = clamp(freq, bands[radio->band].rangelow, in si470x_set_freq() 282 bands[radio->band].rangehigh); in si470x_set_freq() 284 chan = (freq - bands[radio->band].rangelow) / si470x_get_step(radio); in si470x_set_freq() 304 for (band = 0; band < ARRAY_SIZE(bands); band++) { in si470x_set_seek() 305 if (bands[band].rangelow == seek->rangelow && in si470x_set_seek() 306 bands[band].rangehigh == seek->rangehigh) in si470x_set_seek() 309 if (band == ARRAY_SIZE(bands)) in si470x_set_seek() 711 if (freq->frequency < bands[radio->band].rangelow || in si470x_vidioc_s_frequency() [all …]
|
| /linux/drivers/net/wireless/marvell/mwifiex/ |
| H A D | 11ac.c | 44 u8 bands, u16 mcs_map) in mwifiex_convert_mcsmap_to_maxrate() argument 51 if (bands & BAND_AAC) in mwifiex_convert_mcsmap_to_maxrate() 87 struct ieee80211_vht_cap *vht_cap, u8 bands) in mwifiex_fill_vht_cap_info() argument 91 if (bands & BAND_A) in mwifiex_fill_vht_cap_info() 100 struct ieee80211_vht_cap *vht_cap, u8 bands) in mwifiex_fill_vht_cap_tlv() argument 107 mwifiex_fill_vht_cap_info(priv, vht_cap, bands); in mwifiex_fill_vht_cap_tlv() 129 tmp = mwifiex_convert_mcsmap_to_maxrate(priv, bands, mcs_map_result); in mwifiex_fill_vht_cap_tlv() 151 tmp = mwifiex_convert_mcsmap_to_maxrate(priv, bands, mcs_map_result); in mwifiex_fill_vht_cap_tlv()
|
| /linux/drivers/net/ethernet/microchip/lan966x/ |
| H A D | lan966x_ets.c | 33 if (params->bands != NUM_PRIO_QUEUES) in lan966x_ets_add() 36 for (i = 0; i < params->bands; ++i) { in lan966x_ets_add() 51 for (i = 0; i < params->bands; ++i) { in lan966x_ets_add() 58 for (i = 0; i < params->bands; ++i) { in lan966x_ets_add()
|
| /linux/drivers/media/tuners/ |
| H A D | msi001.c | 14 static const struct v4l2_frequency_band bands[] = { variable 337 if (f->frequency < ((bands[0].rangehigh + bands[1].rangelow) / 2)) in msi001_s_frequency() 342 bands[band].rangelow, bands[band].rangehigh); in msi001_s_frequency() 356 if (band->index >= ARRAY_SIZE(bands)) in msi001_enum_freq_bands() 359 band->capability = bands[band->index].capability; in msi001_enum_freq_bands() 360 band->rangelow = bands[band->index].rangelow; in msi001_enum_freq_bands() 361 band->rangehigh = bands[band->index].rangehigh; in msi001_enum_freq_bands() 436 dev->f_tuner = bands[0].rangelow; in msi001_probe()
|
| H A D | fc2580.c | 361 static const struct v4l2_frequency_band bands[] = { variable 398 v->rangelow = bands[0].rangelow; in fc2580_g_tuner() 399 v->rangehigh = bands[0].rangehigh; in fc2580_g_tuner() 432 bands[0].rangelow, bands[0].rangehigh); in fc2580_s_frequency() 445 if (band->index >= ARRAY_SIZE(bands)) in fc2580_enum_freq_bands() 448 band->capability = bands[band->index].capability; in fc2580_enum_freq_bands() 449 band->rangelow = bands[band->index].rangelow; in fc2580_enum_freq_bands() 450 band->rangehigh = bands[band->index].rangehigh; in fc2580_enum_freq_bands() 571 dev->f_frequency = bands[0].rangelow; in fc2580_probe()
|
| H A D | e4000.c | 261 static const struct v4l2_frequency_band bands[] = { variable 305 v->rangelow = bands[0].rangelow; in e4000_g_tuner() 306 v->rangehigh = bands[1].rangehigh; in e4000_g_tuner() 339 bands[0].rangelow, bands[1].rangehigh); in e4000_s_frequency() 352 if (band->index >= ARRAY_SIZE(bands)) in e4000_enum_freq_bands() 355 band->capability = bands[band->index].capability; in e4000_enum_freq_bands() 356 band->rangelow = bands[band->index].rangelow; in e4000_enum_freq_bands() 357 band->rangehigh = bands[band->index].rangehigh; in e4000_enum_freq_bands() 689 dev->f_frequency = bands[0].rangelow; in e4000_probe()
|
| /linux/Documentation/driver-api/ |
| H A D | wbrf.rst | 9 the GPU memory clocks with local radio module frequency bands used by 10 certain Wifi bands. 47 * 1: record RF bands in use 48 * 2: retrieve RF bands in use 72 current active frequency bands considering some producers may broadcast 76 active frequency bands.
|
| /linux/drivers/net/wireless/ralink/rt2x00/ |
| H A D | rt2x00dev.c | 710 sband = &rt2x00dev->bands[rt2x00dev->curr_band]; in rt2x00lib_rxdone_read_signal() 1052 rt2x00dev->bands[NL80211_BAND_2GHZ].n_channels = 14; in rt2x00lib_probe_hw_modes() 1053 rt2x00dev->bands[NL80211_BAND_2GHZ].n_bitrates = num_rates; in rt2x00lib_probe_hw_modes() 1054 rt2x00dev->bands[NL80211_BAND_2GHZ].channels = channels; in rt2x00lib_probe_hw_modes() 1055 rt2x00dev->bands[NL80211_BAND_2GHZ].bitrates = rates; in rt2x00lib_probe_hw_modes() 1056 hw->wiphy->bands[NL80211_BAND_2GHZ] = in rt2x00lib_probe_hw_modes() 1057 &rt2x00dev->bands[NL80211_BAND_2GHZ]; in rt2x00lib_probe_hw_modes() 1058 memcpy(&rt2x00dev->bands[NL80211_BAND_2GHZ].ht_cap, in rt2x00lib_probe_hw_modes() 1068 rt2x00dev->bands[NL80211_BAND_5GHZ].n_channels = in rt2x00lib_probe_hw_modes() 1070 rt2x00dev->bands[NL80211_BAND_5GHZ].n_bitrates = in rt2x00lib_probe_hw_modes() [all …]
|
| /linux/drivers/net/wireless/quantenna/qtnfmac/ |
| H A D | core.c | 215 wiphy->bands[band] = kzalloc_obj(*wiphy->bands[band]); in qtnf_mac_init_single_band() 216 if (!wiphy->bands[band]) in qtnf_mac_init_single_band() 219 wiphy->bands[band]->band = band; in qtnf_mac_init_single_band() 221 ret = qtnf_cmd_band_info_get(mac, wiphy->bands[band]); in qtnf_mac_init_single_band() 228 qtnf_band_init_rates(wiphy->bands[band]); in qtnf_mac_init_single_band() 521 if (!wiphy->bands[band]) in qtnf_core_mac_detach() 524 kfree((__force void *)wiphy->bands[band]->iftype_data); in qtnf_core_mac_detach() 525 wiphy->bands[band]->n_iftype_data = 0; in qtnf_core_mac_detach() 527 kfree(wiphy->bands[band]->channels); in qtnf_core_mac_detach() 528 wiphy->bands[band]->n_channels = 0; in qtnf_core_mac_detach() [all …]
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | reg.c | 135 struct ieee80211_supported_band **bands; in ath12k_reg_update_chan_list() local 147 bands = hw->wiphy->bands; in ath12k_reg_update_chan_list() 149 if (!(ar->mac.sbands[band].channels && bands[band])) in ath12k_reg_update_chan_list() 152 for (i = 0; i < bands[band]->n_channels; i++) { in ath12k_reg_update_chan_list() 153 if (bands[band]->channels[i].flags & in ath12k_reg_update_chan_list() 157 if (bands[band]->channels[i].center_freq < in ath12k_reg_update_chan_list() 159 bands[band]->channels[i].center_freq > in ath12k_reg_update_chan_list() 184 if (!(ar->mac.sbands[band].channels && bands[band])) in ath12k_reg_update_chan_list() 187 for (i = 0; i < bands[band]->n_channels; i++) { in ath12k_reg_update_chan_list() 188 channel = &bands[band]->channels[i]; in ath12k_reg_update_chan_list() [all …]
|
| /linux/drivers/phy/cadence/ |
| H A D | cdns-dphy-rx.c | 72 static const struct cdns_dphy_rx_band bands[] = { variable 110 if (rate < bands[0].min_rate) in cdns_dphy_rx_get_band_ctrl() 113 for (i = 0; i < ARRAY_SIZE(bands); i++) in cdns_dphy_rx_get_band_ctrl() 114 if (rate < bands[i].max_rate) in cdns_dphy_rx_get_band_ctrl()
|
| /linux/Documentation/networking/ |
| H A D | multiqueue.rst | 35 bands and queues based on the value in skb->queue_mapping. Use this field in 39 blocking. It will cycle though the bands and verify that the hardware queue 42 On qdisc load, the number of bands is based on the number of queues on the 56 The qdisc will allocate the number of bands to equal the number of queues that
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | vidioc-enum-freq-bands.rst | 13 VIDIOC_ENUM_FREQ_BANDS - Enumerate supported frequency bands 34 Enumerates the frequency bands that a tuner or modulator supports. To do 76 be the same for all frequency bands of the selected 77 tuner/modulator. So either all bands have that capability set, or
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | reg.c | 120 struct ieee80211_supported_band **bands; in ath11k_reg_update_chan_list() local 132 bands = hw->wiphy->bands; in ath11k_reg_update_chan_list() 134 if (!bands[band]) in ath11k_reg_update_chan_list() 137 for (i = 0; i < bands[band]->n_channels; i++) { in ath11k_reg_update_chan_list() 138 if (bands[band]->channels[i].flags & in ath11k_reg_update_chan_list() 159 if (!bands[band]) in ath11k_reg_update_chan_list() 162 for (i = 0; i < bands[band]->n_channels; i++) { in ath11k_reg_update_chan_list() 163 channel = &bands[band]->channels[i]; in ath11k_reg_update_chan_list()
|
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | qos_pfc.sh | 174 ets bands 8 strict 8 priomap 7 6 190 ets bands 8 strict 8 priomap 7 6 207 ets bands 8 strict 8 priomap 7 6 229 ets bands 8 strict 8 priomap 7 6
|
| /linux/drivers/net/wireless/ath/ |
| H A D | regd.c | 349 if (!wiphy->bands[band]) in ath_reg_apply_beaconing_flags() 351 sband = wiphy->bands[band]; in ath_reg_apply_beaconing_flags() 382 sband = wiphy->bands[NL80211_BAND_2GHZ]; in ath_reg_apply_ir_flags() 411 if (!wiphy->bands[NL80211_BAND_5GHZ]) in ath_reg_apply_radar_flags() 414 sband = wiphy->bands[NL80211_BAND_5GHZ]; in ath_reg_apply_radar_flags()
|
| /linux/net/mac80211/tests/ |
| H A D | util.c | 220 t_sdata->wiphy->bands[NL80211_BAND_2GHZ] = &t_sdata->band_2ghz; in t_sdata_init() 221 t_sdata->wiphy->bands[NL80211_BAND_5GHZ] = &t_sdata->band_5ghz; in t_sdata_init() 226 sband = t_sdata->wiphy->bands[band]; in t_sdata_init()
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | scan.c | 1100 &mld->nvm_data->bands[NL80211_BAND_6GHZ]; in iwl_mld_scan_cmd_set_chan_params() 1320 &mld->nvm_data->bands[NL80211_BAND_6GHZ]; in iwl_mld_scan_6ghz_passive_scan() 1808 if (mld->wiphy->bands[i]) in iwl_mld_int_mlo_scan_start() 1810 (1 << mld->wiphy->bands[i]->n_bitrates) - 1; in iwl_mld_int_mlo_scan_start() 2052 struct ieee80211_supported_band *sband = mld->wiphy->bands[band]; in iwl_mld_chanidx_from_phy() 2080 if (!mld->wiphy->bands[band]) in iwl_mld_handle_channel_survey_notif() 2083 n_channels += mld->wiphy->bands[band]->n_channels; in iwl_mld_handle_channel_survey_notif() 2095 if (!mld->wiphy->bands[band]) in iwl_mld_handle_channel_survey_notif() 2098 mld->channel_survey->bands[band] = in iwl_mld_handle_channel_survey_notif() 2100 n_channels += mld->wiphy->bands[band]->n_channels; in iwl_mld_handle_channel_survey_notif() [all …]
|
| /linux/drivers/media/usb/airspy/ |
| H A D | airspy.c | 50 static const struct v4l2_frequency_band bands[] = { variable 709 v->rangelow = bands[0].rangelow; in airspy_g_tuner() 710 v->rangehigh = bands[0].rangehigh; in airspy_g_tuner() 758 bands[0].rangelow, in airspy_s_frequency() 759 bands[0].rangehigh); in airspy_s_frequency() 785 if (band->index >= ARRAY_SIZE(bands)) { in airspy_enum_freq_bands() 788 *band = bands[band->index]; in airspy_enum_freq_bands() 990 s->f_adc = bands[0].rangelow; in airspy_probe()
|