Lines Matching refs:ecc_data
106 bool use_erasures, uint8_t *ecc_data, size_t *errors) in __ecc_read() argument
150 ecc_data[j * FEC_RSM + i] = bbuf[j]; in __ecc_read()
161 if (!raw_pread(f, &ecc_data[i * FEC_RSM + e->rsn], e->roots, in __ecc_read()
170 memcpy(copy, &ecc_data[i * FEC_RSM], FEC_RSM); in __ecc_read()
174 int rc = decode_rs_char(rs, &ecc_data[i * FEC_RSM], erasures, neras); in __ecc_read()
194 dest[i] = ecc_data[i * FEC_RSM + data_index]; in __ecc_read()
207 std::unique_ptr<uint8_t[]>& ecc_data) in ecc_init() argument
219 ecc_data.reset(new (std::nothrow) uint8_t[FEC_RSM * FEC_BLOCKSIZE]); in ecc_init()
221 if (unlikely(!ecc_data)) { in ecc_init()
244 std::unique_ptr<uint8_t[]> ecc_data; in ecc_read() local
246 if (ecc_init(f, rs, ecc_data) == -1) { in ecc_read()
259 ecc_data.get(), errors) == -1) { in ecc_read()
296 std::unique_ptr<uint8_t[]> ecc_data; in verity_read() local
298 if (f->ecc.start && ecc_init(f, rs, ecc_data) == -1) { in verity_read()
354 if (__ecc_read(f, rs.get(), data, curr_offset, false, ecc_data.get(), in verity_read()
361 if (__ecc_read(f, rs.get(), data, curr_offset, true, ecc_data.get(), in verity_read()