Lines Matching refs:rs
107 static int __ecc_read(fec_handle *f, void *rs, uint8_t *dest, uint64_t offset, in __ecc_read() argument
176 int rc = decode_rs_char(rs, &ecc_data[i * FEC_RSM], erasures, neras); in __ecc_read()
208 static int ecc_init(fec_handle *f, rs_unique_ptr& rs, in ecc_init() argument
213 rs.reset(init_rs_char(FEC_PARAMS(f->ecc.roots))); in ecc_init()
215 if (unlikely(!rs)) { in ecc_init()
245 rs_unique_ptr rs(NULL, free_rs_char); in ecc_read() local
248 if (ecc_init(f, rs, ecc_data) == -1) { in ecc_read()
260 if (__ecc_read(f, rs.get(), data, curr * FEC_BLOCKSIZE, false, in ecc_read()
297 rs_unique_ptr rs(NULL, free_rs_char); in verity_read() local
300 if (f->ecc.start && ecc_init(f, rs, ecc_data) == -1) { in verity_read()
356 if (__ecc_read(f, rs.get(), data, curr_offset, false, ecc_data.get(), in verity_read()
363 if (__ecc_read(f, rs.get(), data, curr_offset, true, ecc_data.get(), in verity_read()