Lines Matching refs:roots
38 using size_func = uint64_t (*)(uint64_t size, int roots);
43 static int find_offset(uint64_t file_size, int roots, uint64_t *offset, in find_offset() argument
57 uint64_t mi = get_appr_size(file_size, roots); in find_offset()
63 uint64_t total = mi + get_real_size(mi, roots); in find_offset()
134 if (header.roots == 0 || header.roots >= FEC_RSM) { in parse_ecc_header()
135 error("invalid ecc roots: %u", header.roots); in parse_ecc_header()
138 if (f->ecc.roots != (int)header.roots) { in parse_ecc_header()
139 error("unexpected number of roots: %d vs %u", f->ecc.roots, in parse_ecc_header()
140 header.roots); in parse_ecc_header()
143 if (header.fec_size % header.roots || in parse_ecc_header()
161 (uint32_t)f->ecc.rounds * f->ecc.roots * FEC_BLOCKSIZE) { in parse_ecc_header()
490 data->roots = f->ecc.roots; in fec_ecc_get_metadata()
516 int roots) in fec_open() argument
520 check(roots > 0 && roots < FEC_RSM); in fec_open()
523 roots); in fec_open()
543 f->ecc.roots = roots; in fec_open()
544 f->ecc.rsn = FEC_RSM - roots; in fec_open()