Home
last modified time | relevance | path

Searched refs:secsz (Results 1 – 1 of 1) sorted by relevance

/drivers/mtd/nand/
Dnandsim.c316 uint32_t secsz; /* flash sector (erase block) size, bytes */ member
571 ns->geom.secsz = mtd->erasesize; in init_nandsim()
575 ns->geom.secshift = ffs(ns->geom.secsz) - 1; in init_nandsim()
578 ns->geom.pgsec = ns->geom.secsz / ns->geom.pgsz; in init_nandsim()
579 ns->geom.secszoob = ns->geom.secsz + ns->geom.oobsz * ns->geom.pgsec; in init_nandsim()
623 uint64_t part_sz = (uint64_t)parts[i] * ns->geom.secsz; in init_nandsim()
664 printk("sector size: %u KiB\n", ns->geom.secsz >> 10); in init_nandsim()
726 offset = erase_block_no * ns->geom.secsz; in parse_badblocks()
1631 || (ns->regs.row & ~(ns->geom.secsz - 1))) { in do_state_action()