Lines Matching refs:main_mtd
313 struct mtd_info *main_mtd;
340 main_mtd = flash_probe();
341 if (main_mtd)
343 main_mtd->name, main_mtd->size);
357 tmp_mtd = main_mtd;
358 main_mtd = aux_mtd;
364 if (!main_mtd && !aux_mtd) {
372 if (main_mtd) {
373 main_mtd->owner = THIS_MODULE;
374 axisflash_mtd = main_mtd;
386 blockstat = main_mtd->block_isbad(main_mtd,
391 ptable_sector += main_mtd->erasesize;
395 main_mtd->read(main_mtd, ptable_sector, PAGESIZE,
451 if (main_mtd->type == MTD_NANDFLASH) {
455 main_mtd->size :
479 /* Only use default table if we actually have a device (main_mtd) */
482 if (main_mtd && !ptable_ok) {
519 if (main_mtd) {
520 main_partition.size = main_mtd->size;
521 err = add_mtd_partitions(main_mtd, &main_partition, 1);
554 mtd_ram->erasesize = (main_mtd ? main_mtd->erasesize :
557 err = add_mtd_partitions(main_mtd, &partition[part], 1);