Home
last modified time | relevance | path

Searched refs:seed (Results 1 – 25 of 55) sorted by relevance

123

/linux-2.6.39/include/linux/
Drandom.h79 void srandom32(u32 seed);
96 static inline void prandom32_seed(struct rnd_state *state, u64 seed) in prandom32_seed() argument
98 u32 i = (seed >> 32) ^ (seed << 10) ^ seed; in prandom32_seed()
Dcrc32.h14 #define crc32(seed, data, length) crc32_le(seed, (unsigned char const *)(data), length) argument
Dnet.h252 #define net_srandom(seed) srandom32((__force u32)seed) argument
/linux-2.6.39/drivers/base/power/
Dtrace.c132 static unsigned int hash_string(unsigned int seed, const char *data, unsigned int mod) in hash_string() argument
136 seed = (seed << 16) + (seed << 6) - seed + c; in hash_string()
138 return seed % mod; in hash_string()
/linux-2.6.39/crypto/
Drng.c30 static int rngapi_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in rngapi_reset() argument
35 if (!seed && slen) { in rngapi_reset()
41 seed = buf; in rngapi_reset()
44 err = crypto_rng_alg(tfm)->rng_reset(tfm, seed, slen); in rngapi_reset()
Dansi_cprng.c366 static int cprng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in cprng_reset() argument
369 u8 *key = seed + DEFAULT_BLK_SZ; in cprng_reset()
378 reset_prng_context(prng, key, DEFAULT_PRNG_KSZ, seed, dt); in cprng_reset()
414 static int fips_cprng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in fips_cprng_reset() argument
421 rc = cprng_reset(tfm, seed, slen); in fips_cprng_reset()
Dkrng.c25 static int krng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in krng_reset() argument
/linux-2.6.39/Documentation/networking/
Dcops.txt52 dummy -seed -phase 2 -net 2000 -addr 2000.10 -zone "1033"
53 lt0 -seed -phase 1 -net 1000 -addr 1000.50 -zone "1033"
56 eth0 -seed -phase 2 -net 3000 -addr 3000.20 -zone "1033"
57 lt0 -seed -phase 1 -net 1000 -addr 1000.50 -zone "1033"
61 lt0 -seed -phase 1 -net 1000 -addr 1000.10 -zone "LocalTalk1"
62 lt1 -seed -phase 1 -net 2000 -addr 2000.20 -zone "LocalTalk2"
63 eth0 -seed -phase 2 -net 3000 -addr 3000.30 -zone "EtherTalk"
Dltpc.txt44 printers, you need to set up netatalk to "seed". The way I do this
47 dummy -seed -phase 2 -net 2000 -addr 2000.26 -zone "1033"
48 lt0 -seed -phase 1 -net 1033 -addr 1033.27 -zone "1033"
52 present; otherwise, it refuses to seed. This is a hack, and a more
/linux-2.6.39/drivers/staging/winbond/
Dphy_calibration.c201 int seed; in _sqrt() local
213 seed = 0; in _sqrt()
214 while (((seed+1)*(step+1)) <= next) { in _sqrt()
216 seed++; in _sqrt()
219 sq_rt = seed * 10000; in _sqrt()
220 next = (next-(seed*step))*100 + g3; in _sqrt()
223 seed = 2 * seed * 10; in _sqrt()
224 while (((seed+1)*(step+1)) <= next) { in _sqrt()
226 seed++; in _sqrt()
230 next = (next - seed * step) * 100 + g2; in _sqrt()
[all …]
/linux-2.6.39/arch/ia64/lib/
Dcarta_random.S19 #define seed r32 macro
24 pmpyshr2.u t0 = a, seed, 0
25 pmpyshr2.u t1 = a, seed, 16
/linux-2.6.39/fs/nilfs2/
Dsegbuf.c183 nilfs_segbuf_fill_in_segsum_crc(struct nilfs_segment_buffer *segbuf, u32 seed) in nilfs_segbuf_fill_in_segsum_crc() argument
195 crc = crc32_le(seed, in nilfs_segbuf_fill_in_segsum_crc()
211 u32 seed) in nilfs_segbuf_fill_in_data_crc() argument
221 crc = crc32_le(seed, in nilfs_segbuf_fill_in_data_crc()
239 u32 seed) in nilfs_segbuf_fill_in_super_root_crc() argument
245 crc = crc32_le(seed, in nilfs_segbuf_fill_in_super_root_crc()
335 void nilfs_add_checksums_on_logs(struct list_head *logs, u32 seed) in nilfs_add_checksums_on_logs() argument
341 nilfs_segbuf_fill_in_super_root_crc(segbuf, seed); in nilfs_add_checksums_on_logs()
342 nilfs_segbuf_fill_in_segsum_crc(segbuf, seed); in nilfs_add_checksums_on_logs()
343 nilfs_segbuf_fill_in_data_crc(segbuf, seed); in nilfs_add_checksums_on_logs()
Dsegbuf.h177 void nilfs_add_checksums_on_logs(struct list_head *logs, u32 seed);
/linux-2.6.39/include/crypto/
Drng.h65 u8 *seed, unsigned int slen) in crypto_rng_reset() argument
67 return crypto_rng_crt(tfm)->rng_reset(tfm, seed, slen); in crypto_rng_reset()
/linux-2.6.39/fs/ext3/
Dhash.c156 if (hinfo->seed) { in ext3fs_dirhash()
158 if (hinfo->seed[i]) in ext3fs_dirhash()
162 memcpy(buf, hinfo->seed, sizeof(buf)); in ext3fs_dirhash()
/linux-2.6.39/fs/ext4/
Dhash.c156 if (hinfo->seed) { in ext4fs_dirhash()
158 if (hinfo->seed[i]) in ext4fs_dirhash()
162 memcpy(buf, hinfo->seed, sizeof(buf)); in ext4fs_dirhash()
/linux-2.6.39/drivers/gpu/drm/
Ddrm_hashtab.c129 unsigned long seed, int bits, int shift, in drm_ht_just_insert_please() argument
136 unshifted_key = hash_long(seed, bits); in drm_ht_just_insert_please()
/linux-2.6.39/drivers/md/
Ddm-crypt.c99 u8 *seed; member
481 kzfree(lmk->seed); in crypt_iv_lmk_dtr()
482 lmk->seed = NULL; in crypt_iv_lmk_dtr()
498 lmk->seed = NULL; in crypt_iv_lmk_ctr()
502 lmk->seed = kzalloc(LMK_SEED_SIZE, GFP_KERNEL); in crypt_iv_lmk_ctr()
503 if (!lmk->seed) { in crypt_iv_lmk_ctr()
518 if (lmk->seed) in crypt_iv_lmk_init()
519 memcpy(lmk->seed, cc->key + (cc->tfms_count * subkey_size), in crypt_iv_lmk_init()
529 if (lmk->seed) in crypt_iv_lmk_wipe()
530 memset(lmk->seed, 0, LMK_SEED_SIZE); in crypt_iv_lmk_wipe()
[all …]
/linux-2.6.39/include/drm/
Ddrm_hashtab.h55 unsigned long seed, int bits, int shift,
/linux-2.6.39/drivers/mtd/tests/
Dmtd_stresstest.c59 static inline void simple_srand(unsigned long seed) in simple_srand() argument
61 next = seed; in simple_srand()
/linux-2.6.39/scripts/kconfig/
Dconf.c482 unsigned int seed; in main() local
490 seed = (unsigned int)((now.tv_sec + 1) * (now.tv_usec + 1)); in main()
491 srand(seed); in main()
/linux-2.6.39/arch/tile/include/hv/
Dnetio_intf.h1844 int location, uint16_t seed) in NETIO_PKT_DO_EGRESS_CSUM_MM() argument
1849 mmd->csum_seed = seed; in NETIO_PKT_DO_EGRESS_CSUM_MM()
1891 int location, uint16_t seed) in NETIO_PKT_DO_EGRESS_CSUM() argument
1895 NETIO_PKT_DO_EGRESS_CSUM_MM(mmd, pkt, start, length, location, seed); in NETIO_PKT_DO_EGRESS_CSUM()
/linux-2.6.39/fs/btrfs/
Dvolumes.c468 if (fs_devices->seed) { in btrfs_close_extra_devices()
469 fs_devices = fs_devices->seed; in btrfs_close_extra_devices()
514 seed_devices = fs_devices->seed; in btrfs_close_devices()
515 fs_devices->seed = NULL; in btrfs_close_devices()
521 seed_devices = fs_devices->seed; in btrfs_close_devices()
1338 if (fs_devices->seed == device->fs_devices) in btrfs_rm_device()
1340 fs_devices = fs_devices->seed; in btrfs_rm_device()
1342 fs_devices->seed = device->fs_devices->seed; in btrfs_rm_device()
1343 device->fs_devices->seed = NULL; in btrfs_rm_device()
1426 fs_devices->seed = seed_devices; in btrfs_prepare_sprout()
[all …]
Ddisk-io.h82 u32 btrfs_csum_data(struct btrfs_root *root, char *data, u32 seed, size_t len);
/linux-2.6.39/include/net/
Ddn_dev.h130 __u8 seed[8]; member

123