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