Lines Matching full:wlan

320 	wed->wlan.pci_dev = pci_dev;  in mt7996_mmio_wed_init()
321 wed->wlan.bus_type = MTK_WED_BUS_PCIE; in mt7996_mmio_wed_init()
323 wed->wlan.base = devm_ioremap(dev->mt76.dev, in mt7996_mmio_wed_init()
326 wed->wlan.phy_base = pci_resource_start(pci_dev, 0); in mt7996_mmio_wed_init()
329 wed->wlan.wpdma_int = wed->wlan.phy_base + in mt7996_mmio_wed_init()
331 wed->wlan.wpdma_mask = wed->wlan.phy_base + in mt7996_mmio_wed_init()
333 wed->wlan.wpdma_tx = wed->wlan.phy_base + hif1_ofs + in mt7996_mmio_wed_init()
337 wed->wlan.wpdma_txfree = wed->wlan.phy_base + hif1_ofs + in mt7996_mmio_wed_init()
340 wed->wlan.txfree_tbit = ffs(MT_INT_RX_TXFREE_EXT) - 1; in mt7996_mmio_wed_init()
342 wed->wlan.wpdma_txfree = wed->wlan.phy_base + hif1_ofs + in mt7996_mmio_wed_init()
345 wed->wlan.txfree_tbit = ffs(MT_INT_RX_DONE_WA_TRI) - 1; in mt7996_mmio_wed_init()
348 wed->wlan.wpdma_rx_glo = wed->wlan.phy_base + hif1_ofs + MT_WFDMA0_GLO_CFG; in mt7996_mmio_wed_init()
349 wed->wlan.wpdma_rx = wed->wlan.phy_base + hif1_ofs + in mt7996_mmio_wed_init()
353 wed->wlan.id = 0x7991; in mt7996_mmio_wed_init()
354 wed->wlan.tx_tbit[0] = ffs(MT_INT_TX_DONE_BAND2) - 1; in mt7996_mmio_wed_init()
356 wed->wlan.hw_rro = dev->has_rro; /* default on */ in mt7996_mmio_wed_init()
357 wed->wlan.wpdma_int = wed->wlan.phy_base + MT_INT_SOURCE_CSR; in mt7996_mmio_wed_init()
358 wed->wlan.wpdma_mask = wed->wlan.phy_base + MT_INT_MASK_CSR; in mt7996_mmio_wed_init()
359 wed->wlan.wpdma_tx = wed->wlan.phy_base + MT_TXQ_RING_BASE(0) + in mt7996_mmio_wed_init()
362 wed->wlan.wpdma_rx_glo = wed->wlan.phy_base + MT_WFDMA0_GLO_CFG; in mt7996_mmio_wed_init()
364 wed->wlan.wpdma_rx = wed->wlan.phy_base + in mt7996_mmio_wed_init()
368 wed->wlan.wpdma_rx_rro[0] = wed->wlan.phy_base + in mt7996_mmio_wed_init()
371 wed->wlan.wpdma_rx_rro[1] = wed->wlan.phy_base + hif1_ofs + in mt7996_mmio_wed_init()
374 wed->wlan.wpdma_rx_pg = wed->wlan.phy_base + in mt7996_mmio_wed_init()
378 wed->wlan.rx_nbuf = 65536; in mt7996_mmio_wed_init()
379 wed->wlan.rx_npkt = dev->hif2 ? 32768 : 24576; in mt7996_mmio_wed_init()
380 wed->wlan.rx_size = SKB_WITH_OVERHEAD(MT_RX_BUF_SIZE); in mt7996_mmio_wed_init()
382 wed->wlan.rx_tbit[0] = ffs(MT_INT_RX_DONE_BAND0) - 1; in mt7996_mmio_wed_init()
383 wed->wlan.rx_tbit[1] = ffs(MT_INT_RX_DONE_BAND2) - 1; in mt7996_mmio_wed_init()
385 wed->wlan.rro_rx_tbit[0] = ffs(MT_INT_RX_DONE_RRO_BAND0) - 1; in mt7996_mmio_wed_init()
386 wed->wlan.rro_rx_tbit[1] = ffs(MT_INT_RX_DONE_RRO_BAND2) - 1; in mt7996_mmio_wed_init()
388 wed->wlan.rx_pg_tbit[0] = ffs(MT_INT_RX_DONE_MSDU_PG_BAND0) - 1; in mt7996_mmio_wed_init()
389 wed->wlan.rx_pg_tbit[1] = ffs(MT_INT_RX_DONE_MSDU_PG_BAND1) - 1; in mt7996_mmio_wed_init()
390 wed->wlan.rx_pg_tbit[2] = ffs(MT_INT_RX_DONE_MSDU_PG_BAND2) - 1; in mt7996_mmio_wed_init()
392 wed->wlan.tx_tbit[0] = ffs(MT_INT_TX_DONE_BAND0) - 1; in mt7996_mmio_wed_init()
393 wed->wlan.tx_tbit[1] = ffs(MT_INT_TX_DONE_BAND1) - 1; in mt7996_mmio_wed_init()
395 wed->wlan.wpdma_txfree = wed->wlan.phy_base + MT_RXQ_RING_BASE(0) + in mt7996_mmio_wed_init()
397 wed->wlan.txfree_tbit = ffs(MT_INT_RX_TXFREE_MAIN) - 1; in mt7996_mmio_wed_init()
399 wed->wlan.txfree_tbit = ffs(MT_INT_RX_DONE_WA_MAIN) - 1; in mt7996_mmio_wed_init()
400 wed->wlan.wpdma_txfree = wed->wlan.phy_base + MT_RXQ_RING_BASE(0) + in mt7996_mmio_wed_init()
403 dev->mt76.rx_token_size = MT7996_TOKEN_SIZE + wed->wlan.rx_npkt; in mt7996_mmio_wed_init()
406 wed->wlan.nbuf = MT7996_HW_TOKEN_SIZE; in mt7996_mmio_wed_init()
407 wed->wlan.token_start = MT7996_TOKEN_SIZE - wed->wlan.nbuf; in mt7996_mmio_wed_init()
409 wed->wlan.amsdu_max_subframes = 8; in mt7996_mmio_wed_init()
410 wed->wlan.amsdu_max_len = 1536; in mt7996_mmio_wed_init()
412 wed->wlan.init_buf = mt7996_wed_init_buf; in mt7996_mmio_wed_init()
413 wed->wlan.init_rx_buf = mt76_wed_init_rx_buf; in mt7996_mmio_wed_init()
414 wed->wlan.release_rx_buf = mt76_wed_release_rx_buf; in mt7996_mmio_wed_init()
415 wed->wlan.offload_enable = mt76_wed_offload_enable; in mt7996_mmio_wed_init()
416 wed->wlan.offload_disable = mt76_wed_offload_disable; in mt7996_mmio_wed_init()
418 wed->wlan.reset = mt7996_mmio_wed_reset; in mt7996_mmio_wed_init()
419 wed->wlan.reset_complete = mt76_wed_reset_complete; in mt7996_mmio_wed_init()