Lines Matching full:mt76
13 if (mtk_wed_device_active(&phy->dev->mt76.mmio.wed)) { in mt7915_init_tx_queues()
18 return mt76_connac_init_tx_queues(phy->mt76, idx, n_desc, ring_base, in mt7915_init_tx_queues()
26 dev = container_of(napi, struct mt7915_dev, mt76.tx_napi); in mt7915_poll_tx()
28 mt76_connac_tx_cleanup(&dev->mt76); in mt7915_poll_tx()
48 if (is_mt7915(&dev->mt76)) { in mt7915_dma_config()
91 if (!is_mt7915(&dev->mt76)) { in __mt7915_dma_prefetch()
106 if (is_mt7915(&dev->mt76)) { in __mt7915_dma_prefetch()
126 struct mt76_dev *mdev = &dev->mt76; in mt7915_dma_disable()
209 struct mt76_dev *mdev = &dev->mt76; in mt7915_dma_enable()
322 if (mtk_wed_device_active(&dev->mt76.mmio.wed)) { in mt7915_dma_enable()
327 mtk_wed_device_start(&dev->mt76.mmio.wed, wed_irq_mask); in mt7915_dma_enable()
337 struct mt76_dev *mdev = &dev->mt76; in mt7915_dma_init()
344 mt76_dma_attach(&dev->mt76); in mt7915_dma_init()
351 if (mtk_wed_device_active(&dev->mt76.mmio.wed)) { in mt7915_dma_init()
380 ret = mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_WM, in mt7915_dma_init()
388 ret = mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_WA, in mt7915_dma_init()
396 ret = mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_FWDL, in mt7915_dma_init()
404 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MCU], in mt7915_dma_init()
413 if (mtk_wed_device_active(&dev->mt76.mmio.wed)) { in mt7915_dma_init()
416 dev->mt76.q_rx[MT_RXQ_MCU_WA].flags = MT_WED_Q_TXFREE; in mt7915_dma_init()
421 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MCU_WA], in mt7915_dma_init()
429 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MAIN], in mt7915_dma_init()
440 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MAIN_WA], in mt7915_dma_init()
451 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_BAND1], in mt7915_dma_init()
460 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_BAND1_WA], in mt7915_dma_init()
473 netif_napi_add_tx(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi, in mt7915_dma_init()
475 napi_enable(&dev->mt76.tx_napi); in mt7915_dma_init()
486 mt76_dma_cleanup(&dev->mt76); in mt7915_dma_cleanup()