| /linux/drivers/media/platform/verisilicon/ |
| H A D | hantro_vp8.c | 52 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 D | random.c | 12 * - Entropy accumulation and extraction routines. 13 * - Entropy collection routines. 19 * data is then "credited" as having a certain number of bits of entropy. 20 * When enough bits of entropy are available, the hash is finalized and 23 * entropy collectors, described below, add data to the input pool. 71 * being able to wait until the RNG has collected enough entropy and 81 CRNG_EMPTY = 0, /* Little to no entropy collected */ 119 /* Used by wait_for_random_bytes(), and considered an entropy collector, below. */ 170 * These functions expand entropy from the entropy extractor into 482 * Batched entropy returns random integers. The quality of the random [all …]
|
| /linux/drivers/media/test-drivers/visl/ |
| H A D | visl-trace-vp8.h | 17 "entropy.y_mode_probs %s\n" 18 "entropy.uv_mode_probs %s\n" 19 "entropy.mv_probs {%s}", 21 __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), [all …]
|
| /linux/include/uapi/linux/ |
| H A D | random.h | 17 /* Get the entropy count. */ 20 /* Add to (or subtract from) the entropy count. (Superuser only.) */ 23 /* Get the contents of the entropy pool. (Superuser only.) (Removed in 2.6.9-rc2.) */ 27 * Write bytes into the entropy pool and add to the entropy count. 32 /* Clear entropy count to 0. (Superuser only.) */ 35 /* Clear the entropy pool and associated counters. (Superuser only.) */
|
| /linux/lib/zstd/decompress/ |
| H A D | zstd_ddict.c | 38 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() 109 /* load entropy tables */ in ZSTD_loadEntropy_intoDDict() 111 &ddict->entropy, ddict->dictContent, ddict->dictSize)), in ZSTD_loadEntropy_intoDDict() [all …]
|
| H A D | zstd_decompress.c | 1376 * @return : size of entropy tables read */ 1378 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() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | port_tun.c | 92 /* Tunnel entropy calculation may be controlled either on port basis in mlx5_set_entropy() 106 /* Other applications may change the global FW entropy in mlx5_set_entropy() 107 * calculations settings. Check that the current entropy value in mlx5_set_entropy() 113 "Unexpected entropy calc setting - expected %d", in mlx5_set_entropy() 117 /* GRE requires disabling entropy calculation. if there are in mlx5_set_entropy() 128 /* if we turn on the entropy we don't need to force it anymore */ in mlx5_set_entropy() 141 * entropy capabilities and configuration. 152 /* in case entropy calculation is enabled for all tunneling in mlx5_tun_entropy_refcount_inc() 159 /* turn off the entropy only for the first GRE rule. in mlx5_tun_entropy_refcount_inc() 160 * for the next rules the entropy was already disabled in mlx5_tun_entropy_refcount_inc()
|
| /linux/arch/x86/mm/ |
| H A D | kaslr.c | 8 * Entropy is generated using the KASLR early boot functions now shared in 68 * that in order to increase the available entropy for mapping other regions. 134 /* Calculate entropy available between regions */ in kernel_randomize_memory() 142 unsigned long entropy; in kernel_randomize_memory() local 145 * Select a random virtual address using the extra entropy in kernel_randomize_memory() 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/scripts/gcc-plugins/ |
| H A D | latent_entropy_plugin.c | 11 * This gcc plugin helps generate a little bit of entropy from program state, 86 .help = "disable\tturn off latent entropy instrumentation\n", 291 * entropy PRNG. When RHS is specified, the request is for perturbing the 292 * local latent entropy variable, otherwise it is for perturbing the global 293 * latent entropy variable where the two operands are already given by the 294 * local and global latent entropy variables themselves. 296 * The operation is one of add/xor/rol when instrumenting the local entropy 297 * variable and one of add/xor when perturbing the global entropy variable. 299 * entropy to the global variable than the other two operations. 457 /* 4. read the global entropy variable into local entropy */ in init_local_entropy() [all …]
|
| H A D | Kconfig | 23 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/tools/testing/selftests/lkdtm/ |
| H A D | stack-entropy.sh | 4 # Measure kernel stack entropy by sampling via LKDTM's REPORT_STACK test. 23 log=$(mktemp -t stack-entropy-XXXXXX) 42 echo "Bits of stack entropy: $bits" 47 echo "Stack entropy is low! Booted without 'randomize_kstack_offset=y'?"
|
| H A D | .gitignore | 3 !stack-entropy.sh
|
| /linux/lib/zstd/compress/ |
| H A D | zstd_compress_superblock.c | 19 #include "zstd_compress_internal.h" /* ZSTD_[huf|fse|entropy]CTablesMetadata_t */ 85 DEBUGLOG(5, "Failed to write entropy tables %s", ZSTD_getErrorName(cSize)); in ZSTD_compressSubBlock_literal() 264 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() 448 /* entropy headers */ in sizeBlockSequences() 475 * Entropy will be written into the first block. [all …]
|
| /linux/arch/s390/boot/ |
| H A D | kaslr.c | 59 __u64 entropy[4]; in get_random() local 75 /* add entropy */ in get_random() 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/arch/riscv/include/asm/ |
| H A D | archrandom.h | 21 u16 *entropy = (u16 *)v; in csr_seed_long() local 32 entropy[valid_seeds++] = csr_seed & SEED_ENTROPY_MASK; in csr_seed_long() 64 * worth of entropy. in arch_get_random_seed_longs()
|
| /linux/Documentation/arch/powerpc/ |
| H A D | kaslr-booke32.rst | 20 Entropy is derived from the banner and timer base, which will change every 22 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/infiniband/hw/hfi1/ |
| H A D | trace_ibhdrs.h | 88 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 D | trace.c | 88 #define DETH_ENTROPY_PRN "deth qkey:0x%.8x sqpn:0x%.6x entropy:0x%.2x" 171 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() 190 "rc:%d sc:%d pkey:0x%.4x entropy:0x%.4x" 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/platform/cznic/ |
| H A D | turris-omnia-mcu-trng.c | 70 * entropy, a new interrupt won't be generated, and entropy collection in omnia_mcu_register_trng() 72 * the collect entropy command (and discarding the result). in omnia_mcu_register_trng()
|
| /linux/arch/arm64/include/asm/ |
| H A D | archrandom.h | 89 * hardware backed entropy) is closer to the idea behind this in arch_get_random_seed_longs() 115 * RNDRRS is not backed by an entropy source but by a DRBG that is in arch_get_random_seed_longs() 117 * enough to implement this API if no other entropy source exists. in arch_get_random_seed_longs()
|
| /linux/Documentation/devicetree/bindings/rng/ |
| H A D | timeriomem_rng.yaml | 24 Estimated number of bits of true entropy per 1024 bits read from the rng. 27 using this rng to automatically fill the kernel's entropy pool.
|
| /linux/include/uapi/linux/netfilter_bridge/ |
| H A D | ebt_among.h | 28 * fact that entropy of 3 last bytes of address is larger than entropy
|
| /linux/drivers/char/hw_random/ |
| H A D | cctrng.h | 9 /* hwrng quality: bits of true entropy per 1024 bits of input */ 14 /* The number of words generated in the entropy holding register (EHR)
|
| /linux/drivers/media/platform/st/sti/hva/ |
| H A D | hva-debugfs.c | 19 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() 63 seq_printf(s, " | |- %s entropy mode\n" in format_ctx() 72 v4l2_ctrl_get_menu(entropy)[ctrls->entropy_mode], in format_ctx()
|
| /linux/include/linux/ |
| H A D | timeriomem-rng.h | 17 /* bits of entropy per 1024 bits read */
|