Searched defs:hdr (Results 1 - 25 of 57) sorted by relevance

123

/arch/powerpc/boot/
H A Delf_util.c18 int parse_elf64(void *hdr, struct elf_info *info) argument
20 Elf64_Ehdr *elf64 = hdr;
50 int parse_elf32(void *hdr, struct elf_info *info) argument
52 Elf32_Ehdr *elf32 = hdr;
H A Dof.c50 static void of_image_hdr(const void *hdr) argument
52 const Elf64_Ehdr *elf64 = hdr;
H A Dgunzip_util.c44 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 Dwii.c54 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 Dmodule.c33 static const Elf_Shdr *find_section(const Elf_Ehdr *hdr, argument
40 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
41 for (i = 1; i < hdr->e_shnum; i++)
47 int module_finalize(const Elf_Ehdr *hdr, argument
53 sect = find_section(hdr, sechdrs, "__ftr_fixup");
59 sect = find_section(hdr, sechdrs, "__mmu_ftr_fixup");
66 sect = find_section(hdr, sechdrs, "__fw_ftr_fixup");
73 sect = find_section(hdr, sechdrs, "__lwsync_fixup");
H A Dmodule_32.c103 static unsigned long get_plt_size(const Elf32_Ehdr *hdr, argument
113 for (i = 1; i < hdr->e_shnum; i++) {
127 (void *)hdr + sechdrs[i].sh_offset,
135 sort((void *)hdr + sechdrs[i].sh_offset,
139 ret += count_relocs((void *)hdr
150 int module_frob_arch_sections(Elf32_Ehdr *hdr, argument
158 for (i = 0; i < hdr->e_shnum; i++) {
171 = get_plt_size(hdr, sechdrs, secstrings, 0);
173 = get_plt_size(hdr, sechdrs, secstrings, 1);
/arch/microblaze/kernel/
H A Dmodule.c121 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, argument
/arch/m68k/kernel/
H A Dmodule.c102 int module_finalize(const Elf_Ehdr *hdr, argument
/arch/sh/kernel/
H A Dmodule.c112 int module_finalize(const Elf_Ehdr *hdr, argument
118 ret |= module_dwarf_finalize(hdr, sechdrs, me);
/arch/x86/kernel/cpu/mcheck/
H A Dmce-apei.c70 struct cper_record_header hdr; member in struct:cper_mce_record
80 memcpy(rcd.hdr.signature, CPER_SIG_RECORD, CPER_SIG_SIZE);
81 rcd.hdr.revision = CPER_RECORD_REV;
82 rcd.hdr.signature_end = CPER_SIG_END;
83 rcd.hdr.section_count = 1;
84 rcd.hdr.error_severity = CPER_SEV_FATAL;
86 rcd.hdr.validation_bits = 0;
87 rcd.hdr.record_length = sizeof(rcd);
88 rcd.hdr.creator_id = CPER_CREATOR_MCE;
89 rcd.hdr
[all...]
H A Dmce_intel.c68 static void print_update(char *type, int *hdr, int num) argument
70 if (*hdr == 0)
72 *hdr = 1;
85 int hdr = 0; local
100 print_update("SHD", &hdr, i);
113 print_update("CMCI", &hdr, i);
120 if (hdr)
/arch/blackfin/kernel/
H A Dmodule.c21 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 Dmodule.c35 * @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/x86/platform/olpc/
H A Dolpc_ofw.c91 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 Dmodule.c76 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 Dmodule.c255 static const Elf_Shdr *find_mod_section(const Elf32_Ehdr *hdr, argument
259 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
261 for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++)
271 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, argument
276 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
277 const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum;
320 s = find_mod_section(hdr, sechdrs, ".pv_table");
324 s = find_mod_section(hdr, sechdr
[all...]
/arch/avr32/kernel/
H A Dmodule.c62 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/ia64/kernel/
H A Dperfmon_default_smpl.c79 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/s390/kernel/
H A Dmodule.c109 module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, argument
120 for (i = 0; i < hdr->e_shnum; i++)
137 symbols = (void *) hdr + symtab->sh_offset;
138 strings = (void *) hdr + sechdrs[symtab->sh_link].sh_offset;
153 for (i = 0; i < hdr->e_shnum; i++) {
157 rela = (void *) hdr + sechdrs[i].sh_offset;
388 int module_finalize(const Elf_Ehdr *hdr, argument
/arch/sparc/kernel/
H A Dmodule.c75 int module_frob_arch_sections(Elf_Ehdr *hdr, argument
86 if (symidx == hdr->e_shnum-1) {
209 static void do_patch_sections(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++) {
232 int module_finalize(const Elf_Ehdr *hdr, argument
239 do_patch_sections(hdr, sechdrs);
/arch/x86/kernel/
H A Dmodule.c159 int module_finalize(const Elf_Ehdr *hdr, argument
165 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
167 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
/arch/x86/pci/
H A Dolpc.c183 static uint32_t *hdr_addr(const uint32_t *hdr, int reg) argument
198 addr = (uint32_t)hdr + reg + (bar_probing ? -0x10 : 0x20);
/arch/x86/vdso/
H A Dvma.c34 Elf32_Ehdr *hdr = vdso; local
41 BUG_ON(memcmp(hdr->e_ident, ELFMAG, SELFMAG) != 0);
43 sechdrs = (void *)hdr + hdr->e_shoff;
44 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
46 for (i = 1; i < hdr->e_shnum; i++) {
59 alt_data = (void *)hdr + alt_sec->sh_offset;
66 Elf64_Ehdr *hdr = vdso; local
73 BUG_ON(memcmp(hdr
[all...]
/arch/avr32/include/asm/
H A Dsetup.h105 struct tag_header hdr; member in struct:tag
127 <= (tag)->hdr.size * 4)
129 #define tag_next(t) ((struct tag *)((u32 *)(t) + (t)->hdr.size))
133 for (t = base; t->hdr.size; t = tag_next(t))
/arch/frv/kernel/
H A Dprocess.c301 int elf_check_arch(const struct elf32_hdr *hdr) argument
306 if (hdr->e_machine != EM_FRV)
309 switch (hdr->e_flags & EF_FRV_GPR_MASK) {
320 switch (hdr->e_flags & EF_FRV_FPR_MASK) {
332 if ((hdr->e_flags & EF_FRV_MULADD) == EF_FRV_MULADD)
337 switch (hdr->e_flags & EF_FRV_CPU_MASK) {

Completed in 6346 milliseconds

123