Lines Matching refs:seed
591 struct linux_efi_random_seed *seed; in efi_config_parse_tables() local
594 seed = early_memremap(efi_rng_seed, sizeof(*seed)); in efi_config_parse_tables()
595 if (seed != NULL) { in efi_config_parse_tables()
596 size = READ_ONCE(seed->size); in efi_config_parse_tables()
597 early_memunmap(seed, sizeof(*seed)); in efi_config_parse_tables()
602 seed = early_memremap(efi_rng_seed, in efi_config_parse_tables()
603 sizeof(*seed) + size); in efi_config_parse_tables()
604 if (seed != NULL) { in efi_config_parse_tables()
606 add_bootloader_randomness(seed->bits, size); in efi_config_parse_tables()
607 early_memunmap(seed, sizeof(*seed) + size); in efi_config_parse_tables()
1002 struct linux_efi_random_seed *seed; in update_efi_random_seed() local
1008 seed = memremap(efi_rng_seed, sizeof(*seed), MEMREMAP_WB); in update_efi_random_seed()
1009 if (seed != NULL) { in update_efi_random_seed()
1010 size = min(seed->size, EFI_RANDOM_SEED_SIZE); in update_efi_random_seed()
1011 memunmap(seed); in update_efi_random_seed()
1016 seed = memremap(efi_rng_seed, sizeof(*seed) + size, in update_efi_random_seed()
1018 if (seed != NULL) { in update_efi_random_seed()
1019 seed->size = size; in update_efi_random_seed()
1020 get_random_bytes(seed->bits, seed->size); in update_efi_random_seed()
1021 memunmap(seed); in update_efi_random_seed()