Home
last modified time | relevance | path

Searched refs:entropy (Results 1 – 25 of 34) sorted by relevance

12

/linux/drivers/media/platform/verisilicon/
H A Dhantro_vp8.c52 const struct v4l2_vp8_entropy *entropy = &hdr->entropy; in hantro_vp8_prob_update() local
69 dst[0] = entropy->y_mode_probs[0]; in hantro_vp8_prob_update()
70 dst[1] = entropy->y_mode_probs[1]; in hantro_vp8_prob_update()
71 dst[2] = entropy->y_mode_probs[2]; in hantro_vp8_prob_update()
72 dst[3] = entropy->y_mode_probs[3]; in hantro_vp8_prob_update()
73 dst[4] = entropy->uv_mode_probs[0]; in hantro_vp8_prob_update()
74 dst[5] = entropy->uv_mode_probs[1]; in hantro_vp8_prob_update()
75 dst[6] = entropy->uv_mode_probs[2]; in hantro_vp8_prob_update()
80 dst[0] = entropy->mv_probs[0][0]; /* is short */ in hantro_vp8_prob_update()
81 dst[1] = entropy->mv_probs[1][0]; in hantro_vp8_prob_update()
[all …]
/linux/drivers/char/
H A Drandom.c497 type entropy[CHACHA_BLOCK_SIZE * 3 / (2 * sizeof(type))]; \
524 if (batch->position >= ARRAY_SIZE(batch->entropy) || \
526 _get_random_bytes(batch->entropy, sizeof(batch->entropy)); \
531 ret = batch->entropy[batch->position]; \
532 batch->entropy[batch->position] = 0; \
824 unsigned long flags, entropy = random_get_entropy(); in random_pm_notification() local
835 _mix_pool_bytes(&entropy, sizeof(entropy)); in random_pm_notification()
855 unsigned long entropy[BLAKE2S_BLOCK_SIZE / sizeof(long)]; in random_init_early() local
863 for (i = 0, arch_bits = sizeof(entropy) * 8; i < ARRAY_SIZE(entropy);) { in random_init_early()
864 longs = arch_get_random_seed_longs(entropy, ARRAY_SIZE(entropy) - i); in random_init_early()
[all …]
/linux/lib/zstd/decompress/
H A Dzstd_ddict.c38 ZSTD_entropyDTables_t entropy; member
73 dctx->LLTptr = ddict->entropy.LLTable; in ZSTD_copyDDictParameters()
74 dctx->MLTptr = ddict->entropy.MLTable; in ZSTD_copyDDictParameters()
75 dctx->OFTptr = ddict->entropy.OFTable; in ZSTD_copyDDictParameters()
76 dctx->HUFptr = ddict->entropy.hufTable; in ZSTD_copyDDictParameters()
77 dctx->entropy.rep[0] = ddict->entropy.rep[0]; in ZSTD_copyDDictParameters()
78 dctx->entropy.rep[1] = ddict->entropy.rep[1]; in ZSTD_copyDDictParameters()
79 dctx->entropy.rep[2] = ddict->entropy.rep[2]; in ZSTD_copyDDictParameters()
111 &ddict->entropy, ddict->dictContent, ddict->dictSize)), in ZSTD_loadEntropy_intoDDict()
135 …ddict->entropy.hufTable[0] = (HUF_DTable)((ZSTD_HUFFDTABLE_CAPACITY_LOG)*0x1000001); /* cover bot… in ZSTD_initDDict_internal()
H A Dzstd_decompress.c1378 ZSTD_loadDEntropy(ZSTD_entropyDTables_t* entropy, in ZSTD_loadDEntropy() argument
1388 …entropyDTables_t, OFTable) == offsetof(ZSTD_entropyDTables_t, LLTable) + sizeof(entropy->LLTable)); in ZSTD_loadDEntropy()
1389 …entropyDTables_t, MLTable) == offsetof(ZSTD_entropyDTables_t, OFTable) + sizeof(entropy->OFTable)); in ZSTD_loadDEntropy()
1390 …ZSTD_STATIC_ASSERT(sizeof(entropy->LLTable) + sizeof(entropy->OFTable) + sizeof(entropy->MLTable) … in ZSTD_loadDEntropy()
1391 …{ void* const workspace = &entropy->LLTable; /* use fse tables as temporary workspace; implies… in ZSTD_loadDEntropy()
1392 …size_t const workspaceSize = sizeof(entropy->LLTable) + sizeof(entropy->OFTable) + sizeof(entropy-… in ZSTD_loadDEntropy()
1395 size_t const hSize = HUF_readDTableX1_wksp(entropy->hufTable, in ZSTD_loadDEntropy()
1399 size_t const hSize = HUF_readDTableX2_wksp(entropy->hufTable, in ZSTD_loadDEntropy()
1413 ZSTD_buildFSETable( entropy->OFTable, in ZSTD_loadDEntropy()
1417 entropy->workspace, sizeof(entropy->workspace), in ZSTD_loadDEntropy()
[all …]
H A Dzstd_decompress_internal.h133 ZSTD_entropyDTables_t entropy; member
222 size_t ZSTD_loadDEntropy(ZSTD_entropyDTables_t* entropy,
H A Dzstd_decompress_block.c198 PREFETCH_AREA(dctx->HUFptr, sizeof(dctx->entropy.hufTable)); in ZSTD_decodeLiteralsBlock()
216 dctx->entropy.hufTable, dctx->litBuffer, litSize, in ZSTD_decodeLiteralsBlock()
221 dctx->entropy.hufTable, dctx->litBuffer, litSize, in ZSTD_decodeLiteralsBlock()
227 dctx->entropy.hufTable, dctx->litBuffer, litSize, in ZSTD_decodeLiteralsBlock()
247 if (litEncType==set_compressed) dctx->HUFptr = dctx->entropy.hufTable; in ZSTD_decodeLiteralsBlock()
738 { size_t const llhSize = ZSTD_buildSeqTable(dctx->entropy.LLTable, &dctx->LLTptr, in ZSTD_decodeSeqHeaders()
750 { size_t const ofhSize = ZSTD_buildSeqTable(dctx->entropy.OFTable, &dctx->OFTptr, in ZSTD_decodeSeqHeaders()
762 { size_t const mlhSize = ZSTD_buildSeqTable(dctx->entropy.MLTable, &dctx->MLTptr, in ZSTD_decodeSeqHeaders()
1425 { U32 i; for (i=0; i<ZSTD_REP_NUM; i++) seqState.prevOffset[i] = dctx->entropy.rep[i]; } in ZSTD_decompressSequences_bodySplitLitBuffer()
1584 … { U32 i; for (i=0; i<ZSTD_REP_NUM; i++) dctx->entropy.rep[i] = (U32)(seqState.prevOffset[i]); } in ZSTD_decompressSequences_bodySplitLitBuffer()
[all …]
/linux/drivers/media/test-drivers/visl/
H A Dvisl-trace-vp8.h21 __entry->f.entropy.coeff_probs,
22 sizeof(__entry->f.entropy.coeff_probs),
24 __print_array(__entry->f.entropy.y_mode_probs,
25 ARRAY_SIZE(__entry->f.entropy.y_mode_probs),
26 sizeof(__entry->f.entropy.y_mode_probs[0])),
27 __print_array(__entry->f.entropy.uv_mode_probs,
28 ARRAY_SIZE(__entry->f.entropy.uv_mode_probs),
29 sizeof(__entry->f.entropy.uv_mode_probs[0])),
31 __entry->f.entropy.mv_probs,
32 sizeof(__entry->f.entropy.mv_probs),
/linux/arch/x86/mm/
H A Dkaslr.c142 unsigned long entropy; in kernel_randomize_memory() local
148 entropy = remain_entropy / (ARRAY_SIZE(kaslr_regions) - i); in kernel_randomize_memory()
150 entropy = (rand % (entropy + 1)) & PUD_MASK; in kernel_randomize_memory()
151 vaddr += entropy; in kernel_randomize_memory()
167 remain_entropy -= entropy; in kernel_randomize_memory()
/linux/arch/s390/boot/
H A Dkaslr.c59 __u64 entropy[4]; in get_random() local
79 (u8 *) entropy, (u8 *) entropy, in get_random()
80 sizeof(entropy)); in get_random()
81 memcpy(prng.parm_block, entropy, sizeof(entropy)); in get_random()
/linux/drivers/char/hw_random/
H A Dxilinx-trng.c186 u8 entropy[SHA512_DIGEST_SIZE] __aligned(4); in xtrng_reseed_internal() local
193 static_assert(sizeof(entropy) >= TRNG_SEED_LEN_BYTES); in xtrng_reseed_internal()
194 ret = xtrng_collect_random_data(rng, entropy, TRNG_SEED_LEN_BYTES, true); in xtrng_reseed_internal()
199 hmac_sha512_usingrawkey(default_salt, sizeof(default_salt), entropy, in xtrng_reseed_internal()
200 TRNG_SEED_LEN_BYTES, entropy); in xtrng_reseed_internal()
204 (u32 *)entropy, TRNG_NUM_INIT_REGS); in xtrng_reseed_internal()
207 memzero_explicit(entropy, sizeof(entropy)); in xtrng_reseed_internal()
/linux/scripts/gcc-plugins/
H A DKconfig23 bool "Generate some entropy during boot and runtime"
26 extract some entropy from both original and artificially created
28 there is little 'natural' source of entropy normally. The cost
32 Note that entropy extracted this way is not cryptographically
/linux/lib/zstd/compress/
H A Dzstd_compress_superblock.c264 static size_t ZSTD_compressSubBlock(const ZSTD_entropyCTables_t* entropy, in ZSTD_compressSubBlock() argument
281 { size_t cLitSize = ZSTD_compressSubBlock_literal((const HUF_CElt*)entropy->huf.CTable, in ZSTD_compressSubBlock()
289 { size_t cSeqSize = ZSTD_compressSubBlock_sequences(&entropy->fse, in ZSTD_compressSubBlock()
403 const ZSTD_entropyCTables_t* entropy, in ZSTD_estimateSubBlockSize() argument
410 … &entropy->huf, &entropyMetadata->hufMetadata, in ZSTD_estimateSubBlockSize()
413 … nbSeq, &entropy->fse, &entropyMetadata->fseMetadata, in ZSTD_estimateSubBlockSize()
519 &nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi()
551 size_t const cSize = ZSTD_compressSubBlock(&nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi()
595 size_t const cSize = ZSTD_compressSubBlock(&nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi()
631 … ZSTD_memcpy(&nextCBlock->entropy.huf, &prevCBlock->entropy.huf, sizeof(prevCBlock->entropy.huf)); in ZSTD_compressSubBlock_multi()
[all …]
H A Dzstd_compress.c1849 bs->entropy.huf.repeatMode = HUF_repeat_none; in ZSTD_reset_compressedBlockState()
1850 bs->entropy.fse.offcode_repeatMode = FSE_repeat_none; in ZSTD_reset_compressedBlockState()
1851 bs->entropy.fse.matchlength_repeatMode = FSE_repeat_none; in ZSTD_reset_compressedBlockState()
1852 bs->entropy.fse.litlength_repeatMode = FSE_repeat_none; in ZSTD_reset_compressedBlockState()
3197 ms->opt.symbolCosts = &zc->blockState.prevCBlock->entropy; in ZSTD_buildSeqStore()
3843 const ZSTD_entropyCTables_t* entropy, in ZSTD_estimateBlockSize() argument
3849 &entropy->huf, &entropyMetadata->hufMetadata, in ZSTD_estimateBlockSize()
3852 nbSeq, &entropy->fse, &entropyMetadata->fseMetadata, in ZSTD_estimateBlockSize()
3867 &zc->blockState.prevCBlock->entropy, in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3868 &zc->blockState.nextCBlock->entropy, in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
[all …]
/linux/arch/riscv/include/asm/
H A Darchrandom.h21 u16 *entropy = (u16 *)v; in csr_seed_long() local
32 entropy[valid_seeds++] = csr_seed & SEED_ENTROPY_MASK; in csr_seed_long()
/linux/drivers/infiniband/hw/hfi1/
H A Dtrace_ibhdrs.h88 u16 *entropy, u16 *len, u16 *pkey,
94 u8 rc, u8 sc, u8 sl, u16 entropy,
138 __field(u16, entropy)
166 &__entry->entropy,
236 __entry->entropy,
297 __field(u16, entropy)
326 &__entry->entropy,
400 __entry->entropy,
H A Dtrace.c171 u16 *entropy, u16 *len, u16 *pkey, in hfi1_trace_parse_16b_hdr() argument
180 *entropy = hfi1_16B_get_entropy(hdr); in hfi1_trace_parse_16b_hdr()
194 u8 rc, u8 sc, u8 sl, u16 entropy, in hfi1_trace_fmt_lrh() argument
203 age, becn, fecn, l4, rc, sc, pkey, entropy); in hfi1_trace_fmt_lrh()
/linux/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_vp8.c599 memcpy(&prob_table[0x1008], slice->entropy.y_mode_probs, in cedrus_vp8_update_probs()
600 sizeof(slice->entropy.y_mode_probs)); in cedrus_vp8_update_probs()
601 memcpy(&prob_table[0x1010], slice->entropy.uv_mode_probs, in cedrus_vp8_update_probs()
602 sizeof(slice->entropy.uv_mode_probs)); in cedrus_vp8_update_probs()
612 memcpy(&prob_table[0x1020], slice->entropy.mv_probs[0], in cedrus_vp8_update_probs()
614 memcpy(&prob_table[0x1040], slice->entropy.mv_probs[1], in cedrus_vp8_update_probs()
621 slice->entropy.coeff_probs[i][j][k], 11); in cedrus_vp8_update_probs()
/linux/arch/loongarch/kernel/
H A Drelocate.c118 unsigned long entropy = random_get_entropy(); in get_random_boot() local
124 hash = rotate_xor(hash, &entropy, sizeof(entropy)); in get_random_boot()
/linux/Documentation/arch/powerpc/
H A Dkaslr-booke32.rst22 pass entropy via the /chosen/kaslr-seed node in device tree.
26 bit of the entropy to decide the index of the 64M zone. Then we chose a
/linux/tools/testing/selftests/lkdtm/
H A D.gitignore3 !stack-entropy.sh
H A DMakefile8 TEST_PROGS := stack-entropy.sh
H A Dstack-entropy.sh23 log=$(mktemp -t stack-entropy-XXXXXX)
/linux/drivers/media/platform/st/sti/hva/
H A Dhva-debugfs.c19 u32 bitrate_mode, aspect, entropy, vui_sar, sei_fp; in format_ctx() local
59 entropy = V4L2_CID_MPEG_VIDEO_H264_ENTROPY_MODE; in format_ctx()
72 v4l2_ctrl_get_menu(entropy)[ctrls->entropy_mode], in format_ctx()
/linux/include/linux/
H A Drandom.h19 void add_hwgenerator_randomness(const void *buf, size_t len, size_t entropy, bool sleep_after);
/linux/crypto/
H A DKconfig830 IV, making low entropy IV sources more suitable for block
1127 A non-physical non-deterministic ("true") RNG (e.g., an entropy source
1146 the less variations are measured and thus the less entropy is
1148 obtained entropy is less than if the memory size fits within
1151 the entropy rate produced by the Jitter RNG can be modified.
1191 on hardware whose timers deliver limited amount of entropy (e.g.
1211 the first 1000 entropy events since boot can be sampled.
1312 - resetting DRBG entropy

12