Home
last modified time | relevance | path

Searched refs:rounds (Results 1 – 12 of 12) sorted by relevance

/system/extras/libfec/include/fec/
Decc.h51 inline uint64_t fec_ecc_interleave(uint64_t offset, int rsn, uint64_t rounds) in fec_ecc_interleave() argument
53 return (offset / rsn) + (offset % rsn) * rounds * FEC_BLOCKSIZE; in fec_ecc_interleave()
Dio.h67 uint64_t rounds; member
/system/extras/verity/fec/
Dimage.h59 uint64_t rounds; member
94 uint64_t offset = fec_ecc_interleave(i, ctx->rs_n, ctx->rounds); in image_get_interleaved_byte()
106 uint64_t offset = fec_ecc_interleave(i, ctx->rs_n, ctx->rounds); in image_set_interleaved_byte()
Dimage.cpp77 ctx->rounds = fec_div_round_up(ctx->blocks, ctx->rs_n); in calculate_rounds()
194 assert(ctx->rounds > 0); /* image_load should be called first */ in image_ecc_new()
197 ctx->fec_size = ctx->rounds * ctx->roots * FEC_BLOCKSIZE; in image_ecc_new()
365 assert(ctx->rounds > 0); in image_process()
367 if ((uint64_t)threads > ctx->rounds) { in image_process()
368 threads = (int)ctx->rounds; in image_process()
383 uint64_t end = ctx->rounds * ctx->rs_n * FEC_BLOCKSIZE; in image_process()
385 fec_div_round_up(ctx->rounds * FEC_BLOCKSIZE, threads); in image_process()
Dmain.cpp199 INFO("\trounds: %" PRIu64 "\n", ctx.rounds); in encode()
248 INFO("\trounds: %" PRIu64 "\n", ctx.rounds); in decode()
/system/update_engine/payload_consumer/
Dverity_writer_android.cc131 uint64_t rounds = utils::DivRoundUp(data_size / block_size, rs_n); in EncodeFEC() local
132 TEST_AND_RETURN_FALSE(rounds * fec_roots * block_size == fec_size); in EncodeFEC()
145 for (size_t i = 0; i < rounds; i++) { in EncodeFEC()
153 fec_ecc_interleave(i * rs_n * block_size + j, rs_n, rounds); in EncodeFEC()
/system/extras/verity/fec/tests/
Dfec.py37 rounds = int(math.ceil(float(blocks) / (255 - roots)))
39 max_errors = int(math.floor(rounds * roots / 2)) * blocksize
/system/extras/libfec/
Dfec_open.cpp151 f->ecc.rounds = fec_div_round_up(f->ecc.blocks, f->ecc.rsn); in parse_ecc_header()
154 (uint32_t)f->ecc.rounds * f->ecc.roots * FEC_BLOCKSIZE) { in parse_ecc_header()
476 data->rounds = f->ecc.rounds; in fec_ecc_get_metadata()
Dfec_read.cpp115 uint64_t rsb = offset - (offset / (e->rounds * FEC_BLOCKSIZE)) * in __ecc_read()
116 e->rounds * FEC_BLOCKSIZE; in __ecc_read()
126 e->rounds); in __ecc_read()
Davb_utils.cpp129 f->ecc.rounds = fec_div_round_up(f->ecc.blocks, f->ecc.rsn); in parse_avb_image()
Dfec_private.h74 uint64_t rounds; member
/system/keymaster/key_blob_utils/
Docb.c384 int rounds; member
386 #define ROUNDS(ctx) ((ctx)->rounds)
390 (z)->rounds = y / 32 + 6; \
395 (z)->rounds = y / 32 + 6; \
431 int rounds; member
433 #define ROUNDS(ctx) ((ctx)->rounds)
541 key->rounds = 6 + bits / 32; in AES_set_encrypt_key()
550 dkey->rounds = i; in AES_set_decrypt_key_fast()