Lines Matching refs:wed
106 static int mt7915_wed_offload_enable(struct mtk_wed_device *wed) in mt7915_wed_offload_enable() argument
112 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_wed_offload_enable()
115 dev->mt76.token_size = wed->wlan.token_start; in mt7915_wed_offload_enable()
134 static void mt7915_wed_offload_disable(struct mtk_wed_device *wed) in mt7915_wed_offload_disable() argument
139 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_wed_offload_disable()
162 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7915_pci_wed_init() local
168 wed->wlan.pci_dev = pdev; in mt7915_pci_wed_init()
169 wed->wlan.wpdma_phys = pci_resource_start(pdev, 0) + in mt7915_pci_wed_init()
171 wed->wlan.nbuf = 4096; in mt7915_pci_wed_init()
172 wed->wlan.token_start = MT7915_TOKEN_SIZE - wed->wlan.nbuf; in mt7915_pci_wed_init()
173 wed->wlan.init_buf = mt7915_wed_init_buf; in mt7915_pci_wed_init()
174 wed->wlan.offload_enable = mt7915_wed_offload_enable; in mt7915_pci_wed_init()
175 wed->wlan.offload_disable = mt7915_wed_offload_disable; in mt7915_pci_wed_init()
177 if (mtk_wed_device_attach(wed) != 0) in mt7915_pci_wed_init()
180 *irq = wed->irq; in mt7915_pci_wed_init()
181 dev->mt76.dma_dev = wed->dev; in mt7915_pci_wed_init()
183 ret = dma_set_mask(wed->dev, DMA_BIT_MASK(32)); in mt7915_pci_wed_init()
283 if (mtk_wed_device_active(&mdev->mmio.wed)) in mt7915_pci_probe()
284 mtk_wed_device_detach(&mdev->mmio.wed); in mt7915_pci_probe()