Lines Matching refs:mphy
117 int rx_chains = dev->mphy.antenna_mask; in mt7603_phy_init()
295 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7603_init_hardware()
341 static void mt7603_led_set_config(struct mt76_phy *mphy, u8 delay_on, in mt7603_led_set_config() argument
344 struct mt7603_dev *dev = container_of(mphy->dev, struct mt7603_dev, in mt7603_led_set_config()
352 addr = mt7603_reg_map(dev, MT_LED_STATUS_0(mphy->leds.pin)); in mt7603_led_set_config()
354 addr = mt7603_reg_map(dev, MT_LED_STATUS_1(mphy->leds.pin)); in mt7603_led_set_config()
357 val = MT_LED_CTRL_REPLAY(mphy->leds.pin) | in mt7603_led_set_config()
358 MT_LED_CTRL_KICK(mphy->leds.pin); in mt7603_led_set_config()
359 if (mphy->leds.al) in mt7603_led_set_config()
360 val |= MT_LED_CTRL_POLARITY(mphy->leds.pin); in mt7603_led_set_config()
369 struct mt76_phy *mphy = container_of(led_cdev, struct mt76_phy, in mt7603_led_set_blink() local
376 mt7603_led_set_config(mphy, delta_on, delta_off); in mt7603_led_set_blink()
383 struct mt76_phy *mphy = container_of(led_cdev, struct mt76_phy, in mt7603_led_set_brightness() local
387 mt7603_led_set_config(mphy, 0, 0xff); in mt7603_led_set_brightness()
389 mt7603_led_set_config(mphy, 0xff, 0); in mt7603_led_set_brightness()
480 dev->mphy.txpower_cur = target_power; in mt7603_init_txpower()
485 if (dev->mphy.antenna_mask & BIT(1)) in mt7603_init_txpower()
515 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt7603_mac_work); in mt7603_register_device()
547 dev->mphy.leds.cdev.brightness_set = mt7603_led_set_brightness; in mt7603_register_device()
548 dev->mphy.leds.cdev.blink_set = mt7603_led_set_blink; in mt7603_register_device()
559 mt7603_init_txpower(dev, &dev->mphy.sband_2g.sband); in mt7603_register_device()