Searched refs:nsectors (Results 1 – 3 of 3) sorted by relevance
62 static int nsectors = 4096; variable63 module_param(nsectors, int, 0444);64 MODULE_PARM_DESC(nsectors, "The number of sectors");517 tbio_dev.size = nsectors * 512; in tbio_init()548 set_capacity(tbio_dev.gd, nsectors); in tbio_init()
1390 int nsectors; in sunxi_nand_hw_common_ecc_ctrl_init() local1434 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_common_ecc_ctrl_init()1436 if (mtd->oobsize < ((ecc->bytes + 4) * nsectors)) { in sunxi_nand_hw_common_ecc_ctrl_init()1441 layout->eccbytes = (ecc->bytes * nsectors); in sunxi_nand_hw_common_ecc_ctrl_init()1465 int nsectors; in sunxi_nand_hw_ecc_ctrl_init() local1478 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_ecc_ctrl_init()1480 for (i = 0; i < nsectors; i++) { in sunxi_nand_hw_ecc_ctrl_init()1503 if (mtd->oobsize > (ecc->bytes + 4) * nsectors) { in sunxi_nand_hw_ecc_ctrl_init()1504 layout->oobfree[nsectors].offset = in sunxi_nand_hw_ecc_ctrl_init()1505 layout->oobfree[nsectors - 1].offset + in sunxi_nand_hw_ecc_ctrl_init()[all …]
257 int nsectors = len / conf->ecc_size; in nand_read_page() local273 for (i = 0; i < nsectors; i++) { in nand_read_page()330 int nsectors = conf->page_size / conf->ecc_size; in nand_max_ecc_strength() local354 max_ecc_bytes = max_oobsize / nsectors; in nand_max_ecc_strength()