Lines Matching refs:this
100 struct nand_chip *this = mtd->priv; in cs553x_read_buf() local
103 memcpy_fromio(buf, this->IO_ADDR_R, 0x800); in cs553x_read_buf()
107 memcpy_fromio(buf, this->IO_ADDR_R, len); in cs553x_read_buf()
112 struct nand_chip *this = mtd->priv; in cs553x_write_buf() local
115 memcpy_toio(this->IO_ADDR_R, buf, 0x800); in cs553x_write_buf()
119 memcpy_toio(this->IO_ADDR_R, buf, len); in cs553x_write_buf()
124 struct nand_chip *this = mtd->priv; in cs553x_read_byte() local
125 return readb(this->IO_ADDR_R); in cs553x_read_byte()
130 struct nand_chip *this = mtd->priv; in cs553x_write_byte() local
133 while (i && readb(this->IO_ADDR_R + MM_NAND_STS) & CS_NAND_CTLR_BUSY) { in cs553x_write_byte()
137 writeb(byte, this->IO_ADDR_W + 0x801); in cs553x_write_byte()
143 struct nand_chip *this = mtd->priv; in cs553x_hwcontrol() local
144 void __iomem *mmio_base = this->IO_ADDR_R; in cs553x_hwcontrol()
155 struct nand_chip *this = mtd->priv; in cs553x_device_ready() local
156 void __iomem *mmio_base = this->IO_ADDR_R; in cs553x_device_ready()
164 struct nand_chip *this = mtd->priv; in cs_enable_hwecc() local
165 void __iomem *mmio_base = this->IO_ADDR_R; in cs_enable_hwecc()
173 struct nand_chip *this = mtd->priv; in cs_calculate_ecc() local
174 void __iomem *mmio_base = this->IO_ADDR_R; in cs_calculate_ecc()
189 struct nand_chip *this; in cs553x_init_one() local
207 this = (struct nand_chip *)(&new_mtd[1]); in cs553x_init_one()
210 new_mtd->priv = this; in cs553x_init_one()
214 this->IO_ADDR_R = this->IO_ADDR_W = ioremap(adr, 4096); in cs553x_init_one()
215 if (!this->IO_ADDR_R) { in cs553x_init_one()
221 this->cmd_ctrl = cs553x_hwcontrol; in cs553x_init_one()
222 this->dev_ready = cs553x_device_ready; in cs553x_init_one()
223 this->read_byte = cs553x_read_byte; in cs553x_init_one()
224 this->read_buf = cs553x_read_buf; in cs553x_init_one()
225 this->write_buf = cs553x_write_buf; in cs553x_init_one()
227 this->chip_delay = 0; in cs553x_init_one()
229 this->ecc.mode = NAND_ECC_HW; in cs553x_init_one()
230 this->ecc.size = 256; in cs553x_init_one()
231 this->ecc.bytes = 3; in cs553x_init_one()
232 this->ecc.hwctl = cs_enable_hwecc; in cs553x_init_one()
233 this->ecc.calculate = cs_calculate_ecc; in cs553x_init_one()
234 this->ecc.correct = nand_correct_data; in cs553x_init_one()
235 this->ecc.strength = 1; in cs553x_init_one()
238 this->bbt_options = NAND_BBT_USE_FLASH; in cs553x_init_one()
258 iounmap(this->IO_ADDR_R); in cs553x_init_one()
334 struct nand_chip *this; in cs553x_cleanup() local
340 this = cs553x_mtd[i]->priv; in cs553x_cleanup()
341 mmio_base = this->IO_ADDR_R; in cs553x_cleanup()