Home
last modified time | relevance | path

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

/linux-6.3-rc2/arch/mips/alchemy/devboards/
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 …]
/linux-6.3-rc2/arch/powerpc/platforms/85xx/
A Dmpc85xx_mds.c161 static u8 __iomem *bcsr_regs; in mpc85xx_mds_reset_ucc_phys() local
168 bcsr_regs = of_iomap(np, 0); in mpc85xx_mds_reset_ucc_phys()
170 if (!bcsr_regs) in mpc85xx_mds_reset_ucc_phys()
180 clrbits8(&bcsr_regs[8], BCSR_UCC1_GETH_EN); in mpc85xx_mds_reset_ucc_phys()
181 clrbits8(&bcsr_regs[9], BCSR_UCC2_GETH_EN); in mpc85xx_mds_reset_ucc_phys()
184 clrbits8(&bcsr_regs[11], BCSR_UCC1_MODE_MSK | in mpc85xx_mds_reset_ucc_phys()
188 setbits8(&bcsr_regs[8], BCSR_UCC1_GETH_EN); in mpc85xx_mds_reset_ucc_phys()
189 setbits8(&bcsr_regs[9], BCSR_UCC2_GETH_EN); in mpc85xx_mds_reset_ucc_phys()
221 clrsetbits_8(&bcsr_regs[7 + ucc_num], in mpc85xx_mds_reset_ucc_phys()
227 clrbits8(&bcsr_regs[11], BCSR11_ENET_MICRST); in mpc85xx_mds_reset_ucc_phys()
[all …]
A Dp1023_rdb.c50 static u8 __iomem *bcsr_regs; in mpc85xx_rdb_setup_arch() local
52 bcsr_regs = of_iomap(np, 0); in mpc85xx_rdb_setup_arch()
55 if (!bcsr_regs) { in mpc85xx_rdb_setup_arch()
71 clrbits8(&bcsr_regs[15], BCSR15_I2C_BUS0_SEG_CLR); in mpc85xx_rdb_setup_arch()
72 setbits8(&bcsr_regs[15], BCSR15_I2C_BUS0_SEG2); in mpc85xx_rdb_setup_arch()
75 iounmap(bcsr_regs); in mpc85xx_rdb_setup_arch()
/linux-6.3-rc2/arch/powerpc/platforms/83xx/
A Dmpc837x_mds.c30 void __iomem *bcsr_regs = NULL; in mpc837xmds_usb_cfg() local
40 bcsr_regs = of_iomap(np, 0); in mpc837xmds_usb_cfg()
43 if (!bcsr_regs) in mpc837xmds_usb_cfg()
53 clrbits8(bcsr_regs + 12, BCSR12_USB_SER_PIN); in mpc837xmds_usb_cfg()
56 bcsr12 = in_8(bcsr_regs + 12) & ~BCSR12_USB_SER_MASK; in mpc837xmds_usb_cfg()
60 out_8(bcsr_regs + 12, bcsr12); in mpc837xmds_usb_cfg()
67 iounmap(bcsr_regs); in mpc837xmds_usb_cfg()
A Dmpc834x_mds.c41 void __iomem *bcsr_regs = NULL; in mpc834xemds_usb_cfg() local
51 bcsr_regs = ioremap(res.start, resource_size(&res)); in mpc834xemds_usb_cfg()
54 if (!bcsr_regs) in mpc834xemds_usb_cfg()
61 bcsr5 = in_8(bcsr_regs + 5); in mpc834xemds_usb_cfg()
63 out_8(bcsr_regs + 5, (bcsr5 | BCSR5_INT_USB)); in mpc834xemds_usb_cfg()
64 iounmap(bcsr_regs); in mpc834xemds_usb_cfg()
A Dmpc832x_mds.c53 u8 __iomem *bcsr_regs = NULL; in mpc832x_sys_setup_arch() local
63 bcsr_regs = ioremap(res.start, resource_size(&res)); in mpc832x_sys_setup_arch()
80 clrbits8(&bcsr_regs[8], BCSR8_FETH_RST); in mpc832x_sys_setup_arch()
82 setbits8(&bcsr_regs[8], BCSR8_FETH_RST); in mpc832x_sys_setup_arch()
83 iounmap(bcsr_regs); in mpc832x_sys_setup_arch()
A Dmpc836x_mds.c60 u8 __iomem *bcsr_regs = NULL; in mpc836x_mds_setup_arch() local
70 bcsr_regs = ioremap(res.start, resource_size(&res)); in mpc836x_mds_setup_arch()
99 clrbits8(&bcsr_regs[9], BCSR9_GETHRST); in mpc836x_mds_setup_arch()
101 setbits8(&bcsr_regs[9], BCSR9_GETHRST); in mpc836x_mds_setup_arch()
125 iounmap(bcsr_regs); in mpc836x_mds_setup_arch()

Completed in 9 milliseconds