Lines Matching refs:FEC_BLOCKSIZE
51 if (file_size % FEC_BLOCKSIZE) { in find_offset()
53 error("file size not multiple of " stringify(FEC_BLOCKSIZE)); in find_offset()
63 mi = ((hi + lo) / (2 * FEC_BLOCKSIZE)) * FEC_BLOCKSIZE; in find_offset()
67 lo = mi + FEC_BLOCKSIZE; in find_offset()
122 offset -= offset % FEC_BLOCKSIZE; in parse_ecc_header()
145 header.fec_size % FEC_BLOCKSIZE) { in parse_ecc_header()
151 f->ecc.blocks = fec_div_round_up(f->data_size, FEC_BLOCKSIZE); in parse_ecc_header()
155 (uint32_t)f->ecc.rounds * f->ecc.roots * FEC_BLOCKSIZE) { in parse_ecc_header()
167 uint8_t buf[FEC_BLOCKSIZE]; in parse_ecc_header()
169 uint32_t len = FEC_BLOCKSIZE; in parse_ecc_header()
202 check(offset % FEC_BLOCKSIZE == 0); in parse_ecc()
203 check(offset < UINT64_MAX - FEC_BLOCKSIZE); in parse_ecc()
211 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()
481 check(f->ecc.start % FEC_BLOCKSIZE == 0) in fec_ecc_get_metadata()