Lines Matching refs:autcpu12_mtd
42 static struct mtd_info *autcpu12_mtd = NULL; variable
137 autcpu12_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), in autcpu12_init()
139 if (!autcpu12_mtd) { in autcpu12_init()
154 this = (struct nand_chip *)(&autcpu12_mtd[1]); in autcpu12_init()
157 memset(autcpu12_mtd, 0, sizeof(struct mtd_info)); in autcpu12_init()
161 autcpu12_mtd->priv = this; in autcpu12_init()
162 autcpu12_mtd->owner = THIS_MODULE; in autcpu12_init()
180 if (nand_scan(autcpu12_mtd, 1)) { in autcpu12_init()
186 switch (autcpu12_mtd->size) { in autcpu12_init()
188 add_mtd_partitions(autcpu12_mtd, partition_info16k, in autcpu12_init()
192 add_mtd_partitions(autcpu12_mtd, partition_info32k, in autcpu12_init()
196 add_mtd_partitions(autcpu12_mtd, partition_info64k, in autcpu12_init()
200 add_mtd_partitions(autcpu12_mtd, partition_info128k, in autcpu12_init()
213 kfree(autcpu12_mtd); in autcpu12_init()
226 nand_release(autcpu12_mtd); in autcpu12_cleanup()
232 kfree(autcpu12_mtd); in autcpu12_cleanup()