Lines Matching refs:roots
36 using size_func = uint64_t (*)(uint64_t size, int roots);
41 static int find_offset(uint64_t file_size, int roots, uint64_t *offset, in find_offset() argument
55 uint64_t mi = get_appr_size(file_size, roots); in find_offset()
61 uint64_t total = mi + get_real_size(mi, roots); in find_offset()
132 if (header.roots == 0 || header.roots >= FEC_RSM) { in parse_ecc_header()
133 error("invalid ecc roots: %u", header.roots); 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()
138 header.roots); in parse_ecc_header()
141 if (header.fec_size % header.roots || in parse_ecc_header()
152 (uint32_t)f->ecc.rounds * f->ecc.roots * FEC_BLOCKSIZE) { in parse_ecc_header()
482 data->roots = f->ecc.roots; in fec_ecc_get_metadata()
508 int roots) in fec_open() argument
512 check(roots > 0 && roots < FEC_RSM); in fec_open()
515 roots); in fec_open()
535 f->ecc.roots = roots; in fec_open()
536 f->ecc.rsn = FEC_RSM - roots; in fec_open()