Lines Matching refs:FEC_BLOCKSIZE
62 munmap(ctx->fec_mmap_addr, FEC_BLOCKSIZE + ctx->fec_size); in mmap_image_free()
122 } else if (size % FEC_BLOCKSIZE) { in calculate_rounds()
124 size, FEC_BLOCKSIZE); in calculate_rounds()
128 ctx->blocks = fec_div_round_up(ctx->inp_size, FEC_BLOCKSIZE); in calculate_rounds()
193 assert(len % FEC_BLOCKSIZE == 0); in process_chunk()
349 assert(sizeof(fec_header) <= FEC_BLOCKSIZE); in mmap_image_ecc_new()
350 size_t fec_size = FEC_BLOCKSIZE + ctx->fec_size; in mmap_image_ecc_new()
391 ctx->fec_size = ctx->rounds * ctx->roots * FEC_BLOCKSIZE; in image_ecc_new()
411 if (lseek64(fd, -FEC_BLOCKSIZE, SEEK_END) < 0) { in image_ecc_load()
416 assert(sizeof(fec_header) <= FEC_BLOCKSIZE); in image_ecc_load()
418 uint8_t header[FEC_BLOCKSIZE]; in image_ecc_load()
444 if (p->fec_size % p->roots || p->fec_size % FEC_BLOCKSIZE) { in image_ecc_load()
484 assert(sizeof(fec_header) <= FEC_BLOCKSIZE); in image_ecc_save()
486 uint8_t header[FEC_BLOCKSIZE]; in image_ecc_save()
493 memset(p, 0, FEC_BLOCKSIZE); in image_ecc_save()
568 uint64_t end = ctx->rounds * ctx->rs_n * FEC_BLOCKSIZE; in image_process()
570 fec_div_round_up(ctx->rounds * FEC_BLOCKSIZE, threads); in image_process()