Home
last modified time | relevance | path

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

1234

/linux/drivers/net/wireless/mediatek/mt76/mt7615/
A Dinit.c425 dev->mphy.chainmask = dev->mphy.antenna_mask; in mt7615_cap_dbdc_enable()
426 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; in mt7615_cap_dbdc_enable()
427 dev->mphy.hw->wiphy->available_antennas_tx = dev->mphy.chainmask; in mt7615_cap_dbdc_enable()
447 struct mt76_phy *mphy; in mt7615_register_ext_phy() local
461 if (!mphy) in mt7615_register_ext_phy()
464 phy = mphy->priv; in mt7615_register_ext_phy()
466 phy->mt76 = mphy; in mt7615_register_ext_phy()
467 mphy->chainmask = dev->chainmask & ~dev->mphy.chainmask; in mt7615_register_ext_phy()
468 mphy->antenna_mask = BIT(hweight8(mphy->chainmask)) - 1; in mt7615_register_ext_phy()
487 mphy->macaddr[0] |= 2; 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()
262 struct mt7615_phy *phy = mphy->priv; in mt7615_tm_set_state()
263 struct mt76_testmode_data *td = &mphy->test; in mt7615_tm_set_state()
266 mphy->test.state = state; in mt7615_tm_set_state()
300 struct mt76_testmode_data *td = &mphy->test; in mt7615_tm_set_params()
301 struct mt7615_phy *phy = mphy->priv; in mt7615_tm_set_params()
311 if (td->tx_antenna_mask & ~mphy->chainmask) in mt7615_tm_set_params()
[all …]
A Deeprom.c103 dev->mphy.cap.has_2ghz = true; in mt7615_eeprom_parse_hw_band_cap()
104 dev->mphy.cap.has_5ghz = true; in mt7615_eeprom_parse_hw_band_cap()
110 dev->mphy.cap.has_2ghz = true; in mt7615_eeprom_parse_hw_band_cap()
116 dev->mphy.cap.has_5ghz = true; in mt7615_eeprom_parse_hw_band_cap()
124 dev->mphy.cap.has_5ghz = true; in mt7615_eeprom_parse_hw_band_cap()
127 dev->mphy.cap.has_2ghz = true; in mt7615_eeprom_parse_hw_band_cap()
133 dev->mphy.cap.has_2ghz = true; in mt7615_eeprom_parse_hw_band_cap()
134 dev->mphy.cap.has_5ghz = true; in mt7615_eeprom_parse_hw_band_cap()
164 dev->mphy.antenna_mask = dev->chainmask; in mt7615_eeprom_parse_hw_cap()
165 dev->mphy.chainmask = dev->chainmask; in mt7615_eeprom_parse_hw_cap()
[all …]
A Dmac.c411 mphy = dev->mt76.phy2; in mt7615_mac_fill_rx()
624 struct mt76_phy *mphy = &dev->mphy; in mt7615_mac_write_txwi() local
643 mphy = dev->mt76.phy2; in mt7615_mac_write_txwi()
1277 struct mt76_phy *mphy; in mt7615_fill_txs() local
1377 mphy = &dev->mphy; in mt7615_fill_txs()
1950 struct mt76_phy *mphy; in mt7615_pm_wake_work() local
1954 mphy = dev->phy.mt76; in mt7615_pm_wake_work()
1974 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in mt7615_pm_wake_work()
2010 struct mt76_phy *mphy; in mt7615_mac_work() local
2015 phy = mphy->priv; in mt7615_mac_work()
[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()
178 set_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); in mt7663s_mcu_init()
A Ddma.c27 ret = mt76_init_tx_queue(&dev->mphy, i, wmm_queue_map[i], in mt7622_init_tx_queues_multi()
34 ret = mt76_init_tx_queue(&dev->mphy, MT_TXQ_PSD, MT7622_TXQ_MGMT, in mt7622_init_tx_queues_multi()
57 ret = mt76_init_tx_queue(&dev->mphy, 0, 0, MT7615_TX_RING_SIZE, in mt7615_init_tx_queues()
63 dev->mphy.q_tx[i] = dev->mphy.q_tx[0]; in mt7615_init_tx_queues()
74 if (!mt76_connac_pm_ref(&dev->mphy, &dev->pm)) { in mt7615_poll_tx()
84 mt76_connac_pm_unref(&dev->mphy, &dev->pm); in mt7615_poll_tx()
96 if (!mt76_connac_pm_ref(&dev->mphy, &dev->pm)) { in mt7615_poll_rx()
102 mt76_connac_pm_unref(&dev->mphy, &dev->pm); in mt7615_poll_rx()
/linux/drivers/net/wireless/mediatek/mt76/mt76x2/
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()
43 set_bit(MT76_RESET, &dev->mphy.state); in mt76x2_set_channel()
45 mt76_set_channel(&dev->mphy); in mt76x2_set_channel()
55 clear_bit(MT76_RESET, &dev->mphy.state); in mt76x2_set_channel()
61 mt76_txq_schedule_all(&dev->mphy); in mt76x2_set_channel()
86 if (test_bit(MT76_STATE_RUNNING, &dev->mphy.state)) { in mt76x2_config()
119 dev->mphy.chainmask = (tx_ant == 3) ? 0x202 : 0x101; in mt76x2_set_antenna()
120 dev->mphy.antenna_mask = tx_ant; in mt76x2_set_antenna()
[all …]
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()
44 set_bit(MT76_RESET, &dev->mphy.state); in mt76x2u_set_channel()
46 mt76_set_channel(&dev->mphy); in mt76x2u_set_channel()
55 clear_bit(MT76_RESET, &dev->mphy.state); in mt76x2u_set_channel()
59 mt76_txq_schedule_all(&dev->mphy); in mt76x2u_set_channel()
86 if (test_bit(MT76_STATE_RUNNING, &dev->mphy.state)) in mt76x2u_config()
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 …]
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
A Dinit.c436 struct mt76_phy *mphy; in mt7915_register_ext_phy() local
446 if (!mphy) in mt7915_register_ext_phy()
449 phy = mphy->priv; in mt7915_register_ext_phy()
451 phy->mt76 = mphy; in mt7915_register_ext_phy()
452 mphy->chainmask = dev->chainmask & ~dev->mphy.chainmask; in mt7915_register_ext_phy()
453 mphy->antenna_mask = BIT(hweight8(mphy->chainmask)) - 1; in mt7915_register_ext_phy()
458 mt7915_init_wiphy(mphy->hw); in mt7915_register_ext_phy()
462 mt76_eeprom_override(mphy); in mt7915_register_ext_phy()
898 mt76_unregister_phy(mphy); in mt7915_unregister_ext_phy()
931 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; in mt7915_register_device()
[all …]
A Dtestmode.c55 struct mt76_phy *mphy = phy->mt76; in mt7915_tm_set_tx_power() local
274 struct mt76_phy *mphy = phy->mt76; in mt7915_tm_set_tx_len() local
275 struct mt76_testmode_data *td = &mphy->test; in mt7915_tm_set_tx_len()
292 sband = &mphy->sband_5g.sband; in mt7915_tm_set_tx_len()
294 sband = &mphy->sband_2g.sband; in mt7915_tm_set_tx_len()
323 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()
722 struct mt7915_phy *phy = mphy->priv; in mt7915_tm_dump_stats()
[all …]
A Dmac.c415 mphy = dev->mt76.phy2; in mt7915_mac_fill_rx()
416 if (!mphy) in mt7915_mac_fill_rx()
419 phy = mphy->priv; in mt7915_mac_fill_rx()
1036 struct mt76_phy *mphy = &dev->mphy; in mt7915_mac_write_txwi() local
1052 mphy = dev->mt76.phy2; in mt7915_mac_write_txwi()
1353 struct mt76_phy *mphy; in mt7915_mac_add_txs_skb() local
1394 mphy = &dev->mphy; in mt7915_mac_add_txs_skb()
1396 mphy = dev->mt76.phy2; in mt7915_mac_add_txs_skb()
2094 struct mt76_phy *mphy; in mt7915_mac_work() local
2098 phy = mphy->priv; in mt7915_mac_work()
[all …]
/linux/drivers/phy/ralink/
A Dphy-mt7621-pci.c213 struct mt7621_pci_phy *mphy = phy_get_drvdata(phy); in mt7621_pci_phy_init() local
215 if (mphy->bypass_pipe_rst) in mt7621_pci_phy_init()
216 mt7621_bypass_pipe_rst(mphy); in mt7621_pci_phy_init()
218 return mt7621_set_phy_for_ssc(mphy); in mt7621_pci_phy_init()
223 struct mt7621_pci_phy *mphy = phy_get_drvdata(phy); in mt7621_pci_phy_power_on() local
226 mt7621_phy_rmw(mphy, RG_PE1_FRC_PHY_REG, in mt7621_pci_phy_power_on()
229 if (mphy->has_dual_port) { in mt7621_pci_phy_power_on()
230 mt7621_phy_rmw(mphy, RG_PE1_FRC_PHY_REG + RG_P0_TO_P1_WIDTH, in mt7621_pci_phy_power_on()
239 struct mt7621_pci_phy *mphy = phy_get_drvdata(phy); in mt7621_pci_phy_power_off() local
242 mt7621_phy_rmw(mphy, RG_PE1_FRC_PHY_REG, in mt7621_pci_phy_power_off()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
A Dmac.c844 struct mt76_phy *mphy = &dev->mphy; in mt7921_mac_write_txwi() local
1245 state = mphy->chan_state; in mt7921_phy_update_channel()
1400 struct mt76_phy *mphy; in mt7921_mac_work() local
1404 phy = mphy->priv; in mt7921_mac_work()
1408 mt76_update_survey(mphy); in mt7921_mac_work()
1410 mphy->mac_work_count = 0; in mt7921_mac_work()
1425 struct mt76_phy *mphy; in mt7921_pm_wake_work() local
1429 mphy = dev->phy.mt76; in mt7921_pm_wake_work()
1445 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in mt7921_pm_wake_work()
1457 struct mt76_phy *mphy; in mt7921_pm_power_save_work() local
[all …]
A Dinit.c163 mt76_eeprom_override(&dev->mphy); in __mt7921_init_hardware()
178 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7921_init_hardware()
224 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt7921_mac_work); in mt7921_register_device()
255 dev->mphy.sband_2g.sband.ht_cap.cap |= in mt7921_register_device()
258 dev->mphy.sband_5g.sband.ht_cap.cap |= in mt7921_register_device()
261 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7921_register_device()
268 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; in mt7921_register_device()
269 dev->mphy.hw->wiphy->available_antennas_tx = dev->mphy.chainmask; in mt7921_register_device()
271 mt76_set_stream_caps(&dev->mphy, true); in mt7921_register_device()
A Dtestmode.c43 struct mt76_phy *phy = &dev->mphy; in mt7921_tm_set()
116 struct mt76_phy *mphy = hw->priv; in mt7921_testmode_cmd() local
117 struct mt7921_phy *phy = mphy->priv; in mt7921_testmode_cmd()
120 if (!test_bit(MT76_STATE_RUNNING, &mphy->state) || in mt7921_testmode_cmd()
153 struct mt76_phy *mphy = hw->priv; in mt7921_testmode_dump() local
154 struct mt7921_phy *phy = mphy->priv; in mt7921_testmode_dump()
157 if (!test_bit(MT76_STATE_RUNNING, &mphy->state) || in mt7921_testmode_dump()
159 !mt76_testmode_enabled(mphy)) in mt7921_testmode_dump()
A Dmain.c213 struct mt76_phy *mphy = phy->mt76; in __mt7921_start() local
235 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in __mt7921_start()
725 struct mt76_phy *mphy = hw->priv; in mt7921_tx() local
1127 struct mt76_phy *mphy = hw->priv; in mt7921_hw_scan() local
1141 struct mt76_phy *mphy = hw->priv; in mt7921_cancel_hw_scan() local
1154 struct mt76_phy *mphy = hw->priv; in mt7921_start_sched_scan() local
1174 struct mt76_phy *mphy = hw->priv; in mt7921_stop_sched_scan() local
1257 &dev->mphy); in mt7921_suspend()
1283 &dev->mphy); in mt7921_resume()
1346 struct mt76_phy *mphy = hw->priv; in mt7921_set_sar_specs() local
[all …]
A Dsdio_mac.c72 set_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7921s_init_reset()
84 clear_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); in mt7921s_init_reset()
85 clear_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7921s_init_reset()
96 mt76_txq_schedule_all(&dev->mphy); in mt7921s_mac_reset()
98 set_bit(MT76_RESET, &dev->mphy.state); in mt7921s_mac_reset()
99 set_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7921s_mac_reset()
117 clear_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); in mt7921s_mac_reset()
118 clear_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7921s_mac_reset()
135 clear_bit(MT76_RESET, &dev->mphy.state); in mt7921s_mac_reset()
A Dsdio_mcu.c72 set_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); in mt7921s_mcu_init()
80 struct mt76_phy *mphy = &dev->mt76.phy; in mt7921s_mcu_drv_pmctrl() local
99 clear_bit(MT76_STATE_PM, &mphy->state); in mt7921s_mcu_drv_pmctrl()
111 struct mt76_phy *mphy = &dev->mt76.phy; in mt7921s_mcu_fw_pmctrl() local
126 clear_bit(MT76_STATE_PM, &mphy->state); in mt7921s_mcu_fw_pmctrl()
/linux/drivers/net/wireless/mediatek/mt76/
A Dmt76x02_mmio.c18 struct mt76_queue *q = dev->mphy.q_tx[MT_TXQ_PSD]; in mt76x02_pre_tbtt_tasklet()
140 mt76_txq_schedule_all(&dev->mphy); in mt76x02_tx_worker()
284 mt76_queue_kick(dev, dev->mphy.q_tx[MT_TXQ_PSD]); in mt76x02_irq_handler()
349 q = dev->mphy.q_tx[i]; in mt76x02_tx_hang()
389 clear_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt76x02_reset_state()
430 set_bit(MT76_RESET, &dev->mphy.state); in mt76x02_watchdog_reset()
491 clear_bit(MT76_RESET, &dev->mphy.state); in mt76x02_watchdog_reset()
507 set_bit(MT76_RESTART, &dev->mphy.state); in mt76x02_watchdog_reset()
512 mt76_txq_schedule_all(&dev->mphy); in mt76x02_watchdog_reset()
524 clear_bit(MT76_RESTART, &dev->mphy.state); in mt76x02_reconfig_complete()
[all …]
A Dmt76x02_mac.c204 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()
731 ether_addr_copy(dev->mphy.macaddr, addr); in mt76x02_mac_setaddr()
734 eth_random_addr(dev->mphy.macaddr); in mt76x02_mac_setaddr()
737 dev->mphy.macaddr); in mt76x02_mac_setaddr()
746 get_unaligned_le32(dev->mphy.macaddr)); in mt76x02_mac_setaddr()
1031 state = mphy->chan_state; in mt76x02_update_channel()
1168 mphy.mac_work.work); in mt76x02_mac_work()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt76x0/
A Dusb.c75 clear_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt76x0u_cleanup()
84 clear_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt76x0u_stop()
86 cancel_delayed_work_sync(&dev->mphy.mac_work); in mt76x0u_stop()
90 if (test_bit(MT76_REMOVED, &dev->mphy.state)) in mt76x0u_stop()
112 ieee80211_queue_delayed_work(dev->mt76.hw, &dev->mphy.mac_work, in mt76x0u_start()
116 set_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt76x0u_start()
199 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt76x0u_register_device()
290 bool initialized = test_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt76x0_disconnect()
310 clear_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); in mt76x0_suspend()
A Deeprom.c55 dev->mphy.cap.has_2ghz, dev->mphy.cap.has_5ghz); in mt76x0_set_chip_cap()
58 dev->mphy.cap.has_2ghz = false; in mt76x0_set_chip_cap()
63 dev->mphy.cap.has_5ghz = false; in mt76x0_set_chip_cap()
112 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x0_read_rx_gain()
132 struct cfg80211_chan_def *chandef = &dev->mphy.chandef; in mt76x0_get_delta()
345 memcpy(dev->mphy.macaddr, (u8 *)dev->mt76.eeprom.data + MT_EE_MAC_ADDR, in mt76x0_eeprom_init()
347 mt76_eeprom_override(&dev->mphy); in mt76x0_eeprom_init()
348 mt76x02_mac_setaddr(dev, dev->mphy.macaddr); in mt76x0_eeprom_init()
/linux/drivers/net/wireless/mediatek/mt76/mt7603/
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()
147 set_bit(MT76_RESET, &dev->mphy.state); in mt7603_set_channel()
150 mt76_set_channel(&dev->mphy); in mt7603_set_channel()
156 dev->mphy.chandef = *def; in mt7603_set_channel()
180 clear_bit(MT76_RESET, &dev->mphy.state); in mt7603_set_channel()
182 mt76_txq_schedule_all(&dev->mphy); in mt7603_set_channel()
[all …]
A Dbeacon.c27 mt76_tx_queue_skb(dev, dev->mphy.q_tx[MT_TXQ_BEACON], skb, in mt7603_update_beacon_iter()
34 dev->mphy.q_tx[MT_TXQ_CAB]->hw_idx) | in mt7603_update_beacon_iter()
84 q = dev->mphy.q_tx[MT_TXQ_BEACON]; in mt7603_pre_tbtt_tasklet()
95 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_CAB], false); in mt7603_pre_tbtt_tasklet()
101 q = dev->mphy.q_tx[MT_TXQ_CAB]; in mt7603_pre_tbtt_tasklet()
141 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_BEACON], false); in mt7603_pre_tbtt_tasklet()
142 if (dev->mphy.q_tx[MT_TXQ_BEACON]->queued > hweight8(mdev->beacon_mask)) in mt7603_pre_tbtt_tasklet()

Completed in 47 milliseconds

1234