Lines Matching full:class

47 	char class;  local
67 class = ehdr->e_ident[EI_CLASS];
68 if (class != ELFCLASS32 && class != ELFCLASS64) {
69 dev_err(dev, "Unsupported class: %d\n", class);
73 if (class == ELFCLASS64 && fw->size < sizeof(struct elf64_hdr)) {
88 phoff = elf_hdr_get_e_phoff(class, fw->data);
89 shoff = elf_hdr_get_e_shoff(class, fw->data);
90 phnum = elf_hdr_get_e_phnum(class, fw->data);
91 elf_shdr_get_size = elf_size_of_shdr(class);
109 class == ELFCLASS32 ? 32 : 64);
163 u8 class = fw_elf_get_class(fw); local
164 u32 elf_phdr_get_size = elf_size_of_phdr(class);
167 phnum = elf_hdr_get_e_phnum(class, ehdr);
168 phdr = elf_data + elf_hdr_get_e_phoff(class, ehdr);
172 u64 da = elf_phdr_get_p_paddr(class, phdr);
173 u64 memsz = elf_phdr_get_p_memsz(class, phdr);
174 u64 filesz = elf_phdr_get_p_filesz(class, phdr);
175 u64 offset = elf_phdr_get_p_offset(class, phdr);
176 u32 type = elf_phdr_get_p_type(class, phdr);
242 u8 class = fw_elf_get_class(fw); local
245 u16 shnum = elf_hdr_get_e_shnum(class, ehdr);
246 u32 elf_shdr_get_size = elf_size_of_shdr(class);
247 u16 shstrndx = elf_hdr_get_e_shstrndx(class, ehdr);
250 /* First, get the section header according to the elf class */
251 shdr = elf_data + elf_hdr_get_e_shoff(class, ehdr);
255 name_table = elf_data + elf_shdr_get_sh_offset(class, name_table_shdr);
258 u64 size = elf_shdr_get_sh_size(class, shdr);
259 u64 offset = elf_shdr_get_sh_offset(class, shdr);
260 u32 name = elf_shdr_get_sh_name(class, shdr);
320 u8 class = fw_elf_get_class(fw); local
327 sh_offset = elf_shdr_get_sh_offset(class, shdr);
329 tablesz = elf_shdr_get_sh_size(class, shdr);
364 u8 class = fw_elf_get_class(fw); local
371 sh_addr = elf_shdr_get_sh_addr(class, shdr);
372 sh_size = elf_shdr_get_sh_size(class, shdr);