Home
last modified time | relevance | path

Searched refs:errloc (Results 1 – 7 of 7) sorted by relevance

/external/fec/
Drstest.c74 int errval,errloc; in exercise_8() local
102 errloc = random() % nn; in exercise_8()
103 } while(errlocs[errloc] != 0); /* Must not choose the same location twice */ in exercise_8()
105 errlocs[errloc] = 1; in exercise_8()
109 derrlocs[erasures++] = errloc; in exercise_8()
111 tblock[errloc] ^= errval; in exercise_8()
146 int errval,errloc; in exercise_char() local
182 errloc = random() % nn; in exercise_char()
183 } while(errlocs[errloc] != 0); /* Must not choose the same location twice */ in exercise_char()
185 errlocs[errloc] = 1; in exercise_char()
[all …]
Dexercise.c51 int errval,errloc; in EXERCISE() local
80 errloc = random() % NN; in EXERCISE()
81 } while(errlocs[errloc] != 0); /* Must not choose the same location twice */ in EXERCISE()
83 errlocs[errloc] = 1; in EXERCISE()
87 derrlocs[erasures++] = errloc; in EXERCISE()
89 tblock[errloc] ^= errval; in EXERCISE()
/external/u-boot/drivers/mtd/nand/
Dnand_bch.c31 unsigned int *errloc; member
72 unsigned int *errloc = nbc->errloc; in nand_bch_correct_data() local
76 NULL, errloc); in nand_bch_correct_data()
79 if (errloc[i] < (chip->ecc.size*8)) in nand_bch_correct_data()
81 buf[errloc[i] >> 3] ^= (1 << (errloc[i] & 7)); in nand_bch_correct_data()
85 __func__, errloc[i]); in nand_bch_correct_data()
192 nbc->errloc = kmalloc(t*sizeof(*nbc->errloc), GFP_KERNEL); in nand_bch_init()
193 if (!nbc->eccmask || !nbc->errloc) in nand_bch_init()
227 kfree(nbc->errloc); in nand_bch_free()
Domap_gpmc.c654 unsigned int errloc[8]; in omap_correct_data_bch_sw() local
659 read_ecc, calc_ecc, NULL, errloc); in omap_correct_data_bch_sw()
664 if (errloc[i] < SECTOR_BYTES << 3) in omap_correct_data_bch_sw()
665 data[errloc[i] >> 3] ^= 1 << (errloc[i] & 7); in omap_correct_data_bch_sw()
666 debug("corrected bitflip %u\n", errloc[i]); in omap_correct_data_bch_sw()
/external/u-boot/board/ge/common/
Dvpd_reader.c64 unsigned int *errloc = (unsigned int *)calloc(data_length, in verify_bch() local
67 errloc); in verify_bch()
71 free(errloc); in verify_bch()
77 if (errloc[n] >= 8 * data_length) { in verify_bch()
84 data[errloc[n] / 8] ^= 1 << (errloc[n] % 8); in verify_bch()
89 free(errloc); in verify_bch()
/external/u-boot/lib/
Dbch.c1027 const unsigned int *syn, unsigned int *errloc) in decode_bch() argument
1067 nroots = find_poly_roots(bch, 1, bch->elp, errloc); in decode_bch()
1075 if (errloc[i] >= nbits) { in decode_bch()
1079 errloc[i] = nbits-1-errloc[i]; in decode_bch()
1080 errloc[i] = (errloc[i] & ~7)|(7-(errloc[i] & 7)); in decode_bch()
/external/u-boot/include/linux/
Dbch.h65 const unsigned int *syn, unsigned int *errloc);