Lines Matching refs:FEC_BLOCKSIZE
49 if (file_size % FEC_BLOCKSIZE) { in find_offset()
51 error("file size not multiple of " stringify(FEC_BLOCKSIZE)); in find_offset()
61 mi = ((hi + lo) / (2 * FEC_BLOCKSIZE)) * FEC_BLOCKSIZE; in find_offset()
65 lo = mi + FEC_BLOCKSIZE; in find_offset()
121 offset -= offset % FEC_BLOCKSIZE; in parse_ecc_header()
144 header.fec_size % FEC_BLOCKSIZE) { in parse_ecc_header()
150 f->ecc.blocks = fec_div_round_up(f->data_size, FEC_BLOCKSIZE); in parse_ecc_header()
154 (uint32_t)f->ecc.rounds * f->ecc.roots * FEC_BLOCKSIZE) { in parse_ecc_header()
166 uint8_t buf[FEC_BLOCKSIZE]; in parse_ecc_header()
168 uint32_t len = FEC_BLOCKSIZE; in parse_ecc_header()
201 check(offset % FEC_BLOCKSIZE == 0); in parse_ecc()
202 check(offset < UINT64_MAX - FEC_BLOCKSIZE); in parse_ecc()
210 if (parse_ecc_header(f, offset + FEC_BLOCKSIZE - sizeof(fec_header)) == 0) { in parse_ecc()
351 uint64_t offset = f->data_size - FEC_BLOCKSIZE; in load_ecc()
471 check(f->ecc.start % FEC_BLOCKSIZE == 0); in fec_ecc_get_metadata()