/linux-4.1.27/include/linux/ |
H A D | random.h | 30 void prandom_seed(u32 seed); 66 * prandom_seed_state - set seed for prandom_u32_state(). 67 * @state: pointer to state structure to receive the seed. 68 * @seed: arbitrary 64-bit value to use as a seed. 70 static inline void prandom_seed_state(struct rnd_state *state, u64 seed) prandom_seed_state() argument 72 u32 i = (seed >> 32) ^ (seed << 10) ^ seed; prandom_seed_state() 110 static inline u32 next_pseudo_random32(u32 seed) next_pseudo_random32() argument 112 return seed * 1664525 + 1013904223; next_pseudo_random32()
|
H A D | crc32.h | 29 * 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 D | bio.h | 350 sector_t seed) bip_set_seed() 352 bip->bip_iter.bi_sector = seed; bip_set_seed() 349 bip_set_seed(struct bio_integrity_payload *bip, sector_t seed) bip_set_seed() argument
|
H A D | crypto.h | 438 * number generator requires a seed for setting up a new state, 439 * the seed must be provided by the consumer while invoking this 440 * function. The required size of the seed is defined with 442 * @seedsize: The seed size required for a random number generator 444 * generators like the SP800-90A DRBG does not require a seed as the 446 * the consumer. In this case, the seed size is set to zero. 451 int (*rng_reset)(struct crypto_rng *tfm, u8 *seed, unsigned int slen); 661 int (*rng_reset)(struct crypto_rng *tfm, u8 *seed, unsigned int slen);
|
H A D | rhashtable.h | 59 * @hash_rnd: Random seed to fold into hash 91 typedef u32 (*rht_hashfn_t)(const void *data, u32 len, u32 seed); 92 typedef u32 (*rht_obj_hashfn_t)(const void *data, u32 len, u32 seed);
|
H A D | blkdev.h | 1468 sector_t seed; member in struct:blk_integrity_iter
|
/linux-4.1.27/include/crypto/ |
H A D | rng.h | 117 * @seed: seed input data 118 * @slen: length of the seed input data 122 * is initialized with the caller provided seed or automatically, depending 124 * caller-provided seed, the SP800-90A DRBGs perform an automatic seeding). 125 * The seed is provided as a parameter to this function call. The provided seed 126 * should have the length of the seed size defined for the random number 132 u8 *seed, unsigned int slen) crypto_rng_reset() 134 return crypto_rng_crt(tfm)->rng_reset(tfm, seed, slen); crypto_rng_reset() 138 * crypto_rng_seedsize() - obtain seed size of RNG 141 * The function returns the seed size for the random number generator 147 * Return: seed size for the random number generator 131 crypto_rng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) crypto_rng_reset() argument
|
H A D | drbg.h | 92 int (*update)(struct drbg_state *drbg, struct list_head *seed,
|
/linux-4.1.27/arch/ia64/lib/ |
H A D | carta_random.S | 19 #define seed r32 define 24 pmpyshr2.u t0 = a, seed, 0 25 pmpyshr2.u t1 = a, seed, 16
|
/linux-4.1.27/arch/x86/tools/ |
H A D | insn_sanity.c | 50 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.1.27/kernel/trace/ |
H A D | trace_benchmark.c | 40 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.1.27/fs/ext3/ |
H A D | hash.c | 129 * The seed is an 4 longword (32 bits) "secret" which can be used to 130 * uniquify a hash. If the seed is all zero's, then some default seed 133 * A particular hash version specifies whether or not the seed is 147 /* Initialize the default seed for the hash checksum functions */ ext3fs_dirhash() 153 /* Check to see if the seed is all zero's */ ext3fs_dirhash() 154 if (hinfo->seed) { ext3fs_dirhash() 156 if (hinfo->seed[i]) ext3fs_dirhash() 160 memcpy(buf, hinfo->seed, sizeof(buf)); ext3fs_dirhash()
|
H A D | ext3.h | 469 __le32 s_hash_seed[4]; /* HTREE hash seed */ 926 u32 *seed; member in struct:dx_hash_info
|
H A D | namei.c | 358 hinfo->seed = EXT3_SB(dir->i_sb)->s_hash_seed; dx_probe() 629 hinfo.seed = EXT3_SB(dir->i_sb)->s_hash_seed; ext3_htree_fill_tree() 1401 hinfo.seed = EXT3_SB(dir->i_sb)->s_hash_seed; make_indexed_dir()
|
/linux-4.1.27/fs/ext4/ |
H A D | hash.c | 130 * 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 D | ext4_jbd2.h | 143 * This struct is a 'seed' structure for a using with your own callback
|
H A D | ialloc.c | 453 hinfo.seed = sbi->s_hash_seed; find_group_orlov() 1022 /* Precompute checksum seed for inode metadata */ __ext4_new_inode()
|
H A D | namei.c | 752 hinfo->seed = EXT4_SB(dir->i_sb)->s_hash_seed; dx_probe() 1075 hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; ext4_htree_fill_tree() 2084 hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; make_indexed_dir()
|
H A D | ext4.h | 1168 __le32 s_hash_seed[4]; /* HTREE hash seed */ 1859 u32 *seed; member in struct:dx_hash_info
|
H A D | inode.c | 4139 /* Precompute checksum seed for inode metadata */ ext4_iget()
|
H A D | super.c | 3557 /* Precompute checksum seed for all metadata */ ext4_fill_super()
|
/linux-4.1.27/lib/ |
H A D | random32.c | 160 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 301 u32 seed; member in struct:prandom_test1 311 u32 seed; member in struct:prandom_test2 426 prandom_seed_early(&state, test1[i].seed, false); prandom_state_selftest() 434 pr_warn("prandom: seed boundary self test failed\n"); prandom_state_selftest() 436 pr_info("prandom: seed boundary self test passed\n"); prandom_state_selftest() 441 prandom_seed_early(&state, test2[i].seed, false); prandom_state_selftest()
|
H A D | rhashtable.c | 669 static u32 rhashtable_jhash2(const void *key, u32 length, u32 seed) rhashtable_jhash2() argument 671 return jhash2(key, length, seed); rhashtable_jhash2() 704 * u32 my_hash_fn(const void *data, u32 len, u32 seed)
|
H A D | crc32.c | 15 * 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.1.27/drivers/staging/lustre/lustre/llite/ |
H A D | super25.c | 95 int i, rc, seed[2]; init_lustre_lite() local 141 cfs_get_random_bytes(seed, sizeof(seed)); init_lustre_lite() 150 seed[0] ^= LNET_NIDADDR(lnet_id.nid); init_lustre_lite() 154 cfs_srand(tv.tv_sec ^ seed[0], tv.tv_usec ^ seed[1]); init_lustre_lite()
|
/linux-4.1.27/block/ |
H A D | t10-pi.c | 61 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 D | bio-integrity.c | 228 iter.seed = bip_get_seed(bip); bio_integrity_process()
|
/linux-4.1.27/crypto/ |
H A D | rng.c | 32 static int rngapi_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) rngapi_reset() argument 37 if (!seed && slen) { rngapi_reset() 43 seed = buf; rngapi_reset() 46 err = crypto_rng_alg(tfm)->rng_reset(tfm, seed, slen); rngapi_reset()
|
H A D | ansi_cprng.c | 40 * V is our seed vector 365 * This is the cprng_registered reset method the seed value is 368 * as being present by testing the length of the seed 370 static int cprng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) cprng_reset() argument 373 u8 *key = seed + DEFAULT_BLK_SZ; cprng_reset() 382 reset_prng_context(prng, key, DEFAULT_PRNG_KSZ, seed, dt); cprng_reset() 398 static int fips_cprng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) fips_cprng_reset() argument 401 u8 *key = seed + DEFAULT_BLK_SZ; fips_cprng_reset() 409 /* fips strictly requires seed != key */ fips_cprng_reset() 410 if (!memcmp(seed, key, DEFAULT_PRNG_KSZ)) fips_cprng_reset() 413 rc = cprng_reset(tfm, seed, slen); fips_cprng_reset()
|
H A D | krng.c | 25 static int krng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) krng_reset() argument
|
H A D | crc32.c | 59 * Setting the seed allows arbitrary accumulators and flexible XOR policy 61 * the seed.
|
H A D | crc32c_generic.c | 72 * Setting the seed allows arbitrary accumulators and flexible XOR policy 74 * the seed.
|
H A D | drbg.c | 402 struct drbg_string *seed = NULL; drbg_ctr_df() local 414 list_for_each_entry(seed, seedlist, list) drbg_ctr_df() 415 inputlen += seed->len; drbg_ctr_df() 500 * 0 => initial seed from initialization 510 static int drbg_ctr_update(struct drbg_state *drbg, struct list_head *seed, drbg_ctr_update() argument 526 if (seed) { drbg_ctr_update() 527 ret = drbg_ctr_df(drbg, df_data, drbg_statelen(drbg), seed); drbg_ctr_update() 657 static int drbg_hmac_update(struct drbg_state *drbg, struct list_head *seed, drbg_hmac_update() argument 675 /* input data of seed is allowed to be NULL at this point */ drbg_hmac_update() 676 if (seed) drbg_hmac_update() 677 list_splice_tail(seed, &seedlist); drbg_hmac_update() 698 if (!seed) drbg_hmac_update() 862 static int drbg_hash_update(struct drbg_state *drbg, struct list_head *seed, drbg_hash_update() argument 872 if (!seed) drbg_hash_update() 883 list_splice_tail(seed, &datalist); drbg_hash_update() 1049 * @reseed: 0 for initial seed process, 1 for reseeding 1723 * and provide the personalization string as seed information drbg_kcapi_init() 1771 static int drbg_kcapi_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) drbg_kcapi_reset() argument 1783 drbg_string_fill(&seed_string, seed, slen); drbg_kcapi_reset() 1786 struct drbg_gen *data = (struct drbg_gen *)seed; drbg_kcapi_reset() 1806 * Note: testing of failing seed source as defined in 11.3.2 is not applicable 1807 * as seed source of get_random_bytes does not fail.
|
H A D | Makefile | 80 obj-$(CONFIG_CRYPTO_SEED) += seed.o
|
H A D | algif_rng.c | 82 * 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, (u8 *)seed, seedlen); rng_setkey()
|
H A D | seed.c | 444 .cra_name = "seed", 445 .cra_driver_name = "seed-generic", 479 MODULE_ALIAS_CRYPTO("seed");
|
H A D | testmgr.c | 1446 u8 *seed; test_cprng() local 1451 seed = kmalloc(seedsize, GFP_KERNEL); test_cprng() 1452 if (!seed) { test_cprng() 1453 printk(KERN_ERR "alg: cprng: Failed to allocate seed space " test_cprng() 1461 memcpy(seed, template[i].v, template[i].vlen); test_cprng() 1462 memcpy(seed + template[i].vlen, template[i].key, test_cprng() 1464 memcpy(seed + template[i].vlen + template[i].klen, test_cprng() 1467 err = crypto_rng_reset(tfm, seed, seedsize); test_cprng() 1498 kfree(seed); test_cprng() 2881 .alg = "ecb(seed)",
|
H A D | tcrypt.c | 71 "camellia", "seed", "salsa20", "rmd128", "rmd160", "rmd256", "rmd320", 1448 ret += tcrypt_test("ecb(seed)"); do_test()
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
H A D | lustre_handles.c | 197 int seed[2]; class_handle_init() local 213 cfs_get_random_bytes(seed, sizeof(seed)); class_handle_init() 215 cfs_srand(tv.tv_sec ^ seed[0], tv.tv_usec ^ seed[1]); class_handle_init()
|
/linux-4.1.27/arch/s390/crypto/ |
H A D | prng.c | 235 static const u8 seed[] __initconst = { prng_sha512_selftest() 312 /* initial seed */ prng_sha512_selftest() 315 seed, sizeof(seed)); prng_sha512_selftest() 317 pr_err("The prng self test seed operation for the " prng_sha512_selftest() 367 u8 seed[64]; prng_sha512_instantiate() local 390 /* generate initial seed bytestring, first 48 bytes of entropy */ prng_sha512_instantiate() 391 ret = generate_entropy(seed, 48); prng_sha512_instantiate() 395 get_tod_clock_ext(seed + 48); prng_sha512_instantiate() 397 /* initial seed of the ppno drng */ prng_sha512_instantiate() 400 seed, sizeof(seed)); prng_sha512_instantiate() 441 u8 seed[32]; prng_sha512_reseed() local 444 ret = generate_entropy(seed, sizeof(seed)); prng_sha512_reseed() 445 if (ret != sizeof(seed)) prng_sha512_reseed() 451 seed, sizeof(seed)); prng_sha512_reseed()
|
H A D | crypt_s390.h | 375 * @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.1.27/drivers/base/power/ |
H A D | trace.c | 131 * 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.1.27/fs/nilfs2/ |
H A D | segbuf.c | 183 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 D | segbuf.h | 177 void nilfs_add_checksums_on_logs(struct list_head *logs, u32 seed);
|
H A D | the_nilfs.h | 100 * @ns_crc_seed: seed value of CRC32 calculation
|
/linux-4.1.27/drivers/hid/ |
H A D | hid-penmount.c | 7 * PenMount Touch Solutions <penmount <at> seed.net.tw>
|
/linux-4.1.27/drivers/mtd/tests/ |
H A D | nandbiterrs.c | 62 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.1.27/arch/sparc/crypto/ |
H A D | crc32c_glue.c | 26 * Setting the seed allows arbitrary accumulators and flexible XOR policy 28 * the seed.
|
/linux-4.1.27/arch/arc/include/asm/ |
H A D | stacktrace.h | 18 * @regs: pt_regs used to seed the unwinder {SP, FP, BLINK, PC}
|
/linux-4.1.27/fs/f2fs/ |
H A D | hash.c | 86 /* Initialize the default seed for the hash checksum functions */ f2fs_dentry_hash()
|
/linux-4.1.27/net/netfilter/ |
H A D | nft_hash.c | 45 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 D | xt_hashlimit.c | 105 u_int32_t rnd; /* random seed for hash */
|
/linux-4.1.27/scripts/kconfig/ |
H A D | conf.c | 521 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.1.27/net/ceph/ |
H A D | osdmap.c | 384 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 D | debugfs.c | 92 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 D | osd_client.c | 1440 req->r_tid, pgid.pool, pgid.seed, o, __map_request() 1488 (unsigned long long)req->r_pgid.pool, req->r_pgid.seed); __send_request() 1496 ceph_encode_32(&p, req->r_pgid.seed); __send_request()
|
/linux-4.1.27/drivers/gpu/drm/ |
H A D | drm_hashtab.c | 141 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.1.27/include/linux/ceph/ |
H A D | osdmap.h | 24 uint32_t seed; member in struct:ceph_pg 189 pgid->seed = ceph_decode_32(p); ceph_decode_pgid()
|
H A D | rados.h | 61 __le16 ps; /* placement seed */
|
/linux-4.1.27/arch/tile/include/asm/ |
H A D | stack.h | 68 /* Dump stack of current process, with registers to seed the backtrace. */
|
/linux-4.1.27/drivers/md/ |
H A D | dm-crypt.c | 100 u8 *seed; member in struct:iv_lmk_private 220 * optionally extra IV seed. 226 * version 3: the same as version 2 with additional IV seed 227 * (it uses 65 keys, last key is used as IV seed) 475 kzfree(lmk->seed); crypt_iv_lmk_dtr() 476 lmk->seed = NULL; crypt_iv_lmk_dtr() 490 /* No seed in LMK version 2 */ crypt_iv_lmk_ctr() 492 lmk->seed = NULL; crypt_iv_lmk_ctr() 496 lmk->seed = kzalloc(LMK_SEED_SIZE, GFP_KERNEL); crypt_iv_lmk_ctr() 497 if (!lmk->seed) { crypt_iv_lmk_ctr() 499 ti->error = "Error kmallocing seed storage in LMK"; crypt_iv_lmk_ctr() 511 /* LMK seed is on the position of LMK_KEYS + 1 key */ crypt_iv_lmk_init() 512 if (lmk->seed) crypt_iv_lmk_init() 513 memcpy(lmk->seed, cc->key + (cc->tfms_count * subkey_size), crypt_iv_lmk_init() 523 if (lmk->seed) crypt_iv_lmk_wipe() 524 memset(lmk->seed, 0, LMK_SEED_SIZE); crypt_iv_lmk_wipe() 546 if (lmk->seed) { crypt_iv_lmk_one() 547 r = crypto_shash_update(desc, lmk->seed, LMK_SEED_SIZE); crypt_iv_lmk_one() 648 ti->error = "Error allocating seed storage in TCW"; crypt_iv_tcw_ctr() 1656 * If present (version 3), last key is used as IV seed. crypt_ctr_cipher() 1657 * All keys (including IV seed) are always the same size. crypt_ctr_cipher()
|
/linux-4.1.27/net/ipv6/ |
H A D | output_core.c | 36 * seed to limit information leakage.
|
/linux-4.1.27/include/drm/ |
H A D | drm_hashtab.h | 55 unsigned long seed, int bits, int shift,
|
/linux-4.1.27/arch/x86/crypto/ |
H A D | crc32c-intel_glue.c | 111 * Setting the seed allows arbitrary accumulators and flexible XOR policy 113 * the seed.
|
/linux-4.1.27/arch/arm64/crypto/ |
H A D | crc32-arm64.c | 111 * Setting the seed allows arbitrary accumulators and flexible XOR policy 113 * the seed.
|
/linux-4.1.27/drivers/char/ |
H A D | random.c | 173 * 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, 883 unsigned long seed; add_interrupt_randomness() local 912 * If we have architectural seed generator, produce a seed and add_interrupt_randomness() 914 * architectural seed generator dominate the input from the add_interrupt_randomness() 917 if (arch_get_random_seed_long(&seed)) { add_interrupt_randomness() 918 __mix_pool_bytes(r, &seed, sizeof(seed)); add_interrupt_randomness()
|
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/ |
H A D | libcfs.h | 157 /* seed the generator */
|
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/ |
H A D | prng.c | 87 * cfs_srand - sets the initial seed
|
/linux-4.1.27/include/net/ |
H A D | dn_dev.h | 130 __u8 seed[8]; member in struct:endnode_hello_message
|
/linux-4.1.27/kernel/ |
H A D | audit_tree.c | 709 struct audit_tree *seed = rule->tree, *tree; audit_add_tree_rule() local 716 if (!strcmp(seed->pathname, tree->pathname)) { audit_add_tree_rule() 717 put_tree(seed); audit_add_tree_rule() 723 tree = seed; audit_add_tree_rule()
|
/linux-4.1.27/arch/alpha/lib/ |
H A D | ev6-memcpy.S | 201 ldq_u $3, 0($17) # L : seed (rotating load) of 8 bytes
|
/linux-4.1.27/arch/arc/kernel/ |
H A D | process.c | 172 /* bogus seed values for debugging */ start_thread()
|
/linux-4.1.27/fs/btrfs/ |
H A D | disk-io.h | 119 u32 btrfs_csum_data(char *data, u32 seed, size_t len);
|
H A D | volumes.c | 662 if (fs_devices->seed) { btrfs_close_extra_devices() 663 fs_devices = fs_devices->seed; btrfs_close_extra_devices() 753 seed_devices = fs_devices->seed; btrfs_close_devices() 754 fs_devices->seed = NULL; btrfs_close_devices() 760 seed_devices = fs_devices->seed; btrfs_close_devices() 1723 if (fs_devices->seed == cur_devices) { 1724 fs_devices->seed = cur_devices->seed; 1727 fs_devices = fs_devices->seed; 1729 cur_devices->seed = NULL; 1817 * in case of fs with no seed, srcdev->fs_devices will point btrfs_rm_dev_replace_remove_srcdev() 1819 * a seed dev it will point to the seed's local fs_devices. In short btrfs_rm_dev_replace_remove_srcdev() 1848 * unless fs_devices is seed fs, num_devices shouldn't go btrfs_rm_dev_replace_free_srcdev() 1859 if (tmp_fs_devices->seed == fs_devices) { btrfs_rm_dev_replace_free_srcdev() 1860 tmp_fs_devices->seed = fs_devices->seed; btrfs_rm_dev_replace_free_srcdev() 1863 tmp_fs_devices = tmp_fs_devices->seed; btrfs_rm_dev_replace_free_srcdev() 1865 fs_devices->seed = NULL; btrfs_rm_dev_replace_free_srcdev() 2007 fs_devices->seed = seed_devices; btrfs_prepare_sprout() 2022 * strore the expected generation for seed devices in device items. 2319 btrfs_err(fs_info, "the filesystem is a seed filesystem!"); btrfs_init_dev_replace_tgtdev() 4622 * bootstrap process of adding storage to a seed btrfs. 5930 cur_devices = cur_devices->seed; btrfs_find_device() 6126 fs_devices = root->fs_info->fs_devices->seed; open_seed_devices() 6131 fs_devices = fs_devices->seed; open_seed_devices() 6167 fs_devices->seed = root->fs_info->fs_devices->seed; open_seed_devices() 6168 root->fs_info->fs_devices->seed = fs_devices; open_seed_devices() 6437 fs_devices = fs_devices->seed; btrfs_init_devices_late()
|
H A D | volumes.h | 247 struct btrfs_fs_devices *seed; member in struct:btrfs_fs_devices
|
H A D | disk-io.c | 263 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 D | super.c | 2025 cur_devices = cur_devices->seed;
|
/linux-4.1.27/net/dccp/ |
H A D | feat.h | 104 * Sysctls to seed defaults for feature negotiation
|
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/ |
H A D | router.c | 250 int lnd_type, seed[2]; lnet_shuffle_seed() local 258 cfs_get_random_bytes(seed, sizeof(seed)); lnet_shuffle_seed() 267 seed[0] ^= (LNET_NIDADDR(ni->ni_nid) | lnd_type); lnet_shuffle_seed() 271 cfs_srand(tv.tv_sec ^ seed[0], tv.tv_usec ^ seed[1]); lnet_shuffle_seed()
|
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_mbx.c | 563 * @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.1.27/drivers/scsi/ |
H A D | sd.h | 162 * uses 32-byte commands to seed the latter
|
/linux-4.1.27/drivers/scsi/esas2r/ |
H A D | esas2r_flash.c | 97 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.1.27/drivers/net/ethernet/apple/ |
H A D | bmac.h | 124 #define RSEED 0x540 /* Transmit random number seed */
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
H A D | cnic_if.h | 268 u32 seed; member in struct:cnic_sock
|
H A D | cnic.c | 3484 l4kwqe3->seed = csk->seed; cnic_cm_conn_req() 3610 csk1->seed = DEF_SEED; cnic_cm_create() 4155 u32 seed; cnic_cm_init_bnx2_hw() local 4157 seed = prandom_u32(); cnic_cm_init_bnx2_hw() 4158 cnic_ctx_wr(dev, 45, 0, seed); cnic_cm_init_bnx2_hw()
|
H A D | cnic_defs.h | 366 u32 seed; member in struct:l4_kwq_connect_req3
|
H A D | tg3.c | 10198 /* Initialize MAC address and backoff seed. */ tg3_reset_hw()
|
/linux-4.1.27/arch/ia64/include/uapi/asm/ |
H A D | perfmon.h | 96 unsigned long reg_random_seed; /* seed value when randomization is used */
|
/linux-4.1.27/fs/logfs/ |
H A D | dir.c | 98 static u32 hash_32(const char *s, int len, u32 seed) hash_32() argument 100 u32 hash = seed; hash_32()
|
/linux-4.1.27/net/sunrpc/auth_gss/ |
H A D | gss_krb5_mech.c | 368 set_cdata(u8 cdata[GSS_KRB5_K5CLENGTH], u32 usage, u8 seed) set_cdata() argument 374 cdata[4] = seed; set_cdata()
|
/linux-4.1.27/arch/tile/include/hv/ |
H A D | netio_intf.h | 402 /** 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 D | drv_xgbe_intf.h | 234 * @param csum1 Checksum seed.
|
/linux-4.1.27/drivers/net/wireless/ |
H A D | airo.c | 964 emmh32_context seed; // Context - the seed member in struct:__anon7567 1318 /* Give key to mic seed */ age_mic_context() 1319 emmh32_setseed(&cur->seed, key, key_len, tfm); age_mic_context() 1322 /* micinit - Initialize mic seed */ 1417 emmh32_init(&context->seed); // Mic the packet encapsulate() 1418 emmh32_update(&context->seed,frame->da,ETH_ALEN * 2); // DA,SA encapsulate() 1419 emmh32_update(&context->seed,(u8*)&mic->typelen,10); // Type/Length and Snap encapsulate() 1420 emmh32_update(&context->seed,(u8*)&mic->seq,sizeof(mic->seq)); //SEQ encapsulate() 1421 emmh32_update(&context->seed,(u8*)(frame + 1),payLen); //payload encapsulate() 1422 emmh32_final(&context->seed, (u8*)&mic->mic); encapsulate() 1505 emmh32_init(&context->seed); decapsulate() 1506 emmh32_update(&context->seed, eth->da, ETH_ALEN*2); decapsulate() 1507 emmh32_update(&context->seed, (u8 *)&mic->typelen, sizeof(mic->typelen)+sizeof(mic->u.snap)); decapsulate() 1508 emmh32_update(&context->seed, (u8 *)&mic->seq,sizeof(mic->seq)); decapsulate() 1509 emmh32_update(&context->seed, (u8 *)(eth + 1),payLen); decapsulate() 1511 emmh32_final(&context->seed, digest); decapsulate()
|
/linux-4.1.27/drivers/misc/sgi-xp/ |
H A D | xpc_partition.c | 70 unsigned long rp_pa = nasid; /* seed with nasid */ xpc_get_rsvd_page_pa()
|
/linux-4.1.27/drivers/net/ethernet/sun/ |
H A D | sunbmac.h | 108 #define BMAC_RSEED 0x250UL /* Transmit random number seed */
|
H A D | sunhme.h | 177 #define BMAC_RSEED 0x250UL /* Transmit random number seed */
|
H A D | sungem.h | 599 * RNG seed inside GEM for the CSMA/CD backoff algorithm. It is
|
H A D | cassini.h | 1630 #define REG_MAC_RANDOM_SEED 0x61CC /* random number seed reg. 1632 seed for the random number
|
H A D | sunhme.c | 1511 /* Load up the MAC address and random seed. */ happy_meal_init()
|
H A D | niu.c | 4982 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.1.27/drivers/net/fddi/skfp/ |
H A D | smt.c | 100 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.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_fw_defs.h | 284 /*The CRC32 seed, that is used for the hash(reduction) multicast address */
|
/linux-4.1.27/drivers/staging/xgifb/ |
H A D | vb_init.c | 388 static void XGI_SetDRAM_Helper(unsigned long P3d4, u8 seed, u8 temp2, u8 reg, XGI_SetDRAM_Helper() argument 394 temp2 |= (((seed >> (2 * j)) & 0x03) << shift_factor); XGI_SetDRAM_Helper()
|
/linux-4.1.27/net/ipv4/ |
H A D | tcp_metrics.c | 548 * to seed the RTO for later data packets because SYN packets are tcp_init_metrics() 549 * small. Use the per-dst cached values to seed the RTO but keep tcp_init_metrics()
|
/linux-4.1.27/drivers/net/ethernet/xilinx/ |
H A D | xilinx_axienet.h | 370 u32 app2; /* TX csum seed */
|
H A D | ll_temac_main.c | 705 cur_p->app2 = 0; /* initial checksum seed */ temac_start_xmit()
|
/linux-4.1.27/drivers/staging/rtl8192e/ |
H A D | rtllib_crypt_tkip.c | 251 /* Make temporary area overlap WEP seed so that the final copy can be tkip_mixing_phase2()
|
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/ |
H A D | ieee80211_crypt_tkip.c | 260 /* Make temporary area overlap WEP seed so that the final copy can be tkip_mixing_phase2()
|
/linux-4.1.27/arch/tile/include/arch/ |
H A D | mpipe_shm.h | 352 * Checksum seed written by classification program. Overwritten with
|
/linux-4.1.27/include/scsi/ |
H A D | osd_initiator.h | 378 u8 seed[OSD_CRYPTO_SEED_SIZE]);/* NI */
|
/linux-4.1.27/net/wireless/ |
H A D | lib80211_crypt_tkip.c | 266 /* Make temporary area overlap WEP seed so that the final copy can be tkip_mixing_phase2()
|
/linux-4.1.27/fs/ocfs2/ |
H A D | ocfs2_fs.h | 657 __le32 s_dx_seed[3]; /* seed[0-2] for dx dir hash. 658 * s_uuid_hash serves as seed[3]. */
|
/linux-4.1.27/arch/ia64/kernel/ |
H A D | perfmon.c | 253 unsigned long seed; /* seed for random-number generator */ member in struct:__anon1717 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.1.27/net/mac80211/ |
H A D | sta_info.c | 990 u32 sta_addr_hash(const void *key, u32 length, u32 seed) sta_addr_hash() argument 992 return jhash(key, ETH_ALEN, seed); sta_addr_hash()
|
H A D | sta_info.h | 563 u32 sta_addr_hash(const void *key, u32 length, u32 seed);
|
/linux-4.1.27/drivers/scsi/qla4xxx/ |
H A D | ql4_init.c | 695 * use as a seed for a random number generator in MB7 prior to qla4xxx_start_firmware_from_flash()
|
/linux-4.1.27/drivers/crypto/caam/ |
H A D | regs.h | 295 u32 rtsdctl; /* seed control register */
|
/linux-4.1.27/fs/ext2/ |
H A D | ext2.h | 478 __u32 s_hash_seed[4]; /* HTREE hash seed */
|
/linux-4.1.27/net/decnet/ |
H A D | dn_dev.c | 853 memset(msg->seed, 0, 8); dn_send_endnode_hello()
|
/linux-4.1.27/net/sched/ |
H A D | sch_netem.c | 166 * Use entropy source for initial seed.
|
/linux-4.1.27/net/sctp/ |
H A D | output.c | 541 /* no need to seed pseudo checksum for SCTP */ sctp_packet_transmit()
|
/linux-4.1.27/drivers/net/wireless/ath/ath5k/ |
H A D | reg.h | 1434 #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.1.27/drivers/block/ |
H A D | nvme-core.c | 494 * nvme_dif_remap - remaps ref tags to bip seed and physical lba 499 * physical LBA on writes, and back to the original seed on reads.
|
/linux-4.1.27/fs/jbd2/ |
H A D | journal.c | 1580 /* Precompute checksum seed for all metadata */ journal_get_superblock() 1888 /* Precompute checksum seed for all metadata */ jbd2_journal_set_features()
|
/linux-4.1.27/net/netlink/ |
H A D | af_netlink.c | 3194 static inline u32 netlink_hash(const void *data, u32 len, u32 seed) netlink_hash() argument 3200 return jhash2((u32 *)&arg, netlink_compare_arg_len / sizeof(u32), seed); netlink_hash()
|
/linux-4.1.27/drivers/video/fbdev/ |
H A D | sh_mobile_hdmi.c | 168 #define HDMI_AN_SEED 0xCC /* An seed */
|
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/ |
H A D | i40evf_main.c | 1450 /* Fill out hash function seed */ i40evf_configure_rss()
|
/linux-4.1.27/drivers/scsi/osd/ |
H A D | osd_initiator.c | 710 u8 seed[OSD_CRYPTO_SEED_SIZE]); */
|
/linux-4.1.27/drivers/input/ |
H A D | input.c | 426 * to 'seed' initial state of a switch or initial position of absolute
|
/linux-4.1.27/drivers/net/ethernet/emulex/benet/ |
H A D | be_main.c | 3342 * Generate a seed MAC address from the PF MAC Address using jhash. 3343 * MAC Address for VFs are assigned incrementally starting from the seed.
|
/linux-4.1.27/include/rdma/ |
H A D | ib_verbs.h | 543 * @bg: seed of guard computation.
|
/linux-4.1.27/drivers/net/ethernet/nvidia/ |
H A D | forcedeth.c | 2101 /* Known Good seed sets */ 2129 /* Setup seed for free running LFSR */ nv_gear_backoff_reseed()
|
/linux-4.1.27/drivers/net/ethernet/realtek/ |
H A D | r8169.c | 3630 /* uc same-seed solution */ rtl8411_hw_phy_config()
|
/linux-4.1.27/drivers/net/ethernet/sfc/ |
H A D | mcdi_pcol.h | 1821 * Set the 16byte seed for the MC pseudo-random generator.
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/ |
H A D | main.c | 3382 /* seed wake_override with BRCMS_WAKE_OVERRIDE_MACSUSPEND since the mac brcms_b_init()
|