Lines Matching refs:bus_ops
143 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L1, in mt7996_reg_map_l1()
147 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L1); in mt7996_reg_map_l1()
157 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L2, in mt7996_reg_map_l2()
161 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L2); in mt7996_reg_map_l2()
232 return dev->bus_ops->rr(mdev, addr); in mt7996_rr()
235 val = dev->bus_ops->rr(mdev, __mt7996_reg_remap_addr(dev, offset)); in mt7996_rr()
247 dev->bus_ops->wr(mdev, addr, val); in mt7996_wr()
252 dev->bus_ops->wr(mdev, __mt7996_reg_remap_addr(dev, offset), val); in mt7996_wr()
262 return dev->bus_ops->rmw(mdev, addr, mask, val); in mt7996_rmw()
265 val = dev->bus_ops->rmw(mdev, __mt7996_reg_remap_addr(dev, offset), mask, val); in mt7996_rmw()
438 struct mt76_bus_ops *bus_ops; in mt7996_mmio_init() local
462 dev->bus_ops = dev->mt76.bus; in mt7996_mmio_init()
463 bus_ops = devm_kmemdup(dev->mt76.dev, dev->bus_ops, sizeof(*bus_ops), in mt7996_mmio_init()
465 if (!bus_ops) in mt7996_mmio_init()
468 bus_ops->rr = mt7996_rr; in mt7996_mmio_init()
469 bus_ops->wr = mt7996_wr; in mt7996_mmio_init()
470 bus_ops->rmw = mt7996_rmw; in mt7996_mmio_init()
471 dev->mt76.bus = bus_ops; in mt7996_mmio_init()