Searched refs:mphy (Results 1 - 25 of 114) sorted by relevance

12345

/linux-master/drivers/net/wireless/mediatek/mt76/mt76x0/
H A Dmain.c19 mt76_set_channel(&dev->mphy);
31 mt76_txq_schedule_all(&dev->mphy);
39 struct mt76_phy *mphy = &dev->mphy; local
42 if (!cfg80211_chandef_valid(&mphy->chandef))
49 dev->txpower_conf = mt76_get_sar_power(mphy, mphy->chandef.chan,
51 if (test_bit(MT76_STATE_RUNNING, &mphy->state))
73 struct mt76_phy *mphy = &dev->mphy; local
[all...]
H A Deeprom.c55 dev->mphy.cap.has_2ghz, dev->mphy.cap.has_5ghz);
58 dev->mphy.cap.has_2ghz = false;
63 dev->mphy.cap.has_5ghz = false;
112 struct ieee80211_channel *chan = dev->mphy.chandef.chan;
132 struct cfg80211_chan_def *chandef = &dev->mphy.chandef;
333 memcpy(dev->mphy.macaddr, (u8 *)dev->mt76.eeprom.data + MT_EE_MAC_ADDR,
335 mt76_eeprom_override(&dev->mphy);
336 mt76x02_mac_setaddr(dev, dev->mphy.macaddr);
/linux-master/drivers/net/wireless/mediatek/mt76/mt76x2/
H A Dusb_main.c18 ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mphy.mac_work,
20 set_bit(MT76_STATE_RUNNING, &dev->mphy.state);
29 clear_bit(MT76_STATE_RUNNING, &dev->mphy.state);
44 set_bit(MT76_RESET, &dev->mphy.state);
46 mt76_set_channel(&dev->mphy);
55 clear_bit(MT76_RESET, &dev->mphy.state);
59 mt76_txq_schedule_all(&dev->mphy);
81 struct mt76_phy *mphy = &dev->mphy; local
84 dev->txpower_conf = mt76_get_sar_power(mphy,
[all...]
H A Dpci_main.c17 ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mphy.mac_work,
22 set_bit(MT76_STATE_RUNNING, &dev->mphy.state);
31 clear_bit(MT76_STATE_RUNNING, &dev->mphy.state);
43 set_bit(MT76_RESET, &dev->mphy.state);
45 mt76_set_channel(&dev->mphy);
55 clear_bit(MT76_RESET, &dev->mphy.state);
61 mt76_txq_schedule_all(&dev->mphy);
81 struct mt76_phy *mphy = &dev->mphy; local
84 dev->txpower_conf = mt76_get_sar_power(mphy,
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dinit.c223 return test_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state);
272 int i, n_chains = hweight8(dev->mphy.antenna_mask), target_chains;
305 target_power = mt76_get_rate_power_limits(&dev->mphy, chan,
333 struct mt76_phy *mphy = hw->priv; local
334 struct mt7615_phy *phy = mphy->priv;
335 struct cfg80211_chan_def *chandef = &mphy->chandef;
340 mt7615_init_txpower(dev, &mphy->sband_2g.sband);
341 mt7615_init_txpower(dev, &mphy->sband_5g.sband);
349 mt76_connac_mcu_set_channel_domain(mphy);
350 mt76_connac_mcu_set_rate_txpower(mphy);
468 struct mt76_phy *mphy; local
528 struct mt76_phy *mphy; local
597 struct mt76_phy *mphy = dev->mt76.phys[MT_BAND1]; local
[all...]
H A Dsdio_mcu.c58 struct mt76_phy *mphy = &dev->mt76.phy; local
72 clear_bit(MT76_STATE_PM, &mphy->state);
85 struct mt76_phy *mphy = &dev->mt76.phy; local
90 if (test_bit(MT76_STATE_PM, &mphy->state))
101 struct mt76_phy *mphy = &dev->mt76.phy; local
108 if (mt76_connac_skip_fw_pmctrl(mphy, pm))
119 clear_bit(MT76_STATE_PM, &mphy->state);
177 set_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state);
H A Dpci_init.c55 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state);
78 dev->mphy.leds.cdev.brightness_set = mt7615_led_set_brightness;
79 dev->mphy.leds.cdev.blink_set = mt7615_led_set_blink;
100 mt7615_init_txpower(dev, &dev->mphy.sband_2g.sband);
101 mt7615_init_txpower(dev, &dev->mphy.sband_5g.sband);
H A Deeprom.c108 dev->mphy.cap.has_2ghz = true;
109 dev->mphy.cap.has_5ghz = true;
115 dev->mphy.cap.has_2ghz = true;
121 dev->mphy.cap.has_5ghz = true;
129 dev->mphy.cap.has_5ghz = true;
135 dev->mphy.cap.has_2ghz = true;
138 dev->mphy.cap.has_2ghz = true;
139 dev->mphy.cap.has_5ghz = true;
169 dev->mphy.antenna_mask = dev->chainmask;
170 dev->mphy
[all...]
H A Dtestmode.c51 struct mt76_phy *mphy = phy->mt76; local
52 int i, ret, n_chains = hweight8(mphy->antenna_mask);
53 struct cfg80211_chan_def *chandef = &mphy->chandef;
70 if (mphy->test.state != MT76_TM_STATE_OFF)
71 tx_power = mphy->test.tx_power;
259 mt7615_tm_set_state(struct mt76_phy *mphy, enum mt76_testmode_state state) argument
261 struct mt7615_phy *phy = mphy->priv;
262 struct mt76_testmode_data *td = &mphy->test;
265 mphy->test.state = state;
296 mt7615_tm_set_params(struct mt76_phy *mphy, struc argument
324 mt7615_tm_dump_stats(struct mt76_phy *mphy, struct sk_buff *msg) argument
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/
H A Dmt792x_mac.c12 struct mt76_phy *mphy; local
14 mphy = (struct mt76_phy *)container_of(work, struct mt76_phy,
16 phy = mphy->priv;
20 mt76_update_survey(mphy);
21 if (++mphy->mac_work_count == 2) {
22 mphy->mac_work_count = 0;
29 mt76_tx_status_check(mphy->dev, false);
30 ieee80211_queue_delayed_work(phy->mt76->hw, &mphy->mac_work,
223 mt792x_phy_update_channel(struct mt76_phy *mphy, int idx) argument
225 struct mt792x_dev *dev = container_of(mphy
254 mt792x_update_channel(struct mt76_phy *mphy) argument
318 struct mt76_phy *mphy; local
353 struct mt76_phy *mphy; local
[all...]
H A Dmt76x02_phy.h14 switch (dev->mphy.chandef.width) {
27 switch (dev->mphy.chandef.width) {
H A Dmt76x02_util.c90 mt76x02_led_set_config(struct mt76_phy *mphy, u8 delay_on, u8 delay_off) argument
92 struct mt76x02_dev *dev = container_of(mphy->dev, struct mt76x02_dev,
100 mt76_wr(dev, MT_LED_S0(mphy->leds.pin), val);
101 mt76_wr(dev, MT_LED_S1(mphy->leds.pin), val);
103 val = MT_LED_CTRL_REPLAY(mphy->leds.pin) |
104 MT_LED_CTRL_KICK(mphy->leds.pin);
105 if (mphy->leds.al)
106 val |= MT_LED_CTRL_POLARITY(mphy->leds.pin);
115 struct mt76_phy *mphy = container_of(led_cdev, struct mt76_phy, local
122 mt76x02_led_set_config(mphy, delta_o
131 struct mt76_phy *mphy = container_of(led_cdev, struct mt76_phy, local
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt7921/
H A Dtestmode.c43 struct mt76_phy *phy = &dev->mphy;
115 struct mt76_phy *mphy = hw->priv; local
116 struct mt792x_phy *phy = mphy->priv;
119 if (!test_bit(MT76_STATE_RUNNING, &mphy->state) ||
152 struct mt76_phy *mphy = hw->priv; local
153 struct mt792x_phy *phy = mphy->priv;
156 if (!test_bit(MT76_STATE_RUNNING, &mphy->state) ||
158 !mt76_testmode_enabled(mphy))
H A Dsdio_mac.c63 clear_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state);
76 set_bit(MT76_MCU_RESET, &dev->mphy.state);
88 clear_bit(MT76_MCU_RESET, &dev->mphy.state);
99 mt76_txq_schedule_all(&dev->mphy);
101 set_bit(MT76_RESET, &dev->mphy.state);
102 set_bit(MT76_MCU_RESET, &dev->mphy.state);
121 clear_bit(MT76_MCU_RESET, &dev->mphy.state);
138 clear_bit(MT76_RESET, &dev->mphy.state);
H A Dsdio_mcu.c95 set_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state);
103 struct mt76_phy *mphy = &dev->mt76.phy; local
115 if (!err && test_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state))
127 clear_bit(MT76_STATE_PM, &mphy->state);
139 struct mt76_phy *mphy = &dev->mt76.phy; local
146 if (test_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state)) {
166 clear_bit(MT76_STATE_PM, &mphy->state);
H A Dinit.c183 mt76_eeprom_override(&dev->mphy);
198 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state);
226 mt76_set_stream_caps(&dev->mphy, true);
273 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt792x_mac_work);
314 dev->mphy.sband_2g.sband.ht_cap.cap |=
317 dev->mphy.sband_5g.sband.ht_cap.cap |=
320 dev->mphy.sband_5g.sband.vht_cap.cap |=
327 dev->mphy.sband_5g.sband.vht_cap.cap |=
331 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy
[all...]
H A Dpci_mac.c67 set_bit(MT76_RESET, &dev->mphy.state);
68 set_bit(MT76_MCU_RESET, &dev->mphy.state);
72 mt76_txq_schedule_all(&dev->mphy);
93 clear_bit(MT76_MCU_RESET, &dev->mphy.state);
118 clear_bit(MT76_RESET, &dev->mphy.state);
/linux-master/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dinit.c133 mt76_eeprom_override(&dev->mphy);
151 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state);
179 mt76_set_stream_caps(&dev->mphy, true);
223 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt792x_mac_work);
264 dev->mphy.sband_2g.sband.ht_cap.cap |=
267 dev->mphy.sband_2g.sband.ht_cap.ampdu_density =
269 dev->mphy.sband_5g.sband.ht_cap.cap |=
272 dev->mphy.sband_2g.sband.ht_cap.ampdu_density =
274 dev->mphy.sband_5g.sband.vht_cap.cap |=
280 dev->mphy
[all...]
H A Dpci_mac.c82 set_bit(MT76_RESET, &dev->mphy.state);
83 set_bit(MT76_MCU_RESET, &dev->mphy.state);
87 mt76_txq_schedule_all(&dev->mphy);
114 clear_bit(MT76_MCU_RESET, &dev->mphy.state);
143 clear_bit(MT76_RESET, &dev->mphy.state);
/linux-master/drivers/phy/ralink/
H A Dphy-mt7621-pci.c212 struct mt7621_pci_phy *mphy = phy_get_drvdata(phy); local
214 if (mphy->bypass_pipe_rst)
215 mt7621_bypass_pipe_rst(mphy);
217 return mt7621_set_phy_for_ssc(mphy);
222 struct mt7621_pci_phy *mphy = phy_get_drvdata(phy); local
225 mt7621_phy_rmw(mphy, RG_PE1_FRC_PHY_REG,
228 if (mphy->has_dual_port) {
229 mt7621_phy_rmw(mphy, RG_PE1_FRC_PHY_REG + RG_P0_TO_P1_WIDTH,
238 struct mt7621_pci_phy *mphy = phy_get_drvdata(phy); local
241 mt7621_phy_rmw(mphy, RG_PE1_FRC_PHY_RE
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dinit.c116 int rx_chains = dev->mphy.antenna_mask;
294 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state);
340 static void mt7603_led_set_config(struct mt76_phy *mphy, u8 delay_on, argument
343 struct mt7603_dev *dev = container_of(mphy->dev, struct mt7603_dev,
351 addr = mt7603_reg_map(dev, MT_LED_STATUS_0(mphy->leds.pin));
353 addr = mt7603_reg_map(dev, MT_LED_STATUS_1(mphy->leds.pin));
356 val = MT_LED_CTRL_REPLAY(mphy->leds.pin) |
357 MT_LED_CTRL_KICK(mphy->leds.pin);
358 if (mphy->leds.al)
359 val |= MT_LED_CTRL_POLARITY(mphy
368 struct mt76_phy *mphy = container_of(led_cdev, struct mt76_phy, local
382 struct mt76_phy *mphy = container_of(led_cdev, struct mt76_phy, local
[all...]
H A Deeprom.c174 dev->mphy.cap.has_2ghz = true;
175 memcpy(dev->mphy.macaddr, eeprom + MT_EE_MAC_ADDR, ETH_ALEN);
178 dev->mphy.antenna_mask = 3;
182 dev->mphy.antenna_mask = 1;
184 mt76_eeprom_override(&dev->mphy);
/linux-master/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dinit.c223 struct mt76_phy *mphy; local
226 mphy = container_of(led_cdev, struct mt76_phy, leds.cdev);
227 dev = container_of(mphy->dev, struct mt7915_dev, mt76);
233 mt76_wr(dev, MT_LED_STATUS_0(mphy->band_idx), val);
234 mt76_wr(dev, MT_LED_STATUS_1(mphy->band_idx), val);
237 mt76_wr(dev, MT_LED_EN(mphy->band_idx), 1);
241 if (dev->mphy.leds.al)
243 if (mphy->band_idx)
246 mt76_wr(dev, MT_LED_CTRL(mphy->band_idx), val);
247 mt76_clear(dev, MT_LED_CTRL(mphy
330 struct mt76_phy *mphy = hw->priv; local
348 struct mt76_phy *mphy = phy->mt76; local
649 struct mt76_phy *mphy; local
671 struct mt76_phy *mphy = phy->mt76; local
1171 struct mt76_phy *mphy = dev->mt76.phys[MT_BAND1]; local
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dinit.c229 struct mt76_phy *mphy; local
232 mphy = container_of(led_cdev, struct mt76_phy, leds.cdev);
233 dev = container_of(mphy->dev, struct mt7996_dev, mt76);
236 mt76_rmw_field(dev, MT_TMAC_TCR0(mphy->band_idx), MT_TMAC_TCR0_TX_BLINK, 2);
239 mt76_wr(dev, MT_LED_EN(mphy->band_idx), 1);
244 mt76_wr(dev, MT_LED_TX_BLINK(mphy->band_idx), val);
252 if (mphy->band_idx == MT_BAND1)
256 if (mphy->leds.al)
259 mt76_wr(dev, MT_LED_CTRL(mphy->band_idx), val);
260 mt76_clear(dev, MT_LED_CTRL(mphy
562 struct mt76_phy *mphy; local
649 struct mt76_phy *mphy; local
[all...]
H A Deeprom.c162 struct mt76_phy *mphy = phy->mt76; local
204 mphy->antenna_mask = BIT(nss) - 1;
205 mphy->chainmask = (BIT(path) - 1) << dev->chainshift[band_idx];
206 dev->chainmask |= mphy->chainmask;
209 hweight16(mphy->chainmask);
237 memcpy(dev->mphy.macaddr, dev->mt76.eeprom.data + MT_EE_MAC_ADDR, ETH_ALEN);
238 mt76_eeprom_override(&dev->mphy);

Completed in 264 milliseconds

12345