/arch/powerpc/boot/ |
H A D | elf_util.c | 18 int parse_elf64(void *hdr, struct elf_info *info) argument 20 Elf64_Ehdr *elf64 = hdr; 54 int parse_elf32(void *hdr, struct elf_info *info) argument 56 Elf32_Ehdr *elf32 = hdr;
|
H A D | of.c | 53 static void of_image_hdr(const void *hdr) argument 55 const Elf64_Ehdr *elf64 = hdr;
|
H A D | gunzip_util.c | 44 char *hdr = src; local 50 if ((hdr[0] == 0x1f) && (hdr[1] == 0x8b)) { 60 flags = hdr[3]; 61 if (hdr[2] != Z_DEFLATED || (flags & RESERVED) != 0) 64 hdrlen = 12 + hdr[10] + (hdr[11] << 8); 66 while (hdr[hdrlen++] != 0) 69 while (hdr[hdrlen++] != 0)
|
H A D | wii.c | 54 struct mipc_infohdr **hdrp, *hdr; local 60 hdr = NULL; 64 hdr = *hdrp; 65 if (mipc_check_address((u32)hdr)) { 66 printf("mini: invalid hdr %08X\n", (u32)hdr); 67 hdr = NULL; 70 if (memcmp(hdr->magic, "IPC", 3)) { 72 hdr = NULL; 77 return hdr; 82 struct mipc_infohdr *hdr; local [all...] |
/arch/powerpc/kernel/ |
H A D | module.c | 32 static const Elf_Shdr *find_section(const Elf_Ehdr *hdr, argument 39 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; 40 for (i = 1; i < hdr->e_shnum; i++) 46 int module_finalize(const Elf_Ehdr *hdr, argument 52 sect = find_section(hdr, sechdrs, "__ftr_fixup"); 58 sect = find_section(hdr, sechdrs, "__mmu_ftr_fixup"); 65 sect = find_section(hdr, sechdrs, "__fw_ftr_fixup"); 72 sect = find_section(hdr, sechdrs, "__lwsync_fixup");
|
H A D | module_32.c | 99 static unsigned long get_plt_size(const Elf32_Ehdr *hdr, argument 109 for (i = 1; i < hdr->e_shnum; i++) { 123 (void *)hdr + sechdrs[i].sh_offset, 131 sort((void *)hdr + sechdrs[i].sh_offset, 135 ret += count_relocs((void *)hdr 146 int module_frob_arch_sections(Elf32_Ehdr *hdr, argument 154 for (i = 0; i < hdr->e_shnum; i++) { 167 = get_plt_size(hdr, sechdrs, secstrings, 0); 169 = get_plt_size(hdr, sechdrs, secstrings, 1);
|
/arch/microblaze/kernel/ |
H A D | module.c | 120 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, argument
|
/arch/m68k/kernel/ |
H A D | module.c | 102 int module_finalize(const Elf_Ehdr *hdr, argument
|
/arch/sh/kernel/ |
H A D | module.c | 112 int module_finalize(const Elf_Ehdr *hdr, argument 118 ret |= module_dwarf_finalize(hdr, sechdrs, me);
|
/arch/x86/kernel/cpu/mcheck/ |
H A D | mce-apei.c | 76 struct cper_record_header hdr; member in struct:cper_mce_record 86 memcpy(rcd.hdr.signature, CPER_SIG_RECORD, CPER_SIG_SIZE); 87 rcd.hdr.revision = CPER_RECORD_REV; 88 rcd.hdr.signature_end = CPER_SIG_END; 89 rcd.hdr.section_count = 1; 90 rcd.hdr.error_severity = CPER_SEV_FATAL; 92 rcd.hdr.validation_bits = 0; 93 rcd.hdr.record_length = sizeof(rcd); 94 rcd.hdr.creator_id = CPER_CREATOR_MCE; 95 rcd.hdr [all...] |
/arch/arc/kernel/ |
H A D | module.c | 30 * 2. Since we are iterating thru sec hdr tbl anyways, make a note of 33 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, argument 42 for (i = 1; i < hdr->e_shnum; i++) { 131 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, argument
|
/arch/blackfin/kernel/ |
H A D | module.c | 21 module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, argument 31 Elf_Shdr *s, *sechdrs_end = sechdrs + hdr->e_shnum; 42 (hdr->e_flags & EF_BFIN_CODE_IN_L1))) { 54 (hdr->e_flags & EF_BFIN_DATA_IN_L1))) { 66 (hdr->e_flags & EF_BFIN_DATA_IN_L1))) { 97 (hdr->e_flags & EF_BFIN_CODE_IN_L2))) { 109 (hdr->e_flags & EF_BFIN_DATA_IN_L2))) { 121 (hdr->e_flags & EF_BFIN_DATA_IN_L2))) { 234 module_finalize(const Elf_Ehdr * hdr, argument 241 secstrings = (void *)hdr [all...] |
/arch/hexagon/kernel/ |
H A D | module.c | 35 * @hdr - pointer to elf header 40 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, argument 48 for (i = 0; i < hdr->e_shnum; i++) {
|
/arch/sparc/kernel/ |
H A D | module.c | 54 int module_frob_arch_sections(Elf_Ehdr *hdr, argument 65 if (symidx == hdr->e_shnum-1) { 183 static void do_patch_sections(const Elf_Ehdr *hdr, argument 187 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; 189 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { 206 int module_finalize(const Elf_Ehdr *hdr, argument 213 do_patch_sections(hdr, sechdrs);
|
/arch/x86/platform/olpc/ |
H A D | olpc_ofw.c | 91 struct olpc_ofw_header *hdr = &boot_params.olpc_ofw_header; local 95 if (hdr->ofw_magic != OLPC_OFW_SIG) 98 olpc_ofw_cif = (int (*)(int *))hdr->cif_handler;
|
/arch/alpha/kernel/ |
H A D | module.c | 76 module_frob_arch_sections(Elf64_Ehdr *hdr, Elf64_Shdr *sechdrs, argument 84 esechdrs = sechdrs + hdr->e_shnum; 125 rela = (void *)hdr + s->sh_offset;
|
/arch/arm/kernel/ |
H A D | module.c | 267 static const Elf_Shdr *find_mod_section(const Elf32_Ehdr *hdr, argument 271 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; 273 for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) 283 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, argument 288 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; 289 const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum; 332 s = find_mod_section(hdr, sechdrs, ".pv_table"); 336 s = find_mod_section(hdr, sechdr [all...] |
/arch/avr32/kernel/ |
H A D | module.c | 62 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, argument 74 for (i = 0; i < hdr->e_shnum; i++) 92 symbols = (void *)hdr + symtab->sh_offset; 93 strings = (void *)hdr + sechdrs[symtab->sh_link].sh_offset; 106 for (i = 0; i < hdr->e_shnum; i++) { 110 rela = (void *)hdr + sechdrs[i].sh_offset; 295 int module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, argument
|
/arch/frv/kernel/ |
H A D | process.c | 207 int elf_check_arch(const struct elf32_hdr *hdr) argument 212 if (hdr->e_machine != EM_FRV) 215 switch (hdr->e_flags & EF_FRV_GPR_MASK) { 226 switch (hdr->e_flags & EF_FRV_FPR_MASK) { 238 if ((hdr->e_flags & EF_FRV_MULADD) == EF_FRV_MULADD) 243 switch (hdr->e_flags & EF_FRV_CPU_MASK) {
|
/arch/ia64/kernel/ |
H A D | perfmon_default_smpl.c | 79 pfm_default_smpl_hdr_t *hdr; local 82 hdr = (pfm_default_smpl_hdr_t *)buf; 84 hdr->hdr_version = PFM_DEFAULT_SMPL_VERSION; 85 hdr->hdr_buf_size = arg->buf_size; 86 hdr->hdr_cur_offs = sizeof(*hdr); 87 hdr->hdr_overflows = 0UL; 88 hdr->hdr_count = 0UL; 93 hdr->hdr_buf_size, 94 sizeof(*hdr), 104 pfm_default_smpl_hdr_t *hdr; local 232 pfm_default_smpl_hdr_t *hdr; local [all...] |
/arch/metag/kernel/ |
H A D | module.c | 85 static unsigned long get_plt_size(const Elf32_Ehdr *hdr, argument 95 for (i = 1; i < hdr->e_shnum; i++) { 109 (void *)hdr + sechdrs[i].sh_offset, 117 sort((void *)hdr + sechdrs[i].sh_offset, 121 ret += count_relocs((void *)hdr 132 int module_frob_arch_sections(Elf32_Ehdr *hdr, argument 140 for (i = 0; i < hdr->e_shnum; i++) { 153 = get_plt_size(hdr, sechdrs, secstrings, 0); 156 = get_plt_size(hdr, sechdrs, secstrings, 1);
|
/arch/x86/include/asm/ |
H A D | microcode_amd.h | 39 struct microcode_header_amd hdr; member in struct:microcode_amd
|
H A D | microcode_intel.h | 20 struct microcode_header_intel hdr; member in struct:microcode_intel 46 (((struct microcode_intel *)mc)->hdr.datasize ? \ 47 ((struct microcode_intel *)mc)->hdr.totalsize : \ 51 (((struct microcode_intel *)mc)->hdr.datasize ? \ 52 ((struct microcode_intel *)mc)->hdr.datasize : DEFAULT_UCODE_DATASIZE)
|
/arch/x86/kernel/ |
H A D | module.c | 207 int module_finalize(const Elf_Ehdr *hdr, argument 213 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; 215 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
|
/arch/x86/pci/ |
H A D | olpc.c | 183 static uint32_t *hdr_addr(const uint32_t *hdr, int reg) argument 198 addr = (uint32_t)hdr + reg + (bar_probing ? -0x10 : 0x20);
|