Home
last modified time | relevance | path

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

12

/Linux-v5.10/drivers/staging/media/hantro/
Dhantro_vp8.c52 const struct v4l2_vp8_entropy_header *entropy = &hdr->entropy_header; 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-v5.10/arch/x86/mm/
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-v5.10/arch/s390/boot/
Dkaslr.c58 __u64 entropy[4]; in get_random() local
78 (u8 *) entropy, (u8 *) entropy, in get_random()
79 sizeof(entropy)); in get_random()
80 memcpy(prng.parm_block, entropy, sizeof(entropy)); in get_random()
/Linux-v5.10/lib/zstd/
Ddecompress.c82 ZSTD_entropyTables_t entropy; member
114 …dctx->entropy.hufTable[0] = (HUF_DTable)((HufLog)*0x1000001); /* cover both little and big endian … in ZSTD_decompressBegin()
117 ZSTD_STATIC_ASSERT(sizeof(dctx->entropy.rep) == sizeof(repStartValue)); in ZSTD_decompressBegin()
118 memcpy(dctx->entropy.rep, repStartValue, sizeof(repStartValue)); /* initial repcodes */ in ZSTD_decompressBegin()
119 dctx->LLTptr = dctx->entropy.LLTable; in ZSTD_decompressBegin()
120 dctx->MLTptr = dctx->entropy.MLTable; in ZSTD_decompressBegin()
121 dctx->OFTptr = dctx->entropy.OFTable; in ZSTD_decompressBegin()
122 dctx->HUFptr = dctx->entropy.hufTable; in ZSTD_decompressBegin()
487 …? HUF_decompress1X2_DCtx_wksp(dctx->entropy.hufTable, dctx->litBuffer, litSize, istart + lhSize, l… in ZSTD_decodeLiteralsBlock()
488 dctx->entropy.workspace, sizeof(dctx->entropy.workspace)) in ZSTD_decodeLiteralsBlock()
[all …]
/Linux-v5.10/drivers/infiniband/ulp/opa_vnic/
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-v5.10/crypto/
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()
Ddrbg.c242 const unsigned char *entropy) in drbg_fips_continuous_test() argument
259 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
264 ret = memcmp(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
267 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
1053 unsigned char *entropy, in drbg_get_random_bytes() argument
1059 get_random_bytes(entropy, entropylen); in drbg_get_random_bytes()
1060 ret = drbg_fips_continuous_test(drbg, entropy); in drbg_get_random_bytes()
1075 unsigned char entropy[32]; in drbg_async_seed() local
1079 BUG_ON(entropylen > sizeof(entropy)); in drbg_async_seed()
1081 drbg_string_fill(&data, entropy, entropylen); in drbg_async_seed()
[all …]
Dtestmgr.h135 const unsigned char *entropy; member
21296 .entropy = (unsigned char *)
21330 .entropy = (unsigned char *)
21370 .entropy = (unsigned char *)
21407 .entropy = (unsigned char *)
21454 .entropy = (unsigned char *)
21488 .entropy = (unsigned char *)
21528 .entropy = (unsigned char *)
21565 .entropy = (unsigned char *)
21612 .entropy = (unsigned char *)
[all …]
/Linux-v5.10/tools/testing/selftests/wireguard/qemu/
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-v5.10/drivers/infiniband/hw/hfi1/
Dtrace_ibhdrs.h129 u16 *entropy, u16 *len, u16 *pkey,
135 u8 rc, u8 sc, u8 sl, u16 entropy,
179 __field(u16, entropy)
207 &__entry->entropy,
277 __entry->entropy,
338 __field(u16, entropy)
367 &__entry->entropy,
441 __entry->entropy,
Dtrace.c208 u16 *entropy, u16 *len, u16 *pkey, in hfi1_trace_parse_16b_hdr() argument
217 *entropy = hfi1_16B_get_entropy(hdr); in hfi1_trace_parse_16b_hdr()
231 u8 rc, u8 sc, u8 sl, u16 entropy, in hfi1_trace_fmt_lrh() argument
240 age, becn, fecn, l4, rc, sc, pkey, entropy); in hfi1_trace_fmt_lrh()
Dipoib_tx.c50 u8 entropy; member
362 ohdr->u.ud.deth[1] = cpu_to_be32((txp->entropy << in hfi1_ipoib_build_ib_tx_headers()
601 txp.entropy = hfi1_ipoib_calc_entropy(skb); in hfi1_ipoib_send_dma()
/Linux-v5.10/Documentation/devicetree/bindings/rng/
Dtimeriomem_rng.txt9 - quality : estimated number of bits of true entropy per 1024 bits read from the
13 entropy pool.
/Linux-v5.10/lib/
Drandom32.c432 void prandom_seed(u32 entropy) in prandom_seed() argument
436 add_device_randomness(&entropy, sizeof(entropy)); in prandom_seed()
444 v3 ^= entropy; in prandom_seed()
447 v0 ^= entropy; in prandom_seed()
/Linux-v5.10/scripts/gcc-plugins/
DKconfig47 bool "Generate some entropy during boot and runtime"
50 extract some entropy from both original and artificially created
52 there is little 'natural' source of entropy normally. The cost
56 Note that entropy extracted this way is not cryptographically
/Linux-v5.10/arch/s390/crypto/
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-v5.10/arch/mips/kernel/
Drelocate.c204 unsigned long entropy = random_get_entropy(); in get_random_boot() local
211 hash = rotate_xor(hash, &entropy, sizeof(entropy)); in get_random_boot()
/Linux-v5.10/Documentation/powerpc/
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-v5.10/include/linux/
Dhw_random.h64 extern void add_hwgenerator_randomness(const char *buffer, size_t count, size_t entropy);
/Linux-v5.10/drivers/media/platform/sti/hva/
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-v5.10/include/rdma/
Dopa_vnic.h57 u8 entropy; member
/Linux-v5.10/include/crypto/
Dif_alg.h49 int (*setentropy)(void *private, sockptr_t entropy, unsigned int len);
/Linux-v5.10/drivers/net/wireless/ath/ath9k/
DKconfig207 randomness into Linux entropy pool (/dev/urandom and /dev/random)
209 Say Y, feeds the entropy directly from the WiFi driver to the input
/Linux-v5.10/drivers/media/platform/qcom/venus/
Dvenc.c557 struct hfi_h264_entropy_control entropy; in venc_set_properties() local
570 entropy.entropy_mode = venc_v4l2_to_hfi( in venc_set_properties()
573 entropy.cabac_model = HFI_H264_CABAC_MODEL_0; in venc_set_properties()
575 ret = hfi_session_set_property(inst, ptype, &entropy); in venc_set_properties()
/Linux-v5.10/drivers/char/hw_random/
DKconfig18 kernel's random number generator entropy pool.
488 Generator on ARM SoCs where hardware entropy sources are not
546 attaches itself to the host's /dev/random, supplying as much entropy
554 /dev/hwrng and injects the entropy into /dev/random.

12