Lines Matching full:wed

9 void mt76_wed_release_rx_buf(struct mtk_wed_device *wed)  in mt76_wed_release_rx_buf()  argument
11 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt76_wed_release_rx_buf()
32 u32 mt76_wed_init_rx_buf(struct mtk_wed_device *wed, int size) in mt76_wed_init_rx_buf() argument
34 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt76_wed_init_rx_buf()
35 struct mtk_wed_bm_desc *desc = wed->rx_buf_ring.desc; in mt76_wed_init_rx_buf()
79 mt76_wed_release_rx_buf(wed); in mt76_wed_init_rx_buf()
85 int mt76_wed_offload_enable(struct mtk_wed_device *wed) in mt76_wed_offload_enable() argument
87 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt76_wed_offload_enable()
90 dev->token_size = wed->wlan.token_start; in mt76_wed_offload_enable()
106 if (!q->wed || !mtk_wed_device_active(q->wed)) in mt76_wed_dma_setup()
117 ret = mtk_wed_device_tx_ring_setup(q->wed, ring, q->regs, in mt76_wed_dma_setup()
120 q->wed_regs = q->wed->tx_ring[ring].reg_base; in mt76_wed_dma_setup()
123 /* WED txfree queue needs ring to be initialized before setup */ in mt76_wed_dma_setup()
128 ret = mtk_wed_device_txfree_ring_setup(q->wed, q->regs); in mt76_wed_dma_setup()
130 q->wed_regs = q->wed->txfree_ring.reg_base; in mt76_wed_dma_setup()
133 ret = mtk_wed_device_rx_ring_setup(q->wed, ring, q->regs, in mt76_wed_dma_setup()
136 q->wed_regs = q->wed->rx_ring[ring].reg_base; in mt76_wed_dma_setup()
141 mtk_wed_device_rro_rx_ring_setup(q->wed, ring, q->regs); in mt76_wed_dma_setup()
148 mtk_wed_device_msdu_pg_rx_ring_setup(q->wed, ring, q->regs); in mt76_wed_dma_setup()
156 mtk_wed_device_ind_rx_ring_setup(q->wed, q->regs); in mt76_wed_dma_setup()
169 void mt76_wed_offload_disable(struct mtk_wed_device *wed) in mt76_wed_offload_disable() argument
171 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt76_wed_offload_disable()
179 void mt76_wed_reset_complete(struct mtk_wed_device *wed) in mt76_wed_reset_complete() argument
181 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt76_wed_reset_complete()
192 struct mtk_wed_device *wed = &phy->dev->mmio.wed; in mt76_wed_net_setup_tc() local
194 if (!mtk_wed_device_active(wed)) in mt76_wed_net_setup_tc()
197 return mtk_wed_device_setup_tc(wed, netdev, type, type_data); in mt76_wed_net_setup_tc()
211 dev_err(dev->dev, "wed reset complete timeout\n"); in mt76_wed_dma_reset()