Searched refs:seed (Results 1 - 141 of 141) sorted by relevance

/linux-4.4.14/include/linux/
H A Drandom.h41 void prandom_seed(u32 seed);
81 * prandom_seed_state - set seed for prandom_u32_state().
82 * @state: pointer to state structure to receive the seed.
83 * @seed: arbitrary 64-bit value to use as a seed.
85 static inline void prandom_seed_state(struct rnd_state *state, u64 seed) prandom_seed_state() argument
87 u32 i = (seed >> 32) ^ (seed << 10) ^ seed; prandom_seed_state()
125 static inline u32 next_pseudo_random32(u32 seed) next_pseudo_random32() argument
127 return seed * 1664525 + 1013904223; next_pseudo_random32()
H A Dcrc32.h29 * with the same initializer as crc1, and crc2 seed was 0. See
56 * seeded with the same initializer as crc1, and crc2 seed
66 #define crc32(seed, data, length) crc32_le(seed, (unsigned char const *)(data), length)
H A Dbio.h400 sector_t seed) bip_set_seed()
402 bip->bip_iter.bi_sector = seed; bip_set_seed()
399 bip_set_seed(struct bio_integrity_payload *bip, sector_t seed) bip_set_seed() argument
H A Drhashtable.h60 * @hash_rnd: Random seed to fold into hash
92 typedef u32 (*rht_hashfn_t)(const void *data, u32 len, u32 seed);
93 typedef u32 (*rht_obj_hashfn_t)(const void *data, u32 len, u32 seed);
H A Dblkdev.h1478 sector_t seed; member in struct:blk_integrity_iter
/linux-4.4.14/include/crypto/
H A Drng.h29 * @seed: Seed or reseed the random number generator. With the
32 * random number generator requires a seed for setting
33 * up a new state, the seed must be provided by the
35 * size of the seed is defined with @seedsize .
38 * @seedsize: The seed size required for a random number generator
40 * random number generators does not require a seed
43 * the seed size is set to zero.
50 int (*seed)(struct crypto_rng *tfm, const u8 *seed, unsigned int slen); member in struct:rng_alg
166 * @seed: seed input data
167 * @slen: length of the seed input data
171 * is initialized with the caller provided seed or automatically, depending
173 * caller-provided seed, the SP800-90A DRBGs perform an automatic seeding).
174 * The seed is provided as a parameter to this function call. The provided seed
175 * should have the length of the seed size defined for the random number
180 int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed,
184 * crypto_rng_seedsize() - obtain seed size of RNG
187 * The function returns the seed size for the random number generator
193 * Return: seed size for the random number generator
H A Ddrbg.h93 int (*update)(struct drbg_state *drbg, struct list_head *seed,
/linux-4.4.14/arch/ia64/lib/
H A Dcarta_random.S19 #define seed r32 define
24 pmpyshr2.u t0 = a, seed, 0
25 pmpyshr2.u t1 = a, seed, 16
/linux-4.4.14/arch/x86/tools/
H A Dinsn_sanity.c50 static unsigned int seed; /* Random seed */ variable
59 fprintf(stderr, "Usage: %s [-y|-n|-v] [-s seed[,no]] [-m max] [-i input]\n", prog); usage()
63 fprintf(stderr, "\t-s Give a random seed (and iteration number)\n"); usage()
117 /* Give a seed and iteration number */ dump_stream()
118 fprintf(fp, " $ %s -s 0x%x,%lu\n", prog, seed, nr_iter); dump_stream()
130 if (read(fd, &seed, sizeof(seed)) != sizeof(seed)) init_random_seed()
202 seed = (unsigned int)strtoul(optarg, &tmp, 0); parse_args()
208 usage("Failed to parse seed"); parse_args()
226 usage("Don't use input file (-i) with random seed (-s)"); parse_args()
228 /* Initialize random seed */ parse_args()
230 if (!set_seed) /* No seed is given */ parse_args()
232 srand(seed); parse_args()
272 fprintf(stdout, "%s: %s: decoded and checked %d %s instructions with %d errors (seed:0x%x)\n", main()
278 seed); main()
/linux-4.4.14/kernel/trace/
H A Dtrace_benchmark.c40 u64 seed; trace_do_benchmark() local
113 * as our seed to find the std. trace_do_benchmark()
121 seed = avg; trace_do_benchmark()
123 last_seed = seed; trace_do_benchmark()
124 seed = stddev; trace_do_benchmark()
127 do_div(seed, last_seed); trace_do_benchmark()
128 seed += last_seed; trace_do_benchmark()
129 do_div(seed, 2); trace_do_benchmark()
130 } while (i++ < 10 && last_seed != seed); trace_do_benchmark()
132 std = seed; trace_do_benchmark()
/linux-4.4.14/fs/ext4/
H A Dhash.c130 * The seed is an 4 longword (32 bits) "secret" which can be used to
131 * uniquify a hash. If the seed is all zero's, then some default seed
134 * A particular hash version specifies whether or not the seed is
148 /* Initialize the default seed for the hash checksum functions */ ext4fs_dirhash()
154 /* Check to see if the seed is all zero's */ ext4fs_dirhash()
155 if (hinfo->seed) { ext4fs_dirhash()
157 if (hinfo->seed[i]) { ext4fs_dirhash()
158 memcpy(buf, hinfo->seed, sizeof(buf)); ext4fs_dirhash()
H A Dext4_jbd2.h141 * This struct is a 'seed' structure for a using with your own callback
H A Dialloc.c485 hinfo.seed = sbi->s_hash_seed; find_group_orlov()
1066 /* Precompute checksum seed for inode metadata */ __ext4_new_inode()
H A Dnamei.c757 hinfo->seed = EXT4_SB(dir->i_sb)->s_hash_seed; dx_probe()
1063 hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; ext4_htree_fill_tree()
2013 fname->hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; make_indexed_dir()
H A Dext4.h1207 __le32 s_hash_seed[4]; /* HTREE hash seed */
2018 u32 *seed; member in struct:dx_hash_info
H A Dsuper.c3215 /* Precompute checksum seed for all metadata */ ext4_fill_super()
H A Dinode.c4180 /* Precompute checksum seed for inode metadata */ ext4_iget()
/linux-4.4.14/lib/
H A Drandom32.c160 static void prandom_seed_early(struct rnd_state *state, u32 seed, prandom_seed_early() argument
165 state->s1 = __seed(HWSEED() ^ LCG(seed), 2U); prandom_seed_early()
173 * @seed: seed value
306 u32 seed; member in struct:prandom_test1
316 u32 seed; member in struct:prandom_test2
431 prandom_seed_early(&state, test1[i].seed, false); prandom_state_selftest()
439 pr_warn("prandom: seed boundary self test failed\n"); prandom_state_selftest()
441 pr_info("prandom: seed boundary self test passed\n"); prandom_state_selftest()
446 prandom_seed_early(&state, test2[i].seed, false); prandom_state_selftest()
H A Drhashtable.c677 static u32 rhashtable_jhash2(const void *key, u32 length, u32 seed) rhashtable_jhash2() argument
679 return jhash2(key, length, seed); rhashtable_jhash2()
712 * u32 my_hash_fn(const void *data, u32 len, u32 seed)
H A Dcrc32.c15 * There are various incantations of crc32(). Some use a seed of 0 or ~0.
17 * seed as an argument, and doesn't xor at the end. Then individual
19 * drivers/net/smc9194.c uses seed ~0, doesn't xor with ~0.
20 * fs/jffs2 uses seed 0, doesn't xor with ~0.
21 * fs/partitions/efi.c uses seed ~0, xor's with ~0.
138 * @crc: seed value for computation. ~0 for Ethernet, sometimes 0 for other
283 * @crc: seed value for computation. ~0 for Ethernet, sometimes 0 for
/linux-4.4.14/crypto/
H A Dansi_cprng.c38 * V is our seed vector
364 * This is the cprng_registered reset method the seed value is
367 * as being present by testing the length of the seed
370 const u8 *seed, unsigned int slen) cprng_reset()
373 const u8 *key = seed + DEFAULT_BLK_SZ; cprng_reset()
382 reset_prng_context(prng, key, DEFAULT_PRNG_KSZ, seed, dt); cprng_reset()
400 const u8 *seed, unsigned int slen) fips_cprng_reset()
403 const u8 *key = seed + DEFAULT_BLK_SZ; fips_cprng_reset()
411 /* fips strictly requires seed != key */ fips_cprng_reset()
412 if (!memcmp(seed, key, DEFAULT_PRNG_KSZ)) fips_cprng_reset()
415 rc = cprng_reset(tfm, seed, slen); fips_cprng_reset()
431 .seed = cprng_reset,
445 .seed = fips_cprng_reset,
369 cprng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) cprng_reset() argument
399 fips_cprng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) fips_cprng_reset() argument
H A Drng.c40 int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) crypto_rng_reset() argument
45 if (!seed && slen) { crypto_rng_reset()
51 seed = buf; crypto_rng_reset()
54 err = crypto_rng_alg(tfm)->seed(tfm, seed, slen); crypto_rng_reset()
H A Dcrc32.c59 * Setting the seed allows arbitrary accumulators and flexible XOR policy
61 * the seed.
H A Ddrbg.c405 struct drbg_string *seed = NULL; drbg_ctr_df() local
417 list_for_each_entry(seed, seedlist, list) drbg_ctr_df()
418 inputlen += seed->len; drbg_ctr_df()
503 * 0 => initial seed from initialization
513 static int drbg_ctr_update(struct drbg_state *drbg, struct list_head *seed, drbg_ctr_update() argument
529 if (seed) { drbg_ctr_update()
530 ret = drbg_ctr_df(drbg, df_data, drbg_statelen(drbg), seed); drbg_ctr_update()
660 static int drbg_hmac_update(struct drbg_state *drbg, struct list_head *seed, drbg_hmac_update() argument
678 /* input data of seed is allowed to be NULL at this point */ drbg_hmac_update()
679 if (seed) drbg_hmac_update()
680 list_splice_tail(seed, &seedlist); drbg_hmac_update()
701 if (!seed) drbg_hmac_update()
865 static int drbg_hash_update(struct drbg_state *drbg, struct list_head *seed, drbg_hash_update() argument
875 if (!seed) drbg_hash_update()
886 list_splice_tail(seed, &datalist); drbg_hash_update()
1047 static inline int __drbg_seed(struct drbg_state *drbg, struct list_head *seed, __drbg_seed() argument
1050 int ret = drbg->d_ops->update(drbg, seed, reseed); __drbg_seed()
1104 * @reseed: 0 for initial seed process, 1 for reseeding
1144 /* Get seed from in-kernel /dev/urandom */ drbg_seed()
1152 /* Get seed from Jitter RNG */ drbg_seed()
1485 * Require frequent reseeds until the seed source is fully drbg_prepare_hrng()
1811 const u8 *seed, unsigned int slen) drbg_kcapi_seed()
1823 drbg_string_fill(&string, seed, slen); drbg_kcapi_seed()
1838 * Note: testing of failing seed source as defined in 11.3.2 is not applicable
1839 * as seed source of get_random_bytes does not fail.
1954 alg->seed = drbg_kcapi_seed; drbg_fill_array()
1810 drbg_kcapi_seed(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) drbg_kcapi_seed() argument
H A Dcrc32c_generic.c72 * Setting the seed allows arbitrary accumulators and flexible XOR policy
74 * the seed.
H A Djitterentropy-kcapi.c160 const u8 *seed, unsigned int slen) jent_kcapi_reset()
167 .seed = jent_kcapi_reset,
159 jent_kcapi_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) jent_kcapi_reset() argument
H A Dalgif_rng.c82 * seeding as they automatically seed. The X9.31 DRNG will return rng_recvmsg()
161 static int rng_setkey(void *private, const u8 *seed, unsigned int seedlen) rng_setkey() argument
167 return crypto_rng_reset(private, seed, seedlen); rng_setkey()
H A DMakefile96 obj-$(CONFIG_CRYPTO_SEED) += seed.o
H A Dseed.c444 .cra_name = "seed",
445 .cra_driver_name = "seed-generic",
479 MODULE_ALIAS_CRYPTO("seed");
H A Dtestmgr.c1478 u8 *seed; test_cprng() local
1483 seed = kmalloc(seedsize, GFP_KERNEL); test_cprng()
1484 if (!seed) { test_cprng()
1485 printk(KERN_ERR "alg: cprng: Failed to allocate seed space " test_cprng()
1493 memcpy(seed, template[i].v, template[i].vlen); test_cprng()
1494 memcpy(seed + template[i].vlen, template[i].key, test_cprng()
1496 memcpy(seed + template[i].vlen + template[i].klen, test_cprng()
1499 err = crypto_rng_reset(tfm, seed, seedsize); test_cprng()
1530 kfree(seed); test_cprng()
3086 .alg = "ecb(seed)",
H A Dtcrypt.c74 "camellia", "seed", "salsa20", "rmd128", "rmd160", "rmd256", "rmd320",
1477 ret += tcrypt_test("ecb(seed)"); do_test()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
H A Dsuper25.c96 int i, rc, seed[2]; init_lustre_lite() local
145 cfs_get_random_bytes(seed, sizeof(seed)); init_lustre_lite()
154 seed[0] ^= LNET_NIDADDR(lnet_id.nid); init_lustre_lite()
158 cfs_srand(ts.tv_sec ^ seed[0], ts.tv_nsec ^ seed[1]); init_lustre_lite()
/linux-4.4.14/block/
H A Dt10-pi.c61 pi->ref_tag = cpu_to_be32(lower_32_bits(iter->seed)); t10_pi_generate()
67 iter->seed++; t10_pi_generate()
89 lower_32_bits(iter->seed)) { t10_pi_verify()
93 iter->seed, be32_to_cpu(pi->ref_tag)); t10_pi_verify()
109 (unsigned long long)iter->seed, t10_pi_verify()
117 iter->seed++; t10_pi_verify()
H A Dbio-integrity.c238 iter.seed = bip_get_seed(bip); bio_integrity_process()
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
H A Dlustre_handles.c184 int seed[2]; class_handle_init() local
201 cfs_get_random_bytes(seed, sizeof(seed)); class_handle_init()
203 cfs_srand(ts.tv_sec ^ seed[0], ts.tv_nsec ^ seed[1]); class_handle_init()
/linux-4.4.14/arch/s390/crypto/
H A Dprng.c236 static const u8 seed[] __initconst = { prng_sha512_selftest()
313 /* initial seed */ prng_sha512_selftest()
316 seed, sizeof(seed)); prng_sha512_selftest()
318 pr_err("The prng self test seed operation for the " prng_sha512_selftest()
368 u8 seed[64]; prng_sha512_instantiate() local
391 /* generate initial seed bytestring, first 48 bytes of entropy */ prng_sha512_instantiate()
392 ret = generate_entropy(seed, 48); prng_sha512_instantiate()
396 get_tod_clock_ext(seed + 48); prng_sha512_instantiate()
398 /* initial seed of the ppno drng */ prng_sha512_instantiate()
401 seed, sizeof(seed)); prng_sha512_instantiate()
442 u8 seed[32]; prng_sha512_reseed() local
445 ret = generate_entropy(seed, sizeof(seed)); prng_sha512_reseed()
446 if (ret != sizeof(seed)) prng_sha512_reseed()
452 seed, sizeof(seed)); prng_sha512_reseed()
H A Dcrypt_s390.h375 * @seed: address of seed data
376 * @seed_len: size of seed data in bytes
386 const u8 *seed, long seed_len) crypt_s390_ppno()
392 register const u8 *__seed asm("4") = seed; /* buf with seed data */ crypt_s390_ppno()
393 register long __seed_len asm("5") = seed_len; /* bytes in seed buf */ crypt_s390_ppno()
384 crypt_s390_ppno(long func, void *param, u8 *dest, long dest_len, const u8 *seed, long seed_len) crypt_s390_ppno() argument
/linux-4.4.14/drivers/base/power/
H A Dtrace.c131 * seed and final size parameter.
133 static unsigned int hash_string(unsigned int seed, const char *data, unsigned int mod) hash_string() argument
137 seed = (seed << 16) + (seed << 6) - seed + c; hash_string()
139 return seed % mod; hash_string()
/linux-4.4.14/fs/nilfs2/
H A Dsegbuf.c183 nilfs_segbuf_fill_in_segsum_crc(struct nilfs_segment_buffer *segbuf, u32 seed) nilfs_segbuf_fill_in_segsum_crc() argument
195 crc = crc32_le(seed, nilfs_segbuf_fill_in_segsum_crc()
211 u32 seed) nilfs_segbuf_fill_in_data_crc()
221 crc = crc32_le(seed, nilfs_segbuf_fill_in_data_crc()
239 u32 seed) nilfs_segbuf_fill_in_super_root_crc()
248 crc = crc32_le(seed, nilfs_segbuf_fill_in_super_root_crc()
324 * @seed: checksum seed value
326 void nilfs_add_checksums_on_logs(struct list_head *logs, u32 seed) nilfs_add_checksums_on_logs() argument
332 nilfs_segbuf_fill_in_super_root_crc(segbuf, seed); list_for_each_entry()
333 nilfs_segbuf_fill_in_segsum_crc(segbuf, seed); list_for_each_entry()
334 nilfs_segbuf_fill_in_data_crc(segbuf, seed); list_for_each_entry()
210 nilfs_segbuf_fill_in_data_crc(struct nilfs_segment_buffer *segbuf, u32 seed) nilfs_segbuf_fill_in_data_crc() argument
238 nilfs_segbuf_fill_in_super_root_crc(struct nilfs_segment_buffer *segbuf, u32 seed) nilfs_segbuf_fill_in_super_root_crc() argument
H A Dsegbuf.h177 void nilfs_add_checksums_on_logs(struct list_head *logs, u32 seed);
H A Dthe_nilfs.h100 * @ns_crc_seed: seed value of CRC32 calculation
/linux-4.4.14/drivers/hid/
H A Dhid-penmount.c7 * PenMount Touch Solutions <penmount <at> seed.net.tw>
/linux-4.4.14/drivers/nvdimm/
H A Dclaim.c81 struct device *seed = NULL; is_idle() local
84 seed = nd_region->btt_seed; is_idle()
86 seed = nd_region->pfn_seed; is_idle()
88 if (seed == dev || ndns || dev->driver) is_idle()
H A Dnamespace_devs.c929 * allocation, this is not the seed device for the __size_store()
/linux-4.4.14/drivers/mtd/tests/
H A Dnandbiterrs.c62 static unsigned seed; variable
63 module_param(seed, uint, S_IRUGO);
64 MODULE_PARM_DESC(seed, "Random seed");
175 if (rbuffer[i] != hash(i+seed)) { verify_page()
177 i, hash(i+seed), rbuffer[i]); verify_page()
222 wbuffer[i] = hash(i+seed); incremental_errors_test()
285 wbuffer[i] = hash(i+seed); overwrite_test()
/linux-4.4.14/tools/testing/selftests/powerpc/dscr/
H A Ddscr.h123 double uniform_deviate(int seed) uniform_deviate() argument
125 return seed * (1.0 / (RAND_MAX + 1.0)); uniform_deviate()
/linux-4.4.14/arch/sparc/crypto/
H A Dcrc32c_glue.c26 * Setting the seed allows arbitrary accumulators and flexible XOR policy
28 * the seed.
/linux-4.4.14/arch/arc/include/asm/
H A Dstacktrace.h18 * @regs: pt_regs used to seed the unwinder {SP, FP, BLINK, PC}
H A Dirqflags-arcv2.h37 /* seed value for status register */
/linux-4.4.14/fs/f2fs/
H A Dhash.c85 /* Initialize the default seed for the hash checksum functions */ f2fs_dentry_hash()
/linux-4.4.14/net/netfilter/
H A Dnft_hash.c45 static inline u32 nft_hash_key(const void *data, u32 len, u32 seed) nft_hash_key() argument
49 return jhash(arg->key, len, seed); nft_hash_key()
52 static inline u32 nft_hash_obj(const void *data, u32 len, u32 seed) nft_hash_obj() argument
56 return jhash(nft_set_ext_key(&he->ext), len, seed); nft_hash_obj()
H A Dxt_hashlimit.c105 u_int32_t rnd; /* random seed for hash */
/linux-4.4.14/scripts/kconfig/
H A Dconf.c521 unsigned int seed; main() local
525 * Use microseconds derived seed, main()
529 seed = (unsigned int)((now.tv_sec + 1) * (now.tv_usec + 1)); main()
536 seed = tmp; main()
539 fprintf( stderr, "KCONFIG_SEED=0x%X\n", seed ); main()
540 srand(seed); main()
609 _("*** Can't read seed configuration \"%s\"!\n"), main()
/linux-4.4.14/net/ceph/
H A Dosdmap.c384 if (l.seed < r.seed) pgid_cmp()
386 if (l.seed > r.seed) pgid_cmp()
433 pgid.pool, pgid.seed, pg); __lookup_pg_mapping()
445 dout("__remove_pg_mapping %lld.%x %p\n", pgid.pool, pgid.seed, __remove_pg_mapping()
451 dout("__remove_pg_mapping %lld.%x dne\n", pgid.pool, pgid.seed); __remove_pg_mapping()
1465 pg_out->seed = ceph_str_hash(pi->object_hash, oid->name, ceph_oloc_oid_to_pg()
1469 pg_out->pool, pg_out->seed); ceph_oloc_oid_to_pg()
1593 * Pick the primary. Feed both the seed (for the pg) and the apply_primary_affinity()
1649 pgid.seed = ceph_stable_mod(pgid.seed, pool->pg_num, apply_temps()
1710 /* hash pool id and seed so that pool PGs do not overlap */ ceph_calc_pg_acting()
1712 ceph_stable_mod(pgid.seed, pool->pgp_num, ceph_calc_pg_acting()
1722 pps = ceph_stable_mod(pgid.seed, pool->pgp_num, ceph_calc_pg_acting()
H A Ddebugfs.c92 pg->pgid.seed); osdmap_show()
103 pg->pgid.seed, pg->primary_temp.osd); osdmap_show()
157 req->r_pgid.pool, req->r_pgid.seed); osdc_show()
H A Dosd_client.c1456 req->r_tid, pgid.pool, pgid.seed, o, __map_request()
1504 (unsigned long long)req->r_pgid.pool, req->r_pgid.seed); __send_request()
1512 ceph_encode_32(&p, req->r_pgid.seed); __send_request()
/linux-4.4.14/drivers/gpu/drm/
H A Ddrm_hashtab.c141 unsigned long seed, int bits, int shift, drm_ht_just_insert_please()
148 unshifted_key = hash_long(seed, bits); drm_ht_just_insert_please()
140 drm_ht_just_insert_please(struct drm_open_hash *ht, struct drm_hash_item *item, unsigned long seed, int bits, int shift, unsigned long add) drm_ht_just_insert_please() argument
/linux-4.4.14/include/linux/ceph/
H A Dosdmap.h24 uint32_t seed; member in struct:ceph_pg
189 pgid->seed = ceph_decode_32(p); ceph_decode_pgid()
H A Drados.h61 __le16 ps; /* placement seed */
/linux-4.4.14/drivers/md/
H A Ddm-crypt.c100 u8 *seed; member in struct:iv_lmk_private
221 * optionally extra IV seed.
227 * version 3: the same as version 2 with additional IV seed
228 * (it uses 65 keys, last key is used as IV seed)
476 kzfree(lmk->seed); crypt_iv_lmk_dtr()
477 lmk->seed = NULL; crypt_iv_lmk_dtr()
491 /* No seed in LMK version 2 */ crypt_iv_lmk_ctr()
493 lmk->seed = NULL; crypt_iv_lmk_ctr()
497 lmk->seed = kzalloc(LMK_SEED_SIZE, GFP_KERNEL); crypt_iv_lmk_ctr()
498 if (!lmk->seed) { crypt_iv_lmk_ctr()
500 ti->error = "Error kmallocing seed storage in LMK"; crypt_iv_lmk_ctr()
512 /* LMK seed is on the position of LMK_KEYS + 1 key */ crypt_iv_lmk_init()
513 if (lmk->seed) crypt_iv_lmk_init()
514 memcpy(lmk->seed, cc->key + (cc->tfms_count * subkey_size), crypt_iv_lmk_init()
524 if (lmk->seed) crypt_iv_lmk_wipe()
525 memset(lmk->seed, 0, LMK_SEED_SIZE); crypt_iv_lmk_wipe()
547 if (lmk->seed) { crypt_iv_lmk_one()
548 r = crypto_shash_update(desc, lmk->seed, LMK_SEED_SIZE); crypt_iv_lmk_one()
649 ti->error = "Error allocating seed storage in TCW"; crypt_iv_tcw_ctr()
1676 * If present (version 3), last key is used as IV seed. crypt_ctr_cipher()
1677 * All keys (including IV seed) are always the same size. crypt_ctr_cipher()
/linux-4.4.14/include/drm/
H A Ddrm_hashtab.h55 unsigned long seed, int bits, int shift,
/linux-4.4.14/net/ipv6/
H A Doutput_core.c38 * seed to limit information leakage.
/linux-4.4.14/arch/x86/crypto/
H A Dcrc32c-intel_glue.c110 * Setting the seed allows arbitrary accumulators and flexible XOR policy
112 * the seed.
/linux-4.4.14/arch/arm64/crypto/
H A Dcrc32-arm64.c111 * Setting the seed allows arbitrary accumulators and flexible XOR policy
113 * the seed.
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/
H A Di40evf_main.c1217 * @seed: RSS hash seed
1219 static void i40evf_configure_rss_aq(struct i40e_vsi *vsi, const u8 *seed) i40evf_configure_rss_aq() argument
1238 memcpy(&rss_key, seed, sizeof(rss_key)); i40evf_configure_rss_aq()
1269 * @seed: RSS hash seed
1272 const u8 *seed) i40evf_configure_rss_reg()
1275 u32 *seed_dw = (u32 *)seed; i40evf_configure_rss_reg()
1280 /* Fill out hash function seed */ i40evf_configure_rss_reg()
1305 u8 seed[I40EVF_HKEY_ARRAY_SIZE]; i40evf_configure_rss() local
1308 netdev_rss_key_fill((void *)seed, I40EVF_HKEY_ARRAY_SIZE); i40evf_configure_rss()
1316 i40evf_configure_rss_aq(&adapter->vsi, seed); i40evf_configure_rss()
1318 i40evf_configure_rss_reg(adapter, seed); i40evf_configure_rss()
1271 i40evf_configure_rss_reg(struct i40evf_adapter *adapter, const u8 *seed) i40evf_configure_rss_reg() argument
/linux-4.4.14/drivers/char/
H A Drandom.c173 * random_seed=/var/run/random-seed
174 * # Carry a random seed from start-up to start-up
187 * # Carry a random seed from shut-down to start-up
189 * echo "Saving random seed..."
190 * random_seed=/var/run/random-seed
203 * make sure that /etc/random-seed is different for every start-up,
903 unsigned long seed; add_interrupt_randomness() local
932 * If we have architectural seed generator, produce a seed and add_interrupt_randomness()
934 * architectural seed generator dominate the input from the add_interrupt_randomness()
937 if (arch_get_random_seed_long(&seed)) { add_interrupt_randomness()
938 __mix_pool_bytes(r, &seed, sizeof(seed)); add_interrupt_randomness()
/linux-4.4.14/drivers/staging/lustre/include/linux/libcfs/
H A Dlibcfs.h114 /* seed the generator */
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/
H A Dprng.c87 * cfs_srand - sets the initial seed
/linux-4.4.14/arch/alpha/lib/
H A Dev6-memcpy.S201 ldq_u $3, 0($17) # L : seed (rotating load) of 8 bytes
/linux-4.4.14/arch/arc/kernel/
H A Dprocess.c174 /* bogus seed values for debugging */ start_thread()
/linux-4.4.14/arch/arc/mm/
H A Dinit.c121 * seed the bootmem allocator after any DT memory node parsing or setup_arch_memory()
/linux-4.4.14/net/dccp/
H A Dfeat.h104 * Sysctls to seed defaults for feature negotiation
/linux-4.4.14/fs/btrfs/
H A Ddisk-io.h121 u32 btrfs_csum_data(char *data, u32 seed, size_t len);
H A Dvolumes.c805 if (fs_devices->seed) { btrfs_close_extra_devices()
806 fs_devices = fs_devices->seed; btrfs_close_extra_devices()
867 seed_devices = fs_devices->seed; btrfs_close_devices()
868 fs_devices->seed = NULL; btrfs_close_devices()
874 seed_devices = fs_devices->seed; btrfs_close_devices()
1867 if (fs_devices->seed == cur_devices) {
1868 fs_devices->seed = cur_devices->seed;
1871 fs_devices = fs_devices->seed;
1873 cur_devices->seed = NULL;
1961 * in case of fs with no seed, srcdev->fs_devices will point btrfs_rm_dev_replace_remove_srcdev()
1963 * a seed dev it will point to the seed's local fs_devices. In short btrfs_rm_dev_replace_remove_srcdev()
1992 * unless fs_devices is seed fs, num_devices shouldn't go btrfs_rm_dev_replace_free_srcdev()
2003 if (tmp_fs_devices->seed == fs_devices) { btrfs_rm_dev_replace_free_srcdev()
2004 tmp_fs_devices->seed = fs_devices->seed; btrfs_rm_dev_replace_free_srcdev()
2007 tmp_fs_devices = tmp_fs_devices->seed; btrfs_rm_dev_replace_free_srcdev()
2009 fs_devices->seed = NULL; btrfs_rm_dev_replace_free_srcdev()
2152 fs_devices->seed = seed_devices; btrfs_prepare_sprout()
2167 * strore the expected generation for seed devices in device items.
2466 btrfs_err(fs_info, "the filesystem is a seed filesystem!"); btrfs_init_dev_replace_tgtdev()
4890 * bootstrap process of adding storage to a seed btrfs.
6117 cur_devices = cur_devices->seed; btrfs_find_device()
6315 fs_devices = root->fs_info->fs_devices->seed; open_seed_devices()
6320 fs_devices = fs_devices->seed; open_seed_devices()
6356 fs_devices->seed = root->fs_info->fs_devices->seed; open_seed_devices()
6357 root->fs_info->fs_devices->seed = fs_devices; open_seed_devices()
6627 fs_devices = fs_devices->seed; btrfs_init_devices_late()
6948 fs_devices = fs_devices->seed; btrfs_set_fs_info_ptr()
6957 fs_devices = fs_devices->seed; btrfs_reset_fs_info_ptr()
H A Dvolumes.h247 struct btrfs_fs_devices *seed; member in struct:btrfs_fs_devices
H A Dsysfs.c725 * And parent can be specified for seed device
H A Ddisk-io.c263 u32 btrfs_csum_data(char *data, u32 seed, size_t len) btrfs_csum_data() argument
265 return btrfs_crc32c(seed, data, len); btrfs_csum_data()
528 fs_devices = fs_devices->seed; check_tree_block_fsid()
H A Dsuper.c2159 cur_devices = cur_devices->seed;
/linux-4.4.14/kernel/
H A Daudit_tree.c711 struct audit_tree *seed = rule->tree, *tree; audit_add_tree_rule() local
718 if (!strcmp(seed->pathname, tree->pathname)) { audit_add_tree_rule()
719 put_tree(seed); audit_add_tree_rule()
725 tree = seed; audit_add_tree_rule()
/linux-4.4.14/include/net/
H A Ddn_dev.h130 __u8 seed[8]; member in struct:endnode_hello_message
/linux-4.4.14/tools/testing/selftests/vm/
H A Duserfaultfd.c117 unsigned int seed; locking_thread() local
121 seed = (unsigned int) time(NULL) - bounces; locking_thread()
123 seed += cpu; locking_thread()
126 if (initstate_r(seed, randstate, sizeof(randstate), &rand)) locking_thread()
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
H A Drouter.c238 __u32 lnd_type, seed[2]; lnet_shuffle_seed() local
246 cfs_get_random_bytes(seed, sizeof(seed)); lnet_shuffle_seed()
255 seed[0] ^= (LNET_NIDADDR(ni->ni_nid) | lnd_type); lnet_shuffle_seed()
259 cfs_srand(ts.tv_sec ^ seed[0], ts.tv_nsec ^ seed[1]); lnet_shuffle_seed()
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_mbx.c563 * @seed: seed value for CRC
567 * whatever value is stored in the seed variable. Note that this
568 * value inverts the local seed and the result in order to capture all
571 static u16 fm10k_crc_16b(const u32 *data, u16 seed, u16 len) fm10k_crc_16b() argument
573 u32 result = seed; fm10k_crc_16b()
595 * @seed: seed value for CRC
600 u16 len, u16 seed) fm10k_fifo_crc()
609 seed = fm10k_crc_16b(data, seed, offset * 2); fm10k_fifo_crc()
615 return fm10k_crc_16b(data, seed, len * 2); fm10k_fifo_crc()
625 * previous CRC as the seed for this update. The result is stored in
599 fm10k_fifo_crc(struct fm10k_mbx_fifo *fifo, u16 offset, u16 len, u16 seed) fm10k_fifo_crc() argument
/linux-4.4.14/drivers/scsi/
H A Dsd.h163 * uses 32-byte commands to seed the latter
/linux-4.4.14/drivers/scsi/esas2r/
H A Desas2r_flash.c97 static u8 esas2r_calc_byte_xor_cksum(u8 *addr, u32 len, u8 seed) esas2r_calc_byte_xor_cksum() argument
99 u32 cksum = seed; esas2r_calc_byte_xor_cksum()
122 static u8 esas2r_calc_byte_cksum(void *addr, u32 len, u8 seed) esas2r_calc_byte_cksum() argument
125 u8 cksum = seed; esas2r_calc_byte_cksum()
/linux-4.4.14/drivers/net/ethernet/apple/
H A Dbmac.h124 #define RSEED 0x540 /* Transmit random number seed */
/linux-4.4.14/drivers/net/ethernet/broadcom/
H A Dcnic_if.h284 u32 seed; member in struct:cnic_sock
H A Dcnic.c3495 l4kwqe3->seed = csk->seed; cnic_cm_conn_req()
3621 csk1->seed = DEF_SEED; cnic_cm_create()
4166 u32 seed; cnic_cm_init_bnx2_hw() local
4168 seed = prandom_u32(); cnic_cm_init_bnx2_hw()
4169 cnic_ctx_wr(dev, 45, 0, seed); cnic_cm_init_bnx2_hw()
H A Dcnic_defs.h366 u32 seed; member in struct:l4_kwq_connect_req3
H A Dtg3.c10198 /* Initialize MAC address and backoff seed. */ tg3_reset_hw()
/linux-4.4.14/arch/ia64/include/uapi/asm/
H A Dperfmon.h96 unsigned long reg_random_seed; /* seed value when randomization is used */
/linux-4.4.14/fs/logfs/
H A Ddir.c98 static u32 hash_32(const char *s, int len, u32 seed) hash_32() argument
100 u32 hash = seed; hash_32()
/linux-4.4.14/net/sunrpc/auth_gss/
H A Dgss_krb5_mech.c368 set_cdata(u8 cdata[GSS_KRB5_K5CLENGTH], u32 usage, u8 seed) set_cdata() argument
374 cdata[4] = seed; set_cdata()
/linux-4.4.14/arch/tile/include/hv/
H A Dnetio_intf.h402 /** The checksum with which to seed the checksum generator. */
1822 * requirements. Note that the seed is given in host byte order (little-
1825 * before use as the seed.
1838 * @param[in] seed Initial value of the running checksum before any of the
1844 int location, uint16_t seed) NETIO_PKT_DO_EGRESS_CSUM_MM()
1849 mmd->csum_seed = seed; NETIO_PKT_DO_EGRESS_CSUM_MM()
1871 * requirements. Note that the seed is given in host byte order (little-
1874 * before use as the seed.
1886 * @param[in] seed Initial value of the running checksum before any of the
1891 int location, uint16_t seed) NETIO_PKT_DO_EGRESS_CSUM()
1895 NETIO_PKT_DO_EGRESS_CSUM_MM(mmd, pkt, start, length, location, seed); NETIO_PKT_DO_EGRESS_CSUM()
1842 NETIO_PKT_DO_EGRESS_CSUM_MM(netio_pkt_minimal_metadata_t* mmd, netio_pkt_t* pkt, int start, int length, int location, uint16_t seed) NETIO_PKT_DO_EGRESS_CSUM_MM() argument
1890 NETIO_PKT_DO_EGRESS_CSUM(netio_pkt_t* pkt, int start, int length, int location, uint16_t seed) NETIO_PKT_DO_EGRESS_CSUM() argument
H A Ddrv_xgbe_intf.h234 * @param csum1 Checksum seed.
/linux-4.4.14/drivers/net/wireless/
H A Dairo.c964 emmh32_context seed; // Context - the seed member in struct:__anon8035
1319 /* Give key to mic seed */ age_mic_context()
1320 emmh32_setseed(&cur->seed, key, key_len, tfm); age_mic_context()
1323 /* micinit - Initialize mic seed */
1418 emmh32_init(&context->seed); // Mic the packet encapsulate()
1419 emmh32_update(&context->seed,frame->da,ETH_ALEN * 2); // DA,SA encapsulate()
1420 emmh32_update(&context->seed,(u8*)&mic->typelen,10); // Type/Length and Snap encapsulate()
1421 emmh32_update(&context->seed,(u8*)&mic->seq,sizeof(mic->seq)); //SEQ encapsulate()
1422 emmh32_update(&context->seed,(u8*)(frame + 1),payLen); //payload encapsulate()
1423 emmh32_final(&context->seed, (u8*)&mic->mic); encapsulate()
1506 emmh32_init(&context->seed); decapsulate()
1507 emmh32_update(&context->seed, eth->da, ETH_ALEN*2); decapsulate()
1508 emmh32_update(&context->seed, (u8 *)&mic->typelen, sizeof(mic->typelen)+sizeof(mic->u.snap)); decapsulate()
1509 emmh32_update(&context->seed, (u8 *)&mic->seq,sizeof(mic->seq)); decapsulate()
1510 emmh32_update(&context->seed, (u8 *)(eth + 1),payLen); decapsulate()
1512 emmh32_final(&context->seed, digest); decapsulate()
/linux-4.4.14/drivers/misc/sgi-xp/
H A Dxpc_partition.c70 unsigned long rp_pa = nasid; /* seed with nasid */ xpc_get_rsvd_page_pa()
/linux-4.4.14/drivers/net/ethernet/sun/
H A Dsunbmac.h108 #define BMAC_RSEED 0x250UL /* Transmit random number seed */
H A Dsunhme.h177 #define BMAC_RSEED 0x250UL /* Transmit random number seed */
H A Dsungem.h599 * RNG seed inside GEM for the CSMA/CD backoff algorithm. It is
H A Dcassini.h1630 #define REG_MAC_RANDOM_SEED 0x61CC /* random number seed reg.
1632 seed for the random number
H A Dsunhme.c1511 /* Load up the MAC address and random seed. */ happy_meal_init()
H A Dniu.c4982 u64 seed = jiffies_64; niu_init_rx_channels() local
4987 nw64(RED_RAN_INIT, RED_RAN_INIT_OPMODE | (seed & RED_RAN_INIT_VAL)); niu_init_rx_channels()
/linux-4.4.14/drivers/net/fddi/skfp/
H A Dsmt.c100 static void smt_fill_echo(struct s_smc *smc, struct smt_p_echo *echo, u_long seed,
1531 static void smt_fill_echo(struct s_smc *smc, struct smt_p_echo *echo, u_long seed, smt_fill_echo() argument
1540 *p++ = (u_char) seed ; smt_fill_echo()
1541 seed += 13 ; smt_fill_echo()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_fw_defs.h286 /*The CRC32 seed, that is used for the hash(reduction) multicast address */
/linux-4.4.14/drivers/staging/xgifb/
H A Dvb_init.c387 static void XGI_SetDRAM_Helper(unsigned long P3d4, u8 seed, u8 temp2, u8 reg, XGI_SetDRAM_Helper() argument
393 temp2 |= (((seed >> (2 * j)) & 0x03) << shift_factor); XGI_SetDRAM_Helper()
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
H A Dqed_l2.c1077 static inline u32 qed_crc32c_le(u32 seed, qed_crc32c_le() argument
1084 return qed_calc_crc32c((u8 *)packet_buf, 8, seed, 0); qed_crc32c_le()
/linux-4.4.14/net/ipv4/
H A Dtcp_metrics.c532 * to seed the RTO for later data packets because SYN packets are tcp_init_metrics()
533 * small. Use the per-dst cached values to seed the RTO but keep tcp_init_metrics()
/linux-4.4.14/drivers/staging/rtl8192e/
H A Drtllib_crypt_tkip.c249 /* Make temporary area overlap WEP seed so that the final copy can be tkip_mixing_phase2()
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_crypt_tkip.c260 * Make temporary area overlap WEP seed so that the final copy can be tkip_mixing_phase2()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
H A Di40e_main.c7781 * @seed: RSS hash seed
7783 static int i40e_config_rss_aq(struct i40e_vsi *vsi, const u8 *seed) i40e_config_rss_aq() argument
7793 memcpy(&rss_key, seed, sizeof(rss_key)); i40e_config_rss_aq()
7834 u8 seed[I40E_HKEY_ARRAY_SIZE]; i40e_vsi_config_rss() local
7837 netdev_rss_key_fill((void *)seed, I40E_HKEY_ARRAY_SIZE); i40e_vsi_config_rss()
7841 return i40e_config_rss_aq(vsi, seed); i40e_vsi_config_rss()
7849 * @seed: RSS hash seed
7851 static int i40e_config_rss_reg(struct i40e_pf *pf, const u8 *seed) i40e_config_rss_reg() argument
7855 u32 *seed_dw = (u32 *)seed; i40e_config_rss_reg()
7860 /* Fill out hash function seed */ i40e_config_rss_reg()
7886 u8 seed[I40E_HKEY_ARRAY_SIZE]; i40e_config_rss() local
7891 netdev_rss_key_fill((void *)seed, I40E_HKEY_ARRAY_SIZE); i40e_config_rss()
7911 return i40e_config_rss_aq(pf->vsi[pf->lan_vsi], seed); i40e_config_rss()
7913 return i40e_config_rss_reg(pf, seed); i40e_config_rss()
/linux-4.4.14/drivers/net/ethernet/xilinx/
H A Dxilinx_axienet.h373 u32 app2; /* TX csum seed */
H A Dll_temac_main.c703 cur_p->app2 = 0; /* initial checksum seed */ temac_start_xmit()
/linux-4.4.14/arch/tile/include/arch/
H A Dmpipe_shm.h352 * Checksum seed written by classification program. Overwritten with
/linux-4.4.14/net/wireless/
H A Dlib80211_crypt_tkip.c266 /* Make temporary area overlap WEP seed so that the final copy can be tkip_mixing_phase2()
/linux-4.4.14/include/scsi/
H A Dosd_initiator.h378 u8 seed[OSD_CRYPTO_SEED_SIZE]);/* NI */
/linux-4.4.14/net/mac80211/
H A Dsta_info.h596 u32 sta_addr_hash(const void *key, u32 length, u32 seed);
H A Dsta_info.c1007 u32 sta_addr_hash(const void *key, u32 length, u32 seed) sta_addr_hash() argument
1009 return jhash(key, ETH_ALEN, seed); sta_addr_hash()
/linux-4.4.14/fs/ocfs2/
H A Docfs2_fs.h657 __le32 s_dx_seed[3]; /* seed[0-2] for dx dir hash.
658 * s_uuid_hash serves as seed[3]. */
/linux-4.4.14/arch/ia64/kernel/
H A Dperfmon.c253 unsigned long seed; /* seed for random-number generator */ member in struct:__anon1710
2718 unsigned long new_seed, old_seed = reg->seed, mask = reg->mask; pfm_new_counter_value()
2719 extern unsigned long carta_random32 (unsigned long seed); pfm_new_counter_value()
2727 reg->seed = new_seed; pfm_new_counter_value()
3160 ctx->ctx_pmds[cnum].seed = req->reg_random_seed; pfm_write_pmds()
3213 "long_reset=0x%lx notify=%c seed=0x%lx mask=0x%lx used_pmds=0x%lx reset_pmds=0x%lx reload_pmds=0x%lx all_pmds=0x%lx ovfl_regs=0x%lx\n", pfm_write_pmds()
3223 ctx->ctx_pmds[cnum].seed, pfm_write_pmds()
/linux-4.4.14/drivers/scsi/qla4xxx/
H A Dql4_init.c695 * use as a seed for a random number generator in MB7 prior to qla4xxx_start_firmware_from_flash()
/linux-4.4.14/drivers/s390/crypto/
H A Dzcrypt_api.c59 MODULE_PARM_DESC(hwrng_seed, "Turn on/off hwrng auto seed, default is 1 (on).");
/linux-4.4.14/drivers/crypto/caam/
H A Dregs.h339 u32 rtsdctl; /* seed control register */
/linux-4.4.14/drivers/gpu/drm/msm/hdmi/
H A Dhdmi_hdcp.c504 * Setup seed values for random number An. hdmi_hdcp_auth_prepare()
/linux-4.4.14/net/decnet/
H A Ddn_dev.c853 memset(msg->seed, 0, 8); dn_send_endnode_hello()
/linux-4.4.14/net/sched/
H A Dsch_netem.c166 * Use entropy source for initial seed.
/linux-4.4.14/net/sctp/
H A Doutput.c541 /* no need to seed pseudo checksum for SCTP */ sctp_packet_transmit()
/linux-4.4.14/fs/ext2/
H A Dext2.h478 __u32 s_hash_seed[4]; /* HTREE hash seed */
/linux-4.4.14/drivers/nvme/host/
H A Dpci.c512 * nvme_dif_remap - remaps ref tags to bip seed and physical lba
517 * physical LBA on writes, and back to the original seed on reads.
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
H A Dreg.h1434 #define AR5K_DIAG_SW_EN_SCRAM_SEED_5210 0x00000400 /* Enable fixed scrambler seed */
1440 #define AR5K_DIAG_SW_SCRAM_SEED_M 0x0001fc00 /* Scrambler seed mask */
/linux-4.4.14/fs/jbd2/
H A Djournal.c1566 /* Precompute checksum seed for all metadata */ journal_get_superblock()
1874 /* Precompute checksum seed for all metadata */ jbd2_journal_set_features()
/linux-4.4.14/net/netlink/
H A Daf_netlink.c3301 static inline u32 netlink_hash(const void *data, u32 len, u32 seed) netlink_hash() argument
3307 return jhash2((u32 *)&arg, netlink_compare_arg_len / sizeof(u32), seed); netlink_hash()
/linux-4.4.14/drivers/video/fbdev/
H A Dsh_mobile_hdmi.c168 #define HDMI_AN_SEED 0xCC /* An seed */
/linux-4.4.14/drivers/scsi/osd/
H A Dosd_initiator.c710 u8 seed[OSD_CRYPTO_SEED_SIZE]); */
/linux-4.4.14/drivers/input/
H A Dinput.c426 * to 'seed' initial state of a switch or initial position of absolute
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
H A Dbe_main.c3663 * Generate a seed MAC address from the PF MAC Address using jhash.
3664 * MAC Address for VFs are assigned incrementally starting from the seed.
/linux-4.4.14/include/rdma/
H A Dib_verbs.h607 * @bg: seed of guard computation.
/linux-4.4.14/drivers/net/ethernet/nvidia/
H A Dforcedeth.c2101 /* Known Good seed sets */
2129 /* Setup seed for free running LFSR */ nv_gear_backoff_reseed()
/linux-4.4.14/drivers/net/ethernet/realtek/
H A Dr8169.c3698 /* uc same-seed solution */ rtl8411_hw_phy_config()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
H A Dmain.c3382 /* seed wake_override with BRCMS_WAKE_OVERRIDE_MACSUSPEND since the mac brcms_b_init()
/linux-4.4.14/drivers/net/ethernet/sfc/
H A Dmcdi_pcol.h2110 * Set the 16byte seed for the MC pseudo-random generator.

Completed in 4882 milliseconds