Home
last modified time | relevance | path

Searched refs:mphy (Results 1 – 25 of 116) sorted by relevance

12345

/drivers/net/wireless/mediatek/mt76/mt7615/
A Dinit.c430 dev->mphy.chainmask = dev->mphy.antenna_mask; in mt7615_cap_dbdc_enable()
431 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; in mt7615_cap_dbdc_enable()
432 dev->mphy.hw->wiphy->available_antennas_tx = dev->mphy.chainmask; in mt7615_cap_dbdc_enable()
485 index = dev->dbdc_support ? mphy->band_idx : mphy->leds.pin; in mt7615_led_set_config()
494 if (mphy->band_idx) in mt7615_led_set_config()
545 if (!mphy) in mt7615_register_ext_phy()
548 phy = mphy->priv; in mt7615_register_ext_phy()
550 phy->mt76 = mphy; in mt7615_register_ext_phy()
551 mphy->chainmask = dev->chainmask & ~dev->mphy.chainmask; in mt7615_register_ext_phy()
552 mphy->antenna_mask = BIT(hweight8(mphy->chainmask)) - 1; in mt7615_register_ext_phy()
[all …]
A Dtestmode.c51 struct mt76_phy *mphy = phy->mt76; in mt7615_tm_set_tx_power() local
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()
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()
299 struct mt76_testmode_data *td = &mphy->test; in mt7615_tm_set_params()
300 struct mt7615_phy *phy = mphy->priv; in mt7615_tm_set_params()
310 if (td->tx_antenna_mask & ~mphy->chainmask) in mt7615_tm_set_params()
[all …]
A Dmac.c724 struct mt76_phy *mphy = &dev->mphy; in mt7615_mac_write_txwi() local
1313 struct mt76_phy *mphy; in mt7615_fill_txs() local
1413 mphy = &dev->mphy; in mt7615_fill_txs()
1928 state = mphy->chan_state; in mt7615_phy_update_channel()
2012 struct mt76_phy *mphy; in mt7615_pm_wake_work() local
2016 mphy = dev->phy.mt76; in mt7615_pm_wake_work()
2039 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in mt7615_pm_wake_work()
2083 struct mt76_phy *mphy; in mt7615_mac_work() local
2088 phy = mphy->priv; in mt7615_mac_work()
2094 mphy->mac_work_count = 0; in mt7615_mac_work()
[all …]
A Deeprom.c108 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 …]
A Dsdio_mcu.c58 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()
/drivers/net/wireless/mediatek/mt76/mt76x0/
A Dmain.c11 int mt76x0_set_channel(struct mt76_phy *mphy) in mt76x0_set_channel() argument
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()
74 mphy->chandef.chan, in mt76x0_config()
[all …]
/drivers/net/wireless/mediatek/mt76/
A Dmt792x_mac.c12 struct mt76_phy *mphy; in mt792x_mac_work() local
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()
245 state = mphy->chan_state; in mt792x_phy_update_channel()
317 struct mt76_phy *mphy; in mt792x_pm_wake_work() local
321 mphy = dev->phy.mt76; in mt792x_pm_wake_work()
339 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in mt792x_pm_wake_work()
352 struct mt76_phy *mphy; in mt792x_pm_power_save_work() local
[all …]
A Dmt76x02_util.c104 MT_LED_CTRL_KICK(mphy->leds.pin); in mt76x02_led_set_config()
105 if (mphy->leds.al) in mt76x02_led_set_config()
135 mt76x02_led_set_config(mphy, 0, 0xff); in mt76x02_led_set_brightness()
137 mt76x02_led_set_config(mphy, 0xff, 0); in mt76x02_led_set_brightness()
169 dev->mphy.leds.cdev.brightness_set = in mt76x02_init_device()
189 dev->mphy.sband_2g.sband.ht_cap.cap |= in mt76x02_init_device()
193 dev->mphy.chainmask = 0x202; in mt76x02_init_device()
194 dev->mphy.antenna_mask = 3; in mt76x02_init_device()
196 dev->mphy.chainmask = 0x101; in mt76x02_init_device()
197 dev->mphy.antenna_mask = 1; in mt76x02_init_device()
[all …]
A Dmt76x02_mmio.c18 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()
357 q = dev->mphy.q_tx[i]; in mt76x02_tx_hang()
425 __mt76_sta_remove(&dev->mphy, vif, sta); in mt76x02_reset_state()
440 set_bit(MT76_RESET, &dev->mphy.state); in mt76x02_watchdog_reset()
501 clear_bit(MT76_RESET, &dev->mphy.state); in mt76x02_watchdog_reset()
519 set_bit(MT76_RESTART, &dev->mphy.state); in mt76x02_watchdog_reset()
524 mt76_txq_schedule_all(&dev->mphy); in mt76x02_watchdog_reset()
536 clear_bit(MT76_RESTART, &dev->mphy.state); in mt76x02_reconfig_complete()
[all …]
A Dmt76x02_mac.c28 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()
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()
735 eth_random_addr(dev->mphy.macaddr); in mt76x02_mac_setaddr()
738 dev->mphy.macaddr); in mt76x02_mac_setaddr()
747 get_unaligned_le32(dev->mphy.macaddr)); in mt76x02_mac_setaddr()
1031 state = mphy->chan_state; in mt76x02_update_channel()
1187 mphy.mac_work.work); in mt76x02_mac_work()
[all …]
/drivers/net/wireless/mediatek/mt76/mt76x2/
A Dusb_main.c18 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 …]
A Dpci_main.c17 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 …]
A Dphy.c139 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 …]
/drivers/net/wireless/mediatek/mt76/mt7915/
A Dinit.c228 struct mt76_phy *mphy; in mt7915_led_set_config() local
246 if (dev->mphy.leds.al) in mt7915_led_set_config()
248 if (mphy->band_idx) in mt7915_led_set_config()
665 struct mt76_phy *mphy; in mt7915_alloc_ext_phy() local
671 if (!mphy) in mt7915_alloc_ext_phy()
674 phy = mphy->priv; in mt7915_alloc_ext_phy()
676 phy->mt76 = mphy; in mt7915_alloc_ext_phy()
702 mphy->macaddr[0] |= 2; in mt7915_register_ext_phy()
705 mt76_eeprom_override(mphy); in mt7915_register_ext_phy()
724 mt76_unregister_phy(mphy); in mt7915_register_ext_phy()
[all …]
A Dtestmode.c41 struct mt76_phy *mphy = phy->mt76; in mt7915_tm_set_tx_power() local
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()
275 sband = &mphy->sband_5g.sband; 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()
653 struct mt7915_phy *phy = mphy->priv; in mt7915_tm_set_state()
656 mphy->test.state = state; in mt7915_tm_set_state()
696 struct mt7915_phy *phy = mphy->priv; in mt7915_tm_set_params()
[all …]
/drivers/phy/ralink/
A Dphy-mt7621-pci.c212 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 …]
/drivers/net/wireless/mediatek/mt76/mt7603/
A Dinit.c117 int rx_chains = dev->mphy.antenna_mask; in mt7603_phy_init()
295 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7603_init_hardware()
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()
376 mt7603_led_set_config(mphy, delta_on, delta_off); in mt7603_led_set_blink()
387 mt7603_led_set_config(mphy, 0, 0xff); in mt7603_led_set_brightness()
389 mt7603_led_set_config(mphy, 0xff, 0); in mt7603_led_set_brightness()
480 dev->mphy.txpower_cur = target_power; in mt7603_init_txpower()
[all …]
A Dmain.c18 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()
190 if (!mphy->offchannel) in mt7603_set_channel()
196 mt7603_mac_work(&dev->mphy.mac_work.work); in mt7603_set_channel()
205 struct mt76_phy *mphy = &dev->mphy; in mt7603_set_sar_specs() local
215 return mt76_update_channel(mphy); in mt7603_set_sar_specs()
226 ret = mt76_update_channel(&dev->mphy); in mt7603_config()
[all …]
A Deeprom.c174 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()
/drivers/net/wireless/mediatek/mt76/mt7925/
A Dinit.c252 mt76_eeprom_override(&dev->mphy); in __mt7925_init_hardware()
270 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7925_init_hardware()
298 mt76_set_stream_caps(&dev->mphy, true); in mt7925_init_work()
398 dev->mphy.sband_2g.sband.ht_cap.cap |= in mt7925_register_device()
401 dev->mphy.sband_2g.sband.ht_cap.ampdu_density = in mt7925_register_device()
403 dev->mphy.sband_5g.sband.ht_cap.cap |= in mt7925_register_device()
406 dev->mphy.sband_2g.sband.ht_cap.ampdu_density = in mt7925_register_device()
408 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7925_register_device()
414 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7925_register_device()
418 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; in mt7925_register_device()
[all …]
A Dtestmode.c41 struct mt76_phy *phy = &dev->mphy; in mt7925_tm_set()
120 struct mt76_phy *mphy = hw->priv; in mt7925_testmode_cmd() local
121 struct mt792x_phy *phy = mphy->priv; in mt7925_testmode_cmd()
124 if (!test_bit(MT76_STATE_RUNNING, &mphy->state) || in mt7925_testmode_cmd()
157 struct mt76_phy *mphy = hw->priv; in mt7925_testmode_dump() local
158 struct mt792x_phy *phy = mphy->priv; in mt7925_testmode_dump()
161 if (!test_bit(MT76_STATE_RUNNING, &mphy->state) || in mt7925_testmode_dump()
163 !mt76_testmode_enabled(mphy)) in mt7925_testmode_dump()
/drivers/net/wireless/mediatek/mt76/mt7921/
A Dinit.c192 mt76_eeprom_override(&dev->mphy); in __mt7921_init_hardware()
207 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7921_init_hardware()
235 mt76_set_stream_caps(&dev->mphy, true); in mt7921_init_work()
283 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt792x_mac_work); in mt7921_register_device()
324 dev->mphy.sband_2g.sband.ht_cap.cap |= in mt7921_register_device()
327 dev->mphy.sband_5g.sband.ht_cap.cap |= in mt7921_register_device()
330 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7921_register_device()
337 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7921_register_device()
341 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; in mt7921_register_device()
342 dev->mphy.hw->wiphy->available_antennas_tx = dev->mphy.chainmask; in mt7921_register_device()
A Dtestmode.c43 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()
A Dsdio_mcu.c95 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()
/drivers/net/wireless/mediatek/mt76/mt7996/
A Dinit.c254 struct mt76_phy *mphy; in mt7996_led_set_config() local
281 if (mphy->leds.al) in mt7996_led_set_config()
629 struct mt76_phy *mphy; in mt7996_register_phy() local
643 if (!mphy) in mt7996_register_phy()
646 phy = mphy->priv; in mt7996_register_phy()
648 phy->mt76 = mphy; in mt7996_register_phy()
649 mphy->dev->phys[band] = mphy; in mt7996_register_phy()
665 mphy->macaddr[0] |= 2; in mt7996_register_phy()
666 mphy->macaddr[0] ^= BIT(7); in mt7996_register_phy()
668 mphy->macaddr[0] ^= BIT(6); in mt7996_register_phy()
[all …]

Completed in 66 milliseconds

12345