Lines Matching refs:mphy

48 	struct mt76_phy *mphy;  in mt7996_led_set_config()  local
51 mphy = container_of(led_cdev, struct mt76_phy, leds.cdev); in mt7996_led_set_config()
52 dev = container_of(mphy->dev, struct mt7996_dev, mt76); in mt7996_led_set_config()
67 if (mphy->leds.al) in mt7996_led_set_config()
106 int i, nss = hweight8(dev->mphy.antenna_mask); in mt7996_init_txpower()
116 target_power = mt76_get_rate_power_limits(&dev->mphy, chan, in mt7996_init_txpower()
265 i = dev->mphy.leds.pin ? MT_LED_GPIO_MUX3 : MT_LED_GPIO_MUX2; in mt7996_mac_init()
309 struct mt76_phy *mphy; in mt7996_register_phy() local
326 mphy = mt76_alloc_phy(&dev->mt76, sizeof(*phy), &mt7996_ops, band); in mt7996_register_phy()
327 if (!mphy) in mt7996_register_phy()
330 phy = mphy->priv; in mt7996_register_phy()
332 phy->mt76 = mphy; in mt7996_register_phy()
333 mphy->dev->phys[band] = mphy; in mt7996_register_phy()
335 INIT_DELAYED_WORK(&mphy->mac_work, mt7996_mac_work); in mt7996_register_phy()
342 memcpy(mphy->macaddr, dev->mt76.eeprom.data + mac_ofs, ETH_ALEN); in mt7996_register_phy()
346 if (!is_valid_ether_addr(mphy->macaddr)) { in mt7996_register_phy()
347 memcpy(mphy->macaddr, dev->mt76.eeprom.data + MT_EE_MAC_ADDR, in mt7996_register_phy()
349 mphy->macaddr[0] |= 2; in mt7996_register_phy()
350 mphy->macaddr[0] ^= BIT(7); in mt7996_register_phy()
352 mphy->macaddr[0] ^= BIT(6); in mt7996_register_phy()
354 mt76_eeprom_override(mphy); in mt7996_register_phy()
357 mt7996_init_wiphy(mphy->hw); in mt7996_register_phy()
365 ret = mt76_register_phy(mphy, true, mt76_rates, in mt7996_register_phy()
377 mphy->dev->phys[band] = NULL; in mt7996_register_phy()
378 ieee80211_free_hw(mphy->hw); in mt7996_register_phy()
385 struct mt76_phy *mphy; in mt7996_unregister_phy() local
390 mphy = phy->dev->mt76.phys[band]; in mt7996_unregister_phy()
391 mt76_unregister_phy(mphy); in mt7996_unregister_phy()
392 ieee80211_free_hw(mphy->hw); in mt7996_unregister_phy()
403 mt7996_init_txpower(dev, &dev->mphy.sband_2g.sband); in mt7996_init_work()
404 mt7996_init_txpower(dev, &dev->mphy.sband_5g.sband); in mt7996_init_work()
405 mt7996_init_txpower(dev, &dev->mphy.sband_6g.sband); in mt7996_init_work()
433 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7996_init_hardware()
853 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt7996_mac_work); in mt7996_register_device()
870 dev->mphy.leds.cdev.brightness_set = mt7996_led_set_brightness; in mt7996_register_device()
871 dev->mphy.leds.cdev.blink_set = mt7996_led_set_blink; in mt7996_register_device()