Lines Matching defs:class
15 * fw_elf_get_class - Get elf class
18 * Note that we use elf32_hdr to access the class since the start of the
19 * struct is the same for both elf class
21 * Return: elf class of the firmware
30 static inline void elf_hdr_init_ident(struct elf32_hdr *hdr, u8 class)
33 hdr->e_ident[EI_CLASS] = class;
41 static inline __type elf_##__s##_get_##__field(u8 class, const void *arg) \
43 if (class == ELFCLASS32) \
48 static inline void elf_##__s##_set_##__field(u8 class, void *arg, \
51 if (class == ELFCLASS32) \
88 static inline unsigned long elf_size_of_##__s(u8 class) \
90 if (class == ELFCLASS32)\
100 static inline unsigned int elf_strtbl_add(const char *name, void *ehdr, u8 class, size_t *index)
102 u16 shstrndx = elf_hdr_get_e_shstrndx(class, ehdr);
107 shdr = ehdr + elf_size_of_hdr(class) + shstrndx * elf_size_of_shdr(class);
108 strtab = ehdr + elf_shdr_get_sh_offset(class, shdr);