Lines Matching refs:mphy

269 	int i, n_chains = hweight8(dev->mphy.antenna_mask);  in mt7915_init_txpower()
287 target_power = mt76_get_rate_power_limits(&dev->mphy, chan, in mt7915_init_txpower()
304 struct mt76_phy *mphy = hw->priv; in mt7915_regd_notifier() local
305 struct mt7915_phy *phy = mphy->priv; in mt7915_regd_notifier()
313 mt7915_init_txpower(dev, &mphy->sband_2g.sband); in mt7915_regd_notifier()
314 mt7915_init_txpower(dev, &mphy->sband_5g.sband); in mt7915_regd_notifier()
315 mt7915_init_txpower(dev, &mphy->sband_6g.sband); in mt7915_regd_notifier()
317 mphy->dfs_state = MT_DFS_STATE_UNKNOWN; in mt7915_regd_notifier()
502 struct mt76_phy *mphy; in mt7915_alloc_ext_phy() local
507 mphy = mt76_alloc_phy(&dev->mt76, sizeof(*phy), &mt7915_ops, MT_BAND1); in mt7915_alloc_ext_phy()
508 if (!mphy) in mt7915_alloc_ext_phy()
511 phy = mphy->priv; in mt7915_alloc_ext_phy()
513 phy->mt76 = mphy; in mt7915_alloc_ext_phy()
524 struct mt76_phy *mphy = phy->mt76; in mt7915_register_ext_phy() local
527 INIT_DELAYED_WORK(&mphy->mac_work, mt7915_mac_work); in mt7915_register_ext_phy()
531 memcpy(mphy->macaddr, dev->mt76.eeprom.data + MT_EE_MAC_ADDR2, in mt7915_register_ext_phy()
536 if (!is_valid_ether_addr(mphy->macaddr)) { in mt7915_register_ext_phy()
537 memcpy(mphy->macaddr, dev->mt76.eeprom.data + MT_EE_MAC_ADDR, in mt7915_register_ext_phy()
539 mphy->macaddr[0] |= 2; in mt7915_register_ext_phy()
540 mphy->macaddr[0] ^= BIT(7); in mt7915_register_ext_phy()
542 mt76_eeprom_override(mphy); in mt7915_register_ext_phy()
545 mt7915_init_wiphy(mphy->hw); in mt7915_register_ext_phy()
547 ret = mt76_register_phy(mphy, true, mt76_rates, in mt7915_register_ext_phy()
561 mt76_unregister_phy(mphy); in mt7915_register_ext_phy()
572 mt7915_init_txpower(dev, &dev->mphy.sband_2g.sband); in mt7915_init_work()
573 mt7915_init_txpower(dev, &dev->mphy.sband_5g.sband); in mt7915_init_work()
574 mt7915_init_txpower(dev, &dev->mphy.sband_6g.sband); in mt7915_init_work()
672 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7915_init_hardware()
1041 struct mt76_phy *mphy = dev->mt76.phys[MT_BAND1]; in mt7915_unregister_ext_phy() local
1047 mt76_unregister_phy(mphy); in mt7915_unregister_ext_phy()
1048 ieee80211_free_hw(mphy->hw); in mt7915_unregister_ext_phy()
1073 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt7915_mac_work); in mt7915_register_device()