Lines Matching refs:mtd
51 static u_char au_read_byte(struct mtd_info *mtd) in au_read_byte() argument
53 struct nand_chip *this = mtd->priv; in au_read_byte()
66 static void au_write_byte(struct mtd_info *mtd, u_char byte) in au_write_byte() argument
68 struct nand_chip *this = mtd->priv; in au_write_byte()
80 static u_char au_read_byte16(struct mtd_info *mtd) in au_read_byte16() argument
82 struct nand_chip *this = mtd->priv; in au_read_byte16()
96 static void au_write_byte16(struct mtd_info *mtd, u_char byte) in au_write_byte16() argument
98 struct nand_chip *this = mtd->priv; in au_write_byte16()
110 static u16 au_read_word(struct mtd_info *mtd) in au_read_word() argument
112 struct nand_chip *this = mtd->priv; in au_read_word()
126 static void au_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in au_write_buf() argument
129 struct nand_chip *this = mtd->priv; in au_write_buf()
145 static void au_read_buf(struct mtd_info *mtd, u_char *buf, int len) in au_read_buf() argument
148 struct nand_chip *this = mtd->priv; in au_read_buf()
164 static int au_verify_buf(struct mtd_info *mtd, const u_char *buf, int len) in au_verify_buf() argument
167 struct nand_chip *this = mtd->priv; in au_verify_buf()
186 static void au_write_buf16(struct mtd_info *mtd, const u_char *buf, int len) in au_write_buf16() argument
189 struct nand_chip *this = mtd->priv; in au_write_buf16()
208 static void au_read_buf16(struct mtd_info *mtd, u_char *buf, int len) in au_read_buf16() argument
211 struct nand_chip *this = mtd->priv; in au_read_buf16()
229 static int au_verify_buf16(struct mtd_info *mtd, const u_char *buf, int len) in au_verify_buf16() argument
232 struct nand_chip *this = mtd->priv; in au_verify_buf16()
257 static void au1550_hwcontrol(struct mtd_info *mtd, int cmd) in au1550_hwcontrol() argument
259 register struct nand_chip *this = mtd->priv; in au1550_hwcontrol()
299 int au1550_device_ready(struct mtd_info *mtd) in au1550_device_ready() argument
318 static void au1550_select_chip(struct mtd_info *mtd, int chip) in au1550_select_chip() argument
329 static void au1550_command(struct mtd_info *mtd, unsigned command, int column, int page_addr) in au1550_command() argument
331 register struct nand_chip *this = mtd->priv; in au1550_command()
336 au1550_hwcontrol(mtd, NAND_CTL_SETCLE); in au1550_command()
343 if (column >= mtd->writesize) { in au1550_command()
345 column -= mtd->writesize; in au1550_command()
354 au1550_write_byte(mtd, readcmd); in au1550_command()
356 au1550_write_byte(mtd, command); in au1550_command()
359 au1550_hwcontrol(mtd, NAND_CTL_CLRCLE); in au1550_command()
362 au1550_hwcontrol(mtd, NAND_CTL_SETALE); in au1550_command()
369 au1550_write_byte(mtd, column); in au1550_command()
372 au1550_write_byte(mtd, (u8)(page_addr & 0xff)); in au1550_command()
387 au1550_hwcontrol(mtd, NAND_CTL_SETNCE); in au1550_command()
390 au1550_write_byte(mtd, (u8)(page_addr >> 8)); in au1550_command()
394 au1550_write_byte(mtd, (u8)((page_addr >> 16) & 0x0f)); in au1550_command()
397 au1550_hwcontrol(mtd, NAND_CTL_CLRALE); in au1550_command()
426 for (i = this->chip_delay; !this->dev_ready(mtd) && i > 0; --i) in au1550_command()
430 au1550_hwcontrol(mtd, NAND_CTL_CLRNCE); in au1550_command()
437 while(!this->dev_ready(mtd)); in au1550_command()