Lines Matching refs:mt76
62 dev_dbg(dev->mt76.dev, "MCU not ready\n"); in mt76x0_init_usb_dma()
74 clear_bit(MT76_STATE_INITIALIZED, &dev->mt76.state); in mt76x0u_cleanup()
76 mt76u_queues_deinit(&dev->mt76); in mt76x0u_cleanup()
83 clear_bit(MT76_STATE_RUNNING, &dev->mt76.state); in mt76x0u_stop()
85 cancel_delayed_work_sync(&dev->mt76.mac_work); in mt76x0u_stop()
86 mt76u_stop_tx(&dev->mt76); in mt76x0u_stop()
89 if (test_bit(MT76_REMOVED, &dev->mt76.state)) in mt76x0u_stop()
93 dev_warn(dev->mt76.dev, "TX DMA did not stop\n"); in mt76x0u_stop()
98 dev_warn(dev->mt76.dev, "RX DMA did not stop\n"); in mt76x0u_stop()
111 ieee80211_queue_delayed_work(dev->mt76.hw, &dev->mt76.mac_work, in mt76x0u_start()
113 ieee80211_queue_delayed_work(dev->mt76.hw, &dev->cal_work, in mt76x0u_start()
115 set_bit(MT76_STATE_RUNNING, &dev->mt76.state); in mt76x0u_start()
149 if (!mt76x02_wait_for_mac(&dev->mt76)) in mt76x0u_init_hardware()
180 struct ieee80211_hw *hw = dev->mt76.hw; in mt76x0u_register_device()
183 err = mt76u_alloc_queues(&dev->mt76); in mt76x0u_register_device()
196 if (dev->mt76.usb.sg_en) in mt76x0u_register_device()
201 set_bit(MT76_STATE_INITIALIZED, &dev->mt76.state); in mt76x0u_register_device()
234 dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x0u_probe()
289 bool initialized = test_bit(MT76_STATE_INITIALIZED, &dev->mt76.state); in mt76x0_disconnect()
294 ieee80211_unregister_hw(dev->mt76.hw); in mt76x0_disconnect()
300 ieee80211_free_hw(dev->mt76.hw); in mt76x0_disconnect()
308 mt76u_stop_rx(&dev->mt76); in mt76x0_suspend()
309 clear_bit(MT76_STATE_MCU_RUNNING, &dev->mt76.state); in mt76x0_suspend()
320 ret = mt76u_resume_rx(&dev->mt76); in mt76x0_resume()