/linux-6.6.21/kernel/ |
D | kexec_elf.c | 188 if (phdr->p_offset + phdr->p_filesz < phdr->p_offset) { in elf_is_phdr_sane() 191 } else if (phdr->p_offset + phdr->p_filesz > buf_len) { in elf_is_phdr_sane() 220 phdr->p_offset = elf64_to_cpu(ehdr, buf_phdr->p_offset); in elf_read_phdr() 229 phdr->p_offset = elf32_to_cpu(ehdr, buf_phdr->p_offset); in elf_read_phdr() 411 kbuf->buffer = (void *) elf_info->buffer + phdr->p_offset; in kexec_elf_load()
|
D | crash_core.c | 374 phdr->p_offset = phdr->p_paddr = notes_addr; in crash_prepare_elf64_headers() 382 phdr->p_offset = phdr->p_paddr = paddr_vmcoreinfo_note(); in crash_prepare_elf64_headers() 393 phdr->p_offset = phdr->p_paddr = __pa_symbol(_text); in crash_prepare_elf64_headers() 405 phdr->p_offset = mstart; in crash_prepare_elf64_headers() 414 ehdr->e_phnum, phdr->p_offset); in crash_prepare_elf64_headers()
|
/linux-6.6.21/arch/ia64/kernel/ |
D | elfcore.c | 29 ofs = phdr.p_offset = offset; in elf_core_write_extra_phdrs() 32 phdr.p_offset = ofs; in elf_core_write_extra_phdrs() 35 phdr.p_offset += ofs; in elf_core_write_extra_phdrs()
|
/linux-6.6.21/fs/proc/ |
D | vmcore.c | 736 offset = phdr_ptr->p_offset; in update_note_header_size_elf64() 832 offset = phdr_ptr->p_offset; in copy_notes_elf64() 877 phdr.p_offset = roundup(note_off, PAGE_SIZE); in merge_note_headers_elf64() 927 offset = phdr_ptr->p_offset; in update_note_header_size_elf32() 1023 offset = phdr_ptr->p_offset; in copy_notes_elf32() 1068 phdr.p_offset = roundup(note_off, PAGE_SIZE); in merge_note_headers_elf32() 1121 paddr = phdr_ptr->p_offset; in process_ptload_program_headers_elf64() 1135 phdr_ptr->p_offset = vmcore_off + (paddr - start); in process_ptload_program_headers_elf64() 1164 paddr = phdr_ptr->p_offset; in process_ptload_program_headers_elf32() 1178 phdr_ptr->p_offset = vmcore_off + (paddr - start); in process_ptload_program_headers_elf32() [all …]
|
/linux-6.6.21/drivers/soc/qcom/ |
D | mdt_loader.c | 174 } else if (phdrs[hash_segment].p_offset + hash_size <= fw->size) { in qcom_mdt_read_metadata() 176 hash_offset = phdrs[hash_segment].p_offset; in qcom_mdt_read_metadata() 286 seg_start = phdrs[i].p_offset; in qcom_mdt_bins_are_split() 287 seg_end = phdrs[i].p_offset + phdrs[i].p_filesz; in qcom_mdt_bins_are_split() 371 if (phdr->p_offset + phdr->p_filesz > fw->size) { in __qcom_mdt_load() 378 memcpy(ptr, fw->data + phdr->p_offset, phdr->p_filesz); in __qcom_mdt_load()
|
/linux-6.6.21/tools/perf/util/ |
D | symbol-minimal.c | 143 phdr->p_offset = bswap_32(phdr->p_offset); in filename__read_build_id() 151 offset = phdr->p_offset; in filename__read_build_id() 194 phdr->p_offset = bswap_64(phdr->p_offset); in filename__read_build_id() 202 offset = phdr->p_offset; in filename__read_build_id()
|
/linux-6.6.21/drivers/gpu/drm/vc4/ |
D | vc4_validate.c | 579 uint32_t p0 = *(uint32_t *)(uniform_data_u + sample->p_offset[0]); in reloc_tex() 580 uint32_t p1 = *(uint32_t *)(uniform_data_u + sample->p_offset[1]); in reloc_tex() 581 uint32_t p2 = (sample->p_offset[2] != ~0 ? in reloc_tex() 582 *(uint32_t *)(uniform_data_u + sample->p_offset[2]) : 0); in reloc_tex() 583 uint32_t p3 = (sample->p_offset[3] != ~0 ? in reloc_tex() 584 *(uint32_t *)(uniform_data_u + sample->p_offset[3]) : 0); in reloc_tex() 585 uint32_t *validated_p0 = exec->uniforms_v + sample->p_offset[0]; in reloc_tex() 748 DRM_INFO("Texture p0 at %d: 0x%08x\n", sample->p_offset[0], p0); in reloc_tex() 749 DRM_INFO("Texture p1 at %d: 0x%08x\n", sample->p_offset[1], p1); in reloc_tex() 750 DRM_INFO("Texture p2 at %d: 0x%08x\n", sample->p_offset[2], p2); in reloc_tex() [all …]
|
D | vc4_validate_shaders.c | 177 validation_state->tmu_setup[tmu].p_offset[i] = ~0; in record_texture_sample() 236 validation_state->tmu_setup[tmu].p_offset[1] = in check_tmu_write() 260 validation_state->tmu_setup[tmu].p_offset[validation_state->tmu_write_count[tmu]] = in check_tmu_write() 728 validation_state->tmu_setup[i / 4].p_offset[i % 4] = ~0; in reset_validation_state()
|
/linux-6.6.21/tools/testing/selftests/kvm/lib/ |
D | elf.c | 182 offset_rv = lseek(fd, phdr.p_offset, SEEK_SET); in kvm_vm_elf_load() 183 TEST_ASSERT(offset_rv == phdr.p_offset, in kvm_vm_elf_load() 189 (intmax_t) phdr.p_offset); in kvm_vm_elf_load()
|
/linux-6.6.21/block/partitions/ |
D | karma.c | 27 __le32 p_offset; in karma_partition() member 51 put_partition(state, slot, le32_to_cpu(p->p_offset), in karma_partition()
|
D | osf.c | 47 __le32 p_offset; in osf_partition() member 80 le32_to_cpu(partition->p_offset), in osf_partition()
|
/linux-6.6.21/arch/sparc/vdso/ |
D | vdso2c.h | 33 if (GET_BE(&pt[i].p_offset) != 0 || in BITSFUNC() 43 dyn = raw_addr + GET_BE(&pt[i].p_offset); in BITSFUNC() 44 dyn_end = raw_addr + GET_BE(&pt[i].p_offset) + in BITSFUNC()
|
/linux-6.6.21/arch/x86/um/ |
D | elfcore.c | 29 ofs = phdr.p_offset = offset; in elf_core_write_extra_phdrs() 32 phdr.p_offset += ofs; in elf_core_write_extra_phdrs()
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/ |
D | qed_init_ops.c | 498 u16 *p_offset, int modes) in qed_init_cmd_mode_match() argument 505 tree_val = modes_tree_buf[(*p_offset)++]; in qed_init_cmd_mode_match() 508 return qed_init_cmd_mode_match(p_hwfn, p_offset, modes) ^ 1; in qed_init_cmd_mode_match() 510 arg1 = qed_init_cmd_mode_match(p_hwfn, p_offset, modes); in qed_init_cmd_mode_match() 511 arg2 = qed_init_cmd_mode_match(p_hwfn, p_offset, modes); in qed_init_cmd_mode_match() 514 arg1 = qed_init_cmd_mode_match(p_hwfn, p_offset, modes); in qed_init_cmd_mode_match() 515 arg2 = qed_init_cmd_mode_match(p_hwfn, p_offset, modes); in qed_init_cmd_mode_match()
|
/linux-6.6.21/arch/powerpc/boot/ |
D | elf_util.c | 45 info->elfoffset = (unsigned long)elf64ph->p_offset; in parse_elf64() 76 info->elfoffset = elf32ph->p_offset; in parse_elf32()
|
D | elf.h | 97 Elf32_Off p_offset; member 109 Elf64_Off p_offset; /* Segment file offset */ member
|
/linux-6.6.21/arch/s390/kernel/ |
D | kexec_elf.c | 39 buf.buffer = kernel + phdr->p_offset; in kexec_file_add_kernel_elf() 98 if (phdr->p_offset > kernel_len) in s390_elf_load()
|
/linux-6.6.21/arch/x86/entry/vdso/ |
D | vdso2c.h | 69 if (GET_LE(&pt[i].p_offset) != 0 || in BITSFUNC() 79 dyn = raw_addr + GET_LE(&pt[i].p_offset); in BITSFUNC() 80 dyn_end = raw_addr + GET_LE(&pt[i].p_offset) + in BITSFUNC()
|
/linux-6.6.21/fs/ |
D | binfmt_elf_fdpic.c | 246 pos = phdr->p_offset; in load_elf_fdpic_binary() 811 if (phdr->p_offset > params->hdr.e_phoff || in elf_fdpic_map_file() 812 phdr->p_offset + phdr->p_filesz < stop) in elf_fdpic_map_file() 823 params->hdr.e_phoff - phdr->p_offset; in elf_fdpic_map_file() 965 ret = read_code(file, seg->addr, phdr->p_offset, in elf_fdpic_map_file_constdisp_on_uclinux() 971 if (phdr->p_offset == 0) in elf_fdpic_map_file_constdisp_on_uclinux() 1031 (unsigned long) phdr->p_offset, in elf_fdpic_map_file_by_direct_mmap() 1082 phdr->p_offset - disp); in elf_fdpic_map_file_by_direct_mmap() 1086 phdr->p_offset - disp, maddr); in elf_fdpic_map_file_by_direct_mmap() 1100 if (phdr->p_offset == 0) in elf_fdpic_map_file_by_direct_mmap() [all …]
|
/linux-6.6.21/lib/ |
D | buildid.c | 86 page_addr + phdr[i].p_offset, in get_build_id_32() 111 page_addr + phdr[i].p_offset, in get_build_id_64()
|
/linux-6.6.21/tools/testing/selftests/powerpc/ptrace/ |
D | core-pkey.c | 232 for (nhdr = p + phdr->p_offset; in check_core_file() 233 (void *) nhdr < p + phdr->p_offset + phdr->p_filesz; in check_core_file() 238 FAIL_IF((void *) nhdr >= p + phdr->p_offset + phdr->p_filesz); in check_core_file()
|
/linux-6.6.21/tools/testing/selftests/vDSO/ |
D | parse_vdso.c | 99 + (uintptr_t)pt[i].p_offset in vdso_init_from_sysinfo_ehdr() 102 dyn = (ELF(Dyn)*)(base + pt[i].p_offset); in vdso_init_from_sysinfo_ehdr()
|
/linux-6.6.21/arch/mips/kernel/ |
D | elf.c | 111 pos = phdr32->p_offset; in arch_elf_pt_proc() 117 pos = phdr64->p_offset; in arch_elf_pt_proc()
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | trace_helpers.c | 309 if (phdr->p_offset + phdr->p_memsz > max) in read_build_id() 311 err = parse_build_id_buf(data + phdr->p_offset, phdr->p_memsz, build_id); in read_build_id()
|
/linux-6.6.21/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_ttm_buffer.c | 136 unsigned long p_offset) in vmw_piter_start() argument 138 viter->i = p_offset - 1; in vmw_piter_start() 152 vsgt->sgt->orig_nents, p_offset); in vmw_piter_start()
|