Lines Matching refs:ecclayout

714 	struct nand_ecclayout	*ecclayout	= &omap_ecclayout;  in omap_select_ecc_scheme()  local
748 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme()
749 for (i = 0; i < ecclayout->eccbytes; i++) { in omap_select_ecc_scheme()
751 ecclayout->eccpos[i] = i + 2; in omap_select_ecc_scheme()
753 ecclayout->eccpos[i] = i + 1; in omap_select_ecc_scheme()
755 ecclayout->oobfree[0].offset = i + BADBLOCK_MARKER_LENGTH; in omap_select_ecc_scheme()
756 ecclayout->oobfree[0].length = oobsize - ecclayout->eccbytes - in omap_select_ecc_scheme()
785 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme()
786 ecclayout->eccpos[0] = BADBLOCK_MARKER_LENGTH; in omap_select_ecc_scheme()
787 for (i = 1; i < ecclayout->eccbytes; i++) { in omap_select_ecc_scheme()
789 ecclayout->eccpos[i] = in omap_select_ecc_scheme()
790 ecclayout->eccpos[i - 1] + 1; in omap_select_ecc_scheme()
792 ecclayout->eccpos[i] = in omap_select_ecc_scheme()
793 ecclayout->eccpos[i - 1] + 2; in omap_select_ecc_scheme()
795 ecclayout->oobfree[0].offset = i + BADBLOCK_MARKER_LENGTH; in omap_select_ecc_scheme()
796 ecclayout->oobfree[0].length = oobsize - ecclayout->eccbytes - in omap_select_ecc_scheme()
827 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme()
828 for (i = 0; i < ecclayout->eccbytes; i++) in omap_select_ecc_scheme()
829 ecclayout->eccpos[i] = i + BADBLOCK_MARKER_LENGTH; in omap_select_ecc_scheme()
830 ecclayout->oobfree[0].offset = i + BADBLOCK_MARKER_LENGTH; in omap_select_ecc_scheme()
831 ecclayout->oobfree[0].length = oobsize - ecclayout->eccbytes - in omap_select_ecc_scheme()
860 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme()
861 for (i = 0; i < ecclayout->eccbytes; i++) in omap_select_ecc_scheme()
862 ecclayout->eccpos[i] = i + BADBLOCK_MARKER_LENGTH; in omap_select_ecc_scheme()
863 ecclayout->oobfree[0].offset = i + BADBLOCK_MARKER_LENGTH; in omap_select_ecc_scheme()
864 ecclayout->oobfree[0].length = oobsize - nand->ecc.bytes - in omap_select_ecc_scheme()
878 nand->ecc.layout = ecclayout; in omap_select_ecc_scheme()