eccsize           675 drivers/mtd/nand/raw/fsmc_nand.c 	int i, j, s, stat, eccsize = chip->ecc.size;
eccsize           691 drivers/mtd/nand/raw/fsmc_nand.c 	for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) {
eccsize           692 drivers/mtd/nand/raw/fsmc_nand.c 		nand_read_page_op(chip, page, s * eccsize, NULL, 0);
eccsize           694 drivers/mtd/nand/raw/fsmc_nand.c 		ret = nand_read_data_op(chip, p, eccsize, false);
eccsize          1726 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	int eccsize = nfc_geo->ecc_chunk_size;
eccsize          1764 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 			gpmi_copy_bits(buf, step * eccsize * 8,
eccsize          1766 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 				       eccsize * 8);
eccsize          1767 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 		src_bit_off += eccsize * 8;
eccsize          1813 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	int eccsize = nfc_geo->ecc_chunk_size;
eccsize          1842 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 				       buf, step * eccsize * 8, eccsize * 8);
eccsize          1843 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 		dst_bit_off += eccsize * 8;
eccsize           158 drivers/mtd/nand/raw/mxc_nand.c 	int eccsize;
eccsize           177 drivers/mtd/nand/raw/mxc_nand.c 	int			eccsize;
eccsize           797 drivers/mtd/nand/raw/mxc_nand.c 	ecc_bit_mask = (host->eccsize == 4) ? 0x7 : 0xf;
eccsize           798 drivers/mtd/nand/raw/mxc_nand.c 	err_limit = (host->eccsize == 4) ? 0x4 : 0x8;
eccsize          1126 drivers/mtd/nand/raw/mxc_nand.c 	host->eccsize = 1;
eccsize          1233 drivers/mtd/nand/raw/mxc_nand.c 		host->eccsize = get_eccsize(mtd);
eccsize          1234 drivers/mtd/nand/raw/mxc_nand.c 		if (host->eccsize == 4)
eccsize          1239 drivers/mtd/nand/raw/mxc_nand.c 		host->eccsize = 1;
eccsize          1312 drivers/mtd/nand/raw/mxc_nand.c 		host->eccsize = get_eccsize(mtd);
eccsize          1313 drivers/mtd/nand/raw/mxc_nand.c 		if (host->eccsize == 8)
eccsize          1482 drivers/mtd/nand/raw/mxc_nand.c 	.eccsize = 1,
eccsize          1507 drivers/mtd/nand/raw/mxc_nand.c 	.eccsize = 1,
eccsize          1533 drivers/mtd/nand/raw/mxc_nand.c 	.eccsize = 0,
eccsize          1558 drivers/mtd/nand/raw/mxc_nand.c 	.eccsize = 0,
eccsize          1584 drivers/mtd/nand/raw/mxc_nand.c 	.eccsize = 0,
eccsize          1716 drivers/mtd/nand/raw/mxc_nand.c 		if (host->eccsize == 8)
eccsize          1718 drivers/mtd/nand/raw/mxc_nand.c 		else if (host->eccsize == 4)
eccsize          1735 drivers/mtd/nand/raw/mxc_nand.c 			chip->ecc.strength = (host->eccsize == 4) ? 4 : 8;
eccsize          1839 drivers/mtd/nand/raw/mxc_nand.c 	host->eccsize = host->devtype_data->eccsize;
eccsize          2640 drivers/mtd/nand/raw/nand_base.c 	int eccsize = chip->ecc.size;
eccsize          2650 drivers/mtd/nand/raw/nand_base.c 		ret = nand_read_data_op(chip, buf, eccsize, false);
eccsize          2654 drivers/mtd/nand/raw/nand_base.c 		buf += eccsize;
eccsize          2702 drivers/mtd/nand/raw/nand_base.c 	int i, eccsize = chip->ecc.size, ret;
eccsize          2712 drivers/mtd/nand/raw/nand_base.c 	for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize)
eccsize          2723 drivers/mtd/nand/raw/nand_base.c 	for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
eccsize          2861 drivers/mtd/nand/raw/nand_base.c 	int i, eccsize = chip->ecc.size, ret;
eccsize          2873 drivers/mtd/nand/raw/nand_base.c 	for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
eccsize          2876 drivers/mtd/nand/raw/nand_base.c 		ret = nand_read_data_op(chip, p, eccsize, false);
eccsize          2895 drivers/mtd/nand/raw/nand_base.c 	for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
eccsize          2902 drivers/mtd/nand/raw/nand_base.c 			stat = nand_check_erased_ecc_chunk(p, eccsize,
eccsize          2935 drivers/mtd/nand/raw/nand_base.c 	int i, eccsize = chip->ecc.size, ret;
eccsize          2957 drivers/mtd/nand/raw/nand_base.c 	for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
eccsize          2962 drivers/mtd/nand/raw/nand_base.c 		ret = nand_read_data_op(chip, p, eccsize, false);
eccsize          2972 drivers/mtd/nand/raw/nand_base.c 			stat = nand_check_erased_ecc_chunk(p, eccsize,
eccsize          3002 drivers/mtd/nand/raw/nand_base.c 	int ret, i, eccsize = chip->ecc.size;
eccsize          3014 drivers/mtd/nand/raw/nand_base.c 	for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
eccsize          3019 drivers/mtd/nand/raw/nand_base.c 		ret = nand_read_data_op(chip, p, eccsize, false);
eccsize          3344 drivers/mtd/nand/raw/nand_base.c 	int eccsize = chip->ecc.size;
eccsize          3356 drivers/mtd/nand/raw/nand_base.c 			pos = eccsize + i * (eccsize + chunk);
eccsize          3411 drivers/mtd/nand/raw/nand_base.c 	int eccsize = chip->ecc.size, length = mtd->oobsize;
eccsize          3421 drivers/mtd/nand/raw/nand_base.c 		pos = steps * (eccsize + chunk);
eccsize          3424 drivers/mtd/nand/raw/nand_base.c 		pos = eccsize;
eccsize          3435 drivers/mtd/nand/raw/nand_base.c 				len = eccsize;
eccsize          3447 drivers/mtd/nand/raw/nand_base.c 				pos = eccsize + i * (eccsize + chunk);
eccsize          3645 drivers/mtd/nand/raw/nand_base.c 	int eccsize = chip->ecc.size;
eccsize          3655 drivers/mtd/nand/raw/nand_base.c 		ret = nand_write_data_op(chip, buf, eccsize, false);
eccsize          3659 drivers/mtd/nand/raw/nand_base.c 		buf += eccsize;
eccsize          3706 drivers/mtd/nand/raw/nand_base.c 	int i, eccsize = chip->ecc.size, ret;
eccsize          3713 drivers/mtd/nand/raw/nand_base.c 	for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize)
eccsize          3735 drivers/mtd/nand/raw/nand_base.c 	int i, eccsize = chip->ecc.size, ret;
eccsize          3745 drivers/mtd/nand/raw/nand_base.c 	for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
eccsize          3748 drivers/mtd/nand/raw/nand_base.c 		ret = nand_write_data_op(chip, p, eccsize, false);
eccsize          3852 drivers/mtd/nand/raw/nand_base.c 	int i, eccsize = chip->ecc.size;
eccsize          3863 drivers/mtd/nand/raw/nand_base.c 	for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
eccsize          3866 drivers/mtd/nand/raw/nand_base.c 		ret = nand_write_data_op(chip, p, eccsize, false);
eccsize           112 drivers/mtd/nand/raw/nand_bch.c 	unsigned int eccsize = nand->ecc.size;
eccsize           117 drivers/mtd/nand/raw/nand_bch.c 		eccbytes = DIV_ROUND_UP(eccstrength * fls(8 * eccsize), 8);
eccsize           121 drivers/mtd/nand/raw/nand_bch.c 	if (!eccsize || !eccbytes) {
eccsize           126 drivers/mtd/nand/raw/nand_bch.c 	m = fls(1+8*eccsize);
eccsize           144 drivers/mtd/nand/raw/nand_bch.c 	eccsteps = mtd->writesize/eccsize;
eccsize           153 drivers/mtd/nand/raw/nand_bch.c 	if (8*(eccsize+eccbytes) >= (1 << m)) {
eccsize           154 drivers/mtd/nand/raw/nand_bch.c 		pr_warn("eccsize %u is too large\n", eccsize);
eccsize           180 drivers/mtd/nand/raw/nand_bch.c 	erased_page = kmalloc(eccsize, GFP_KERNEL);
eccsize           184 drivers/mtd/nand/raw/nand_bch.c 	memset(erased_page, 0xff, eccsize);
eccsize           185 drivers/mtd/nand/raw/nand_bch.c 	encode_bch(nbc->bch, erased_page, eccsize, nbc->eccmask);
eccsize           192 drivers/mtd/nand/raw/nand_bch.c 		nand->ecc.strength = (eccbytes * 8) / fls(8 * eccsize);
eccsize           123 drivers/mtd/nand/raw/nand_ecc.c void __nand_calculate_ecc(const unsigned char *buf, unsigned int eccsize,
eccsize           129 drivers/mtd/nand/raw/nand_ecc.c 	const uint32_t eccsize_mult = eccsize >> 8;
eccsize           392 drivers/mtd/nand/raw/nand_ecc.c 			unsigned int eccsize, bool sm_order)
eccsize           397 drivers/mtd/nand/raw/nand_ecc.c 	const uint32_t eccsize_mult = eccsize >> 8;
eccsize           664 drivers/mtd/nand/raw/stm32_fmc2_nand.c static int stm32_fmc2_bch_decode(int eccsize, u8 *dat, u32 *ecc_sta)
eccsize           694 drivers/mtd/nand/raw/stm32_fmc2_nand.c 		if (pos[i] < eccsize * 8) {
eccsize           733 drivers/mtd/nand/raw/stm32_fmc2_nand.c 	int ret, i, s, stat, eccsize = chip->ecc.size;
eccsize           747 drivers/mtd/nand/raw/stm32_fmc2_nand.c 	     s++, i += eccbytes, p += eccsize) {
eccsize           751 drivers/mtd/nand/raw/stm32_fmc2_nand.c 		ret = nand_change_read_column_op(chip, s * eccsize, p,
eccsize           752 drivers/mtd/nand/raw/stm32_fmc2_nand.c 						 eccsize, false);
eccsize           766 drivers/mtd/nand/raw/stm32_fmc2_nand.c 			stat = nand_check_erased_ecc_chunk(p, eccsize,
eccsize           904 drivers/mtd/nand/raw/stm32_fmc2_nand.c 	int eccsize = chip->ecc.size;
eccsize           916 drivers/mtd/nand/raw/stm32_fmc2_nand.c 		sg_set_buf(sg, p, eccsize);
eccsize           917 drivers/mtd/nand/raw/stm32_fmc2_nand.c 		p += eccsize;
eccsize          1096 drivers/mtd/nand/raw/stm32_fmc2_nand.c 	int i, s, eccsize = chip->ecc.size;
eccsize          1101 drivers/mtd/nand/raw/stm32_fmc2_nand.c 	for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, dat += eccsize) {
eccsize          1122 drivers/mtd/nand/raw/stm32_fmc2_nand.c 				stat = stm32_fmc2_bch_decode(eccsize, dat,
eccsize          1129 drivers/mtd/nand/raw/stm32_fmc2_nand.c 			stat = nand_check_erased_ecc_chunk(dat, eccsize,
eccsize           192 drivers/mtd/nand/raw/txx9ndfmc.c 	int eccsize;
eccsize           196 drivers/mtd/nand/raw/txx9ndfmc.c 	for (eccsize = chip->ecc.size; eccsize > 0; eccsize -= 256) {
eccsize            18 include/linux/mtd/nand_ecc.h void __nand_calculate_ecc(const u_char *dat, unsigned int eccsize,
eccsize            31 include/linux/mtd/nand_ecc.h 			unsigned int eccsize, bool sm_order);