Lines Matching refs:mtd
58 struct mtd_info mtd; member
78 static unsigned char nuc900_nand_read_byte(struct mtd_info *mtd) in nuc900_nand_read_byte() argument
83 nand = container_of(mtd, struct nuc900_nand, mtd); in nuc900_nand_read_byte()
90 static void nuc900_nand_read_buf(struct mtd_info *mtd, in nuc900_nand_read_buf() argument
96 nand = container_of(mtd, struct nuc900_nand, mtd); in nuc900_nand_read_buf()
102 static void nuc900_nand_write_buf(struct mtd_info *mtd, in nuc900_nand_write_buf() argument
108 nand = container_of(mtd, struct nuc900_nand, mtd); in nuc900_nand_write_buf()
125 static int nuc900_nand_devready(struct mtd_info *mtd) in nuc900_nand_devready() argument
130 nand = container_of(mtd, struct nuc900_nand, mtd); in nuc900_nand_devready()
136 static void nuc900_nand_command_lp(struct mtd_info *mtd, unsigned int command, in nuc900_nand_command_lp() argument
139 register struct nand_chip *chip = mtd->priv; in nuc900_nand_command_lp()
142 nand = container_of(mtd, struct nuc900_nand, mtd); in nuc900_nand_command_lp()
145 column += mtd->writesize; in nuc900_nand_command_lp()
214 while (!chip->dev_ready(mtd)) in nuc900_nand_command_lp()
252 nuc900_nand->mtd.priv = chip; in nuc900_nand_probe()
253 nuc900_nand->mtd.dev.parent = &pdev->dev; in nuc900_nand_probe()
277 if (nand_scan(&(nuc900_nand->mtd), 1)) in nuc900_nand_probe()
280 mtd_device_register(&(nuc900_nand->mtd), partitions, in nuc900_nand_probe()
292 nand_release(&nuc900_nand->mtd); in nuc900_nand_remove()