Lines Matching refs:mt76
24 struct mt76_queue *q = &dev->mt76.q_tx[qid]; in mt76x2_tx_queue_mcu()
35 addr = dma_map_single(dev->mt76.dev, skb->data, skb->len, in mt76x2_tx_queue_mcu()
37 if (dma_mapping_error(dev->mt76.dev, addr)) in mt76x2_tx_queue_mcu()
56 q->regs = dev->mt76.regs + MT_TX_RING_BASE + idx * MT_RING_SIZE; in mt76x2_init_tx_queue()
75 q->regs = dev->mt76.regs + MT_RX_RING_BASE + idx * MT_RING_SIZE; in mt76x2_init_rx_queue()
119 mt76_dma_attach(&dev->mt76); in mt76x2_dma_init()
129 ret = mt76x2_init_tx_queue(dev, &dev->mt76.q_tx[i], in mt76x2_dma_init()
135 ret = mt76x2_init_tx_queue(dev, &dev->mt76.q_tx[MT_TXQ_PSD], in mt76x2_dma_init()
140 ret = mt76x2_init_tx_queue(dev, &dev->mt76.q_tx[MT_TXQ_MCU], in mt76x2_dma_init()
145 ret = mt76x2_init_rx_queue(dev, &dev->mt76.q_rx[MT_RXQ_MCU], 1, in mt76x2_dma_init()
150 q = &dev->mt76.q_rx[MT_RXQ_MAIN]; in mt76x2_dma_init()
162 mt76_dma_cleanup(&dev->mt76); in mt76x2_dma_cleanup()