Lines Matching refs:mmio
13 val = readl(dev->mmio.regs + offset); in mt76_mmio_rr()
22 writel(val, dev->mmio.regs + offset); in mt76_mmio_wr()
35 __iowrite32_copy(dev->mmio.regs + offset, data, DIV_ROUND_UP(len, 4)); in mt76_mmio_write_copy()
41 __ioread32_copy(data, dev->mmio.regs + offset, DIV_ROUND_UP(len, 4)); in mt76_mmio_read_copy()
73 spin_lock_irqsave(&dev->mmio.irq_lock, flags); in mt76_set_irq_mask()
74 dev->mmio.irqmask &= ~clear; in mt76_set_irq_mask()
75 dev->mmio.irqmask |= set; in mt76_set_irq_mask()
77 if (mtk_wed_device_active(&dev->mmio.wed)) in mt76_set_irq_mask()
78 mtk_wed_device_irq_set_mask(&dev->mmio.wed, in mt76_set_irq_mask()
79 dev->mmio.irqmask); in mt76_set_irq_mask()
81 mt76_mmio_wr(dev, addr, dev->mmio.irqmask); in mt76_set_irq_mask()
83 spin_unlock_irqrestore(&dev->mmio.irq_lock, flags); in mt76_set_irq_mask()
101 dev->mmio.regs = regs; in mt76_mmio_init()
103 spin_lock_init(&dev->mmio.irq_lock); in mt76_mmio_init()