/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | init.c | 226 return test_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); in mt7615_wait_for_mcu_init() 275 int i, n_chains = hweight8(dev->mphy.antenna_mask), target_chains; in mt7615_init_txpower() 308 target_power = mt76_get_rate_power_limits(&dev->mphy, chan, in mt7615_init_txpower() 336 struct mt76_phy *mphy = hw->priv; in mt7615_regd_notifier() local 337 struct mt7615_phy *phy = mphy->priv; in mt7615_regd_notifier() 338 struct cfg80211_chan_def *chandef = &mphy->chandef; in mt7615_regd_notifier() 343 mt7615_init_txpower(dev, &mphy->sband_2g.sband); in mt7615_regd_notifier() 344 mt7615_init_txpower(dev, &mphy->sband_5g.sband); in mt7615_regd_notifier() 352 mt76_connac_mcu_set_channel_domain(mphy); in mt7615_regd_notifier() 353 mt76_connac_mcu_set_rate_txpower(mphy); in mt7615_regd_notifier() [all …]
|
D | testmode.c | 51 struct mt76_phy *mphy = phy->mt76; in mt7615_tm_set_tx_power() local 52 int i, ret, n_chains = hweight8(mphy->antenna_mask); in mt7615_tm_set_tx_power() 53 struct cfg80211_chan_def *chandef = &mphy->chandef; in mt7615_tm_set_tx_power() 70 if (mphy->test.state != MT76_TM_STATE_OFF) in mt7615_tm_set_tx_power() 71 tx_power = mphy->test.tx_power; in mt7615_tm_set_tx_power() 259 mt7615_tm_set_state(struct mt76_phy *mphy, enum mt76_testmode_state state) in mt7615_tm_set_state() argument 261 struct mt7615_phy *phy = mphy->priv; in mt7615_tm_set_state() 262 struct mt76_testmode_data *td = &mphy->test; in mt7615_tm_set_state() 265 mphy->test.state = state; in mt7615_tm_set_state() 296 mt7615_tm_set_params(struct mt76_phy *mphy, struct nlattr **tb, in mt7615_tm_set_params() argument [all …]
|
D | eeprom.c | 108 dev->mphy.cap.has_2ghz = true; in mt7615_eeprom_parse_hw_band_cap() 109 dev->mphy.cap.has_5ghz = true; in mt7615_eeprom_parse_hw_band_cap() 115 dev->mphy.cap.has_2ghz = true; in mt7615_eeprom_parse_hw_band_cap() 121 dev->mphy.cap.has_5ghz = true; in mt7615_eeprom_parse_hw_band_cap() 129 dev->mphy.cap.has_5ghz = true; in mt7615_eeprom_parse_hw_band_cap() 135 dev->mphy.cap.has_2ghz = true; in mt7615_eeprom_parse_hw_band_cap() 138 dev->mphy.cap.has_2ghz = true; in mt7615_eeprom_parse_hw_band_cap() 139 dev->mphy.cap.has_5ghz = true; in mt7615_eeprom_parse_hw_band_cap() 169 dev->mphy.antenna_mask = dev->chainmask; in mt7615_eeprom_parse_hw_cap() 170 dev->mphy.chainmask = dev->chainmask; in mt7615_eeprom_parse_hw_cap() [all …]
|
D | mac.c | 202 mt7615_get_status_freq_info(struct mt7615_dev *dev, struct mt76_phy *mphy, in mt7615_get_status_freq_info() argument 205 if (!test_bit(MT76_HW_SCANNING, &mphy->state) && in mt7615_get_status_freq_info() 206 !test_bit(MT76_HW_SCHED_SCANNING, &mphy->state) && in mt7615_get_status_freq_info() 207 !test_bit(MT76_STATE_ROC, &mphy->state)) { in mt7615_get_status_freq_info() 208 status->freq = mphy->chandef.chan->center_freq; in mt7615_get_status_freq_info() 209 status->band = mphy->chandef.chan->band; in mt7615_get_status_freq_info() 336 struct mt76_phy *mphy = &dev->mt76.phy; in mt7615_mac_fill_rx() local 505 mphy = dev->mt76.phys[MT_BAND1]; in mt7615_mac_fill_rx() 513 mt7615_get_status_freq_info(dev, mphy, status, chfreq); in mt7615_mac_fill_rx() 515 sband = &mphy->sband_5g.sband; in mt7615_mac_fill_rx() [all …]
|
D | sdio_mcu.c | 58 struct mt76_phy *mphy = &dev->mt76.phy; in __mt7663s_mcu_drv_pmctrl() local 72 clear_bit(MT76_STATE_PM, &mphy->state); in __mt7663s_mcu_drv_pmctrl() 85 struct mt76_phy *mphy = &dev->mt76.phy; in mt7663s_mcu_drv_pmctrl() local 90 if (test_bit(MT76_STATE_PM, &mphy->state)) in mt7663s_mcu_drv_pmctrl() 101 struct mt76_phy *mphy = &dev->mt76.phy; in mt7663s_mcu_fw_pmctrl() local 108 if (mt76_connac_skip_fw_pmctrl(mphy, pm)) in mt7663s_mcu_fw_pmctrl() 119 clear_bit(MT76_STATE_PM, &mphy->state); in mt7663s_mcu_fw_pmctrl() 177 set_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); in mt7663s_mcu_init()
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt76x0/ |
D | main.c | 11 int mt76x0_set_channel(struct mt76_phy *mphy) in mt76x0_set_channel() argument 13 struct mt76x02_dev *dev = container_of(mphy->dev, struct mt76x02_dev, mt76); in mt76x0_set_channel() 19 mt76x0_phy_set_channel(dev, &mphy->chandef); in mt76x0_set_channel() 39 struct mt76_phy *mphy = &dev->mphy; in mt76x0_set_sar_specs() local 42 if (!cfg80211_chandef_valid(&mphy->chandef)) in mt76x0_set_sar_specs() 49 dev->txpower_conf = mt76_get_sar_power(mphy, mphy->chandef.chan, in mt76x0_set_sar_specs() 51 if (test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt76x0_set_sar_specs() 65 mt76_update_channel(&dev->mphy); in mt76x0_config() 70 struct mt76_phy *mphy = &dev->mphy; in mt76x0_config() local 73 dev->txpower_conf = mt76_get_sar_power(mphy, in mt76x0_config() [all …]
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/ |
D | mt792x_mac.c | 12 struct mt76_phy *mphy; in mt792x_mac_work() local 14 mphy = (struct mt76_phy *)container_of(work, struct mt76_phy, in mt792x_mac_work() 16 phy = mphy->priv; in mt792x_mac_work() 20 mt76_update_survey(mphy); in mt792x_mac_work() 21 if (++mphy->mac_work_count == 2) { in mt792x_mac_work() 22 mphy->mac_work_count = 0; in mt792x_mac_work() 29 mt76_tx_status_check(mphy->dev, false); in mt792x_mac_work() 30 ieee80211_queue_delayed_work(phy->mt76->hw, &mphy->mac_work, in mt792x_mac_work() 225 mt792x_phy_update_channel(struct mt76_phy *mphy, int idx) in mt792x_phy_update_channel() argument 227 struct mt792x_dev *dev = container_of(mphy->dev, struct mt792x_dev, mt76); in mt792x_phy_update_channel() [all …]
|
D | mt76x02_util.c | 90 mt76x02_led_set_config(struct mt76_phy *mphy, u8 delay_on, u8 delay_off) in mt76x02_led_set_config() argument 92 struct mt76x02_dev *dev = container_of(mphy->dev, struct mt76x02_dev, in mt76x02_led_set_config() 100 mt76_wr(dev, MT_LED_S0(mphy->leds.pin), val); in mt76x02_led_set_config() 101 mt76_wr(dev, MT_LED_S1(mphy->leds.pin), val); in mt76x02_led_set_config() 103 val = MT_LED_CTRL_REPLAY(mphy->leds.pin) | in mt76x02_led_set_config() 104 MT_LED_CTRL_KICK(mphy->leds.pin); in mt76x02_led_set_config() 105 if (mphy->leds.al) in mt76x02_led_set_config() 106 val |= MT_LED_CTRL_POLARITY(mphy->leds.pin); in mt76x02_led_set_config() 115 struct mt76_phy *mphy = container_of(led_cdev, struct mt76_phy, in mt76x02_led_set_blink() local 122 mt76x02_led_set_config(mphy, delta_on, delta_off); in mt76x02_led_set_blink() [all …]
|
D | mt76x02_mmio.c | 18 struct mt76_queue *q = dev->mphy.q_tx[MT_TXQ_PSD]; in mt76x02_pre_tbtt_tasklet() 25 if (dev->mphy.offchannel) in mt76x02_pre_tbtt_tasklet() 148 mt76_txq_schedule_all(&dev->mphy); in mt76x02_tx_worker() 161 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[i], false); in mt76x02_poll_tx() 168 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[i], false); in mt76x02_poll_tx() 200 ret = mt76_init_tx_queue(&dev->mphy, i, mt76_ac_to_hwq(i), in mt76x02_dma_init() 207 ret = mt76_init_tx_queue(&dev->mphy, MT_TXQ_PSD, MT_TX_HW_QUEUE_MGMT, in mt76x02_dma_init() 268 if (!test_bit(MT76_STATE_INITIALIZED, &dev->mphy.state)) in mt76x02_irq_handler() 293 mt76_queue_kick(dev, dev->mphy.q_tx[MT_TXQ_PSD]); in mt76x02_irq_handler() 358 q = dev->mphy.q_tx[i]; in mt76x02_tx_hang() [all …]
|
D | mt76x02_mac.c | 28 memset(dev->mphy.aggr_stats, 0, sizeof(dev->mphy.aggr_stats)); in mt76x02_mac_reset_counters() 204 int band = dev->mphy.chandef.chan->band; in mt76x02_mac_tx_rate_val() 348 u8 ccmp_pn[8], nstreams = dev->mphy.chainmask & 0xf; in mt76x02_mac_write_txwi() 497 dev->mphy.chandef.chan->band); in mt76x02_mac_fill_tx_status() 503 dev->mphy.chandef.chan->band); in mt76x02_mac_fill_tx_status() 507 dev->mphy.chandef.chan->band); in mt76x02_mac_fill_tx_status() 692 u8 n_rxstream = dev->mphy.chainmask & 0xf; in mt76x02_mac_process_rate() 734 ether_addr_copy(dev->mphy.macaddr, addr); in mt76x02_mac_setaddr() 736 if (!is_valid_ether_addr(dev->mphy.macaddr)) { in mt76x02_mac_setaddr() 737 eth_random_addr(dev->mphy.macaddr); in mt76x02_mac_setaddr() [all …]
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt76x2/ |
D | usb_main.c | 18 ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mphy.mac_work, in mt76x2u_start() 20 set_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt76x2u_start() 29 clear_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt76x2u_stop() 34 int mt76x2u_set_channel(struct mt76_phy *mphy) in mt76x2u_set_channel() argument 36 struct mt76x02_dev *dev = container_of(mphy->dev, struct mt76x02_dev, mt76); in mt76x2u_set_channel() 42 err = mt76x2u_phy_set_channel(dev, &mphy->chandef); in mt76x2u_set_channel() 69 struct mt76_phy *mphy = &dev->mphy; in mt76x2u_config() local 72 dev->txpower_conf = mt76_get_sar_power(mphy, in mt76x2u_config() 73 mphy->chandef.chan, in mt76x2u_config() 78 if (test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt76x2u_config() [all …]
|
D | pci_main.c | 17 ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mphy.mac_work, in mt76x2_start() 22 set_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt76x2_start() 31 clear_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt76x2_stop() 73 struct mt76_phy *mphy = &dev->mphy; in mt76x2_config() local 76 dev->txpower_conf = mt76_get_sar_power(mphy, in mt76x2_config() 77 mphy->chandef.chan, in mt76x2_config() 82 if (test_bit(MT76_STATE_RUNNING, &dev->mphy.state)) { in mt76x2_config() 91 mt76_update_channel(&dev->mphy); in mt76x2_config() 112 dev->mphy.chainmask = (tx_ant == 3) ? 0x202 : 0x101; in mt76x2_set_antenna() 113 dev->mphy.antenna_mask = tx_ant; in mt76x2_set_antenna() [all …]
|
D | phy.c | 139 enum nl80211_chan_width width = dev->mphy.chandef.width; in mt76x2_phy_set_txpower() 140 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x2_phy_set_txpower() 156 dev->mphy.txpower_cur = mt76x02_get_max_rate_power(&t); in mt76x2_phy_set_txpower() 205 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x2_phy_tssi_compensate() 255 dev->mphy.chandef.width >= NL80211_CHAN_WIDTH_40) in mt76x2_phy_set_gain_val() 259 dev->mphy.chandef.chan->band == NL80211_BAND_2GHZ && in mt76x2_phy_set_gain_val() 260 dev->mphy.chandef.width < NL80211_CHAN_WIDTH_40) in mt76x2_phy_set_gain_val() 270 if (dev->mphy.chandef.chan->flags & IEEE80211_CHAN_RADAR) in mt76x2_phy_set_gain_val() 300 if (dev->mphy.chandef.width == NL80211_CHAN_WIDTH_80) { in mt76x2_phy_update_channel_gain() 318 if (dev->mphy.chandef.chan->band == NL80211_BAND_2GHZ) in mt76x2_phy_update_channel_gain() [all …]
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7925/ |
D | init.c | 133 mt76_eeprom_override(&dev->mphy); in __mt7925_init_hardware() 151 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7925_init_hardware() 179 mt76_set_stream_caps(&dev->mphy, true); in mt7925_init_work() 229 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt792x_mac_work); in mt7925_register_device() 270 dev->mphy.sband_2g.sband.ht_cap.cap |= in mt7925_register_device() 273 dev->mphy.sband_2g.sband.ht_cap.ampdu_density = in mt7925_register_device() 275 dev->mphy.sband_5g.sband.ht_cap.cap |= in mt7925_register_device() 278 dev->mphy.sband_2g.sband.ht_cap.ampdu_density = in mt7925_register_device() 280 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7925_register_device() 286 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7925_register_device() [all …]
|
/linux-6.12.1/drivers/phy/ralink/ |
D | phy-mt7621-pci.c | 212 struct mt7621_pci_phy *mphy = phy_get_drvdata(phy); in mt7621_pci_phy_init() local 214 if (mphy->bypass_pipe_rst) in mt7621_pci_phy_init() 215 mt7621_bypass_pipe_rst(mphy); in mt7621_pci_phy_init() 217 return mt7621_set_phy_for_ssc(mphy); in mt7621_pci_phy_init() 222 struct mt7621_pci_phy *mphy = phy_get_drvdata(phy); in mt7621_pci_phy_power_on() local 225 mt7621_phy_rmw(mphy, RG_PE1_FRC_PHY_REG, in mt7621_pci_phy_power_on() 228 if (mphy->has_dual_port) { in mt7621_pci_phy_power_on() 229 mt7621_phy_rmw(mphy, RG_PE1_FRC_PHY_REG + RG_P0_TO_P1_WIDTH, in mt7621_pci_phy_power_on() 238 struct mt7621_pci_phy *mphy = phy_get_drvdata(phy); in mt7621_pci_phy_power_off() local 241 mt7621_phy_rmw(mphy, RG_PE1_FRC_PHY_REG, in mt7621_pci_phy_power_off() [all …]
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | init.c | 225 struct mt76_phy *mphy; in mt7915_led_set_config() local 228 mphy = container_of(led_cdev, struct mt76_phy, leds.cdev); in mt7915_led_set_config() 229 dev = container_of(mphy->dev, struct mt7915_dev, mt76); in mt7915_led_set_config() 235 mt76_wr(dev, MT_LED_STATUS_0(mphy->band_idx), val); in mt7915_led_set_config() 236 mt76_wr(dev, MT_LED_STATUS_1(mphy->band_idx), val); in mt7915_led_set_config() 239 mt76_wr(dev, MT_LED_EN(mphy->band_idx), 1); in mt7915_led_set_config() 243 if (dev->mphy.leds.al) in mt7915_led_set_config() 245 if (mphy->band_idx) in mt7915_led_set_config() 248 mt76_wr(dev, MT_LED_CTRL(mphy->band_idx), val); in mt7915_led_set_config() 249 mt76_clear(dev, MT_LED_CTRL(mphy->band_idx), MT_LED_CTRL_KICK); in mt7915_led_set_config() [all …]
|
D | testmode.c | 41 struct mt76_phy *mphy = phy->mt76; in mt7915_tm_set_tx_power() local 42 struct cfg80211_chan_def *chandef = &mphy->chandef; in mt7915_tm_set_tx_power() 257 struct mt76_phy *mphy = phy->mt76; in mt7915_tm_set_tx_len() local 258 struct mt76_testmode_data *td = &mphy->test; in mt7915_tm_set_tx_len() 274 if (mphy->chandef.chan->band == NL80211_BAND_5GHZ) in mt7915_tm_set_tx_len() 275 sband = &mphy->sband_5g.sband; in mt7915_tm_set_tx_len() 276 else if (mphy->chandef.chan->band == NL80211_BAND_6GHZ) in mt7915_tm_set_tx_len() 277 sband = &mphy->sband_6g.sband; in mt7915_tm_set_tx_len() 279 sband = &mphy->sband_2g.sband; in mt7915_tm_set_tx_len() 308 switch (mphy->chandef.width) { in mt7915_tm_set_tx_len() [all …]
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | init.c | 117 int rx_chains = dev->mphy.antenna_mask; in mt7603_phy_init() 295 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7603_init_hardware() 341 static void mt7603_led_set_config(struct mt76_phy *mphy, u8 delay_on, in mt7603_led_set_config() argument 344 struct mt7603_dev *dev = container_of(mphy->dev, struct mt7603_dev, in mt7603_led_set_config() 352 addr = mt7603_reg_map(dev, MT_LED_STATUS_0(mphy->leds.pin)); in mt7603_led_set_config() 354 addr = mt7603_reg_map(dev, MT_LED_STATUS_1(mphy->leds.pin)); in mt7603_led_set_config() 357 val = MT_LED_CTRL_REPLAY(mphy->leds.pin) | in mt7603_led_set_config() 358 MT_LED_CTRL_KICK(mphy->leds.pin); in mt7603_led_set_config() 359 if (mphy->leds.al) in mt7603_led_set_config() 360 val |= MT_LED_CTRL_POLARITY(mphy->leds.pin); in mt7603_led_set_config() [all …]
|
D | eeprom.c | 174 dev->mphy.cap.has_2ghz = true; in mt7603_eeprom_init() 175 memcpy(dev->mphy.macaddr, eeprom + MT_EE_MAC_ADDR, ETH_ALEN); in mt7603_eeprom_init() 178 dev->mphy.antenna_mask = 3; in mt7603_eeprom_init() 182 dev->mphy.antenna_mask = 1; in mt7603_eeprom_init() 184 dev->mphy.chainmask = dev->mphy.antenna_mask; in mt7603_eeprom_init() 185 mt76_eeprom_override(&dev->mphy); in mt7603_eeprom_init()
|
D | main.c | 18 dev->mphy.survey_time = ktime_get_boottime(); in mt7603_start() 19 set_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt7603_start() 20 mt7603_mac_work(&dev->mphy.mac_work.work); in mt7603_start() 30 clear_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt7603_stop() 31 cancel_delayed_work_sync(&dev->mphy.mac_work); in mt7603_stop() 136 int mt7603_set_channel(struct mt76_phy *mphy) in mt7603_set_channel() argument 138 struct mt7603_dev *dev = container_of(mphy->dev, struct mt7603_dev, mt76); in mt7603_set_channel() 139 struct cfg80211_chan_def *def = &mphy->chandef; in mt7603_set_channel() 177 ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mphy.mac_work, in mt7603_set_channel() 187 dev->mphy.survey_time = ktime_get_boottime(); in mt7603_set_channel() [all …]
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7921/ |
D | testmode.c | 43 struct mt76_phy *phy = &dev->mphy; in mt7921_tm_set() 115 struct mt76_phy *mphy = hw->priv; in mt7921_testmode_cmd() local 116 struct mt792x_phy *phy = mphy->priv; in mt7921_testmode_cmd() 119 if (!test_bit(MT76_STATE_RUNNING, &mphy->state) || in mt7921_testmode_cmd() 152 struct mt76_phy *mphy = hw->priv; in mt7921_testmode_dump() local 153 struct mt792x_phy *phy = mphy->priv; in mt7921_testmode_dump() 156 if (!test_bit(MT76_STATE_RUNNING, &mphy->state) || in mt7921_testmode_dump() 158 !mt76_testmode_enabled(mphy)) in mt7921_testmode_dump()
|
D | init.c | 185 mt76_eeprom_override(&dev->mphy); in __mt7921_init_hardware() 200 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7921_init_hardware() 228 mt76_set_stream_caps(&dev->mphy, true); in mt7921_init_work() 275 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt792x_mac_work); in mt7921_register_device() 316 dev->mphy.sband_2g.sband.ht_cap.cap |= in mt7921_register_device() 319 dev->mphy.sband_5g.sband.ht_cap.cap |= in mt7921_register_device() 322 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7921_register_device() 329 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7921_register_device() 333 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; in mt7921_register_device() 334 dev->mphy.hw->wiphy->available_antennas_tx = dev->mphy.chainmask; in mt7921_register_device()
|
D | sdio_mcu.c | 95 set_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); in mt7921s_mcu_init() 103 struct mt76_phy *mphy = &dev->mt76.phy; in mt7921s_mcu_drv_pmctrl() local 115 if (!err && test_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state)) in mt7921s_mcu_drv_pmctrl() 127 clear_bit(MT76_STATE_PM, &mphy->state); in mt7921s_mcu_drv_pmctrl() 139 struct mt76_phy *mphy = &dev->mt76.phy; in mt7921s_mcu_fw_pmctrl() local 146 if (test_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state)) { in mt7921s_mcu_fw_pmctrl() 166 clear_bit(MT76_STATE_PM, &mphy->state); in mt7921s_mcu_fw_pmctrl()
|
D | main.c | 221 struct mt76_phy *mphy = phy->mt76; in __mt7921_start() local 224 err = mt76_connac_mcu_set_mac_enable(mphy->dev, 0, true, false); in __mt7921_start() 228 err = mt76_connac_mcu_set_channel_domain(mphy); in __mt7921_start() 236 err = mt7921_set_tx_sar_pwr(mphy->hw, NULL); in __mt7921_start() 241 set_bit(MT76_STATE_RUNNING, &mphy->state); in __mt7921_start() 243 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in __mt7921_start() 245 if (mt76_is_mmio(mphy->dev)) { in __mt7921_start() 310 ret = mt76_connac_mcu_uni_add_dev(&dev->mphy, &vif->bss_conf, in mt7921_add_interface() 458 int mt7921_set_channel(struct mt76_phy *mphy) in mt7921_set_channel() argument 460 struct mt792x_phy *phy = mphy->priv; in mt7921_set_channel() [all …]
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7996/ |
D | init.c | 230 struct mt76_phy *mphy; in mt7996_led_set_config() local 233 mphy = container_of(led_cdev, struct mt76_phy, leds.cdev); in mt7996_led_set_config() 234 dev = container_of(mphy->dev, struct mt7996_dev, mt76); in mt7996_led_set_config() 237 mt76_rmw_field(dev, MT_TMAC_TCR0(mphy->band_idx), MT_TMAC_TCR0_TX_BLINK, 2); in mt7996_led_set_config() 240 mt76_wr(dev, MT_LED_EN(mphy->band_idx), 1); in mt7996_led_set_config() 245 mt76_wr(dev, MT_LED_TX_BLINK(mphy->band_idx), val); in mt7996_led_set_config() 253 if (mphy->band_idx == MT_BAND1) in mt7996_led_set_config() 257 if (mphy->leds.al) in mt7996_led_set_config() 260 mt76_wr(dev, MT_LED_CTRL(mphy->band_idx), val); in mt7996_led_set_config() 261 mt76_clear(dev, MT_LED_CTRL(mphy->band_idx), MT_LED_CTRL_KICK); in mt7996_led_set_config() [all …]
|