/linux-6.6.21/net/sched/ |
D | sch_multiq.c | 33 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 …]
|
D | sch_ets.c | 100 int band = cl - q->classes; in ets_class_id() local 102 return TC_H_MAKE(sch->handle, band + 1); in ets_class_id() 170 qopt.graft_params.band = arg - 1; in ets_offload_graft() 192 unsigned int band = cl - q->classes; in ets_class_is_strict() local 194 return band < q->nstrict; in ets_class_is_strict() 276 unsigned long band = TC_H_MIN(classid); in ets_class_find() local 279 if (band - 1 >= q->nbands) in ets_class_find() 281 return band; in ets_class_find() 377 u32 band = skb->priority; in ets_classify() local 398 if (TC_H_MAJ(band)) in ets_classify() [all …]
|
D | sch_prio.c | 34 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() 291 unsigned long band = arg - 1; in prio_graft() local 302 *old = qdisc_replace(sch, new, &q->queues[band]); in prio_graft() [all …]
|
/linux-6.6.21/drivers/media/test-drivers/vivid/ |
D | vivid-radio-rx.c | 136 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 138 if (band->tuner != 0) in vivid_radio_rx_enum_freq_bands() 141 if (band->index >= TOT_BANDS) in vivid_radio_rx_enum_freq_bands() 144 *band = vivid_radio_bands[band->index]; in vivid_radio_rx_enum_freq_bands() 154 unsigned band; in vivid_radio_rx_s_hw_freq_seek() local 170 for (band = 0; band < TOT_BANDS; band++) in vivid_radio_rx_s_hw_freq_seek() 171 if (a->rangelow >= vivid_radio_bands[band].rangelow && in vivid_radio_rx_s_hw_freq_seek() 172 a->rangehigh <= vivid_radio_bands[band].rangehigh) in vivid_radio_rx_s_hw_freq_seek() 174 if (band == TOT_BANDS) in vivid_radio_rx_s_hw_freq_seek() 177 (a->rangelow != vivid_radio_bands[band].rangelow || in vivid_radio_rx_s_hw_freq_seek() [all …]
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/abm/ |
D | ctrl.c | 49 unsigned int stride, unsigned int offset, unsigned int band, in nfp_abm_ctrl_stat() argument 58 qid = band * NFP_NET_MAX_RX_RINGS + alink->queue_base + queue; in nfp_abm_ctrl_stat() 67 alink->id, band, queue, alink->queue_base); in nfp_abm_ctrl_stat() 98 int nfp_abm_ctrl_set_q_lvl(struct nfp_abm_link *alink, unsigned int band, in nfp_abm_ctrl_set_q_lvl() argument 103 threshold = band * NFP_NET_MAX_RX_RINGS + alink->queue_base + queue; in nfp_abm_ctrl_set_q_lvl() 131 int nfp_abm_ctrl_set_q_act(struct nfp_abm_link *alink, unsigned int band, in nfp_abm_ctrl_set_q_act() argument 136 qid = band * NFP_NET_MAX_RX_RINGS + alink->queue_base + queue; in nfp_abm_ctrl_set_q_act() 143 unsigned int band; in nfp_abm_ctrl_stat_non_sto() local 146 for (band = 0; band < alink->abm->num_bands; band++) { in nfp_abm_ctrl_stat_non_sto() 149 band, queue, true, &val)) in nfp_abm_ctrl_stat_non_sto() [all …]
|
D | qdisc.c | 57 &qdisc->red.band[i].stats); in nfp_abm_stats_update_red() 63 &qdisc->red.band[i].xstats); in nfp_abm_stats_update_red() 132 qdisc->red.band[i].stats.backlog_pkts = 0; in nfp_abm_qdisc_offload_stop() 133 qdisc->red.band[i].stats.backlog_bytes = 0; in nfp_abm_qdisc_offload_stop() 138 __nfp_abm_stats_init(struct nfp_abm_link *alink, unsigned int band, in __nfp_abm_stats_init() argument 151 err = nfp_abm_ctrl_read_q_stats(alink, band, queue, prev_stats); in __nfp_abm_stats_init() 155 band, queue, err); in __nfp_abm_stats_init() 159 err = nfp_abm_ctrl_read_q_xstats(alink, band, queue, prev_xstats); in __nfp_abm_stats_init() 163 band, queue, err); in __nfp_abm_stats_init() 181 &qdisc->red.band[i].prev_stats, in nfp_abm_stats_init() [all …]
|
/linux-6.6.21/drivers/net/wireless/ti/wl12xx/ |
D | scan.c | 16 enum nl80211_band band, bool passive) in wl1271_get_scan_channels() argument 29 (req->channels[i]->band == band) && in wl1271_get_scan_channels() 38 req->channels[i]->band, in wl1271_get_scan_channels() 81 enum nl80211_band band, in wl1271_scan_send() argument 122 band, passive); in wl1271_scan_send() 133 if (band == NL80211_BAND_2GHZ) in wl1271_scan_send() 134 cmd->params.band = WL1271_SCAN_BAND_2_4_GHZ; in wl1271_scan_send() 136 cmd->params.band = WL1271_SCAN_BAND_5_GHZ; in wl1271_scan_send() 146 cmd->params.role_id, band, in wl1271_scan_send() 207 enum nl80211_band band; in wl1271_scan_stm() local [all …]
|
/linux-6.6.21/drivers/media/radio/si470x/ |
D | radio-si470x-common.c | 179 static int si470x_set_band(struct si470x_device *radio, int band) in si470x_set_band() argument 181 if (radio->band == band) in si470x_set_band() 184 radio->band = band; in si470x_set_band() 186 radio->registers[SYSCONFIG2] |= radio->band << 6; in si470x_set_band() 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() 297 int band, retval; in si470x_set_seek() local 304 for (band = 0; band < ARRAY_SIZE(bands); band++) { in si470x_set_seek() [all …]
|
/linux-6.6.21/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | stf.c | 31 #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 …]
|
D | main.c | 361 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() 650 if (wlc->band->bandtype == BRCM_BAND_2G) in brcms_c_calc_frame_time() 662 if (wlc->band->bandtype == BRCM_BAND_2G) in brcms_c_calc_frame_time() 721 brcms_c_write_mhf(wlc_hw, wlc_hw->band->mhfs); in brcms_c_ucode_bsinit() 725 if (BRCMS_ISNPHY(wlc_hw->band)) in brcms_c_ucode_bsinit() 734 if (BRCMS_ISLCNPHY(wlc_hw->band)) in brcms_c_ucode_bsinit() 788 wlc_hw->band = wlc_hw->bandstate[bandunit]; in brcms_c_setxband() [all …]
|
D | channel.c | 408 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() 664 int band, i; in brcms_reg_apply_beaconing_flags() local [all …]
|
/linux-6.6.21/drivers/media/tuners/ |
D | mt2266.c | 33 u8 band; member 126 u8 band; in mt2266_set_params() local 136 band = (freq < 300000) ? MT2266_VHF : MT2266_UHF; in mt2266_set_params() 137 if (band == MT2266_VHF) in mt2266_set_params() 157 if (band == MT2266_VHF && priv->band == MT2266_UHF) { in mt2266_set_params() 162 } else if (band == MT2266_UHF && priv->band == MT2266_VHF) { in mt2266_set_params() 207 (band == MT2266_UHF) ? "UHF" : "VHF"); in mt2266_set_params() 211 if (band == MT2266_UHF) { in mt2266_set_params() 213 b[1] = (priv->band == MT2266_VHF) ? 0x52 : 0x62; in mt2266_set_params() 229 if (band == MT2266_UHF && priv->band == MT2266_VHF) in mt2266_set_params() [all …]
|
D | msi001.c | 332 unsigned int band; in msi001_s_frequency() local 338 band = 0; in msi001_s_frequency() 340 band = 1; in msi001_s_frequency() 342 bands[band].rangelow, bands[band].rangehigh); in msi001_s_frequency() 348 struct v4l2_frequency_band *band) in msi001_enum_freq_bands() argument 354 band->tuner, band->type, band->index); in msi001_enum_freq_bands() 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()
|
/linux-6.6.21/drivers/media/radio/ |
D | tea575x.c | 149 switch (tea->band) { in snd_tea575x_val_to_freq() 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() 182 u32 band = 0; in snd_tea575x_set_freq() local 184 switch (tea->band) { in snd_tea575x_set_freq() 186 band = TEA575X_BIT_BAND_FM; in snd_tea575x_set_freq() 194 band = TEA575X_BIT_BAND_FM; in snd_tea575x_set_freq() 202 band = TEA575X_BIT_BAND_MW; in snd_tea575x_set_freq() 209 tea->val |= band; in snd_tea575x_set_freq() 233 struct v4l2_frequency_band *band) in snd_tea575x_enum_freq_bands() argument [all …]
|
D | radio-raremono.c | 112 u32 band; member 122 static int raremono_cmd_main(struct raremono_device *radio, unsigned band, unsigned freq) in raremono_cmd_main() argument 127 switch (band) { in raremono_cmd_main() 153 radio->curfreq = (band == BAND_FM) ? freq * 10 : freq; in raremono_cmd_main() 191 struct v4l2_frequency_band *band) in vidioc_enum_freq_bands() argument 193 if (band->tuner != 0) in vidioc_enum_freq_bands() 196 if (band->index >= ARRAY_SIZE(bands)) in vidioc_enum_freq_bands() 199 *band = bands[band->index]; in vidioc_enum_freq_bands() 244 unsigned band; in vidioc_s_frequency() local 250 band = BAND_FM; in vidioc_s_frequency() [all …]
|
D | radio-tea5777.c | 164 switch (tea->band) { in tea5777_freq_to_v4l2_freq() 178 freq = clamp(tea->freq, bands[tea->band].rangelow, in radio_tea5777_set_freq() 179 bands[tea->band].rangehigh); in radio_tea5777_set_freq() 182 switch (tea->band) { in radio_tea5777_set_freq() 267 struct v4l2_frequency_band *band) in vidioc_enum_freq_bands() argument 271 if (band->tuner != 0 || band->index >= ARRAY_SIZE(bands) || in vidioc_enum_freq_bands() 272 (!tea->has_am && band->index == BAND_AM)) in vidioc_enum_freq_bands() 275 *band = bands[band->index]; in vidioc_enum_freq_bands() 305 if (tea->band == BAND_FM && in vidioc_g_tuner() 334 if (tea->audmode != orig_audmode && tea->band == BAND_FM) in vidioc_s_tuner() [all …]
|
/linux-6.6.21/net/openvswitch/ |
D | meter.c | 236 struct dp_meter_band *band; in ovs_meter_cmd_reply_stats() local 254 band = meter->bands; in ovs_meter_cmd_reply_stats() 256 for (i = 0; i < meter->n_bands; ++i, ++band) { in ovs_meter_cmd_reply_stats() 262 &band->stats)) in ovs_meter_cmd_reply_stats() 332 struct dp_meter_band *band; in dp_meter_create() local 360 band = meter->bands; in dp_meter_create() 378 band->type = nla_get_u32(attr[OVS_BAND_ATTR_TYPE]); in dp_meter_create() 379 band->rate = nla_get_u32(attr[OVS_BAND_ATTR_RATE]); in dp_meter_create() 380 if (band->rate == 0) { in dp_meter_create() 385 band->burst_size = nla_get_u32(attr[OVS_BAND_ATTR_BURST]); in dp_meter_create() [all …]
|
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-eeprom-parse.c | 336 enum nl80211_band band; in iwl_eeprom_enh_txp_read_element() local 338 band = txp->flags & IWL_EEPROM_ENH_TXP_FL_BAND_52G ? in iwl_eeprom_enh_txp_read_element() 349 if (band != chan->band) in iwl_eeprom_enh_txp_read_element() 472 enum nl80211_band band, u16 channel, in iwl_mod_ht40_chan_info() argument 480 if (data->channels[i].band != band) in iwl_mod_ht40_chan_info() 494 band == NL80211_BAND_5GHZ ? "5.2" : "2.4", in iwl_mod_ht40_chan_info() 517 int band, ch_idx; in iwl_init_channel_map() local 526 for (band = 1; band <= 5; band++) { in iwl_init_channel_map() 529 iwl_init_band_reference(cfg, eeprom, eeprom_size, band, in iwl_init_channel_map() 544 (band != 1) ? "5.2" : "2.4"); in iwl_init_channel_map() [all …]
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | testmode.c | 23 u32 band[2]; member 27 { _list.band[0] = MT_##_reg(0); \ 28 _list.band[1] = MT_##_reg(1); } 30 { _list.band[0] = MT_##_reg(0, _idx); \ 31 _list.band[1] = MT_##_reg(1, _idx); } 80 .param.freq.band = phy->mt76->band_idx, in mt7915_tm_set_freq_offset() 114 .param.trx.band = phy->mt76->band_idx, in mt7915_tm_set_trx() 129 .param.clean.band = phy->mt76->band_idx, in mt7915_tm_clean_hwq() 147 .param.slot.band = phy->mt76->band_idx, in mt7915_tm_set_slot_time() 201 u8 band = phy->mt76->band_idx; in mt7915_tm_set_ipg_params() local [all …]
|
D | eeprom.c | 147 u8 band = phy->mt76->band_idx; in mt7915_eeprom_parse_band_config() local 150 val = eeprom[MT_EE_WIFI_CONF + band]; in mt7915_eeprom_parse_band_config() 170 val = band ? MT_EE_BAND_SEL_5GHZ : MT_EE_BAND_SEL_2GHZ; in mt7915_eeprom_parse_band_config() 192 u8 band = phy->mt76->band_idx; in mt7915_eeprom_parse_hw_cap() local 202 eeprom[MT_EE_WIFI_CONF + band]); in mt7915_eeprom_parse_hw_cap() 215 if (band) in mt7915_eeprom_parse_hw_cap() 220 eeprom[MT_EE_WIFI_CONF + 2 + band]); in mt7915_eeprom_parse_hw_cap() 232 if (band) in mt7915_eeprom_parse_hw_cap() 278 tssi_on = mt7915_tssi_enabled(dev, chan->band); in mt7915_eeprom_get_target_power() 281 if (chan->band == NL80211_BAND_2GHZ) { in mt7915_eeprom_get_target_power() [all …]
|
D | mac.c | 337 status->band = mphy->chandef.chan->band; in mt7915_mac_fill_rx() 338 if (status->band == NL80211_BAND_5GHZ) in mt7915_mac_fill_rx() 340 else if (status->band == NL80211_BAND_6GHZ) in mt7915_mac_fill_rx() 620 int band; in mt7915_mac_write_txwi_tm() local 649 band = phy->mt76->chandef.chan->band; in mt7915_mac_write_txwi_tm() 650 if (band == NL80211_BAND_2GHZ && !cck) in mt7915_mac_write_txwi_tm() 653 r = &phy->mt76->hw->wiphy->bands[band]->bitrates[rate_idx]; in mt7915_mac_write_txwi_tm() 1158 u8 band = phy->mt76->band_idx; in mt7915_mac_set_timing() local 1160 bool a_band = !(phy->mt76->chandef.chan->band == NL80211_BAND_2GHZ); in mt7915_mac_set_timing() 1169 mt76_set(dev, MT_ARB_SCR(band), in mt7915_mac_set_timing() [all …]
|
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | scan.c | 122 priv->scan_request->channels[0]->band); in iwl_process_scan_complete() 255 notif->band ? "bg" : "a", in iwl_rx_scan_start_notif() 275 notif->band ? "bg" : "a", in iwl_rx_scan_results_notif() 347 enum nl80211_band band, u8 n_probes) in iwl_get_active_dwell_time() argument 349 if (band == NL80211_BAND_5GHZ) in iwl_get_active_dwell_time() 416 enum nl80211_band band) in iwl_get_passive_dwell_time() argument 418 u16 passive = (band == NL80211_BAND_2GHZ) ? in iwl_get_passive_dwell_time() 427 enum nl80211_band band) in iwl_get_single_channel_number() argument 429 struct ieee80211_supported_band *sband = priv->hw->wiphy->bands[band]; in iwl_get_single_channel_number() 455 enum nl80211_band band, in iwl_get_channel_for_reset_scan() argument [all …]
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7996/ |
D | init.c | 109 int pwr_delta = mt7996_eeprom_get_power_delta(dev, sband->band); in mt7996_init_txpower() 235 mt7996_mac_init_band(struct mt7996_dev *dev, u8 band) in mt7996_mac_init_band() argument 240 mt76_wr(dev, MT_WF_RMAC_RSVD0(band), MT_WF_RMAC_RSVD0_EIFS_CLR); in mt7996_mac_init_band() 243 mt76_clear(dev, MT_WF_RMAC_MIB_AIRTIME1(band), in mt7996_mac_init_band() 245 mt76_clear(dev, MT_WF_RMAC_MIB_AIRTIME3(band), in mt7996_mac_init_band() 247 mt76_clear(dev, MT_WF_RMAC_MIB_AIRTIME4(band), in mt7996_mac_init_band() 254 mt76_rmw(dev, MT_WF_RMAC_MIB_AIRTIME0(band), mask, set); in mt7996_mac_init_band() 260 mt76_rmw(dev, MT_WTBLOFF_RSCR(band), mask, set); in mt7996_mac_init_band() 333 enum mt76_band_id band) in mt7996_register_phy() argument 339 if (band != MT_BAND1 && band != MT_BAND2) in mt7996_register_phy() [all …]
|
/linux-6.6.21/drivers/net/wireless/rsi/ |
D | rsi_91x_mac80211.c | 25 { .band = NL80211_BAND_2GHZ, .center_freq = 2412, 27 { .band = NL80211_BAND_2GHZ, .center_freq = 2417, 29 { .band = NL80211_BAND_2GHZ, .center_freq = 2422, 31 { .band = NL80211_BAND_2GHZ, .center_freq = 2427, 33 { .band = NL80211_BAND_2GHZ, .center_freq = 2432, 35 { .band = NL80211_BAND_2GHZ, .center_freq = 2437, 37 { .band = NL80211_BAND_2GHZ, .center_freq = 2442, 39 { .band = NL80211_BAND_2GHZ, .center_freq = 2447, 41 { .band = NL80211_BAND_2GHZ, .center_freq = 2452, 43 { .band = NL80211_BAND_2GHZ, .center_freq = 2457, [all …]
|
/linux-6.6.21/drivers/net/wireless/ti/wl18xx/ |
D | scan.c | 99 u8 band = NL80211_BAND_2GHZ; in wl18xx_scan_send() local 101 cmd->role_id, band, in wl18xx_scan_send() 116 u8 band = NL80211_BAND_5GHZ; in wl18xx_scan_send() local 118 cmd->role_id, band, in wl18xx_scan_send() 242 u8 band = NL80211_BAND_2GHZ; in wl18xx_scan_sched_scan_config() local 244 cmd->role_id, band, in wl18xx_scan_sched_scan_config() 247 ies->ies[band], in wl18xx_scan_sched_scan_config() 248 ies->len[band], in wl18xx_scan_sched_scan_config() 259 u8 band = NL80211_BAND_5GHZ; in wl18xx_scan_sched_scan_config() local 261 cmd->role_id, band, in wl18xx_scan_sched_scan_config() [all …]
|