/arch/powerpc/boot/ |
D | wii.c | 54 struct mipc_infohdr **hdrp, *hdr; in mipc_get_infohdr() local 60 hdr = NULL; in mipc_get_infohdr() 64 hdr = *hdrp; in mipc_get_infohdr() 65 if (mipc_check_address((u32)hdr)) { in mipc_get_infohdr() 66 printf("mini: invalid hdr %08X\n", (u32)hdr); in mipc_get_infohdr() 67 hdr = NULL; in mipc_get_infohdr() 70 if (memcmp(hdr->magic, "IPC", 3)) { in mipc_get_infohdr() 72 hdr = NULL; in mipc_get_infohdr() 77 return hdr; in mipc_get_infohdr() 82 struct mipc_infohdr *hdr; in mipc_get_mem2_boundary() local [all …]
|
D | gunzip_util.c | 44 char *hdr = src; in gunzip_start() local 50 if ((hdr[0] == 0x1f) && (hdr[1] == 0x8b)) { in gunzip_start() 60 flags = hdr[3]; in gunzip_start() 61 if (hdr[2] != Z_DEFLATED || (flags & RESERVED) != 0) in gunzip_start() 64 hdrlen = 12 + hdr[10] + (hdr[11] << 8); in gunzip_start() 66 while (hdr[hdrlen++] != 0) in gunzip_start() 69 while (hdr[hdrlen++] != 0) in gunzip_start()
|
/arch/ia64/kernel/ |
D | perfmon_default_smpl.c | 79 pfm_default_smpl_hdr_t *hdr; in default_init() local 82 hdr = (pfm_default_smpl_hdr_t *)buf; in default_init() 84 hdr->hdr_version = PFM_DEFAULT_SMPL_VERSION; in default_init() 85 hdr->hdr_buf_size = arg->buf_size; in default_init() 86 hdr->hdr_cur_offs = sizeof(*hdr); in default_init() 87 hdr->hdr_overflows = 0UL; in default_init() 88 hdr->hdr_count = 0UL; in default_init() 93 hdr->hdr_buf_size, in default_init() 94 sizeof(*hdr), in default_init() 95 hdr->hdr_version, in default_init() [all …]
|
/arch/x86/kernel/cpu/mcheck/ |
D | mce-apei.c | 76 struct cper_record_header hdr; member 86 memcpy(rcd.hdr.signature, CPER_SIG_RECORD, CPER_SIG_SIZE); in apei_write_mce() 87 rcd.hdr.revision = CPER_RECORD_REV; in apei_write_mce() 88 rcd.hdr.signature_end = CPER_SIG_END; in apei_write_mce() 89 rcd.hdr.section_count = 1; in apei_write_mce() 90 rcd.hdr.error_severity = CPER_SEV_FATAL; in apei_write_mce() 92 rcd.hdr.validation_bits = 0; in apei_write_mce() 93 rcd.hdr.record_length = sizeof(rcd); in apei_write_mce() 94 rcd.hdr.creator_id = CPER_CREATOR_MCE; in apei_write_mce() 95 rcd.hdr.notification_type = CPER_NOTIFY_MCE; in apei_write_mce() [all …]
|
/arch/s390/hypfs/ |
D | hypfs_diag.c | 92 static inline __u8 info_blk_hdr__npar(enum diag204_format type, void *hdr) in info_blk_hdr__npar() argument 95 return ((struct info_blk_hdr *)hdr)->npar; in info_blk_hdr__npar() 97 return ((struct x_info_blk_hdr *)hdr)->npar; in info_blk_hdr__npar() 100 static inline __u8 info_blk_hdr__flags(enum diag204_format type, void *hdr) in info_blk_hdr__flags() argument 103 return ((struct info_blk_hdr *)hdr)->flags; in info_blk_hdr__flags() 105 return ((struct x_info_blk_hdr *)hdr)->flags; in info_blk_hdr__flags() 108 static inline __u16 info_blk_hdr__pcpus(enum diag204_format type, void *hdr) in info_blk_hdr__pcpus() argument 111 return ((struct info_blk_hdr *)hdr)->phys_cpus; in info_blk_hdr__pcpus() 113 return ((struct x_info_blk_hdr *)hdr)->phys_cpus; in info_blk_hdr__pcpus() 151 static inline __u8 part_hdr__rcpus(enum diag204_format type, void *hdr) in part_hdr__rcpus() argument [all …]
|
/arch/powerpc/kernel/ |
D | module.c | 32 static const Elf_Shdr *find_section(const Elf_Ehdr *hdr, in find_section() argument 39 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section() 40 for (i = 1; i < hdr->e_shnum; i++) in find_section() 46 int module_finalize(const Elf_Ehdr *hdr, in module_finalize() argument 52 sect = find_section(hdr, sechdrs, "__ftr_fixup"); in module_finalize() 58 sect = find_section(hdr, sechdrs, "__mmu_ftr_fixup"); in module_finalize() 65 sect = find_section(hdr, sechdrs, "__fw_ftr_fixup"); in module_finalize() 72 sect = find_section(hdr, sechdrs, "__lwsync_fixup"); in module_finalize()
|
D | module_32.c | 99 static unsigned long get_plt_size(const Elf32_Ehdr *hdr, in get_plt_size() argument 109 for (i = 1; i < hdr->e_shnum; i++) { in get_plt_size() 123 (void *)hdr + sechdrs[i].sh_offset, in get_plt_size() 131 sort((void *)hdr + sechdrs[i].sh_offset, in get_plt_size() 135 ret += count_relocs((void *)hdr in get_plt_size() 146 int module_frob_arch_sections(Elf32_Ehdr *hdr, in module_frob_arch_sections() argument 154 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections() 167 = get_plt_size(hdr, sechdrs, secstrings, 0); in module_frob_arch_sections() 169 = get_plt_size(hdr, sechdrs, secstrings, 1); in module_frob_arch_sections()
|
/arch/arm/kernel/ |
D | atags_compat.c | 87 tag->hdr.tag = ATAG_MEM; in memtag() 88 tag->hdr.size = tag_size(tag_mem32); in memtag() 124 tag->hdr.tag = ATAG_CORE; in build_tag_list() 125 tag->hdr.size = tag_size(tag_core); in build_tag_list() 131 tag->hdr.tag = ATAG_RAMDISK; in build_tag_list() 132 tag->hdr.size = tag_size(tag_ramdisk); in build_tag_list() 139 tag->hdr.tag = ATAG_INITRD; in build_tag_list() 140 tag->hdr.size = tag_size(tag_initrd); in build_tag_list() 145 tag->hdr.tag = ATAG_SERIAL; in build_tag_list() 146 tag->hdr.size = tag_size(tag_serialnr); in build_tag_list() [all …]
|
D | atags_parse.c | 56 if (tag->hdr.size > 2) { in parse_tag_core() 154 if (tag->hdr.tag == t->tag) { in parse_tag() 168 for (; t->hdr.size; t = tag_next(t)) in parse_tags() 172 t->hdr.tag); in parse_tags() 177 for (; tag->hdr.size; tag = tag_next(tag)) in squash_mem_tags() 178 if (tag->hdr.tag == ATAG_MEM) in squash_mem_tags() 179 tag->hdr.tag = ATAG_NONE; in squash_mem_tags() 217 if (tags->hdr.tag != ATAG_CORE) in setup_machine_tags() 220 if (tags->hdr.tag != ATAG_CORE) { in setup_machine_tags() 228 if (tags->hdr.tag == ATAG_CORE) { in setup_machine_tags()
|
/arch/s390/pci/ |
D | pci_clp.c | 87 rrb->request.hdr.len = sizeof(rrb->request); in clp_query_pci_fngrp() 88 rrb->request.hdr.cmd = CLP_QUERY_PCI_FNGRP; in clp_query_pci_fngrp() 89 rrb->response.hdr.len = sizeof(rrb->response); in clp_query_pci_fngrp() 93 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) in clp_query_pci_fngrp() 97 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_query_pci_fngrp() 140 rrb->request.hdr.len = sizeof(rrb->request); in clp_query_pci_fn() 141 rrb->request.hdr.cmd = CLP_QUERY_PCI_FN; in clp_query_pci_fn() 142 rrb->response.hdr.len = sizeof(rrb->response); in clp_query_pci_fn() 146 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) { in clp_query_pci_fn() 154 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_query_pci_fn() [all …]
|
/arch/x86/boot/ |
D | main.c | 40 memcpy(&boot_params.hdr, &hdr, sizeof hdr); in copy_boot_params() 42 if (!boot_params.hdr.cmd_line_ptr && in copy_boot_params() 50 if (oldcmd->cl_offset < boot_params.hdr.setup_move_size) in copy_boot_params() 55 boot_params.hdr.cmd_line_ptr = in copy_boot_params() 120 if (boot_params.hdr.loadflags & CAN_USE_HEAP) { in init_heap() 125 ((size_t)boot_params.hdr.heap_end_ptr + 0x200); in init_heap()
|
D | pm.c | 24 if (boot_params.hdr.realmode_swtch) { in realmode_switch_hook() 26 : : "m" (boot_params.hdr.realmode_swtch) in realmode_switch_hook() 124 protected_mode_jump(boot_params.hdr.code32_start, in go_to_protected_mode()
|
/arch/blackfin/kernel/ |
D | module.c | 21 module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections() argument 31 Elf_Shdr *s, *sechdrs_end = sechdrs + hdr->e_shnum; in module_frob_arch_sections() 42 (hdr->e_flags & EF_BFIN_CODE_IN_L1))) { in module_frob_arch_sections() 54 (hdr->e_flags & EF_BFIN_DATA_IN_L1))) { in module_frob_arch_sections() 66 (hdr->e_flags & EF_BFIN_DATA_IN_L1))) { in module_frob_arch_sections() 97 (hdr->e_flags & EF_BFIN_CODE_IN_L2))) { in module_frob_arch_sections() 109 (hdr->e_flags & EF_BFIN_DATA_IN_L2))) { in module_frob_arch_sections() 121 (hdr->e_flags & EF_BFIN_DATA_IN_L2))) { in module_frob_arch_sections() 234 module_finalize(const Elf_Ehdr * hdr, in module_finalize() argument 241 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize() [all …]
|
/arch/mips/kernel/ |
D | vpe.c | 182 static void layout_sections(struct module *mod, const Elf_Ehdr *hdr, in layout_sections() argument 196 for (i = 0; i < hdr->e_shnum; i++) in layout_sections() 200 for (i = 0; i < hdr->e_shnum; ++i) { in layout_sections() 578 Elf_Ehdr *hdr; in vpe_elfload() local 588 hdr = (Elf_Ehdr *) v->pbuffer; in vpe_elfload() 593 if (memcmp(hdr->e_ident, ELFMAG, SELFMAG) != 0 in vpe_elfload() 594 || (hdr->e_type != ET_REL && hdr->e_type != ET_EXEC) in vpe_elfload() 595 || !elf_check_arch(hdr) in vpe_elfload() 596 || hdr->e_shentsize != sizeof(*sechdrs)) { in vpe_elfload() 602 if (hdr->e_type == ET_REL) in vpe_elfload() [all …]
|
/arch/x86/kernel/ |
D | asm-offsets.c | 65 OFFSET(BP_loadflags, boot_params, hdr.loadflags); in common() 66 OFFSET(BP_hardware_subarch, boot_params, hdr.hardware_subarch); in common() 67 OFFSET(BP_version, boot_params, hdr.version); in common() 68 OFFSET(BP_kernel_alignment, boot_params, hdr.kernel_alignment); in common() 69 OFFSET(BP_pref_address, boot_params, hdr.pref_address); in common() 70 OFFSET(BP_code32_start, boot_params, hdr.code32_start); in common()
|
/arch/x86/vdso/ |
D | vdso2c.h | 14 ELF(Ehdr) *hdr = (ELF(Ehdr) *)raw_addr; in BITSFUNC() 23 ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_LE(&hdr->e_phoff)); in BITSFUNC() 26 for (i = 0; i < GET_LE(&hdr->e_phnum); i++) { in BITSFUNC() 62 secstrings_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC() 63 GET_LE(&hdr->e_shentsize)*GET_LE(&hdr->e_shstrndx); in BITSFUNC() 65 for (i = 0; i < GET_LE(&hdr->e_shnum); i++) { in BITSFUNC() 66 ELF(Shdr) *sh = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC() 67 GET_LE(&hdr->e_shentsize) * i; in BITSFUNC() 79 strtab_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC() 80 GET_LE(&hdr->e_shentsize) * GET_LE(&symtab_hdr->sh_link); in BITSFUNC()
|
/arch/s390/include/asm/ |
D | pci_clp.h | 51 struct clp_req_hdr hdr; member 61 struct clp_rsp_hdr hdr; member 75 struct clp_req_hdr hdr; member 86 struct clp_rsp_hdr hdr; member 110 struct clp_req_hdr hdr; member 122 struct clp_rsp_hdr hdr; member 143 struct clp_req_hdr hdr; member 156 struct clp_rsp_hdr hdr; member
|
/arch/x86/include/asm/ |
D | microcode_intel.h | 20 struct microcode_header_intel hdr; member 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/cpu/microcode/ |
D | amd_early.c | 54 start = (void *)p->hdr.ramdisk_image; in find_ucode_in_initrd() 55 size = p->hdr.ramdisk_size; in find_ucode_in_initrd() 58 start = (void *)(boot_params.hdr.ramdisk_image + PAGE_OFFSET); in find_ucode_in_initrd() 59 size = boot_params.hdr.ramdisk_size; in find_ucode_in_initrd() 213 if (eq_id == mc->hdr.processor_rev_id && rev < mc->hdr.patch_id) { in apply_ucode_in_initrd() 216 rev = mc->hdr.patch_id; in apply_ucode_in_initrd() 270 if (mc->hdr.patch_id && mc->hdr.processor_rev_id) { in load_ucode_amd_ap() 332 if (mc && rev < mc->hdr.patch_id) { in load_ucode_amd_ap() 334 ucode_new_rev = mc->hdr.patch_id; in load_ucode_amd_ap() 381 (cont - boot_params.hdr.ramdisk_image)); in save_microcode_in_initrd_amd() [all …]
|
/arch/sparc/kernel/ |
D | module.c | 54 int module_frob_arch_sections(Elf_Ehdr *hdr, in module_frob_arch_sections() argument 65 if (symidx == hdr->e_shnum-1) { in module_frob_arch_sections() 183 static void do_patch_sections(const Elf_Ehdr *hdr, in do_patch_sections() argument 187 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in do_patch_sections() 189 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in do_patch_sections() 206 int module_finalize(const Elf_Ehdr *hdr, in module_finalize() argument 213 do_patch_sections(hdr, sechdrs); in module_finalize()
|
/arch/metag/kernel/ |
D | module.c | 85 static unsigned long get_plt_size(const Elf32_Ehdr *hdr, in get_plt_size() argument 95 for (i = 1; i < hdr->e_shnum; i++) { in get_plt_size() 109 (void *)hdr + sechdrs[i].sh_offset, in get_plt_size() 117 sort((void *)hdr + sechdrs[i].sh_offset, in get_plt_size() 121 ret += count_relocs((void *)hdr in get_plt_size() 132 int module_frob_arch_sections(Elf32_Ehdr *hdr, in module_frob_arch_sections() argument 140 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections() 153 = get_plt_size(hdr, sechdrs, secstrings, 0); in module_frob_arch_sections() 156 = get_plt_size(hdr, sechdrs, secstrings, 1); in module_frob_arch_sections()
|
/arch/avr32/include/asm/ |
D | setup.h | 104 struct tag_header hdr; member 126 <= (tag)->hdr.size * 4) 128 #define tag_next(t) ((struct tag *)((u32 *)(t) + (t)->hdr.size)) 132 for (t = base; t->hdr.size; t = tag_next(t))
|
/arch/frv/kernel/ |
D | process.c | 207 int elf_check_arch(const struct elf32_hdr *hdr) in elf_check_arch() argument 212 if (hdr->e_machine != EM_FRV) in elf_check_arch() 215 switch (hdr->e_flags & EF_FRV_GPR_MASK) { in elf_check_arch() 226 switch (hdr->e_flags & EF_FRV_FPR_MASK) { in elf_check_arch() 238 if ((hdr->e_flags & EF_FRV_MULADD) == EF_FRV_MULADD) in elf_check_arch() 243 switch (hdr->e_flags & EF_FRV_CPU_MASK) { in elf_check_arch()
|
/arch/powerpc/platforms/powermac/ |
D | nvram.c | 66 struct chrp_header hdr; member 227 static u8 chrp_checksum(struct chrp_header* hdr) in chrp_checksum() argument 230 u16 sum = hdr->signature; in chrp_checksum() 231 for (ptr = (u8 *)&hdr->len; ptr < hdr->data; ptr++) in chrp_checksum() 264 if (hdr99->hdr.signature != CORE99_SIGNATURE) { in core99_check() 268 if (hdr99->hdr.cksum != chrp_checksum(&hdr99->hdr)) { in core99_check() 439 struct chrp_header* hdr; in lookup_partitions() local 445 hdr = (struct chrp_header *)buffer; in lookup_partitions() 452 if (!strcmp(hdr->name, "common")) in lookup_partitions() 454 if (!strcmp(hdr->name, "APL,MacOS75")) { in lookup_partitions() [all …]
|
/arch/powerpc/include/asm/ |
D | hvsi.h | 32 struct hvsi_header hdr; member 37 struct hvsi_header hdr; member 45 struct hvsi_header hdr; member 50 struct hvsi_header hdr; member
|