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