Home
last modified time | relevance | path

Searched refs:rs_n (Results 1 – 4 of 4) sorted by relevance

/system/extras/verity/fec/
Dmain.cpp46 uint8_t data[fcx->rs_n]; in encode_rs()
49 for (i = ctx->start; i < ctx->end; i += fcx->rs_n) { in encode_rs()
50 for (j = 0; j < fcx->rs_n; ++j) { in encode_rs()
63 uint8_t data[fcx->rs_n + fcx->roots]; in decode_rs()
68 for (i = ctx->start; i < ctx->end; i += fcx->rs_n) { in decode_rs()
69 for (j = 0; j < fcx->rs_n; ++j) { in decode_rs()
73 memcpy(&data[fcx->rs_n], &fcx->fec[ctx->fec_pos], fcx->roots); in decode_rs()
78 i, i + fcx->rs_n); in decode_rs()
81 for (j = 0; j < fcx->rs_n; ++j) { in decode_rs()
187 INFO("encoding RS(255, %d) to '%s' for input files:\n", ctx.rs_n, in encode()
[all …]
Dimage.h52 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()
Dimage.cpp77 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()
/system/update_engine/payload_consumer/
Dverity_writer_android.cc130 size_t rs_n = FEC_RSM - fec_roots; in EncodeFEC() local
131 uint64_t rounds = utils::DivRoundUp(data_size / block_size, rs_n); in EncodeFEC()
149 brillo::Blob rs_blocks(block_size * rs_n); in EncodeFEC()
150 for (size_t j = 0; j < rs_n; j++) { in EncodeFEC()
153 fec_ecc_interleave(i * rs_n * block_size + j, rs_n, rounds); in EncodeFEC()
166 rs_blocks[k * rs_n + j] = buffer[k]; in EncodeFEC()
174 rs_blocks.data() + j * rs_n, in EncodeFEC()