Searched refs:bcsr_regs (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/arch/mips/alchemy/devboards/ |
D | bcsr.c | 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() [all …]
|
/linux-6.1.9/arch/powerpc/platforms/85xx/ |
D | mpc85xx_mds.c | 161 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() 200 clrbits8(&bcsr_regs[7], BCSR7_UCC12_GETHnRST); in mpc85xx_mds_reset_ucc_phys() 201 setbits8(&bcsr_regs[8], BCSR8_UEM_MARVELL_RST); in mpc85xx_mds_reset_ucc_phys() [all …]
|
D | p1023_rdb.c | 50 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.1.9/arch/powerpc/platforms/83xx/ |
D | mpc837x_mds.c | 30 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()
|
D | mpc834x_mds.c | 41 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()
|
D | mpc832x_mds.c | 53 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()
|
D | mpc836x_mds.c | 60 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()
|