Searched refs:ecc (Results 1 – 4 of 4) sorted by relevance
/system/extras/libfec/ |
D | fec_open.cpp | 100 check(f->ecc.rsn > 0 && f->ecc.rsn < FEC_RSM); in parse_ecc_header() 136 if (f->ecc.roots != (int)header.roots) { in parse_ecc_header() 137 error("unexpected number of roots: %d vs %u", f->ecc.roots, in parse_ecc_header() 148 f->ecc.blocks = fec_div_round_up(f->data_size, FEC_BLOCKSIZE); in parse_ecc_header() 149 f->ecc.rounds = fec_div_round_up(f->ecc.blocks, f->ecc.rsn); in parse_ecc_header() 152 (uint32_t)f->ecc.rounds * f->ecc.roots * FEC_BLOCKSIZE) { in parse_ecc_header() 157 f->ecc.size = header.fec_size; in parse_ecc_header() 158 f->ecc.start = header.inp_size; in parse_ecc_header() 168 while (n < f->ecc.size) { in parse_ecc_header() 169 if (len > f->ecc.size - n) { in parse_ecc_header() [all …]
|
D | fec_read.cpp | 111 ecc_info *e = &f->ecc; in __ecc_read() 213 rs.reset(init_rs_char(FEC_PARAMS(f->ecc.roots))); in ecc_init() 300 if (f->ecc.start && ecc_init(f, rs, ecc_data) == -1) { in verity_read() 344 if (!f->ecc.start) { in verity_read() 536 } else if (f->ecc.start) { in fec_pread() 537 check(f->ecc.start < f->size); in fec_pread()
|
D | fec_private.h | 100 ecc_info ecc; member
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.cpp | 189 struct fec_ecc_metadata ecc; member 208 if (params->ecc.valid) { in format_verity_table() 213 params->ecc.start / FEC_BLOCKSIZE, params->ecc.blocks, params->ecc.roots); in format_verity_table() 218 params->ecc.start / FEC_BLOCKSIZE, params->ecc.blocks, params->ecc.roots); in format_verity_table() 756 if (fec_ecc_get_metadata(f, ¶ms.ecc) < 0) { in fs_mgr_setup_verity() 757 params.ecc.valid = false; in fs_mgr_setup_verity() 811 if (params.ecc.valid) { in fs_mgr_setup_verity() 814 params.ecc.valid = false; in fs_mgr_setup_verity()
|