Home
last modified time | relevance | path

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

12345

/linux/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 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 Dmac.c731 struct mt76_phy *mphy = &dev->mphy; in mt7615_mac_write_txwi() local
1320 struct mt76_phy *mphy; in mt7615_fill_txs() local
1420 mphy = &dev->mphy; in mt7615_fill_txs()
1939 state = mphy->chan_state; in mt7615_phy_update_channel()
2023 struct mt76_phy *mphy; in mt7615_pm_wake_work() local
2027 mphy = dev->phy.mt76; in mt7615_pm_wake_work()
2050 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in mt7615_pm_wake_work()
2094 struct mt76_phy *mphy; in mt7615_mac_work() local
2099 phy = mphy->priv; in mt7615_mac_work()
2105 mphy->mac_work_count = 0; 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()
177 set_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); in mt7663s_mcu_init()
A Dpci_init.c55 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7615_init_hardware()
78 dev->mphy.leds.cdev.brightness_set = mt7615_led_set_brightness; in mt7615_register_device()
79 dev->mphy.leds.cdev.blink_set = mt7615_led_set_blink; in mt7615_register_device()
100 mt7615_init_txpower(dev, &dev->mphy.sband_2g.sband); in mt7615_register_device()
101 mt7615_init_txpower(dev, &dev->mphy.sband_5g.sband); in mt7615_register_device()
/linux/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 …]
/linux/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()
248 state = mphy->chan_state; in mt792x_phy_update_channel()
320 struct mt76_phy *mphy; in mt792x_pm_wake_work() local
324 mphy = dev->phy.mt76; in mt792x_pm_wake_work()
342 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in mt792x_pm_wake_work()
355 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()
358 q = dev->mphy.q_tx[i]; in mt76x02_tx_hang()
400 clear_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt76x02_reset_state()
441 set_bit(MT76_RESET, &dev->mphy.state); in mt76x02_watchdog_reset()
502 clear_bit(MT76_RESET, &dev->mphy.state); in mt76x02_watchdog_reset()
518 set_bit(MT76_RESTART, &dev->mphy.state); in mt76x02_watchdog_reset()
523 mt76_txq_schedule_all(&dev->mphy); in mt76x02_watchdog_reset()
535 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()
737 eth_random_addr(dev->mphy.macaddr); in mt76x02_mac_setaddr()
740 dev->mphy.macaddr); in mt76x02_mac_setaddr()
749 get_unaligned_le32(dev->mphy.macaddr)); in mt76x02_mac_setaddr()
1033 state = mphy->chan_state; in mt76x02_update_channel()
1189 mphy.mac_work.work); in mt76x02_mac_work()
[all …]
/linux/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 …]
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
A Dinit.c133 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()
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()
290 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; in mt7925_register_device()
[all …]
/linux/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 …]
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
A Dinit.c225 struct mt76_phy *mphy; in mt7915_led_set_config() local
243 if (dev->mphy.leds.al) in mt7915_led_set_config()
245 if (mphy->band_idx) in mt7915_led_set_config()
652 struct mt76_phy *mphy; in mt7915_alloc_ext_phy() local
658 if (!mphy) in mt7915_alloc_ext_phy()
661 phy = mphy->priv; in mt7915_alloc_ext_phy()
663 phy->mt76 = mphy; in mt7915_alloc_ext_phy()
689 mphy->macaddr[0] |= 2; in mt7915_register_ext_phy()
692 mt76_eeprom_override(mphy); in mt7915_register_ext_phy()
711 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 …]
/linux/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 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()
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()
192 if (!mphy->offchannel) in mt7603_set_channel()
198 mt7603_mac_work(&dev->mphy.mac_work.work); in mt7603_set_channel()
207 struct mt76_phy *mphy = &dev->mphy; in mt7603_set_sar_specs() local
217 return mt76_update_channel(mphy); in mt7603_set_sar_specs()
228 ret = mt76_update_channel(&dev->mphy); in mt7603_config()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
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 Dinit.c185 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()
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()
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
A Dinit.c230 struct mt76_phy *mphy; in mt7996_led_set_config() local
257 if (mphy->leds.al) in mt7996_led_set_config()
563 struct mt76_phy *mphy; in mt7996_register_phy() local
580 if (!mphy) in mt7996_register_phy()
583 phy = mphy->priv; in mt7996_register_phy()
585 phy->mt76 = mphy; in mt7996_register_phy()
586 mphy->dev->phys[band] = mphy; in mt7996_register_phy()
602 mphy->macaddr[0] |= 2; in mt7996_register_phy()
607 mt76_eeprom_override(mphy); in mt7996_register_phy()
650 struct mt76_phy *mphy; in mt7996_unregister_phy() local
[all …]

Completed in 49 milliseconds

12345