Lines Matching refs:ecc_data
108 bool use_erasures, uint8_t *ecc_data, size_t *errors) in __ecc_read() argument
152 ecc_data[j * FEC_RSM + i] = bbuf[j]; in __ecc_read()
163 if (!raw_pread(f->fd, &ecc_data[i * FEC_RSM + e->rsn], e->roots, in __ecc_read()
172 memcpy(copy, &ecc_data[i * FEC_RSM], FEC_RSM); in __ecc_read()
176 int rc = decode_rs_char(rs, &ecc_data[i * FEC_RSM], erasures, neras); in __ecc_read()
196 dest[i] = ecc_data[i * FEC_RSM + data_index]; in __ecc_read()
209 std::unique_ptr<uint8_t[]>& ecc_data) in ecc_init() argument
221 ecc_data.reset(new (std::nothrow) uint8_t[FEC_RSM * FEC_BLOCKSIZE]); in ecc_init()
223 if (unlikely(!ecc_data)) { in ecc_init()
246 std::unique_ptr<uint8_t[]> ecc_data; in ecc_read() local
248 if (ecc_init(f, rs, ecc_data) == -1) { in ecc_read()
261 ecc_data.get(), errors) == -1) { in ecc_read()
298 std::unique_ptr<uint8_t[]> ecc_data; in verity_read() local
300 if (f->ecc.start && ecc_init(f, rs, ecc_data) == -1) { in verity_read()
355 if (__ecc_read(f, rs.get(), data, curr_offset, false, ecc_data.get(), in verity_read()
362 if (__ecc_read(f, rs.get(), data, curr_offset, true, ecc_data.get(), in verity_read()