Lines Matching refs:bcsr_regs
24 } bcsr_regs[BCSR_CNT]; variable
40 bcsr_regs[i].raddr = (void __iomem *)bcsr2_phys + in bcsr_init()
43 bcsr_regs[i].raddr = (void __iomem *)bcsr1_phys + in bcsr_init()
46 spin_lock_init(&bcsr_regs[i].lock); in bcsr_init()
55 spin_lock_irqsave(&bcsr_regs[reg].lock, flags); in bcsr_read()
56 r = __raw_readw(bcsr_regs[reg].raddr); in bcsr_read()
57 spin_unlock_irqrestore(&bcsr_regs[reg].lock, flags); in bcsr_read()
66 spin_lock_irqsave(&bcsr_regs[reg].lock, flags); in bcsr_write()
67 __raw_writew(val, bcsr_regs[reg].raddr); in bcsr_write()
69 spin_unlock_irqrestore(&bcsr_regs[reg].lock, flags); in bcsr_write()
78 spin_lock_irqsave(&bcsr_regs[reg].lock, flags); in bcsr_mod()
79 r = __raw_readw(bcsr_regs[reg].raddr); in bcsr_mod()
82 __raw_writew(r, bcsr_regs[reg].raddr); in bcsr_mod()
84 spin_unlock_irqrestore(&bcsr_regs[reg].lock, flags); in bcsr_mod()