Home
last modified time | relevance | path

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

/rk3399_rockchip-uboot/drivers/mtd/nand/raw/
H A Dsunxi_nand_spl.c258 int nsectors = len / conf->ecc_size; in nand_read_page() local
274 for (i = 0; i < nsectors; i++) { in nand_read_page()
331 int nsectors = conf->page_size / conf->ecc_size; in nand_max_ecc_strength() local
355 max_ecc_bytes = max_oobsize / nsectors; in nand_max_ecc_strength()
H A Dsunxi_nand.c1391 int nsectors; in sunxi_nand_hw_common_ecc_ctrl_init() local
1435 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_common_ecc_ctrl_init()
1437 if (mtd->oobsize < ((ecc->bytes + 4) * nsectors)) { in sunxi_nand_hw_common_ecc_ctrl_init()
1442 layout->eccbytes = (ecc->bytes * nsectors); in sunxi_nand_hw_common_ecc_ctrl_init()
1466 int nsectors; in sunxi_nand_hw_ecc_ctrl_init() local
1479 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_ecc_ctrl_init()
1481 for (i = 0; i < nsectors; i++) { in sunxi_nand_hw_ecc_ctrl_init()
1504 if (mtd->oobsize > (ecc->bytes + 4) * nsectors) { in sunxi_nand_hw_ecc_ctrl_init()
1505 layout->oobfree[nsectors].offset = in sunxi_nand_hw_ecc_ctrl_init()
1506 layout->oobfree[nsectors - 1].offset + in sunxi_nand_hw_ecc_ctrl_init()
[all …]