Searched refs:mphy (Results 1 – 8 of 8) sorted by relevance
| /linux/drivers/net/wireless/mediatek/mt76/mt76x0/ |
| H A D | main.c | 11 int mt76x0_set_channel(struct mt76_phy *mphy) in mt76x0_set_channel() argument 13 struct mt76x02_dev *dev = container_of(mphy->dev, struct mt76x02_dev, mt76); in mt76x0_set_channel() 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() [all …]
|
| H A D | usb.c | 75 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() 204 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt76x0u_register_device() 297 bool initialized = test_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt76x0_disconnect() 317 clear_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); in mt76x0_suspend()
|
| H A D | init.c | 251 if (dev->mphy.cap.has_5ghz) { in mt76x0_register_device() 254 sband = &dev->mphy.sband_5g.sband; in mt76x0_register_device() 259 if (dev->mphy.cap.has_2ghz) in mt76x0_register_device() 260 mt76x0_init_txpower(dev, &dev->mphy.sband_2g.sband); in mt76x0_register_device()
|
| H A D | mt76x0.h | 52 int mt76x0_set_channel(struct mt76_phy *mphy);
|
| /linux/drivers/phy/ralink/ |
| H A D | phy-mt7621-pci.c | 212 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/mt7996/ |
| H A D | mac.c | 173 struct mt76_phy *mphy = mt76_vif_link_phy(mlink); in mt7996_mac_sta_poll() local 175 if (mphy) in mt7996_mac_sta_poll() 177 mt76_rx_signal(mphy->antenna_mask, in mt7996_mac_sta_poll() 415 struct mt76_phy *mphy = &dev->mt76.phy; in mt7996_mac_fill_rx() local 444 mphy = dev->mt76.phys[band_idx]; in mt7996_mac_fill_rx() 445 phy = mphy->priv; in mt7996_mac_fill_rx() 446 status->phy_idx = mphy->band_idx; in mt7996_mac_fill_rx() 448 if (!test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt7996_mac_fill_rx() 475 status->freq = mphy->chandef.chan->center_freq; in mt7996_mac_fill_rx() 476 status->band = mphy->chandef.chan->band; in mt7996_mac_fill_rx() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/ |
| H A D | mt76_connac_mac.c | 296 u16 mt76_connac2_mac_tx_rate_val(struct mt76_phy *mphy, in mt76_connac2_mac_tx_rate_val() argument 308 mvif = mt76_vif_conf_link(mphy->dev, conf->vif, conf); in mt76_connac2_mac_tx_rate_val() 309 chandef = mvif->ctx ? &mvif->ctx->def : &mphy->chandef; in mt76_connac2_mac_tx_rate_val() 312 if (is_connac2(mphy->dev)) { in mt76_connac2_mac_tx_rate_val() 503 struct mt76_phy *mphy = &dev->phy; in mt76_connac2_mac_write_txwi() local 522 mphy = dev->phys[MT_BAND1]; in mt76_connac2_mac_write_txwi() 590 u16 rate = mt76_connac2_mac_tx_rate_val(mphy, in mt76_connac2_mac_write_txwi() 603 u8 spe_idx = mt76_connac_spe_idx(mphy->antenna_mask); in mt76_connac2_mac_write_txwi() 620 struct mt76_phy *mphy; in mt76_connac2_mac_fill_txs() local 670 mphy = &dev->phy; in mt76_connac2_mac_fill_txs() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7925/ |
| H A D | mac.c | 362 struct mt76_phy *mphy = &dev->mt76.phy; in mt7925_mac_fill_rx() local 378 if (!test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt7925_mac_fill_rx() 406 sband = &mphy->sband_5g.sband; in mt7925_mac_fill_rx() 409 sband = &mphy->sband_6g.sband; in mt7925_mac_fill_rx() 412 sband = &mphy->sband_2g.sband; in mt7925_mac_fill_rx() 521 status->chains = mphy->antenna_mask; in mt7925_mac_fill_rx() 901 struct mt76_phy *mphy; in mt7925_mac_add_txs_skb() local 946 mphy = mt76_dev_phy(mdev, wcid->phy_idx); in mt7925_mac_add_txs_skb() 948 if (mphy->chandef.chan->band == NL80211_BAND_5GHZ) in mt7925_mac_add_txs_skb() 949 sband = &mphy->sband_5g.sband; in mt7925_mac_add_txs_skb() [all …]
|