Lines Matching full:mt76
45 if (is_mt7663(&dev->mt76)) { in mt7615_init_hardware()
58 idx = mt76_wcid_alloc(dev->mt76.wcid_mask, MT7615_WTBL_STA - 1); in mt7615_init_hardware()
62 dev->mt76.global_wcid.idx = idx; in mt7615_init_hardware()
63 dev->mt76.global_wcid.hw_key_idx = -1; in mt7615_init_hardware()
64 rcu_assign_pointer(dev->mt76.wcid[idx], &dev->mt76.global_wcid); in mt7615_init_hardware()
74 struct mt76_dev *mt76; in mt7615_led_set_config() local
77 mt76 = container_of(led_cdev, struct mt76_dev, led_cdev); in mt7615_led_set_config()
78 dev = container_of(mt76, struct mt7615_dev, mt76); in mt7615_led_set_config()
87 addr = mt7615_reg_map(dev, MT_LED_STATUS_0(mt76->led_pin)); in mt7615_led_set_config()
89 addr = mt7615_reg_map(dev, MT_LED_STATUS_1(mt76->led_pin)); in mt7615_led_set_config()
92 val = MT_LED_CTRL_REPLAY(mt76->led_pin) | in mt7615_led_set_config()
93 MT_LED_CTRL_KICK(mt76->led_pin); in mt7615_led_set_config()
94 if (mt76->led_al) in mt7615_led_set_config()
95 val |= MT_LED_CTRL_POLARITY(mt76->led_pin); in mt7615_led_set_config()
136 dev->mt76.led_cdev.brightness_set = mt7615_led_set_brightness; in mt7615_register_device()
137 dev->mt76.led_cdev.blink_set = mt7615_led_set_blink; in mt7615_register_device()
148 ret = mt76_register_device(&dev->mt76, true, mt76_rates, in mt7615_register_device()
177 mt76_unregister_device(&dev->mt76); in mt7615_unregister_device()
185 mt76_free_device(&dev->mt76); in mt7615_unregister_device()