Lines Matching refs:ehdr
47 struct elf32_hdr *ehdr; local
60 ehdr = (struct elf32_hdr *)fw->data;
63 class = ehdr->e_ident[EI_CLASS];
71 if (ehdr->e_ident[EI_DATA] != ELFDATA2LSB) {
73 if (ehdr->e_ident[EI_DATA] != ELFDATA2MSB) {
79 if (fw->size < ehdr->e_shoff + sizeof(struct elf32_shdr)) {
84 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG)) {
89 if (ehdr->e_phnum == 0) {
94 if (ehdr->e_phoff > fw->size) {
116 struct elf32_hdr *ehdr = (struct elf32_hdr *)fw->data; local
118 return ehdr->e_entry;
149 struct elf32_hdr *ehdr; local
154 ehdr = (struct elf32_hdr *)elf_data;
155 phdr = (struct elf32_phdr *)(elf_data + ehdr->e_phoff);
158 for (i = 0; i < ehdr->e_phnum; i++, phdr++) {
212 find_table(struct device *dev, struct elf32_hdr *ehdr, size_t fw_size) argument
218 const u8 *elf_data = (void *)ehdr;
221 shdr = (struct elf32_shdr *)(elf_data + ehdr->e_shoff);
222 name_table = elf_data + shdr[ehdr->e_shstrndx].sh_offset;
224 for (i = 0; i < ehdr->e_shnum; i++, shdr++) {
289 struct elf32_hdr *ehdr; local
295 ehdr = (struct elf32_hdr *)elf_data;
297 shdr = find_table(dev, ehdr, fw->size);
321 struct elf32_hdr *ehdr = (struct elf32_hdr *)fw->data; local
324 shdr = find_table(&rproc->dev, ehdr, fw->size);