Lines Matching refs:nsectors
1399 int nsectors; in sunxi_nand_hw_common_ecc_ctrl_init() local
1443 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_common_ecc_ctrl_init()
1445 if (mtd->oobsize < ((ecc->bytes + 4) * nsectors)) { in sunxi_nand_hw_common_ecc_ctrl_init()
1450 layout->eccbytes = (ecc->bytes * nsectors); in sunxi_nand_hw_common_ecc_ctrl_init()
1474 int nsectors; in sunxi_nand_hw_ecc_ctrl_init() local
1487 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_ecc_ctrl_init()
1489 for (i = 0; i < nsectors; i++) { in sunxi_nand_hw_ecc_ctrl_init()
1512 if (mtd->oobsize > (ecc->bytes + 4) * nsectors) { in sunxi_nand_hw_ecc_ctrl_init()
1513 layout->oobfree[nsectors].offset = in sunxi_nand_hw_ecc_ctrl_init()
1514 layout->oobfree[nsectors - 1].offset + in sunxi_nand_hw_ecc_ctrl_init()
1515 layout->oobfree[nsectors - 1].length + in sunxi_nand_hw_ecc_ctrl_init()
1517 layout->oobfree[nsectors].length = mtd->oobsize - in sunxi_nand_hw_ecc_ctrl_init()
1518 ((ecc->bytes + 4) * nsectors); in sunxi_nand_hw_ecc_ctrl_init()
1528 int nsectors; in sunxi_nand_hw_syndrome_ecc_ctrl_init() local
1541 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_syndrome_ecc_ctrl_init()
1543 for (i = 0; i < (ecc->bytes * nsectors); i++) in sunxi_nand_hw_syndrome_ecc_ctrl_init()