Lines Matching refs:mt76
357 if (is_mt7986(&dev->mt76)) in mt7915_reg_map_l1()
360 l1_remap = is_mt7915(&dev->mt76) ? in mt7915_reg_map_l1()
363 dev->bus_ops->rmw(&dev->mt76, l1_remap, in mt7915_reg_map_l1()
367 dev->bus_ops->rr(&dev->mt76, l1_remap); in mt7915_reg_map_l1()
376 if (is_mt7915(&dev->mt76)) { in mt7915_reg_map_l2()
380 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L2, in mt7915_reg_map_l2()
385 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L2); in mt7915_reg_map_l2()
387 u32 ofs = is_mt7986(&dev->mt76) ? 0x400000 : 0; in mt7915_reg_map_l2()
392 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L2_MT7916 + ofs, in mt7915_reg_map_l2()
397 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L2_MT7916 + ofs); in mt7915_reg_map_l2()
413 dev_err(dev->mt76.dev, "err: reg_map is null\n"); in __mt7915_reg_addr()
435 if (dev_is_pci(dev->mt76.dev) && in __mt7915_reg_addr()
451 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_rr()
459 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_wr()
467 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_rmw()
480 dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_mmio_init()
481 mt76_mmio_init(&dev->mt76, mem_base); in mt7915_mmio_init()
506 dev->bus_ops = dev->mt76.bus; in mt7915_mmio_init()
507 bus_ops = devm_kmemdup(dev->mt76.dev, dev->bus_ops, sizeof(*bus_ops), in mt7915_mmio_init()
515 dev->mt76.bus = bus_ops; in mt7915_mmio_init()
528 struct mt76_dev *mdev = &dev->mt76; in mt7915_dual_hif_set_irq_mask()
547 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_rx_poll_complete()
556 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7915_irq_tasklet()
561 intr = mtk_wed_device_irq_get(wed, dev->mt76.mmio.irqmask); in mt7915_irq_tasklet()
568 intr &= dev->mt76.mmio.irqmask; in mt7915_irq_tasklet()
574 intr1 &= dev->mt76.mmio.irqmask; in mt7915_irq_tasklet()
580 trace_dev_irq(&dev->mt76, intr, dev->mt76.mmio.irqmask); in mt7915_irq_tasklet()
589 napi_schedule(&dev->mt76.tx_napi); in mt7915_irq_tasklet()
592 napi_schedule(&dev->mt76.napi[MT_RXQ_MAIN]); in mt7915_irq_tasklet()
595 napi_schedule(&dev->mt76.napi[MT_RXQ_EXT]); in mt7915_irq_tasklet()
598 napi_schedule(&dev->mt76.napi[MT_RXQ_MCU]); in mt7915_irq_tasklet()
601 napi_schedule(&dev->mt76.napi[MT_RXQ_MCU_WA]); in mt7915_irq_tasklet()
603 if (!is_mt7915(&dev->mt76) && in mt7915_irq_tasklet()
605 napi_schedule(&dev->mt76.napi[MT_RXQ_MAIN_WA]); in mt7915_irq_tasklet()
608 napi_schedule(&dev->mt76.napi[MT_RXQ_EXT_WA]); in mt7915_irq_tasklet()
616 queue_work(dev->mt76.wq, &dev->reset_work); in mt7915_irq_tasklet()
625 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7915_irq_handler()
677 dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_mmio_probe()
688 mt76_free_device(&dev->mt76); in mt7915_mmio_probe()