Home
last modified time | relevance | path

Searched refs:bcsr_regs (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/arch/mips/alchemy/devboards/
H A Dbcsr.c24 } 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()
66 spin_lock_irqsave(&bcsr_regs[reg].lock, flags); in bcsr_write()
67 __raw_writew(val, bcsr_regs[reg].raddr); 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()
[all …]
/openbmc/linux/arch/powerpc/platforms/85xx/
H A Dmpc85xx_mds.c154 static u8 __iomem *bcsr_regs; in mpc85xx_mds_reset_ucc_phys() local
161 bcsr_regs = of_iomap(np, 0); in mpc85xx_mds_reset_ucc_phys()
163 if (!bcsr_regs) in mpc85xx_mds_reset_ucc_phys()
173 clrbits8(&bcsr_regs[8], BCSR_UCC1_GETH_EN); in mpc85xx_mds_reset_ucc_phys()
174 clrbits8(&bcsr_regs[9], BCSR_UCC2_GETH_EN); in mpc85xx_mds_reset_ucc_phys()
177 clrbits8(&bcsr_regs[11], BCSR_UCC1_MODE_MSK | in mpc85xx_mds_reset_ucc_phys()
181 setbits8(&bcsr_regs[8], BCSR_UCC1_GETH_EN); in mpc85xx_mds_reset_ucc_phys()
182 setbits8(&bcsr_regs[9], BCSR_UCC2_GETH_EN); in mpc85xx_mds_reset_ucc_phys()
214 clrsetbits_8(&bcsr_regs[7 + ucc_num], in mpc85xx_mds_reset_ucc_phys()
220 clrbits8(&bcsr_regs[11], BCSR11_ENET_MICRST); in mpc85xx_mds_reset_ucc_phys()
[all …]
H A Dp1023_rdb.c49 static u8 __iomem *bcsr_regs; in p1023_rdb_setup_arch() local
51 bcsr_regs = of_iomap(np, 0); in p1023_rdb_setup_arch()
54 if (!bcsr_regs) { in p1023_rdb_setup_arch()
70 clrbits8(&bcsr_regs[15], BCSR15_I2C_BUS0_SEG_CLR); in p1023_rdb_setup_arch()
71 setbits8(&bcsr_regs[15], BCSR15_I2C_BUS0_SEG2); in p1023_rdb_setup_arch()
74 iounmap(bcsr_regs); in p1023_rdb_setup_arch()