Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/mtd/nand/
Drtc_from4.c138 static struct rs_control *rs_decoder; variable
362 …par[5] = rs_decoder->index_of[(((uint16_t) ecc[0] >> 0) & 0x0ff) | (((uint16_t) ecc[1] << 8) & 0x3… in rtc_from4_correct_data()
363 …par[4] = rs_decoder->index_of[(((uint16_t) ecc[1] >> 2) & 0x03f) | (((uint16_t) ecc[2] << 6) & 0x3… in rtc_from4_correct_data()
364 …par[3] = rs_decoder->index_of[(((uint16_t) ecc[2] >> 4) & 0x00f) | (((uint16_t) ecc[3] << 4) & 0x3… in rtc_from4_correct_data()
365 …par[2] = rs_decoder->index_of[(((uint16_t) ecc[3] >> 6) & 0x003) | (((uint16_t) ecc[4] << 2) & 0x3… in rtc_from4_correct_data()
366 …par[1] = rs_decoder->index_of[(((uint16_t) ecc[5] >> 0) & 0x0ff) | (((uint16_t) ecc[6] << 8) & 0x3… in rtc_from4_correct_data()
373 if (par[j] != rs_decoder->nn) in rtc_from4_correct_data()
374 syn[i] ^= rs_decoder->alpha_to[rs_modnn(rs_decoder, par[j] + i * j)]; in rtc_from4_correct_data()
377 syn[i] = rs_decoder->index_of[syn[i]]; in rtc_from4_correct_data()
381 res = decode_rs8(rs_decoder, (uint8_t *) buf, par, 512, syn, 0, NULL, 0xff, NULL); in rtc_from4_correct_data()
[all …]
Ddiskonchip.c132 static struct rs_control *rs_decoder; variable
1027 ret = doc_ecc_decode(rs_decoder, dat, calc_ecc); in doc200x_correct_data()
1730 rs_decoder = init_rs(10, 0x409, FCR, 1, NROOTS); in init_nanddoc()
1731 if (!rs_decoder) { in init_nanddoc()
1755 free_rs(rs_decoder); in init_nanddoc()
1765 if (rs_decoder) { in cleanup_nanddoc()
1766 free_rs(rs_decoder); in cleanup_nanddoc()
/linux-3.4.99/drivers/staging/android/
Dpersistent_ram.c90 encode_rs8(prz->rs_decoder, data, len, par, 0); in persistent_ram_encode_rs8()
103 return decode_rs8(prz->rs_decoder, data, par, len, in persistent_ram_decode_rs8()
206 prz->rs_decoder = init_rs(prz->ecc_symsize, prz->ecc_poly, 0, 1, in persistent_ram_init_ecc()
208 if (prz->rs_decoder == NULL) { in persistent_ram_init_ecc()
Dpersistent_ram.h50 struct rs_control *rs_decoder; member