Lines Matching refs:phdr
769 struct elf_phdr *phdr; in fadump_update_elfcore_header() local
774 phdr = (struct elf_phdr *)bufp; in fadump_update_elfcore_header()
776 if (phdr->p_type == PT_NOTE) { in fadump_update_elfcore_header()
777 phdr->p_paddr = __pa(fw_dump.cpu_notes_buf_vaddr); in fadump_update_elfcore_header()
778 phdr->p_offset = phdr->p_paddr; in fadump_update_elfcore_header()
779 phdr->p_filesz = fw_dump.cpu_notes_buf_size; in fadump_update_elfcore_header()
780 phdr->p_memsz = fw_dump.cpu_notes_buf_size; in fadump_update_elfcore_header()
1078 struct elf_phdr *phdr; in fadump_create_elfcore_headers() local
1093 phdr = (struct elf_phdr *)bufp; in fadump_create_elfcore_headers()
1095 phdr->p_type = PT_NOTE; in fadump_create_elfcore_headers()
1096 phdr->p_flags = 0; in fadump_create_elfcore_headers()
1097 phdr->p_vaddr = 0; in fadump_create_elfcore_headers()
1098 phdr->p_align = 0; in fadump_create_elfcore_headers()
1100 phdr->p_offset = 0; in fadump_create_elfcore_headers()
1101 phdr->p_paddr = 0; in fadump_create_elfcore_headers()
1102 phdr->p_filesz = 0; in fadump_create_elfcore_headers()
1103 phdr->p_memsz = 0; in fadump_create_elfcore_headers()
1108 phdr = (struct elf_phdr *)bufp; in fadump_create_elfcore_headers()
1110 phdr->p_type = PT_NOTE; in fadump_create_elfcore_headers()
1111 phdr->p_flags = 0; in fadump_create_elfcore_headers()
1112 phdr->p_vaddr = 0; in fadump_create_elfcore_headers()
1113 phdr->p_align = 0; in fadump_create_elfcore_headers()
1115 phdr->p_paddr = fadump_relocate(paddr_vmcoreinfo_note()); in fadump_create_elfcore_headers()
1116 phdr->p_offset = phdr->p_paddr; in fadump_create_elfcore_headers()
1117 phdr->p_memsz = phdr->p_filesz = VMCOREINFO_NOTE_SIZE; in fadump_create_elfcore_headers()
1134 phdr = (struct elf_phdr *)bufp; in fadump_create_elfcore_headers()
1136 phdr->p_type = PT_LOAD; in fadump_create_elfcore_headers()
1137 phdr->p_flags = PF_R|PF_W|PF_X; in fadump_create_elfcore_headers()
1138 phdr->p_offset = mbase; in fadump_create_elfcore_headers()
1146 phdr->p_offset = fw_dump.boot_mem_dest_addr + offset; in fadump_create_elfcore_headers()
1153 phdr->p_paddr = mbase; in fadump_create_elfcore_headers()
1154 phdr->p_vaddr = (unsigned long)__va(mbase); in fadump_create_elfcore_headers()
1155 phdr->p_filesz = msize; in fadump_create_elfcore_headers()
1156 phdr->p_memsz = msize; in fadump_create_elfcore_headers()
1157 phdr->p_align = 0; in fadump_create_elfcore_headers()