Home
last modified time | relevance | path

Searched refs:rs_decoder (Results 1 – 2 of 2) sorted by relevance

/drivers/mtd/nand/
Drtc_from4.c139 static struct rs_control *rs_decoder; variable
363 …par[5] = rs_decoder->index_of[(((uint16_t) ecc[0] >> 0) & 0x0ff) | (((uint16_t) ecc[1] << 8) & 0x3… in rtc_from4_correct_data()
364 …par[4] = rs_decoder->index_of[(((uint16_t) ecc[1] >> 2) & 0x03f) | (((uint16_t) ecc[2] << 6) & 0x3… in rtc_from4_correct_data()
365 …par[3] = rs_decoder->index_of[(((uint16_t) ecc[2] >> 4) & 0x00f) | (((uint16_t) ecc[3] << 4) & 0x3… in rtc_from4_correct_data()
366 …par[2] = rs_decoder->index_of[(((uint16_t) ecc[3] >> 6) & 0x003) | (((uint16_t) ecc[4] << 2) & 0x3… in rtc_from4_correct_data()
367 …par[1] = rs_decoder->index_of[(((uint16_t) ecc[5] >> 0) & 0x0ff) | (((uint16_t) ecc[6] << 8) & 0x3… in rtc_from4_correct_data()
374 if (par[j] != rs_decoder->nn) in rtc_from4_correct_data()
375 syn[i] ^= rs_decoder->alpha_to[rs_modnn(rs_decoder, par[j] + i * j)]; in rtc_from4_correct_data()
378 syn[i] = rs_decoder->index_of[syn[i]]; in rtc_from4_correct_data()
382 res = decode_rs8(rs_decoder, (uint8_t *) buf, par, 512, syn, 0, NULL, 0xff, NULL); in rtc_from4_correct_data()
[all …]
Ddiskonchip.c131 static struct rs_control *rs_decoder; variable
1025 ret = doc_ecc_decode(rs_decoder, dat, calc_ecc); in doc200x_correct_data()
1731 rs_decoder = init_rs(10, 0x409, FCR, 1, NROOTS); in init_nanddoc()
1732 if (!rs_decoder) { in init_nanddoc()
1756 free_rs(rs_decoder); in init_nanddoc()
1766 if (rs_decoder) { in cleanup_nanddoc()
1767 free_rs(rs_decoder); in cleanup_nanddoc()