Home
last modified time | relevance | path

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

/openbmc/linux/drivers/mtd/nand/raw/
H A Dnandsim.c318 uint32_t secsz; /* flash sector (erase block) size, bytes */ member
658 ns->geom.secsz = mtd->erasesize; in ns_init()
662 ns->geom.secshift = ffs(ns->geom.secsz) - 1; in ns_init()
664 ns->geom.pgsec = ns->geom.secsz / ns->geom.pgsz; in ns_init()
665 ns->geom.secszoob = ns->geom.secsz + ns->geom.oobsz * ns->geom.pgsec; in ns_init()
707 uint64_t part_sz = (uint64_t)parts[i] * ns->geom.secsz; in ns_init()
748 printk("sector size: %u KiB\n", ns->geom.secsz >> 10); in ns_init()
819 offset = (loff_t)erase_block_no * ns->geom.secsz; in ns_parse_badblocks()
1626 || (ns->regs.row & ~(ns->geom.secsz - 1))) { in ns_do_state_action()