Searched refs:rand_num (Results 1 – 2 of 2) sorted by relevance
56 u32 rand_num; in crypto4xx_hw_init() local82 get_random_bytes(&rand_num, sizeof(rand_num)); in crypto4xx_hw_init()83 writel(rand_num, dev->ce_base + CRYPTO4XX_PRNG_SEED_L); in crypto4xx_hw_init()84 get_random_bytes(&rand_num, sizeof(rand_num)); in crypto4xx_hw_init()85 writel(rand_num, dev->ce_base + CRYPTO4XX_PRNG_SEED_H); in crypto4xx_hw_init()
2169 uint32_t rand_num; in lpfc_sli4_new_fcf_random_select() local2172 rand_num = get_random_u16(); in lpfc_sli4_new_fcf_random_select()2175 if ((fcf_cnt * rand_num) < 0xFFFF) in lpfc_sli4_new_fcf_random_select()