Home
last modified time | relevance | path

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

1234567

/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dinit.c226 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()
471 struct mt76_phy *mphy; mt7615_led_set_config() local
531 struct mt76_phy *mphy; mt7615_register_ext_phy() local
600 struct mt76_phy *mphy = dev->mt76.phys[MT_BAND1]; mt7615_unregister_ext_phy() local
[all...]
H 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()
H 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 in mt7615_eeprom_parse_hw_cap()
[all...]
H A Dmac.c202 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 in mt7615_mac_fill_rx()
660 mt7615_mac_tx_rate_val(struct mt7615_dev *dev, struct mt76_phy *mphy, const struct ieee80211_tx_rate *rate, bool stbc, u8 *bw) mt7615_mac_tx_rate_val() argument
731 struct mt76_phy *mphy = &dev->mphy; mt7615_mac_write_txwi() local
971 struct mt76_phy *mphy = phy->mt76; mt7615_mac_update_rate_desc() local
1320 struct mt76_phy *mphy; mt7615_fill_txs() local
1495 struct mt76_phy *mphy = &dev->mt76.phy; mt7615_mac_add_txs() local
1916 mt7615_phy_update_channel(struct mt76_phy *mphy, int idx) mt7615_phy_update_channel() argument
1971 mt7615_update_channel(struct mt76_phy *mphy) mt7615_update_channel() argument
2023 struct mt76_phy *mphy; mt7615_pm_wake_work() local
2094 struct mt76_phy *mphy; mt7615_mac_work() local
[all...]
H A Dtestmode.c51 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, struc argument
324 mt7615_tm_dump_stats(struct mt76_phy *mphy, struct sk_buff *msg) mt7615_tm_dump_stats() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dinit.c171 return test_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); in mt7615_wait_for_mcu_init()
249 int i, n_chains = hweight8(dev->mphy.antenna_mask), target_chains; in mt7615_init_txpower()
295 struct mt76_phy *mphy = hw->priv; in mt7615_regd_notifier() local
296 struct mt7615_phy *phy = mphy->priv; in mt7615_regd_notifier()
297 struct cfg80211_chan_def *chandef = &mphy->chandef; in mt7615_regd_notifier()
358 dev->mphy.sband_5g.sband.vht_cap.cap &= in mt7615_cap_dbdc_enable()
362 dev->mphy.antenna_mask = dev->chainmask >> 2; in mt7615_cap_dbdc_enable()
364 dev->mphy.antenna_mask = dev->chainmask >> 1; in mt7615_cap_dbdc_enable()
365 dev->phy.chainmask = dev->mphy.antenna_mask; in mt7615_cap_dbdc_enable()
366 dev->mphy in mt7615_cap_dbdc_enable()
387 struct mt76_phy *mphy; mt7615_register_ext_phy() local
443 struct mt76_phy *mphy = dev->mt76.phy2; mt7615_unregister_ext_phy() local
[all...]
H A Dsdio_mcu.c69 struct mt76_phy *mphy = &dev->mt76.phy; in mt7663s_mcu_drv_pmctrl() local
73 if (!test_and_clear_bit(MT76_STATE_PM, &mphy->state)) in mt7663s_mcu_drv_pmctrl()
84 set_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
105 if (test_and_set_bit(MT76_STATE_PM, &mphy->state)) in mt7663s_mcu_fw_pmctrl()
116 clear_bit(MT76_STATE_PM, &mphy->state); in mt7663s_mcu_fw_pmctrl()
169 set_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); in mt7663s_mcu_init()
H A Dmac.c174 mt7615_get_status_freq_info(struct mt7615_dev *dev, struct mt76_phy *mphy, in mt7615_get_status_freq_info() argument
177 if (!test_bit(MT76_HW_SCANNING, &mphy->state) && in mt7615_get_status_freq_info()
178 !test_bit(MT76_HW_SCHED_SCANNING, &mphy->state) && in mt7615_get_status_freq_info()
179 !test_bit(MT76_STATE_ROC, &mphy->state)) { in mt7615_get_status_freq_info()
180 status->freq = mphy->chandef.chan->center_freq; in mt7615_get_status_freq_info()
181 status->band = mphy->chandef.chan->band; in mt7615_get_status_freq_info()
226 struct mt76_phy *mphy = &dev->mt76.phy; in mt7615_mac_fill_rx() local
336 mphy = dev->mt76.phy2; in mt7615_mac_fill_rx()
344 mt7615_get_status_freq_info(dev, mphy, status, chfreq); in mt7615_mac_fill_rx()
346 sband = &mphy in mt7615_mac_fill_rx()
471 mt7615_mac_tx_rate_val(struct mt7615_dev *dev, struct mt76_phy *mphy, const struct ieee80211_tx_rate *rate, bool stbc, u8 *bw) mt7615_mac_tx_rate_val() argument
541 struct mt76_phy *mphy = &dev->mphy; mt7615_mac_write_txwi() local
835 struct mt76_phy *mphy = phy->mt76; mt7615_mac_update_rate_desc() local
1182 struct mt76_phy *mphy; mt7615_fill_txs() local
1357 struct mt76_phy *mphy = &dev->mt76.phy; mt7615_mac_add_txs() local
1747 mt7615_phy_update_channel(struct mt76_phy *mphy, int idx) mt7615_phy_update_channel() argument
1856 struct mt76_phy *mphy; mt7615_pm_wake_work() local
1896 struct mt76_phy *mphy = dev->phy.mt76; mt7615_pm_wake() local
1925 struct mt76_phy *mphy = dev->phy.mt76; mt7615_pm_power_save_sched() local
1991 struct mt76_phy *mphy = dev->phy.mt76; mt7615_pm_set_enable() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt76x2/
H 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()
81 struct mt76_phy *mphy = &dev->mphy; in mt76x2_config() local
84 dev->txpower_conf = mt76_get_sar_power(mphy, in mt76x2_config()
[all...]
H 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()
81 struct mt76_phy *mphy = &dev->mphy; in mt76x2u_config() local
84 dev->txpower_conf = mt76_get_sar_power(mphy, in mt76x2u_config()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt76x0/
H A Dmain.c19 mt76_set_channel(&dev->mphy); in mt76x0_set_channel()
31 mt76_txq_schedule_all(&dev->mphy); 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()
73 struct mt76_phy *mphy = &dev->mphy; in mt76x0_config() local
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dinit.c83 int i, n_chains = hweight8(dev->mphy.antenna_mask); in mt7915_init_txpower_band()
105 mt7915_init_txpower_band(dev, &dev->mphy.sband_2g.sband); in mt7915_init_txpower()
106 mt7915_init_txpower_band(dev, &dev->mphy.sband_5g.sband); in mt7915_init_txpower()
136 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7915_init_hardware()
229 struct mt76_phy *mphy = hw->priv; in mt7915_regd_notifier() local
230 struct mt7915_phy *phy = mphy->priv; in mt7915_regd_notifier()
231 struct cfg80211_chan_def *chandef = &mphy->chandef; in mt7915_regd_notifier()
555 dev->mphy.sband_5g.sband.vht_cap.cap &= in mt7915_cap_dbdc_enable()
560 dev->mphy.antenna_mask = dev->chainmask >> 2; in mt7915_cap_dbdc_enable()
562 dev->mphy in mt7915_cap_dbdc_enable()
593 struct mt76_phy *mphy; mt7915_register_ext_phy() local
643 struct mt76_phy *mphy = dev->mt76.phy2; mt7915_unregister_ext_phy() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/
H A Dmt792x_mac.c12 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()
223 mt792x_phy_update_channel(struct mt76_phy *mphy, int idx) in mt792x_phy_update_channel() argument
225 struct mt792x_dev *dev = container_of(mphy in mt792x_phy_update_channel()
254 mt792x_update_channel(struct mt76_phy *mphy) mt792x_update_channel() argument
318 struct mt76_phy *mphy; mt792x_pm_wake_work() local
353 struct mt76_phy *mphy; mt792x_pm_power_save_work() local
[all...]
H A Dmt76x02_util.c90 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_o in mt76x02_led_set_blink()
131 struct mt76_phy *mphy = container_of(led_cdev, struct mt76_phy, mt76x02_led_set_brightness() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dinit.c50 struct mt76_phy *mphy; in mt7996_led_set_config() local
53 mphy = container_of(led_cdev, struct mt76_phy, leds.cdev); in mt7996_led_set_config()
54 dev = container_of(mphy->dev, struct mt7996_dev, mt76); in mt7996_led_set_config()
69 if (mphy->leds.al) in mt7996_led_set_config()
107 int i, nss = hweight8(dev->mphy.antenna_mask); in mt7996_init_txpower()
117 target_power = mt76_get_rate_power_limits(&dev->mphy, chan, in mt7996_init_txpower()
289 i = dev->mphy.leds.pin ? MT_LED_GPIO_MUX3 : MT_LED_GPIO_MUX2; in mt7996_mac_init()
335 struct mt76_phy *mphy; in mt7996_register_phy() local
352 mphy = mt76_alloc_phy(&dev->mt76, sizeof(*phy), &mt7996_ops, band); in mt7996_register_phy()
353 if (!mphy) in mt7996_register_phy()
411 struct mt76_phy *mphy; mt7996_unregister_phy() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dinit.c226 struct mt76_phy *mphy; in mt7915_led_set_config() local
229 mphy = container_of(led_cdev, struct mt76_phy, leds.cdev); in mt7915_led_set_config()
230 dev = container_of(mphy->dev, struct mt7915_dev, mt76); in mt7915_led_set_config()
236 mt76_wr(dev, MT_LED_STATUS_0(mphy->band_idx), val); in mt7915_led_set_config()
237 mt76_wr(dev, MT_LED_STATUS_1(mphy->band_idx), val); in mt7915_led_set_config()
240 mt76_wr(dev, MT_LED_EN(mphy->band_idx), 1); in mt7915_led_set_config()
244 if (dev->mphy.leds.al) in mt7915_led_set_config()
246 if (mphy->band_idx) in mt7915_led_set_config()
249 mt76_wr(dev, MT_LED_CTRL(mphy->band_idx), val); in mt7915_led_set_config()
250 mt76_clear(dev, MT_LED_CTRL(mphy in mt7915_led_set_config()
319 struct mt76_phy *mphy = hw->priv; mt7915_regd_notifier() local
339 struct mt76_phy *mphy = phy->mt76; mt7915_init_wiphy() local
628 struct mt76_phy *mphy; mt7915_alloc_ext_phy() local
650 struct mt76_phy *mphy = phy->mt76; mt7915_register_ext_phy() local
1156 struct mt76_phy *mphy = dev->mt76.phys[MT_BAND1]; mt7915_unregister_ext_phy() local
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
H A Dpci_main.c22 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()
120 dev->mphy.antenna_mask = tx_ant; in mt76x2_set_antenna()
122 mt76_set_stream_caps(&dev->mphy, true); in mt76x2_set_antenna()
H A Dusb_main.c20 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()
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt7921/
H 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()
H A Dsdio_mac.c63 clear_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); in mt7921s_wfsys_reset()
76 set_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7921s_init_reset()
88 clear_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7921s_init_reset()
99 mt76_txq_schedule_all(&dev->mphy); in mt7921s_mac_reset()
101 set_bit(MT76_RESET, &dev->mphy.state); in mt7921s_mac_reset()
102 set_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7921s_mac_reset()
121 clear_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7921s_mac_reset()
138 clear_bit(MT76_RESET, &dev->mphy.state); in mt7921s_mac_reset()
H A Dinit.c114 mt76_eeprom_override(&dev->mphy); in __mt7921_init_hardware()
129 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7921_init_hardware()
157 mt76_set_stream_caps(&dev->mphy, true); in mt7921_init_work()
203 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt792x_mac_work); in mt7921_register_device()
244 dev->mphy.sband_2g.sband.ht_cap.cap |= in mt7921_register_device()
247 dev->mphy.sband_5g.sband.ht_cap.cap |= in mt7921_register_device()
250 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7921_register_device()
257 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7921_register_device()
261 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy in mt7921_register_device()
[all...]
H 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()
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dinit.c116 int rx_chains = dev->mphy.antenna_mask; in mt7603_phy_init()
287 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7603_init_hardware()
333 static void mt7603_led_set_config(struct mt76_phy *mphy, u8 delay_on, in mt7603_led_set_config() argument
336 struct mt7603_dev *dev = container_of(mphy->dev, struct mt7603_dev, in mt7603_led_set_config()
344 addr = mt7603_reg_map(dev, MT_LED_STATUS_0(mphy->leds.pin)); in mt7603_led_set_config()
346 addr = mt7603_reg_map(dev, MT_LED_STATUS_1(mphy->leds.pin)); in mt7603_led_set_config()
349 val = MT_LED_CTRL_REPLAY(mphy->leds.pin) | in mt7603_led_set_config()
350 MT_LED_CTRL_KICK(mphy->leds.pin); in mt7603_led_set_config()
351 if (mphy->leds.al) in mt7603_led_set_config()
352 val |= MT_LED_CTRL_POLARITY(mphy in mt7603_led_set_config()
361 struct mt76_phy *mphy = container_of(led_cdev, struct mt76_phy, mt7603_led_set_blink() local
375 struct mt76_phy *mphy = container_of(led_cdev, struct mt76_phy, mt7603_led_set_brightness() local
[all...]
/kernel/linux/linux-5.10/drivers/staging/mt7621-pci-phy/
H A Dpci-mt7621-phy.c224 struct mt7621_pci_phy *mphy = phy_get_drvdata(phy); in mt7621_pci_phy_init() local
226 if (mphy->bypass_pipe_rst) in mt7621_pci_phy_init()
227 mt7621_bypass_pipe_rst(mphy); in mt7621_pci_phy_init()
229 mt7621_set_phy_for_ssc(mphy); in mt7621_pci_phy_init()
236 struct mt7621_pci_phy *mphy = phy_get_drvdata(phy); in mt7621_pci_phy_power_on() local
239 mt7621_phy_rmw(mphy, RG_PE1_FRC_PHY_REG, in mt7621_pci_phy_power_on()
242 if (mphy->has_dual_port) { in mt7621_pci_phy_power_on()
243 mt7621_phy_rmw(mphy, RG_PE1_FRC_PHY_REG + RG_P0_TO_P1_WIDTH, in mt7621_pci_phy_power_on()
252 struct mt7621_pci_phy *mphy = phy_get_drvdata(phy); in mt7621_pci_phy_power_off() local
255 mt7621_phy_rmw(mphy, RG_PE1_FRC_PHY_RE in mt7621_pci_phy_power_off()
[all...]
/kernel/linux/linux-6.6/drivers/phy/ralink/
H 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_RE in mt7621_pci_phy_power_off()
[all...]

Completed in 18 milliseconds

1234567