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