Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/mtd/nand/raw/
Dnandsim.c327 uint32_t secsz; /* flash sector (erase block) size, bytes */ member
666 ns->geom.secsz = mtd->erasesize; in init_nandsim()
670 ns->geom.secshift = ffs(ns->geom.secsz) - 1; in init_nandsim()
672 ns->geom.pgsec = ns->geom.secsz / ns->geom.pgsz; in init_nandsim()
673 ns->geom.secszoob = ns->geom.secsz + ns->geom.oobsz * ns->geom.pgsec; in init_nandsim()
715 uint64_t part_sz = (uint64_t)parts[i] * ns->geom.secsz; in init_nandsim()
754 printk("sector size: %u KiB\n", ns->geom.secsz >> 10); in init_nandsim()
810 offset = (loff_t)erase_block_no * ns->geom.secsz; in parse_badblocks()
1635 || (ns->regs.row & ~(ns->geom.secsz - 1))) { in do_state_action()