Home
last modified time | relevance | path

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

123

/linux/drivers/staging/media/hantro/
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()
81 dst[1] = entropy->mv_probs[1][0]; in hantro_vp8_prob_update()
83 dst[3] = entropy->mv_probs[1][1]; in hantro_vp8_prob_update()
[all …]
/linux/lib/zstd/decompress/
A Dzstd_ddict.c37 ZSTD_entropyDTables_t entropy; member
72 dctx->LLTptr = ddict->entropy.LLTable; in ZSTD_copyDDictParameters()
73 dctx->MLTptr = ddict->entropy.MLTable; in ZSTD_copyDDictParameters()
74 dctx->OFTptr = ddict->entropy.OFTable; in ZSTD_copyDDictParameters()
75 dctx->HUFptr = ddict->entropy.hufTable; in ZSTD_copyDDictParameters()
76 dctx->entropy.rep[0] = ddict->entropy.rep[0]; in ZSTD_copyDDictParameters()
77 dctx->entropy.rep[1] = ddict->entropy.rep[1]; in ZSTD_copyDDictParameters()
78 dctx->entropy.rep[2] = ddict->entropy.rep[2]; in ZSTD_copyDDictParameters()
110 &ddict->entropy, ddict->dictContent, ddict->dictSize)), in ZSTD_loadEntropy_intoDDict()
134 …ddict->entropy.hufTable[0] = (HUF_DTable)((HufLog)*0x1000001); /* cover both little and big endia… in ZSTD_initDDict_internal()
A Dzstd_decompress.c1234 …ZSTD_STATIC_ASSERT(sizeof(entropy->LLTable) + sizeof(entropy->OFTable) + sizeof(entropy->MLTable) … in ZSTD_loadDEntropy()
1236 …size_t const workspaceSize = sizeof(entropy->LLTable) + sizeof(entropy->OFTable) + sizeof(entropy-… in ZSTD_loadDEntropy()
1257 ZSTD_buildFSETable( entropy->OFTable, in ZSTD_loadDEntropy()
1261 entropy->workspace, sizeof(entropy->workspace), in ZSTD_loadDEntropy()
1276 entropy->workspace, sizeof(entropy->workspace), in ZSTD_loadDEntropy()
1291 entropy->workspace, sizeof(entropy->workspace), in ZSTD_loadDEntropy()
1303 entropy->rep[i] = rep; in ZSTD_loadDEntropy()
1347 dctx->LLTptr = dctx->entropy.LLTable; in ZSTD_decompressBegin()
1348 dctx->MLTptr = dctx->entropy.MLTable; in ZSTD_decompressBegin()
1349 dctx->OFTptr = dctx->entropy.OFTable; in ZSTD_decompressBegin()
[all …]
A Dzstd_decompress_internal.h115 ZSTD_entropyDTables_t entropy; member
191 size_t ZSTD_loadDEntropy(ZSTD_entropyDTables_t* entropy,
A Dzstd_decompress_block.c129 PREFETCH_AREA(dctx->HUFptr, sizeof(dctx->entropy.hufTable)); in ZSTD_decodeLiteralsBlock()
146 dctx->entropy.hufTable, dctx->litBuffer, litSize, in ZSTD_decodeLiteralsBlock()
151 dctx->entropy.hufTable, dctx->litBuffer, litSize, in ZSTD_decodeLiteralsBlock()
157 dctx->entropy.hufTable, dctx->litBuffer, litSize, in ZSTD_decodeLiteralsBlock()
168 if (litEncType==set_compressed) dctx->HUFptr = dctx->entropy.hufTable; in ZSTD_decodeLiteralsBlock()
616 { size_t const llhSize = ZSTD_buildSeqTable(dctx->entropy.LLTable, &dctx->LLTptr, in ZSTD_decodeSeqHeaders()
628 { size_t const ofhSize = ZSTD_buildSeqTable(dctx->entropy.OFTable, &dctx->OFTptr, in ZSTD_decodeSeqHeaders()
640 { size_t const mlhSize = ZSTD_buildSeqTable(dctx->entropy.MLTable, &dctx->MLTptr, in ZSTD_decodeSeqHeaders()
1127 { U32 i; for (i=0; i<ZSTD_REP_NUM; i++) seqState.prevOffset[i] = dctx->entropy.rep[i]; } in ZSTD_decompressSequences_body()
1208 … { U32 i; for (i=0; i<ZSTD_REP_NUM; i++) dctx->entropy.rep[i] = (U32)(seqState.prevOffset[i]); } in ZSTD_decompressSequences_body()
[all …]
/linux/arch/x86/mm/
A Dkaslr.c119 unsigned long entropy; in kernel_randomize_memory() local
125 entropy = remain_entropy / (ARRAY_SIZE(kaslr_regions) - i); in kernel_randomize_memory()
127 entropy = (rand % (entropy + 1)) & PUD_MASK; in kernel_randomize_memory()
128 vaddr += entropy; in kernel_randomize_memory()
137 remain_entropy -= entropy; in kernel_randomize_memory()
/linux/arch/s390/boot/
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/infiniband/ulp/opa_vnic/
A Dopa_vnic_encap.c74 u16 pkey, u16 entropy, u8 sc, u8 rc, in opa_vnic_make_header() argument
81 h[3] = entropy; in opa_vnic_make_header()
461 u8 entropy) in opa_vnic_get_def_port() argument
466 flow_id = ((entropy & 0xf) + (entropy >> 4)); in opa_vnic_get_def_port()
487 u8 def_port, sc, rc, entropy, *hdr; in opa_vnic_encap_skb() local
493 entropy = opa_vnic_calc_entropy(skb); in opa_vnic_encap_skb()
494 def_port = opa_vnic_get_def_port(adapter, entropy); in opa_vnic_encap_skb()
503 mdata->entropy = entropy; in opa_vnic_encap_skb()
511 info->vesw.pkey, entropy, sc, rc, in opa_vnic_encap_skb()
/linux/crypto/
A Dalgif_rng.c63 u8 *entropy; member
228 kfree_sensitive(pctx->entropy); in rng_release()
271 if (IS_ENABLED(CONFIG_CRYPTO_USER_API_RNG_CAVP) && pctx->entropy) in rng_accept_parent()
287 static int __maybe_unused rng_setentropy(void *private, sockptr_t entropy, in rng_setentropy() argument
296 if (pctx->entropy) in rng_setentropy()
303 kentropy = memdup_sockptr(entropy, len); in rng_setentropy()
313 pctx->entropy = kentropy; in rng_setentropy()
A Ddrbg.c243 const unsigned char *entropy) in drbg_fips_continuous_test() argument
260 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
268 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
1054 unsigned char *entropy, in drbg_get_random_bytes() argument
1060 get_random_bytes(entropy, entropylen); in drbg_get_random_bytes()
1076 unsigned char entropy[32]; in drbg_async_seed() local
1080 BUG_ON(entropylen > sizeof(entropy)); in drbg_async_seed()
1104 memzero_explicit(entropy, entropylen); in drbg_async_seed()
1122 unsigned char entropy[((32 + 16) * 2)]; in drbg_seed() local
1164 entropy + entropylen, in drbg_seed()
[all …]
A Dtestmgr.h135 const unsigned char *entropy; member
21453 .entropy = (unsigned char *)
21487 .entropy = (unsigned char *)
21527 .entropy = (unsigned char *)
21564 .entropy = (unsigned char *)
21611 .entropy = (unsigned char *)
21645 .entropy = (unsigned char *)
21685 .entropy = (unsigned char *)
21722 .entropy = (unsigned char *)
21769 .entropy = (unsigned char *)
[all …]
/linux/tools/testing/selftests/wireguard/qemu/
A Dinit.c64 } entropy = { in seed_rng() local
65 .entropy_count = sizeof(entropy.buffer) * 8, in seed_rng()
66 .buffer_size = sizeof(entropy.buffer), in seed_rng()
76 if (ioctl(fd, RNDADDENTROPY, &entropy) < 0) in seed_rng()
/linux/lib/zstd/compress/
A Dzstd_compress_superblock.c539 static size_t ZSTD_compressSubBlock(const ZSTD_entropyCTables_t* entropy, in ZSTD_compressSubBlock() argument
556 { size_t cLitSize = ZSTD_compressSubBlock_literal((const HUF_CElt*)entropy->huf.CTable, in ZSTD_compressSubBlock()
563 { size_t cSeqSize = ZSTD_compressSubBlock_sequences(&entropy->fse, in ZSTD_compressSubBlock()
672 const ZSTD_entropyCTables_t* entropy, in ZSTD_estimateSubBlockSize() argument
678 … &entropy->huf, &entropyMetadata->hufMetadata, in ZSTD_estimateSubBlockSize()
681 … nbSeq, &entropy->fse, &entropyMetadata->fseMetadata, in ZSTD_estimateSubBlockSize()
760 &nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi()
766 const size_t cSize = ZSTD_compressSubBlock(&nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi()
800 … ZSTD_memcpy(&nextCBlock->entropy.huf, &prevCBlock->entropy.huf, sizeof(prevCBlock->entropy.huf)); in ZSTD_compressSubBlock_multi()
837 &zc->blockState.prevCBlock->entropy, in ZSTD_compressSuperBlock()
[all …]
/linux/drivers/infiniband/hw/hfi1/
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,
/linux/drivers/staging/media/sunxi/cedrus/
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/scripts/gcc-plugins/
A DKconfig33 bool "Generate some entropy during boot and runtime"
36 extract some entropy from both original and artificially created
38 there is little 'natural' source of entropy normally. The cost
42 Note that entropy extracted this way is not cryptographically
/linux/lib/
A Drandom32.c433 void prandom_seed(u32 entropy) in prandom_seed() argument
437 add_device_randomness(&entropy, sizeof(entropy)); in prandom_seed()
445 v3 ^= entropy; in prandom_seed()
448 v0 ^= entropy; in prandom_seed()
/linux/Documentation/devicetree/bindings/rng/
A Dtimeriomem_rng.txt9 - quality : estimated number of bits of true entropy per 1024 bits read from the
13 entropy pool.
/linux/arch/s390/crypto/
A Dprng.c189 __u64 entropy[4]; in prng_tdes_add_entropy() local
194 (char *) entropy, (char *) entropy, in prng_tdes_add_entropy()
195 sizeof(entropy)); in prng_tdes_add_entropy()
196 memcpy(prng_data->prngws.parm_block, entropy, sizeof(entropy)); in prng_tdes_add_entropy()
/linux/arch/mips/kernel/
A Drelocate.c217 unsigned long entropy = random_get_entropy(); in get_random_boot() local
224 hash = rotate_xor(hash, &entropy, sizeof(entropy)); in get_random_boot()
/linux/Documentation/powerpc/
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/drivers/media/platform/sti/hva/
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/tools/testing/selftests/lkdtm/
A D.gitignore3 !stack-entropy.sh
A DMakefile8 TEST_PROGS := stack-entropy.sh
A Dstack-entropy.sh9 log=$(mktemp -t stack-entropy-XXXXXX)

Completed in 101 milliseconds

123