Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/device-drivers/tbio/tbio_kernel/
Dltp_tbio.c62 static int nsectors = 4096; variable
63 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()
/external/u-boot/drivers/mtd/nand/
Dsunxi_nand.c1390 int nsectors; in sunxi_nand_hw_common_ecc_ctrl_init() local
1434 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() local
1478 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 …]
Dsunxi_nand_spl.c257 int nsectors = len / conf->ecc_size; in nand_read_page() local
273 for (i = 0; i < nsectors; i++) { in nand_read_page()
330 int nsectors = conf->page_size / conf->ecc_size; in nand_max_ecc_strength() local
354 max_ecc_bytes = max_oobsize / nsectors; in nand_max_ecc_strength()