Lines Matching defs:nsmtd
436 static struct mtd_info *nsmtd;
500 struct dentry *root = nsmtd->dbg.dfs_dir;
1420 nsmtd->ecc_stats.corrected, nsmtd->ecc_stats.failed);
2226 eccsteps = nsmtd->writesize / 512;
2230 if (nsmtd->oobsize < 64 || !eccsteps) {
2235 if (((eccbytes * eccsteps) + 2) > nsmtd->oobsize) {
2275 nsmtd = nand_to_mtd(chip);
2317 nsmtd->owner = THIS_MODULE;
2342 uint64_t new_size = (uint64_t)nsmtd->erasesize << overridesize;
2348 if (new_size >> overridesize != nsmtd->erasesize) {
2355 nsmtd->size = new_size;
2358 chip->chip_shift = ffs(nsmtd->erasesize) + overridesize - 1;
2362 ret = ns_setup_wear_reporting(nsmtd);
2366 ret = ns_init(nsmtd);
2374 ret = ns_parse_badblocks(ns, nsmtd);
2379 ret = mtd_device_register(nsmtd, &ns->partitions[0], ns->nbparts);
2390 WARN_ON(mtd_device_unregister(nsmtd));
2425 struct nand_chip *chip = mtd_to_nand(nsmtd);
2430 WARN_ON(mtd_device_unregister(nsmtd));