Home
last modified time | relevance | path

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

12

/drivers/firmware/efi/
Defi.c542 struct linux_efi_random_seed *seed; in efi_config_parse_tables() local
545 seed = early_memremap(efi.rng_seed, sizeof(*seed)); in efi_config_parse_tables()
546 if (seed != NULL) { in efi_config_parse_tables()
547 size = seed->size; in efi_config_parse_tables()
548 early_memunmap(seed, sizeof(*seed)); in efi_config_parse_tables()
553 seed = early_memremap(efi.rng_seed, in efi_config_parse_tables()
554 sizeof(*seed) + size); in efi_config_parse_tables()
555 if (seed != NULL) { in efi_config_parse_tables()
557 add_bootloader_randomness(seed->bits, seed->size); in efi_config_parse_tables()
558 early_memunmap(seed, sizeof(*seed) + size); in efi_config_parse_tables()
[all …]
/drivers/crypto/
Dexynos-rng.c98 const u8 *seed, unsigned int slen) in exynos_rng_set_seed() argument
112 val = seed[i] << 24; in exynos_rng_set_seed()
113 val |= seed[i + 1] << 16; in exynos_rng_set_seed()
114 val |= seed[i + 2] << 8; in exynos_rng_set_seed()
115 val |= seed[i + 3] << 0; in exynos_rng_set_seed()
178 u8 seed[EXYNOS_RNG_SEED_SIZE]; in exynos_rng_reseed() local
184 if (exynos_rng_get_random(rng, seed, sizeof(seed), &read)) in exynos_rng_reseed()
187 exynos_rng_set_seed(rng, seed, read); in exynos_rng_reseed()
225 static int exynos_rng_seed(struct crypto_rng *tfm, const u8 *seed, in exynos_rng_seed() argument
237 ret = exynos_rng_set_seed(ctx->rng, seed, slen); in exynos_rng_seed()
[all …]
Dqcom-rng.c92 static int qcom_rng_seed(struct crypto_rng *tfm, const u8 *seed, in qcom_rng_seed() argument
141 .seed = qcom_rng_seed,
/drivers/firmware/efi/libstub/
Drandom.c150 struct linux_efi_random_seed *seed; in efi_random_get_seed() local
159 sizeof(*seed) + EFI_RANDOM_SEED_SIZE, in efi_random_get_seed()
160 (void **)&seed); in efi_random_get_seed()
165 seed->bits); in efi_random_get_seed()
172 seed->bits); in efi_random_get_seed()
177 seed->size = EFI_RANDOM_SEED_SIZE; in efi_random_get_seed()
179 seed); in efi_random_get_seed()
186 efi_call_early(free_pool, seed); in efi_random_get_seed()
/drivers/crypto/sunxi-ss/
Dsun4i-ss-prng.c3 int sun4i_ss_prng_seed(struct crypto_rng *tfm, const u8 *seed, in sun4i_ss_prng_seed() argument
10 memcpy(algt->ss->seed, seed, slen); in sun4i_ss_prng_seed()
38 writel(ss->seed[i], ss->base + SS_KEY0 + i * 4); in sun4i_ss_prng_generate()
49 ss->seed[i] = v; in sun4i_ss_prng_generate()
Dsun4i-ss.h143 u32 seed[SS_SEED_LEN / BITS_PER_LONG]; member
215 int sun4i_ss_prng_seed(struct crypto_rng *tfm, const u8 *seed, unsigned int slen);
Dsun4i-ss-core.c219 .seed = sun4i_ss_prng_seed,
/drivers/base/power/
Dtrace.c138 static unsigned int hash_string(unsigned int seed, const char *data, unsigned int mod) in hash_string() argument
142 seed = (seed << 16) + (seed << 6) - seed + c; in hash_string()
144 return seed % mod; in hash_string()
/drivers/mtd/tests/
Dnandbiterrs.c49 static unsigned seed; variable
50 module_param(seed, uint, S_IRUGO);
51 MODULE_PARM_DESC(seed, "Random seed");
162 if (rbuffer[i] != hash(i+seed)) { in verify_page()
164 i, hash(i+seed), rbuffer[i]); in verify_page()
209 wbuffer[i] = hash(i+seed); in incremental_errors_test()
272 wbuffer[i] = hash(i+seed); in overwrite_test()
/drivers/char/hw_random/
Dhisi-rng.c38 u32 seed; in hisi_rng_init() local
41 get_random_bytes(&seed, sizeof(seed)); in hisi_rng_init()
43 writel_relaxed(seed, hrng->base + RNG_SEED); in hisi_rng_init()
/drivers/nvdimm/
Dclaim.c79 struct device *seed = NULL; in is_idle() local
82 seed = nd_region->btt_seed; in is_idle()
84 seed = nd_region->pfn_seed; in is_idle()
86 seed = nd_region->dax_seed; in is_idle()
88 if (seed == dev || ndns || dev->driver) in is_idle()
/drivers/gpu/drm/amd/powerplay/hwmgr/
Dppevvmath.h401 int seed, counter, error; in fSqrt() local
414 seed = 60; in fSqrt()
416 seed = 30; in fSqrt()
418 seed = 10; in fSqrt()
420 seed = 2; in fSqrt()
428 x_new = ConvertToFraction(seed); in fSqrt()
/drivers/gpu/drm/
Ddrm_hashtab.c145 unsigned long seed, int bits, int shift, in drm_ht_just_insert_please() argument
152 unshifted_key = hash_long(seed, bits); in drm_ht_just_insert_please()
/drivers/net/ethernet/netronome/nfp/flower/
Dmetadata.c458 static u32 nfp_fl_obj_hashfn(const void *data, u32 len, u32 seed) in nfp_fl_obj_hashfn() argument
464 seed); in nfp_fl_obj_hashfn()
467 static u32 nfp_fl_key_hashfn(const void *data, u32 len, u32 seed) in nfp_fl_key_hashfn() argument
472 sizeof(cmp_arg->cookie) / sizeof(u32), seed); in nfp_fl_key_hashfn()
/drivers/md/
Ddm-crypt.c108 u8 *seed; member
388 kzfree(lmk->seed); in crypt_iv_lmk_dtr()
389 lmk->seed = NULL; in crypt_iv_lmk_dtr()
410 lmk->seed = NULL; in crypt_iv_lmk_ctr()
414 lmk->seed = kzalloc(LMK_SEED_SIZE, GFP_KERNEL); in crypt_iv_lmk_ctr()
415 if (!lmk->seed) { in crypt_iv_lmk_ctr()
430 if (lmk->seed) in crypt_iv_lmk_init()
431 memcpy(lmk->seed, cc->key + (cc->tfms_count * subkey_size), in crypt_iv_lmk_init()
441 if (lmk->seed) in crypt_iv_lmk_wipe()
442 memset(lmk->seed, 0, LMK_SEED_SIZE); in crypt_iv_lmk_wipe()
[all …]
/drivers/net/ethernet/intel/fm10k/
Dfm10k_mbx.c560 static u16 fm10k_crc_16b(const u32 *data, u16 seed, u16 len) in fm10k_crc_16b() argument
562 u32 result = seed; in fm10k_crc_16b()
589 u16 len, u16 seed) in fm10k_fifo_crc() argument
598 seed = fm10k_crc_16b(data, seed, offset * 2); in fm10k_fifo_crc()
604 return fm10k_crc_16b(data, seed, len * 2); in fm10k_fifo_crc()
/drivers/net/ethernet/intel/ice/
Dice.h446 int ice_set_rss(struct ice_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size);
447 int ice_get_rss(struct ice_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size);
/drivers/net/dsa/
Dvitesse-vsc73xx-core.c731 u8 seed; in vsc73xx_adjust_enable_port() local
738 get_random_bytes(&seed, 1); in vsc73xx_adjust_enable_port()
739 val |= seed << VSC73XX_MAC_CFG_SEED_OFFSET; in vsc73xx_adjust_enable_port()
/drivers/scsi/esas2r/
Desas2r_flash.c97 static u8 esas2r_calc_byte_xor_cksum(u8 *addr, u32 len, u8 seed) in esas2r_calc_byte_xor_cksum() argument
99 u32 cksum = seed; in esas2r_calc_byte_xor_cksum()
122 static u8 esas2r_calc_byte_cksum(void *addr, u32 len, u8 seed) in esas2r_calc_byte_cksum() argument
125 u8 cksum = seed; in esas2r_calc_byte_cksum()
/drivers/net/ethernet/intel/i40e/
Di40e_main.c1594 static int i40e_config_rss_aq(struct i40e_vsi *vsi, const u8 *seed, in i40e_config_rss_aq() argument
1601 if (seed) { in i40e_config_rss_aq()
1603 (struct i40e_aqc_get_set_rss_key_data *)seed; in i40e_config_rss_aq()
1635 u8 seed[I40E_HKEY_ARRAY_SIZE]; in i40e_vsi_config_rss() local
1658 memcpy(seed, vsi->rss_hkey_user, I40E_HKEY_ARRAY_SIZE); in i40e_vsi_config_rss()
1660 netdev_rss_key_fill((void *)seed, I40E_HKEY_ARRAY_SIZE); in i40e_vsi_config_rss()
1661 ret = i40e_config_rss_aq(vsi, seed, lut, vsi->rss_table_size); in i40e_vsi_config_rss()
5740 u8 seed[I40E_HKEY_ARRAY_SIZE]; in i40e_vsi_reconfig_rss() local
5764 memcpy(seed, vsi->rss_hkey_user, I40E_HKEY_ARRAY_SIZE); in i40e_vsi_reconfig_rss()
5766 netdev_rss_key_fill((void *)seed, I40E_HKEY_ARRAY_SIZE); in i40e_vsi_reconfig_rss()
[all …]
/drivers/char/
Drandom.c1317 unsigned long seed; in add_interrupt_randomness() local
1361 if (arch_get_random_seed_long(&seed)) { in add_interrupt_randomness()
1362 __mix_pool_bytes(r, &seed, sizeof(seed)); in add_interrupt_randomness()
/drivers/net/ethernet/broadcom/
Dcnic_if.h284 u32 seed; member
/drivers/net/fddi/skfp/
Dsmt.c95 static void smt_fill_echo(struct s_smc *smc, struct smt_p_echo *echo, u_long seed,
1526 static void smt_fill_echo(struct s_smc *smc, struct smt_p_echo *echo, u_long seed, in smt_fill_echo() argument
1535 *p++ = (u_char) seed ; in smt_fill_echo()
1536 seed += 13 ; in smt_fill_echo()
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c2913 static u32 mlxsw_sp_nexthop_group_hash_obj(const void *data, u32 len, u32 seed) in mlxsw_sp_nexthop_group_hash_obj() argument
2924 return jhash(&fi, sizeof(fi), seed); in mlxsw_sp_nexthop_group_hash_obj()
2929 val ^= jhash(&nh->ifindex, sizeof(nh->ifindex), seed); in mlxsw_sp_nexthop_group_hash_obj()
2931 return jhash(&val, sizeof(val), seed); in mlxsw_sp_nexthop_group_hash_obj()
2939 mlxsw_sp_nexthop6_group_hash(struct mlxsw_sp_fib6_entry *fib6_entry, u32 seed) in mlxsw_sp_nexthop6_group_hash() argument
2947 val ^= jhash(&dev->ifindex, sizeof(dev->ifindex), seed); in mlxsw_sp_nexthop6_group_hash()
2950 return jhash(&val, sizeof(val), seed); in mlxsw_sp_nexthop6_group_hash()
2954 mlxsw_sp_nexthop_group_hash(const void *data, u32 len, u32 seed) in mlxsw_sp_nexthop_group_hash() argument
2960 return jhash(&cmp_arg->fi, sizeof(cmp_arg->fi), seed); in mlxsw_sp_nexthop_group_hash()
2962 return mlxsw_sp_nexthop6_group_hash(cmp_arg->fib6_entry, seed); in mlxsw_sp_nexthop_group_hash()
[all …]
/drivers/net/wireless/cisco/
Dairo.c967 emmh32_context seed; // Context - the seed member
1323 emmh32_setseed(&cur->seed, key, key_len, tfm); in age_mic_context()
1421 emmh32_init(&context->seed); // Mic the packet in encapsulate()
1422 emmh32_update(&context->seed,frame->da,ETH_ALEN * 2); // DA,SA in encapsulate()
1423 emmh32_update(&context->seed,(u8*)&mic->typelen,10); // Type/Length and Snap in encapsulate()
1424 emmh32_update(&context->seed,(u8*)&mic->seq,sizeof(mic->seq)); //SEQ in encapsulate()
1425 emmh32_update(&context->seed,(u8*)(frame + 1),payLen); //payload in encapsulate()
1426 emmh32_final(&context->seed, (u8*)&mic->mic); in encapsulate()
1509 emmh32_init(&context->seed); in decapsulate()
1510 emmh32_update(&context->seed, eth->da, ETH_ALEN*2); in decapsulate()
[all …]

12