Lines Matching refs:mphy

90 mt76x02_led_set_config(struct mt76_phy *mphy, u8 delay_on, u8 delay_off)  in mt76x02_led_set_config()  argument
92 struct mt76x02_dev *dev = container_of(mphy->dev, struct mt76x02_dev, in mt76x02_led_set_config()
100 mt76_wr(dev, MT_LED_S0(mphy->leds.pin), val); in mt76x02_led_set_config()
101 mt76_wr(dev, MT_LED_S1(mphy->leds.pin), val); in mt76x02_led_set_config()
103 val = MT_LED_CTRL_REPLAY(mphy->leds.pin) | in mt76x02_led_set_config()
104 MT_LED_CTRL_KICK(mphy->leds.pin); in mt76x02_led_set_config()
105 if (mphy->leds.al) in mt76x02_led_set_config()
106 val |= MT_LED_CTRL_POLARITY(mphy->leds.pin); in mt76x02_led_set_config()
115 struct mt76_phy *mphy = container_of(led_cdev, struct mt76_phy, in mt76x02_led_set_blink() local
122 mt76x02_led_set_config(mphy, delta_on, delta_off); in mt76x02_led_set_blink()
131 struct mt76_phy *mphy = container_of(led_cdev, struct mt76_phy, in mt76x02_led_set_brightness() local
135 mt76x02_led_set_config(mphy, 0, 0xff); in mt76x02_led_set_brightness()
137 mt76x02_led_set_config(mphy, 0xff, 0); in mt76x02_led_set_brightness()
145 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt76x02_mac_work); in mt76x02_init_device()
169 dev->mphy.leds.cdev.brightness_set = in mt76x02_init_device()
171 dev->mphy.leds.cdev.blink_set = mt76x02_led_set_blink; in mt76x02_init_device()
189 dev->mphy.sband_2g.sband.ht_cap.cap |= in mt76x02_init_device()
191 dev->mphy.sband_5g.sband.ht_cap.cap |= in mt76x02_init_device()
193 dev->mphy.chainmask = 0x202; in mt76x02_init_device()
194 dev->mphy.antenna_mask = 3; in mt76x02_init_device()
196 dev->mphy.chainmask = 0x101; in mt76x02_init_device()
197 dev->mphy.antenna_mask = 1; in mt76x02_init_device()
306 (((vif->addr[0] ^ dev->mphy.macaddr[0]) & ~GENMASK(4, 1)) || in mt76x02_add_interface()
307 memcmp(vif->addr + 1, dev->mphy.macaddr + 1, ETH_ALEN - 1))) in mt76x02_add_interface()
311 idx = 1 + (((dev->mphy.macaddr[0] ^ vif->addr[0]) >> 2) & 7); in mt76x02_add_interface()
496 qid = dev->mphy.q_tx[queue]->hw_idx; in mt76x02_conf_tx()
614 clear_bit(MT76_SCANNING, &dev->mphy.state); in mt76x02_sw_scan_complete()
630 mt76_stop_tx_queues(&dev->mphy, sta, true); in mt76x02_sta_ps()
686 memcpy(addr, dev->mphy.macaddr, ETH_ALEN); in mt76x02_config_mac_addr_list()