Lines Matching refs:seed
366 u8 seed[EFI_RANDOM_SEED_SIZE]; in refresh_nv_rng_seed() local
368 get_random_bytes(seed, sizeof(seed)); in refresh_nv_rng_seed()
371 EFI_VARIABLE_RUNTIME_ACCESS, sizeof(seed), seed); in refresh_nv_rng_seed()
372 memzero_explicit(seed, sizeof(seed)); in refresh_nv_rng_seed()
677 struct linux_efi_random_seed *seed; in efi_config_parse_tables() local
680 seed = early_memremap(efi_rng_seed, sizeof(*seed)); in efi_config_parse_tables()
681 if (seed != NULL) { in efi_config_parse_tables()
682 size = min_t(u32, seed->size, SZ_1K); // sanity check in efi_config_parse_tables()
683 early_memunmap(seed, sizeof(*seed)); in efi_config_parse_tables()
688 seed = early_memremap(efi_rng_seed, in efi_config_parse_tables()
689 sizeof(*seed) + size); in efi_config_parse_tables()
690 if (seed != NULL) { in efi_config_parse_tables()
691 add_bootloader_randomness(seed->bits, size); in efi_config_parse_tables()
692 memzero_explicit(seed->bits, size); in efi_config_parse_tables()
693 early_memunmap(seed, sizeof(*seed) + size); in efi_config_parse_tables()
1108 struct linux_efi_random_seed *seed; in update_efi_random_seed() local
1114 seed = memremap(efi_rng_seed, sizeof(*seed), MEMREMAP_WB); in update_efi_random_seed()
1115 if (seed != NULL) { in update_efi_random_seed()
1116 size = min(seed->size, EFI_RANDOM_SEED_SIZE); in update_efi_random_seed()
1117 memunmap(seed); in update_efi_random_seed()
1122 seed = memremap(efi_rng_seed, sizeof(*seed) + size, in update_efi_random_seed()
1124 if (seed != NULL) { in update_efi_random_seed()
1125 seed->size = size; in update_efi_random_seed()
1126 get_random_bytes(seed->bits, seed->size); in update_efi_random_seed()
1127 memunmap(seed); in update_efi_random_seed()