Lines Matching full:mphy
238 struct mt76_phy *mphy; in mt7915_led_set_config() local
241 mphy = container_of(led_cdev, struct mt76_phy, leds.cdev); in mt7915_led_set_config()
242 dev = container_of(mphy->dev, struct mt7915_dev, mt76); in mt7915_led_set_config()
248 mt76_wr(dev, MT_LED_STATUS_0(mphy->band_idx), val); in mt7915_led_set_config()
249 mt76_wr(dev, MT_LED_STATUS_1(mphy->band_idx), val); in mt7915_led_set_config()
252 mt76_wr(dev, MT_LED_EN(mphy->band_idx), 1); in mt7915_led_set_config()
256 if (dev->mphy.leds.al) in mt7915_led_set_config()
258 if (mphy->band_idx) in mt7915_led_set_config()
261 mt76_wr(dev, MT_LED_CTRL(mphy->band_idx), val); in mt7915_led_set_config()
262 mt76_clear(dev, MT_LED_CTRL(mphy->band_idx), MT_LED_CTRL_KICK); in mt7915_led_set_config()
350 struct mt76_phy *mphy = hw->priv; in mt7915_regd_notifier() local
351 struct mt7915_phy *phy = mphy->priv; in mt7915_regd_notifier()
361 mphy->dfs_state = MT_DFS_STATE_UNKNOWN; in mt7915_regd_notifier()
368 struct mt76_phy *mphy = phy->mt76; in mt7915_init_wiphy() local
369 struct ieee80211_hw *hw = mphy->hw; in mt7915_init_wiphy()
490 mphy->leds.cdev.brightness_set = mt7915_led_set_brightness; in mt7915_init_wiphy()
491 mphy->leds.cdev.blink_set = mt7915_led_set_blink; in mt7915_init_wiphy()
595 } else if (dev->mphy.leds.pin) { in mt7915_init_led_mux()
684 struct mt76_phy *mphy; in mt7915_alloc_ext_phy() local
689 mphy = mt76_alloc_phy(&dev->mt76, sizeof(*phy), &mt7915_ops, MT_BAND1); in mt7915_alloc_ext_phy()
690 if (!mphy) in mt7915_alloc_ext_phy()
693 phy = mphy->priv; in mt7915_alloc_ext_phy()
695 phy->mt76 = mphy; in mt7915_alloc_ext_phy()
706 struct mt76_phy *mphy = phy->mt76; in mt7915_register_ext_phy() local
709 INIT_DELAYED_WORK(&mphy->mac_work, mt7915_mac_work); in mt7915_register_ext_phy()
714 memcpy(mphy->macaddr, dev->mt76.eeprom.data + MT_EE_MAC_ADDR2, in mt7915_register_ext_phy()
716 memcpy(mphy->macaddr, (u8 *)dev->mt76.eeprom.data + MT_EE_MAC_ADDR2, in mt7915_register_ext_phy()
722 if (!is_valid_ether_addr(mphy->macaddr)) { in mt7915_register_ext_phy()
724 memcpy(mphy->macaddr, dev->mt76.eeprom.data + MT_EE_MAC_ADDR, in mt7915_register_ext_phy()
726 memcpy(mphy->macaddr, (u8 *)dev->mt76.eeprom.data + MT_EE_MAC_ADDR, in mt7915_register_ext_phy()
729 mphy->macaddr[0] |= 2; in mt7915_register_ext_phy()
730 mphy->macaddr[0] ^= BIT(7); in mt7915_register_ext_phy()
732 mt76_eeprom_override(mphy); in mt7915_register_ext_phy()
734 /* init wiphy according to mphy and phy */ in mt7915_register_ext_phy()
737 ret = mt76_register_phy(mphy, true, mt76_rates, in mt7915_register_ext_phy()
753 mt76_unregister_phy(mphy); in mt7915_register_ext_phy()
861 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7915_init_hardware()
1219 struct mt76_phy *mphy = dev->mt76.phys[MT_BAND1]; in mt7915_unregister_ext_phy() local
1227 mt76_unregister_phy(mphy); in mt7915_unregister_ext_phy()
1228 ieee80211_free_hw(mphy->hw); in mt7915_unregister_ext_phy()
1251 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt7915_mac_work); in mt7915_register_device()