Home
last modified time | relevance | path

Searched refs:band_idx (Results 1 – 25 of 40) sorted by relevance

12

/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7996/
Dmac.c471 u8 remove_pad, amsdu_info, band_idx; in mt7996_mac_fill_rx() local
481 band_idx = FIELD_GET(MT_RXD1_NORMAL_BAND_IDX, rxd1); in mt7996_mac_fill_rx()
482 mphy = dev->mt76.phys[band_idx]; in mt7996_mac_fill_rx()
484 status->phy_idx = mphy->band_idx; in mt7996_mac_fill_rx()
837 u8 band_idx = (info->hw_queue & MT_TX_HW_QUEUE_PHY) >> 2; in mt7996_mac_write_txwi() local
852 band_idx = mvif->band_idx; in mt7996_mac_write_txwi()
878 if (band_idx) in mt7996_mac_write_txwi()
879 val |= FIELD_PREP(MT_TXD1_TGID, band_idx); in mt7996_mac_write_txwi()
1416 u32 reg = MT_WF_PHYRX_BAND_RX_CTRL1(phy->mt76->band_idx); in mt7996_mac_cca_stats_reset()
1425 u8 band_idx = phy->mt76->band_idx; in mt7996_mac_reset_counters() local
[all …]
Deeprom.c118 switch (phy->mt76->band_idx) { in mt7996_eeprom_parse_band_config()
151 u8 path, nss, band_idx = phy->mt76->band_idx; in mt7996_eeprom_parse_hw_cap() local
156 switch (band_idx) { in mt7996_eeprom_parse_hw_cap()
183 mphy->chainmask = (BIT(path) - 1) << dev->chainshift[band_idx]; in mt7996_eeprom_parse_hw_cap()
185 if (band_idx < MT_BAND2) in mt7996_eeprom_parse_hw_cap()
186 dev->chainshift[band_idx + 1] = dev->chainshift[band_idx] + in mt7996_eeprom_parse_hw_cap()
Dmain.c40 mt7996_mac_enable_nf(dev, phy->mt76->band_idx); in mt7996_run()
170 u8 band_idx = phy->mt76->band_idx; in mt7996_add_interface() local
192 mvif->mt76.band_idx = band_idx; in mt7996_add_interface()
207 mvif->sta.wcid.phy_idx = band_idx; in mt7996_add_interface()
401 mt76_rmw_field(dev, MT_DMA_DCR0(phy->mt76->band_idx), in mt7996_config()
403 mt76_wr(dev, MT_WF_RFCR(phy->mt76->band_idx), phy->rxfilter); in mt7996_config()
477 mt76_wr(dev, MT_WF_RFCR(phy->mt76->band_idx), phy->rxfilter); in mt7996_configure_filter()
480 mt76_clear(dev, MT_WF_RFCR1(phy->mt76->band_idx), ctl_flags); in mt7996_configure_filter()
482 mt76_set(dev, MT_WF_RFCR1(phy->mt76->band_idx), ctl_flags); in mt7996_configure_filter()
545 u8 band = mvif->mt76.band_idx; in mt7996_update_mu_group()
[all …]
Dmcu.c339 if (r->band_idx >= ARRAY_SIZE(dev->mt76.phys)) in mt7996_mcu_rx_radar_detected()
342 if (dev->rdd2_phy && r->band_idx == MT_RX_SEL2) in mt7996_mcu_rx_radar_detected()
345 mphy = dev->mt76.phys[r->band_idx]; in mt7996_mcu_rx_radar_detected()
350 if (r->band_idx == MT_RX_SEL2) in mt7996_mcu_rx_radar_detected()
690 .hdr.band = phy->mt76->band_idx, in mt7996_mcu_muar_config()
790 bss->band_idx = mvif->band_idx; in mt7996_mcu_bss_basic_tlv()
1948 u8 band_idx; in mt7996_mcu_add_dev_info() member
1961 .band_idx = mvif->mt76.band_idx, in mt7996_mcu_add_dev_info()
2058 info->hw_queue |= FIELD_PREP(MT_TX_HW_QUEUE_PHY, phy->mt76->band_idx); in mt7996_mcu_add_beacon()
2127 info->hw_queue |= FIELD_PREP(MT_TX_HW_QUEUE_PHY, phy->mt76->band_idx); in mt7996_mcu_beacon_inband_discov()
[all …]
Ddma.c162 if (!dev->mphy.band_idx) in mt7996_dma_start()
269 MT_TXQ_ID(dev->mphy.band_idx), in mt7996_dma_init()
335 if (dev->tbtc_support || dev->mphy.band_idx == MT_BAND2) { in mt7996_dma_init()
Dmcu.h38 u8 band_idx; member
50 u8 band_idx; member
122 u8 band_idx; /* DBDC */ member
Ddebugfs.c56 bool band = phy->mt76->band_idx; in mt7996_sys_recovery_set()
449 u8 band_idx = phy->mt76->band_idx; in mt7996_ampdu_stat_read_phy() local
453 range[i] = mt76_rr(dev, MT_MIB_ARNG(band_idx, i)); in mt7996_ampdu_stat_read_phy()
459 wiphy_name(phy->mt76->hw->wiphy), band_idx); in mt7996_ampdu_stat_read_phy()
/linux-6.6.21/sound/soc/codecs/
Dmsm8916-wcd-digital.c216 .band_idx = bidx, \
223 unsigned int band_idx; member
379 int iir_idx, int band_idx, in get_iir_band_coeff() argument
387 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
395 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
403 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
411 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
432 int band_idx = ctl->band_idx; in msm8x16_wcd_get_iir_band_audio_mixer() local
435 coeff[0] = get_iir_band_coeff(component, iir_idx, band_idx, 0); in msm8x16_wcd_get_iir_band_audio_mixer()
436 coeff[1] = get_iir_band_coeff(component, iir_idx, band_idx, 1); in msm8x16_wcd_get_iir_band_audio_mixer()
[all …]
Dlpass-rx-macro.c558 .band_idx = bidx, \
624 unsigned int band_idx; member
2693 int iir_idx, int band_idx, int coeff_idx) in get_iir_band_coeff() argument
2703 ((band_idx * BAND_MAX + coeff_idx) * in get_iir_band_coeff()
2708 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
2713 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
2718 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
2727 int iir_idx, int band_idx, uint32_t value) in set_iir_band_coeff() argument
2748 int band_idx = ctl->band_idx; in rx_macro_put_iir_band_audio_mixer() local
2756 snd_soc_component_write(component, reg, (band_idx * BAND_MAX * in rx_macro_put_iir_band_audio_mixer()
[all …]
Dwcd934x.c130 .band_idx = bidx, \
585 unsigned int band_idx; member
3115 int iir_idx, int band_idx, int coeff_idx) in get_iir_band_coeff() argument
3125 ((band_idx * BAND_MAX + coeff_idx) * in get_iir_band_coeff()
3130 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
3135 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
3140 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
3149 int iir_idx, int band_idx, uint32_t value) in set_iir_band_coeff() argument
3170 int band_idx = ctl->band_idx; in wcd934x_put_iir_band_audio_mixer() local
3178 snd_soc_component_write(component, reg, (band_idx * BAND_MAX * in wcd934x_put_iir_band_audio_mixer()
[all …]
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7915/
Dmcu.c240 if (c->band_idx > MT_BAND1) in mt7915_mcu_rx_csa_notify()
243 if ((c->band_idx && !dev->phy.mt76->band_idx) && in mt7915_mcu_rx_csa_notify()
263 if (t->ctrl.band_idx > MT_BAND1) in mt7915_mcu_rx_thermal_notify()
266 if ((t->ctrl.band_idx && !dev->phy.mt76->band_idx) && in mt7915_mcu_rx_thermal_notify()
282 if (r->band_idx > MT_RX_SEL2) in mt7915_mcu_rx_radar_detected()
285 if ((r->band_idx && !dev->phy.mt76->band_idx) && in mt7915_mcu_rx_radar_detected()
289 if (r->band_idx == MT_RX_SEL2) in mt7915_mcu_rx_radar_detected()
343 if (b->band_idx > MT_BAND1) in mt7915_mcu_rx_bcc_notify()
346 if ((b->band_idx && !dev->phy.mt76->band_idx) && in mt7915_mcu_rx_bcc_notify()
625 .band = phy->mt76->band_idx, in mt7915_mcu_muar_config()
[all …]
Dmcu.h18 u8 band_idx; member
44 u8 band_idx; member
51 u8 band_idx; member
60 u8 band_idx; member
126 u8 band_idx; /* DBDC */ member
135 u8 band_idx; member
190 u8 band_idx; member
Dtestmode.c47 u8 band_idx; in mt7915_tm_set_tx_power() member
54 .band_idx = phy->mt76->band_idx, in mt7915_tm_set_tx_power()
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()
340 u8 band = phy->mt76->band_idx; in mt7915_tm_reg_backup_restore()
493 mt76_rr(dev, MT_MIB_SDR3(phy->mt76->band_idx)); in mt7915_tm_set_rx_frames()
520 u8 band = phy->mt76->band_idx; in mt7915_tm_set_tx_cont()
[all …]
Dmain.c34 dev->phy.mt76->band_idx, 0); in mt7915_run()
38 ret = mt7915_mcu_set_mac(dev, dev->phy.mt76->band_idx, in mt7915_run()
43 mt7915_mac_enable_nf(dev, dev->phy.mt76->band_idx); in mt7915_run()
48 phy->mt76->band_idx, 0); in mt7915_run()
52 ret = mt7915_mcu_set_mac(dev, phy->mt76->band_idx, in mt7915_run()
57 mt7915_mac_enable_nf(dev, phy->mt76->band_idx); in mt7915_run()
72 phy->mt76->band_idx); in mt7915_run()
125 mt76_connac_mcu_set_pm(&dev->mt76, phy->mt76->band_idx, 1); in mt7915_stop()
126 mt7915_mcu_set_mac(dev, phy->mt76->band_idx, false, false); in mt7915_stop()
130 mt76_connac_mcu_set_pm(&dev->mt76, dev->phy.mt76->band_idx, 1); in mt7915_stop()
[all …]
Ddma.c301 if (!dev->phy.mt76->band_idx) in mt7915_dma_start()
304 if (dev->dbdc_support || dev->phy.mt76->band_idx) in mt7915_dma_start()
443 MT_TXQ_ID(dev->phy.mt76->band_idx), in mt7915_dma_init()
451 MT_TXQ_ID(phy2->mt76->band_idx), in mt7915_dma_init()
507 if (!dev->phy.mt76->band_idx) { in mt7915_dma_init()
544 if (dev->dbdc_support || dev->phy.mt76->band_idx) { in mt7915_dma_init()
Dinit.c236 mt76_wr(dev, MT_LED_STATUS_0(mphy->band_idx), val); in mt7915_led_set_config()
237 mt76_wr(dev, MT_LED_STATUS_1(mphy->band_idx), val); in mt7915_led_set_config()
240 mt76_wr(dev, MT_LED_EN(mphy->band_idx), 1); in mt7915_led_set_config()
246 if (mphy->band_idx) in mt7915_led_set_config()
249 mt76_wr(dev, MT_LED_CTRL(mphy->band_idx), val); in mt7915_led_set_config()
250 mt76_clear(dev, MT_LED_CTRL(mphy->band_idx), MT_LED_CTRL_KICK); in mt7915_led_set_config()
642 phy->mt76->band_idx = 1; in mt7915_alloc_ext_phy()
762 dev->phy.mt76->band_idx = 0; in mt7915_band_config()
773 dev->phy.mt76->band_idx = 1; in mt7915_band_config()
Dmac.c300 if ((rxd1 & MT_RXD1_NORMAL_BAND_IDX) && !phy->mt76->band_idx) { in mt7915_mac_fill_rx()
568 u8 band_idx; in mt7915_mac_fill_rx_vector() local
573 band_idx = le32_get_bits(rxv_hdr[1], MT_RXV_HDR_BAND_IDX); in mt7915_mac_fill_rx_vector()
574 if (band_idx && !phy->mt76->band_idx) { in mt7915_mac_fill_rx_vector()
1122 u32 reg = MT_WF_PHY_RX_CTRL1(phy->mt76->band_idx); in mt7915_mac_cca_stats_reset()
1134 mt76_rr(dev, MT_TX_AGG_CNT(phy->mt76->band_idx, i)); in mt7915_mac_reset_counters()
1135 mt76_rr(dev, MT_TX_AGG_CNT2(phy->mt76->band_idx, i)); in mt7915_mac_reset_counters()
1142 mt76_set(dev, MT_WF_RMAC_MIB_AIRTIME0(phy->mt76->band_idx), in mt7915_mac_reset_counters()
1158 u8 band = phy->mt76->band_idx; in mt7915_mac_set_timing()
1256 nf = mt7915_phy_get_nf(phy, phy->mt76->band_idx); in mt7915_update_channel()
[all …]
Deeprom.c147 u8 band = phy->mt76->band_idx; in mt7915_eeprom_parse_band_config()
192 u8 band = phy->mt76->band_idx; in mt7915_eeprom_parse_hw_cap()
Ddebugfs.c54 bool band = phy->mt76->band_idx; in mt7915_sys_recovery_set()
687 u8 band = phy->mt76->band_idx; in mt7915_ampdu_stat_read_phy()
979 u8 band = phy->mt76->band_idx; in mt7915_rate_txpower_get()
1057 .band_idx = phy->mt76->band_idx, in mt7915_rate_txpower_set()
1240 if (!dev->dbdc_support || phy->mt76->band_idx) { in mt7915_init_debugfs()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7921/
Dmcu.c688 u8 band_idx; in mt7921_mcu_set_chan_info() member
704 .band_idx = phy != &dev->phy, in mt7921_mcu_set_chan_info()
950 u8 band_idx; in mt7921_mcu_set_sniffer() member
961 .band_idx = mvif->band_idx, in mt7921_mcu_set_sniffer()
997 u8 band_idx; in mt7921_mcu_config_sniffer() member
1015 .band_idx = vif->mt76.band_idx, in mt7921_mcu_config_sniffer()
1216 u8 band_idx; in mt7921_mcu_get_temperature() member
1220 .band_idx = phy->mt76->band_idx, in mt7921_mcu_get_temperature()
/linux-6.6.21/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dchannel.c745 int band_idx, i; in brcms_c_regd_init() local
748 for (band_idx = 0; band_idx < wlc->pub->_nbands; band_idx++) { in brcms_c_regd_init()
749 band = wlc->bandstate[band_idx]; in brcms_c_regd_init()
754 if (band_idx == BAND_2G_INDEX) in brcms_c_regd_init()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7615/
Dmcu.c391 if (r->band_idx && dev->mt76.phys[MT_BAND1]) in mt7615_mcu_rx_radar_detected()
498 u8 band_idx = 0; /* DBDC support */ in mt7615_mcu_beacon_loss_event() local
502 if (band_idx && dev->mt76.phys[MT_BAND1]) in mt7615_mcu_beacon_loss_event()
518 u8 band_idx = 0; /* DBDC support */ in mt7615_mcu_bss_event() local
523 if (band_idx && dev->mt76.phys[MT_BAND1]) in mt7615_mcu_bss_event()
631 u8 band_idx; in mt7615_mcu_add_dev() member
640 u8 band_idx; in mt7615_mcu_add_dev() member
646 .band_idx = mvif->mt76.band_idx, in mt7615_mcu_add_dev()
654 .band_idx = mvif->mt76.band_idx, in mt7615_mcu_add_dev()
679 u8 band_idx; in mt7615_mcu_add_beacon_offload() member
[all …]
Dmcu.h161 u8 band_idx; member
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/
Dmac80211.c469 const struct ieee80211_ops *ops, u8 band_idx) in mt76_alloc_phy() argument
484 phy->band_idx = band_idx; in mt76_alloc_phy()
544 phy->dev->phys[phy->band_idx] = phy; in mt76_register_phy()
561 dev->phys[phy->band_idx] = NULL; in mt76_unregister_phy()
629 phy->band_idx = MT_BAND0; in mt76_alloc_device()
630 dev->phys[phy->band_idx] = phy; in mt76_alloc_device()
1409 if (phy->band_idx == MT_BAND1) in mt76_sta_add()
1411 wcid->phy_idx = phy->band_idx; in mt76_sta_add()
/linux-6.6.21/drivers/net/wireless/ath/wcn36xx/
Dmain.c1297 int band_idx; in wcn36xx_get_survey() local
1301 band_idx = idx; in wcn36xx_get_survey()
1302 if (band_idx >= sband->n_channels) { in wcn36xx_get_survey()
1303 band_idx -= sband->n_channels; in wcn36xx_get_survey()
1307 if (!sband || band_idx >= sband->n_channels) in wcn36xx_get_survey()
1313 survey->channel = &sband->channels[band_idx]; in wcn36xx_get_survey()

12