Lines Matching defs:nsmtd
438 static struct mtd_info *nsmtd;
502 struct dentry *root = nsmtd->dbg.dfs_dir;
1415 nsmtd->ecc_stats.corrected, nsmtd->ecc_stats.failed);
2229 eccsteps = nsmtd->writesize / 512;
2233 if (nsmtd->oobsize < 64 || !eccsteps) {
2238 if (((eccbytes * eccsteps) + 2) > nsmtd->oobsize) {
2278 nsmtd = nand_to_mtd(chip);
2320 nsmtd->owner = THIS_MODULE;
2345 uint64_t new_size = (uint64_t)nsmtd->erasesize << overridesize;
2351 if (new_size >> overridesize != nsmtd->erasesize) {
2358 nsmtd->size = new_size;
2361 chip->chip_shift = ffs(nsmtd->erasesize) + overridesize - 1;
2365 ret = ns_setup_wear_reporting(nsmtd);
2369 ret = ns_init(nsmtd);
2377 ret = ns_parse_badblocks(ns, nsmtd);
2382 ret = mtd_device_register(nsmtd, &ns->partitions[0], ns->nbparts);
2393 WARN_ON(mtd_device_unregister(nsmtd));
2428 struct nand_chip *chip = mtd_to_nand(nsmtd);
2433 WARN_ON(mtd_device_unregister(nsmtd));