nsmtd 433 drivers/mtd/nand/raw/nandsim.c static struct mtd_info *nsmtd; nsmtd 497 drivers/mtd/nand/raw/nandsim.c struct dentry *root = nsmtd->dbg.dfs_dir; nsmtd 1401 drivers/mtd/nand/raw/nandsim.c nsmtd->ecc_stats.corrected, nsmtd->ecc_stats.failed); nsmtd 2192 drivers/mtd/nand/raw/nandsim.c eccsteps = nsmtd->writesize / 512; nsmtd 2196 drivers/mtd/nand/raw/nandsim.c if (nsmtd->oobsize < 64 || !eccsteps) { nsmtd 2201 drivers/mtd/nand/raw/nandsim.c if (((eccbytes * eccsteps) + 2) > nsmtd->oobsize) { nsmtd 2242 drivers/mtd/nand/raw/nandsim.c nsmtd = nand_to_mtd(chip); nsmtd 2286 drivers/mtd/nand/raw/nandsim.c nsmtd->owner = THIS_MODULE; nsmtd 2308 drivers/mtd/nand/raw/nandsim.c uint64_t new_size = (uint64_t)nsmtd->erasesize << overridesize; nsmtd 2314 drivers/mtd/nand/raw/nandsim.c if (new_size >> overridesize != nsmtd->erasesize) { nsmtd 2321 drivers/mtd/nand/raw/nandsim.c nsmtd->size = new_size; nsmtd 2324 drivers/mtd/nand/raw/nandsim.c chip->chip_shift = ffs(nsmtd->erasesize) + overridesize - 1; nsmtd 2328 drivers/mtd/nand/raw/nandsim.c if ((retval = setup_wear_reporting(nsmtd)) != 0) nsmtd 2331 drivers/mtd/nand/raw/nandsim.c if ((retval = init_nandsim(nsmtd)) != 0) nsmtd 2337 drivers/mtd/nand/raw/nandsim.c if ((retval = parse_badblocks(ns, nsmtd)) != 0) nsmtd 2341 drivers/mtd/nand/raw/nandsim.c retval = mtd_device_register(nsmtd, &ns->partitions[0], nsmtd 2370 drivers/mtd/nand/raw/nandsim.c struct nand_chip *chip = mtd_to_nand(nsmtd);