Searched refs:errloc (Results 1 - 3 of 3) sorted by relevance
/linux-4.1.27/drivers/mtd/nand/ |
H A D | nand_bch.c | 36 * @errloc: error location array 42 unsigned int *errloc; member in struct:nand_bch_control 84 unsigned int *errloc = nbc->errloc; nand_bch_correct_data() local 88 NULL, errloc); nand_bch_correct_data() 91 if (errloc[i] < (chip->ecc.size*8)) nand_bch_correct_data() 93 buf[errloc[i] >> 3] ^= (1 << (errloc[i] & 7)); nand_bch_correct_data() 97 errloc[i]); nand_bch_correct_data() 201 nbc->errloc = kmalloc(t*sizeof(*nbc->errloc), GFP_KERNEL); nand_bch_init() 202 if (!nbc->eccmask || !nbc->errloc) nand_bch_init() 234 kfree(nbc->errloc); nand_bch_free()
|
/linux-4.1.27/lib/ |
H A D | bch.c | 952 * @errloc: output array of error locations 963 * decode_bch(@bch, @data, @len, @recv_ecc, NULL, NULL, @errloc) 966 * decode_bch(@bch, NULL, @len, @recv_ecc, @calc_ecc, NULL, @errloc) 969 * decode_bch(@bch, NULL, @len, NULL, ecc, NULL, @errloc) 972 * decode_bch(@bch, NULL, @len, NULL, NULL, @syn, @errloc) 975 * locations returned in array @errloc should be interpreted as follows - 977 * if (errloc[n] >= 8*len), then n-th error is located in ecc (no need for 980 * if (errloc[n] < 8*len), then n-th error is located in data and can be 981 * corrected with statement data[errloc[n]/8] ^= 1 << (errloc[n] % 8); 988 const unsigned int *syn, unsigned int *errloc) decode_bch() 1028 nroots = find_poly_roots(bch, 1, bch->elp, errloc); decode_bch() 1036 if (errloc[i] >= nbits) { decode_bch() 1040 errloc[i] = nbits-1-errloc[i]; decode_bch() 1041 errloc[i] = (errloc[i] & ~7)|(7-(errloc[i] & 7)); decode_bch() 986 decode_bch(struct bch_control *bch, const uint8_t *data, unsigned int len, const uint8_t *recv_ecc, const uint8_t *calc_ecc, const unsigned int *syn, unsigned int *errloc) decode_bch() argument
|
/linux-4.1.27/include/linux/ |
H A D | bch.h | 77 const unsigned int *syn, unsigned int *errloc);
|
Completed in 134 milliseconds