Searched refs:rs_n (Results 1 – 3 of 3) sorted by relevance
/system/extras/verity/fec/ |
D | main.cpp | 47 uint8_t data[fcx->rs_n]; in encode_rs() 50 for (i = ctx->start; i < ctx->end; i += fcx->rs_n) { in encode_rs() 51 for (j = 0; j < fcx->rs_n; ++j) { in encode_rs() 64 uint8_t data[fcx->rs_n + fcx->roots]; in decode_rs() 69 for (i = ctx->start; i < ctx->end; i += fcx->rs_n) { in decode_rs() 70 for (j = 0; j < fcx->rs_n; ++j) { in decode_rs() 74 memcpy(&data[fcx->rs_n], &fcx->fec[ctx->fec_pos], fcx->roots); in decode_rs() 79 i, i + fcx->rs_n); in decode_rs() 82 for (j = 0; j < fcx->rs_n; ++j) { in decode_rs() 188 INFO("encoding RS(255, %d) to '%s' for input files:\n", ctx.rs_n, in encode() [all …]
|
D | image.h | 52 int rs_n; 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 | 78 ctx->rounds = fec_div_round_up(ctx->blocks, ctx->rs_n); in calculate_rounds() 148 ctx->rs_n = FEC_RSM - ctx->roots; in image_load() 259 ctx->rs_n = FEC_RSM - ctx->roots; in image_ecc_load() 376 ctx->rs_n); in image_process() 383 uint64_t end = ctx->rounds * ctx->rs_n * FEC_BLOCKSIZE; in image_process() 397 args[i].start = current * ctx->rs_n; in image_process() 398 args[i].end = (current + rs_blocks_per_thread) * ctx->rs_n; in image_process() 409 ctx->rs_n > end) { in image_process() 419 assert((args[i].end - args[i].start) % ctx->rs_n == 0); in image_process()
|