buf_ehdr 121 kernel/kexec_elf.c struct elfhdr *buf_ehdr; buf_ehdr 123 kernel/kexec_elf.c if (len < sizeof(*buf_ehdr)) { buf_ehdr 144 kernel/kexec_elf.c buf_ehdr = (struct elfhdr *) buf; buf_ehdr 145 kernel/kexec_elf.c if (elf16_to_cpu(ehdr, buf_ehdr->e_ehsize) != sizeof(*buf_ehdr)) { buf_ehdr 150 kernel/kexec_elf.c ehdr->e_type = elf16_to_cpu(ehdr, buf_ehdr->e_type); buf_ehdr 151 kernel/kexec_elf.c ehdr->e_machine = elf16_to_cpu(ehdr, buf_ehdr->e_machine); buf_ehdr 152 kernel/kexec_elf.c ehdr->e_version = elf32_to_cpu(ehdr, buf_ehdr->e_version); buf_ehdr 153 kernel/kexec_elf.c ehdr->e_flags = elf32_to_cpu(ehdr, buf_ehdr->e_flags); buf_ehdr 154 kernel/kexec_elf.c ehdr->e_phentsize = elf16_to_cpu(ehdr, buf_ehdr->e_phentsize); buf_ehdr 155 kernel/kexec_elf.c ehdr->e_phnum = elf16_to_cpu(ehdr, buf_ehdr->e_phnum); buf_ehdr 156 kernel/kexec_elf.c ehdr->e_shentsize = elf16_to_cpu(ehdr, buf_ehdr->e_shentsize); buf_ehdr 157 kernel/kexec_elf.c ehdr->e_shnum = elf16_to_cpu(ehdr, buf_ehdr->e_shnum); buf_ehdr 158 kernel/kexec_elf.c ehdr->e_shstrndx = elf16_to_cpu(ehdr, buf_ehdr->e_shstrndx); buf_ehdr 162 kernel/kexec_elf.c ehdr->e_entry = elf64_to_cpu(ehdr, buf_ehdr->e_entry); buf_ehdr 163 kernel/kexec_elf.c ehdr->e_phoff = elf64_to_cpu(ehdr, buf_ehdr->e_phoff); buf_ehdr 164 kernel/kexec_elf.c ehdr->e_shoff = elf64_to_cpu(ehdr, buf_ehdr->e_shoff); buf_ehdr 168 kernel/kexec_elf.c ehdr->e_entry = elf32_to_cpu(ehdr, buf_ehdr->e_entry); buf_ehdr 169 kernel/kexec_elf.c ehdr->e_phoff = elf32_to_cpu(ehdr, buf_ehdr->e_phoff); buf_ehdr 170 kernel/kexec_elf.c ehdr->e_shoff = elf32_to_cpu(ehdr, buf_ehdr->e_shoff);