Lines Matching refs:mtd
98 static void cs553x_read_buf(struct mtd_info *mtd, u_char *buf, int len) in cs553x_read_buf() argument
100 struct nand_chip *this = mtd->priv; in cs553x_read_buf()
110 static void cs553x_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in cs553x_write_buf() argument
112 struct nand_chip *this = mtd->priv; in cs553x_write_buf()
122 static unsigned char cs553x_read_byte(struct mtd_info *mtd) in cs553x_read_byte() argument
124 struct nand_chip *this = mtd->priv; in cs553x_read_byte()
128 static void cs553x_write_byte(struct mtd_info *mtd, u_char byte) in cs553x_write_byte() argument
130 struct nand_chip *this = mtd->priv; in cs553x_write_byte()
140 static void cs553x_hwcontrol(struct mtd_info *mtd, int cmd, in cs553x_hwcontrol() argument
143 struct nand_chip *this = mtd->priv; in cs553x_hwcontrol()
150 cs553x_write_byte(mtd, cmd); in cs553x_hwcontrol()
153 static int cs553x_device_ready(struct mtd_info *mtd) in cs553x_device_ready() argument
155 struct nand_chip *this = mtd->priv; in cs553x_device_ready()
162 static void cs_enable_hwecc(struct mtd_info *mtd, int mode) in cs_enable_hwecc() argument
164 struct nand_chip *this = mtd->priv; in cs_enable_hwecc()
170 static int cs_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) in cs_calculate_ecc() argument
173 struct nand_chip *this = mtd->priv; in cs_calculate_ecc()
333 struct mtd_info *mtd = cs553x_mtd[i]; in cs553x_cleanup() local
337 if (!mtd) in cs553x_cleanup()
352 kfree(mtd); in cs553x_cleanup()