Searched refs:rounds (Results 1 – 12 of 12) sorted by relevance
/system/extras/libfec/include/fec/ |
D | ecc.h | 51 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()
|
D | io.h | 67 uint64_t rounds; member
|
/system/extras/verity/fec/ |
D | image.h | 59 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()
|
D | image.cpp | 77 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()
|
D | main.cpp | 199 INFO("\trounds: %" PRIu64 "\n", ctx.rounds); in encode() 248 INFO("\trounds: %" PRIu64 "\n", ctx.rounds); in decode()
|
/system/update_engine/payload_consumer/ |
D | verity_writer_android.cc | 158 uint64_t rounds = utils::DivRoundUp(data_size / block_size, rs_n); in EncodeFEC() local 159 TEST_AND_RETURN_FALSE(rounds * fec_roots * block_size == fec_size); in EncodeFEC() 169 for (size_t i = 0; i < rounds; i++) { in EncodeFEC() 177 fec_ecc_interleave(i * rs_n * block_size + j, rs_n, rounds); in EncodeFEC()
|
/system/extras/verity/fec/tests/ |
D | fec.py | 37 rounds = int(math.ceil(float(blocks) / (255 - roots))) 39 max_errors = int(math.floor(rounds * roots / 2)) * blocksize
|
/system/extras/libfec/ |
D | fec_open.cpp | 151 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()
|
D | fec_read.cpp | 115 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()
|
D | avb_utils.cpp | 129 f->ecc.rounds = fec_div_round_up(f->ecc.blocks, f->ecc.rsn); in parse_avb_image()
|
D | fec_private.h | 74 uint64_t rounds; member
|
/system/keymaster/key_blob_utils/ |
D | ocb.c | 384 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()
|