Lines Matching refs:eccsteps
588 int eccsteps = chip->ecc.steps; in omap_read_page_bch() local
599 oob_pos = (eccsize * eccsteps) + chip->ecc.layout->eccpos[0]; in omap_read_page_bch()
602 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize, in omap_read_page_bch()
622 eccsteps = chip->ecc.steps; in omap_read_page_bch()
625 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in omap_read_page_bch()
715 int eccsteps = pagesize / SECTOR_BYTES; in omap_select_ecc_scheme() local
732 if ((3 * eccsteps) + BADBLOCK_MARKER_LENGTH > oobsize) { in omap_select_ecc_scheme()
734 (3 * eccsteps) + BADBLOCK_MARKER_LENGTH)); in omap_select_ecc_scheme()
748 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme()
764 if ((13 * eccsteps) + BADBLOCK_MARKER_LENGTH > oobsize) { in omap_select_ecc_scheme()
766 (13 * eccsteps) + BADBLOCK_MARKER_LENGTH)); in omap_select_ecc_scheme()
785 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme()
808 if ((14 * eccsteps) + BADBLOCK_MARKER_LENGTH > oobsize) { in omap_select_ecc_scheme()
810 (14 * eccsteps) + BADBLOCK_MARKER_LENGTH)); in omap_select_ecc_scheme()
827 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme()
843 if ((26 * eccsteps) + BADBLOCK_MARKER_LENGTH > oobsize) { in omap_select_ecc_scheme()
845 (26 * eccsteps) + BADBLOCK_MARKER_LENGTH)); in omap_select_ecc_scheme()
860 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme()