Lines Matching defs:ehdr
24 static inline bool elf_is_elf_file(const struct elfhdr *ehdr) in elf_is_elf_file()
29 static uint64_t elf64_to_cpu(const struct elfhdr *ehdr, uint64_t value) in elf64_to_cpu()
39 static uint32_t elf32_to_cpu(const struct elfhdr *ehdr, uint32_t value) in elf32_to_cpu()
49 static uint16_t elf16_to_cpu(const struct elfhdr *ehdr, uint16_t value) in elf16_to_cpu()
63 static bool elf_is_ehdr_sane(const struct elfhdr *ehdr, size_t buf_len) in elf_is_ehdr_sane()
119 static int elf_read_ehdr(const char *buf, size_t len, struct elfhdr *ehdr) in elf_read_ehdr()
208 const struct elfhdr *ehdr = elf_info->ehdr; in elf_read_phdr() local
255 const struct elfhdr *ehdr = elf_info->ehdr; in elf_read_phdrs() local
297 struct elfhdr *ehdr, in elf_read_from_buffer()
327 int kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr, in kexec_build_elf_info()
367 struct elfhdr ehdr; in kexec_elf_probe() local
388 int kexec_elf_load(struct kimage *image, struct elfhdr *ehdr, in kexec_elf_load()