Lines Matching refs:mt76
119 dev->mt76.eeprom.data = devm_kzalloc(dev->mt76.dev, in mt76x2u_init_eeprom()
122 dev->mt76.eeprom.size = MT7612U_EEPROM_SIZE; in mt76x2u_init_eeprom()
123 if (!dev->mt76.eeprom.data) in mt76x2u_init_eeprom()
128 put_unaligned_le32(val, dev->mt76.eeprom.data + i); in mt76x2u_init_eeprom()
150 dev = container_of(mdev, struct mt76x2_dev, mt76); in mt76x2u_alloc_device()
216 mt76x2u_mac_setaddr(dev, dev->mt76.eeprom.data + MT_EE_MAC_ADDR); in mt76x2u_init_hardware()
267 err = mt76u_mcu_init_rx(&dev->mt76); in mt76x2u_register_device()
271 err = mt76u_alloc_queues(&dev->mt76); in mt76x2u_register_device()
281 err = mt76_register_device(&dev->mt76, true, mt76x2_rates, in mt76x2u_register_device()
287 if (mt76u_check_sg(&dev->mt76)) in mt76x2u_register_device()
292 set_bit(MT76_STATE_INITIALIZED, &dev->mt76.state); in mt76x2u_register_device()
295 mt76x2_init_txpower(dev, &dev->mt76.sband_2g.sband); in mt76x2u_register_device()
296 mt76x2_init_txpower(dev, &dev->mt76.sband_5g.sband); in mt76x2u_register_device()
307 mt76u_stop_stat_wk(&dev->mt76); in mt76x2u_stop_hw()
316 mt76u_queues_deinit(&dev->mt76); in mt76x2u_cleanup()