Lines Matching refs:bytes
549 offset = mtd->writesize + layout->eccpos[i * ecc->bytes] - 4; in sunxi_nfc_hw_ecc_read_page()
586 ecc->bytes + 4); in sunxi_nfc_hw_ecc_read_page()
636 offset = layout->eccpos[i * ecc->bytes] - 4 + mtd->writesize; in sunxi_nfc_hw_ecc_write_page()
723 chip->read_buf(mtd, oob, ecc->bytes + ecc->prepad); in sunxi_nfc_hw_syndrome_ecc_read_page()
724 oob += ecc->bytes + ecc->prepad; in sunxi_nfc_hw_syndrome_ecc_read_page()
727 offset += ecc->bytes + ecc->prepad; in sunxi_nfc_hw_syndrome_ecc_read_page()
782 offset += ecc->bytes + ecc->prepad; in sunxi_nfc_hw_syndrome_ecc_write_page()
783 oob += ecc->bytes + ecc->prepad; in sunxi_nfc_hw_syndrome_ecc_write_page()
949 ecc->bytes = DIV_ROUND_UP(ecc->strength * fls(8 * 1024), 8); in sunxi_nand_hw_common_ecc_ctrl_init()
952 ecc->bytes = ALIGN(ecc->bytes, 2); in sunxi_nand_hw_common_ecc_ctrl_init()
957 if (mtd->oobsize < ((ecc->bytes + 4) * nsectors)) { in sunxi_nand_hw_common_ecc_ctrl_init()
962 layout->eccbytes = (ecc->bytes * nsectors); in sunxi_nand_hw_common_ecc_ctrl_init()
1003 ecc->bytes; in sunxi_nand_hw_ecc_ctrl_init()
1015 for (j = 0; j < ecc->bytes; j++) in sunxi_nand_hw_ecc_ctrl_init()
1016 layout->eccpos[(ecc->bytes * i) + j] = in sunxi_nand_hw_ecc_ctrl_init()
1021 if (mtd->oobsize > (ecc->bytes + 4) * nsectors) { in sunxi_nand_hw_ecc_ctrl_init()
1025 ecc->bytes; in sunxi_nand_hw_ecc_ctrl_init()
1027 ((ecc->bytes + 4) * nsectors); in sunxi_nand_hw_ecc_ctrl_init()
1053 for (i = 0; i < (ecc->bytes * nsectors); i++) in sunxi_nand_hw_syndrome_ecc_ctrl_init()