Lines Matching refs:mmio
94 void __iomem *mmio; member
108 writeb(ctl, cs553x->mmio + MM_NAND_CTL); in cs553x_write_ctrl_byte()
109 writeb(data, cs553x->mmio + MM_NAND_IO); in cs553x_write_ctrl_byte()
110 return readb_poll_timeout_atomic(cs553x->mmio + MM_NAND_STS, status, in cs553x_write_ctrl_byte()
118 writeb(0, cs553x->mmio + MM_NAND_CTL); in cs553x_data_in()
120 memcpy_fromio(buf, cs553x->mmio, 0x800); in cs553x_data_in()
124 memcpy_fromio(buf, cs553x->mmio, len); in cs553x_data_in()
130 writeb(0, cs553x->mmio + MM_NAND_CTL); in cs553x_data_out()
132 memcpy_toio(cs553x->mmio, buf, 0x800); in cs553x_data_out()
136 memcpy_toio(cs553x->mmio, buf, len); in cs553x_data_out()
145 return readb_poll_timeout(cs553x->mmio + MM_NAND_STS, status, in cs553x_wait_ready()
204 writeb(0, cs553x->mmio + MM_NAND_CTL); in cs553x_exec_op()
212 writeb(CS_NAND_CTL_CE, cs553x->mmio + MM_NAND_CTL); in cs553x_exec_op()
221 writeb(0x07, cs553x->mmio + MM_NAND_ECC_CTL); in cs_enable_hwecc()
230 ecc = readl(cs553x->mmio + MM_NAND_STS); in cs_calculate_ecc()
260 static int __init cs553x_init_one(int cs, int mmio, unsigned long adr) in cs553x_init_one() argument
268 cs, mmio ? "MM" : "P", adr); in cs553x_init_one()
270 if (!mmio) { in cs553x_init_one()
292 controller->mmio = ioremap(adr, 4096); in cs553x_init_one()
293 if (!controller->mmio) { in cs553x_init_one()
319 iounmap(controller->mmio); in cs553x_init_one()
410 iounmap(controller->mmio); in cs553x_cleanup()