Searched refs:fec_size (Results 1 – 5 of 5) sorted by relevance
/system/extras/verity/fec/ |
D | image.cpp | 62 munmap(ctx->fec_mmap_addr, FEC_BLOCKSIZE + ctx->fec_size); in mmap_image_free() 338 INFO("mmaping '%s' (size %u)\n", ctx->fec_filename, ctx->fec_size); in mmap_image_ecc_new() 350 size_t fec_size = FEC_BLOCKSIZE + ctx->fec_size; in mmap_image_ecc_new() local 352 if (ftruncate(fd, fec_size) == -1) { in mmap_image_ecc_new() 358 INFO("memory mapping '%s' (size %zu)\n", ctx->fec_filename, fec_size); in mmap_image_ecc_new() 361 void *p = mmap(NULL, fec_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in mmap_image_ecc_new() 365 fec_size, strerror(errno)); in mmap_image_ecc_new() 376 INFO("allocating %u bytes of memory\n", ctx->fec_size); in file_image_ecc_new() 379 ctx->fec = new uint8_t[ctx->fec_size]; in file_image_ecc_new() 382 FATAL("failed to allocate %u bytes\n", ctx->fec_size); in file_image_ecc_new() [all …]
|
D | image.h | 56 uint32_t fec_size; member
|
D | main.cpp | 197 INFO("\traw fec size: %u\n", ctx.fec_size); in encode() 242 INFO("\traw fec size: %u\n", ctx.fec_size); in decode()
|
/system/extras/libfec/ |
D | fec_open.cpp | 143 if (header.fec_size % header.roots || in parse_ecc_header() 144 header.fec_size % FEC_BLOCKSIZE) { in parse_ecc_header() 145 error("inconsistent ecc size %u", header.fec_size); in parse_ecc_header() 149 if (offset < header.fec_size || in parse_ecc_header() 150 offset - header.fec_size != header.inp_size) { in parse_ecc_header() 160 if (header.fec_size != in parse_ecc_header() 162 error("inconsistent ecc size %u", header.fec_size); in parse_ecc_header() 166 f->ecc.size = header.fec_size; in parse_ecc_header()
|
/system/extras/libfec/include/fec/ |
D | io.h | 49 uint32_t fec_size; member
|