Lines Matching +full:- +full:pdma
1 // SPDX-License-Identifier: ISC
27 ret = mt76_init_tx_queue(&dev->mphy, i, wmm_queue_map[i], in mt7622_init_tx_queues_multi()
34 ret = mt76_init_tx_queue(&dev->mphy, MT_TXQ_PSD, MT7622_TXQ_MGMT, in mt7622_init_tx_queues_multi()
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()
57 ret = mt76_connac_init_tx_queues(&dev->mphy, 0, MT7615_TX_RING_SIZE, in mt7615_init_tx_queues()
62 return mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_WM, MT7615_TXQ_MCU, in mt7615_init_tx_queues()
71 if (!mt76_connac_pm_ref(&dev->mphy, &dev->pm)) { 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()
79 mt76_connac_irq_enable(&dev->mt76, in mt7615_poll_tx()
82 mt76_connac_pm_unref(&dev->mphy, &dev->pm); in mt7615_poll_tx()
92 dev = container_of(napi->dev, struct mt7615_dev, mt76.napi_dev); in mt7615_poll_rx()
94 if (!mt76_connac_pm_ref(&dev->mphy, &dev->pm)) { in mt7615_poll_rx()
96 queue_work(dev->mt76.wq, &dev->pm.wake_work); in mt7615_poll_rx()
100 mt76_connac_pm_unref(&dev->mphy, &dev->pm); in mt7615_poll_rx()
107 struct mt76_dev *mdev = &dev->mt76; in mt7615_wait_pdma_busy()
114 dev_err(mdev->dev, "PDMA engine busy\n"); in mt7615_wait_pdma_busy()
115 return -EIO; in mt7615_wait_pdma_busy()
123 dev_err(mdev->dev, "PDMA engine tx busy\n"); in mt7615_wait_pdma_busy()
124 return -EIO; in mt7615_wait_pdma_busy()
129 dev_err(mdev->dev, "PSE engine busy\n"); in mt7615_wait_pdma_busy()
130 return -EIO; in mt7615_wait_pdma_busy()
135 dev_err(mdev->dev, "PDMA engine busy\n"); in mt7615_wait_pdma_busy()
136 return -EIO; in mt7615_wait_pdma_busy()
209 if (is_mt7622(&dev->mt76)) in mt7615_dma_start()
212 if (is_mt7663(&dev->mt76)) { in mt7615_dma_start()
226 mt76_dma_attach(&dev->mt76); in mt7615_dma_init()
245 if (is_mt7615(&dev->mt76)) { in mt7615_dma_init()
265 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MCU], 1, in mt7615_dma_init()
271 if (!is_mt7615(&dev->mt76)) in mt7615_dma_init()
274 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MAIN], 0, in mt7615_dma_init()
285 netif_napi_add_tx(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi, in mt7615_dma_init()
287 napi_enable(&dev->mt76.tx_napi); in mt7615_dma_init()
296 if (is_mt7663(&dev->mt76)) in mt7615_dma_init()
301 mt76_connac_irq_enable(&dev->mt76, mask); in mt7615_dma_init()
315 mt76_dma_cleanup(&dev->mt76); in mt7615_dma_cleanup()