Lines Matching full:mt76
40 return mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_WM, MT7622_TXQ_MCU, in mt7622_init_tx_queues_multi()
49 ret = mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_FWDL, MT7615_TXQ_FWDL, in mt7615_init_tx_queues()
54 if (!is_mt7615(&dev->mt76)) in mt7615_init_tx_queues()
62 return mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_WM, MT7615_TXQ_MCU, in mt7615_init_tx_queues()
70 dev = container_of(napi, struct mt7615_dev, mt76.tx_napi); in mt7615_poll_tx()
73 queue_work(dev->mt76.wq, &dev->pm.wake_work); in mt7615_poll_tx()
77 mt76_queue_tx_cleanup(dev, dev->mt76.q_mcu[MT_MCUQ_WM], false); in mt7615_poll_tx()
91 dev = container_of(napi->dev, struct mt7615_dev, mt76.napi_dev); in mt7615_poll_rx()
95 queue_work(dev->mt76.wq, &dev->pm.wake_work); in mt7615_poll_rx()
106 struct mt76_dev *mdev = &dev->mt76; in mt7615_wait_pdma_busy()
208 if (is_mt7622(&dev->mt76)) in mt7615_dma_start()
211 if (is_mt7663(&dev->mt76)) { in mt7615_dma_start()
225 mt76_dma_attach(&dev->mt76); in mt7615_dma_init()
244 if (is_mt7615(&dev->mt76)) { in mt7615_dma_init()
264 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MCU], 1, in mt7615_dma_init()
270 if (!is_mt7615(&dev->mt76)) in mt7615_dma_init()
273 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MAIN], 0, in mt7615_dma_init()
284 netif_napi_add_tx(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi, in mt7615_dma_init()
286 napi_enable(&dev->mt76.tx_napi); in mt7615_dma_init()
295 if (is_mt7663(&dev->mt76)) in mt7615_dma_init()
314 mt76_dma_cleanup(&dev->mt76); in mt7615_dma_cleanup()