| /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/mt7615/ |
| H A D | mac.c | 199 mt7615_get_status_freq_info(struct mt7615_dev *dev, struct mt76_phy *mphy, in mt7615_get_status_freq_info() argument 202 if (!test_bit(MT76_HW_SCANNING, &mphy->state) && in mt7615_get_status_freq_info() 203 !test_bit(MT76_HW_SCHED_SCANNING, &mphy->state) && in mt7615_get_status_freq_info() 204 !test_bit(MT76_STATE_ROC, &mphy->state)) { in mt7615_get_status_freq_info() 205 status->freq = mphy->chandef.chan->center_freq; in mt7615_get_status_freq_info() 206 status->band = mphy->chandef.chan->band; in mt7615_get_status_freq_info() 333 struct mt76_phy *mphy = &dev->mt76.phy; in mt7615_mac_fill_rx() local 498 mphy = dev->mt76.phys[MT_BAND1]; in mt7615_mac_fill_rx() 506 mt7615_get_status_freq_info(dev, mphy, status, chfreq); in mt7615_mac_fill_rx() 508 sband = &mphy->sband_5g.sband; in mt7615_mac_fill_rx() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
| H A D | main.c | 39 ieee80211_queue_delayed_work(dev->mphy.hw, &phy->mt76->mac_work, in mt7996_run() 289 int mt7996_vif_link_add(struct mt76_phy *mphy, struct ieee80211_vif *vif, in mt7996_vif_link_add() argument 296 struct mt7996_phy *phy = mphy->priv; in mt7996_vif_link_add() 371 ieee80211_iter_keys(mphy->hw, vif, mt7996_key_iter, &it); in mt7996_vif_link_add() 380 void mt7996_vif_link_remove(struct mt76_phy *mphy, struct ieee80211_vif *vif, in mt7996_vif_link_remove() argument 387 struct mt7996_phy *phy = mphy->priv; in mt7996_vif_link_remove() 396 ieee80211_iter_keys(mphy->hw, vif, mt7996_key_iter, &it); in mt7996_vif_link_remove() 553 int mt7996_set_channel(struct mt76_phy *mphy) in mt7996_set_channel() argument 555 struct mt7996_phy *phy = mphy->priv; in mt7996_set_channel() 558 if (mphy->offchannel) in mt7996_set_channel() [all …]
|
| H A D | mac.c | 212 struct mt76_phy *mphy = mt76_vif_link_phy(mlink); in mt7996_mac_sta_poll() local 214 if (mphy) in mt7996_mac_sta_poll() 216 mt76_rx_signal(mphy->antenna_mask, in mt7996_mac_sta_poll() 454 struct mt76_phy *mphy = &dev->mt76.phy; in mt7996_mac_fill_rx() local 483 mphy = dev->mt76.phys[band_idx]; in mt7996_mac_fill_rx() 484 phy = mphy->priv; in mt7996_mac_fill_rx() 485 status->phy_idx = mphy->band_idx; in mt7996_mac_fill_rx() 487 if (!test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt7996_mac_fill_rx() 514 status->freq = mphy->chandef.chan->center_freq; in mt7996_mac_fill_rx() 515 status->band = mphy->chandef.chan->band; in mt7996_mac_fill_rx() [all …]
|
| H A D | mcu.c | 295 if (test_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state) && mt7996_has_wa(dev)) in mt7996_mcu_send_message() 405 struct mt76_phy *mphy = &dev->mt76.phy; in mt7996_mcu_rx_radar_detected() local 412 mphy = dev->mt76.phys[MT_BAND2]; in mt7996_mcu_rx_radar_detected() 415 mphy = dev->mt76.phys[MT_BAND1]; in mt7996_mcu_rx_radar_detected() 420 mphy = dev->rdd2_phy->mt76; in mt7996_mcu_rx_radar_detected() 427 if (!mphy) in mt7996_mcu_rx_radar_detected() 431 cfg80211_background_radar_event(mphy->hw->wiphy, in mt7996_mcu_rx_radar_detected() 435 ieee80211_radar_detected(mphy->hw, NULL); in mt7996_mcu_rx_radar_detected() 497 struct mt76_phy *mphy = &dev->mt76.phy; in mt7996_mcu_ie_countdown() local 507 mphy = dev->mt76.phys[hdr->band]; in mt7996_mcu_ie_countdown() [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_mt7921(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 …]
|
| H A D | mt76_connac_mcu.c | 791 mt76_connac_get_phy_mode_v2(struct mt76_phy *mphy, struct ieee80211_vif *vif, in mt76_connac_get_phy_mode_v2() argument 809 sband = mphy->hw->wiphy->bands[band]; in mt76_connac_get_phy_mode_v2() 847 void mt76_connac_mcu_sta_tlv(struct mt76_phy *mphy, struct sk_buff *skb, in mt76_connac_mcu_sta_tlv() argument 854 &mvif->ctx->def : &mphy->chandef; in mt76_connac_mcu_sta_tlv() 856 struct mt76_dev *dev = mphy->dev; in mt76_connac_mcu_sta_tlv() 911 phy->phy_type = mt76_connac_get_phy_mode_v2(mphy, vif, band, in mt76_connac_mcu_sta_tlv()
|
| /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() 896 struct mt76_phy *mphy; in mt7925_mac_add_txs_skb() local 941 mphy = mt76_dev_phy(mdev, wcid->phy_idx); in mt7925_mac_add_txs_skb() 943 if (mphy->chandef.chan->band == NL80211_BAND_5GHZ) in mt7925_mac_add_txs_skb() 944 sband = &mphy->sband_5g.sband; in mt7925_mac_add_txs_skb() [all …]
|
| /linux/drivers/ufs/host/ |
| H A D | ufs-mediatek.c | 309 host->mphy = devm_of_phy_get_by_index(dev, np, 0); in ufs_mtk_bind_mphy() 311 if (host->mphy == ERR_PTR(-EPROBE_DEFER)) { in ufs_mtk_bind_mphy() 320 } else if (IS_ERR(host->mphy)) { in ufs_mtk_bind_mphy() 321 err = PTR_ERR(host->mphy); in ufs_mtk_bind_mphy() 329 host->mphy = NULL; in ufs_mtk_bind_mphy() 510 struct phy *mphy = host->mphy; in ufs_mtk_mphy_power_on() local 514 if (!mphy || !(on ^ host->mphy_powered_on)) in ufs_mtk_mphy_power_on() 526 phy_power_on(mphy); in ufs_mtk_mphy_power_on() 528 phy_power_off(mphy); in ufs_mtk_mphy_power_on() 735 phy_power_on(host->mphy); in ufs_mtk_pwr_ctrl() [all …]
|
| H A D | ufs-mediatek.h | 176 struct phy *mphy; member
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3576.dtsi | 1860 reg-names = "hci", "mphy", "hci_grf", "mphy_grf", "hci_apb";
|