Lines Matching refs:mphy
116 int rx_chains = dev->mphy.antenna_mask; in mt7603_phy_init()
287 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7603_init_hardware()
333 static void mt7603_led_set_config(struct mt76_phy *mphy, u8 delay_on, in mt7603_led_set_config() argument
336 struct mt7603_dev *dev = container_of(mphy->dev, struct mt7603_dev, in mt7603_led_set_config()
344 addr = mt7603_reg_map(dev, MT_LED_STATUS_0(mphy->leds.pin)); in mt7603_led_set_config()
346 addr = mt7603_reg_map(dev, MT_LED_STATUS_1(mphy->leds.pin)); in mt7603_led_set_config()
349 val = MT_LED_CTRL_REPLAY(mphy->leds.pin) | in mt7603_led_set_config()
350 MT_LED_CTRL_KICK(mphy->leds.pin); in mt7603_led_set_config()
351 if (mphy->leds.al) in mt7603_led_set_config()
352 val |= MT_LED_CTRL_POLARITY(mphy->leds.pin); in mt7603_led_set_config()
361 struct mt76_phy *mphy = container_of(led_cdev, struct mt76_phy, in mt7603_led_set_blink() local
368 mt7603_led_set_config(mphy, delta_on, delta_off); in mt7603_led_set_blink()
375 struct mt76_phy *mphy = container_of(led_cdev, struct mt76_phy, in mt7603_led_set_brightness() local
379 mt7603_led_set_config(mphy, 0, 0xff); in mt7603_led_set_brightness()
381 mt7603_led_set_config(mphy, 0xff, 0); in mt7603_led_set_brightness()
470 dev->mphy.txpower_cur = target_power; in mt7603_init_txpower()
475 if (dev->mphy.antenna_mask & BIT(1)) in mt7603_init_txpower()
505 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt7603_mac_work); in mt7603_register_device()
536 dev->mphy.leds.cdev.brightness_set = mt7603_led_set_brightness; in mt7603_register_device()
537 dev->mphy.leds.cdev.blink_set = mt7603_led_set_blink; in mt7603_register_device()
548 mt7603_init_txpower(dev, &dev->mphy.sband_2g.sband); in mt7603_register_device()