Home
last modified time | relevance | path

Searched refs:p_offset (Results 1 – 25 of 53) sorted by relevance

123

/linux/kernel/
A Dkexec_elf.c188 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()
A Dkexec_file.c1313 phdr->p_offset = phdr->p_paddr = notes_addr; in crash_prepare_elf64_headers()
1321 phdr->p_offset = phdr->p_paddr = paddr_vmcoreinfo_note(); in crash_prepare_elf64_headers()
1332 phdr->p_offset = phdr->p_paddr = __pa_symbol(_text); in crash_prepare_elf64_headers()
1344 phdr->p_offset = mstart; in crash_prepare_elf64_headers()
1353 ehdr->e_phnum, phdr->p_offset); in crash_prepare_elf64_headers()
/linux/fs/proc/
A Dvmcore.c759 offset = phdr_ptr->p_offset; in update_note_header_size_elf64()
855 offset = phdr_ptr->p_offset; in copy_notes_elf64()
900 phdr.p_offset = roundup(note_off, PAGE_SIZE); in merge_note_headers_elf64()
950 offset = phdr_ptr->p_offset; in update_note_header_size_elf32()
1046 offset = phdr_ptr->p_offset; in copy_notes_elf32()
1091 phdr.p_offset = roundup(note_off, PAGE_SIZE); in merge_note_headers_elf32()
1144 paddr = phdr_ptr->p_offset; in process_ptload_program_headers_elf64()
1187 paddr = phdr_ptr->p_offset; in process_ptload_program_headers_elf32()
1433 start = rounddown(phdr->p_offset, PAGE_SIZE); in vmcoredd_update_program_headers()
1437 phdr->p_offset = vmcore_off + (phdr->p_offset - start); in vmcoredd_update_program_headers()
[all …]
/linux/arch/ia64/kernel/
A Delfcore.c29 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/drivers/gpu/drm/vc4/
A Dvc4_validate.c567 uint32_t p0 = *(uint32_t *)(uniform_data_u + sample->p_offset[0]); in reloc_tex()
568 uint32_t p1 = *(uint32_t *)(uniform_data_u + sample->p_offset[1]); in reloc_tex()
569 uint32_t p2 = (sample->p_offset[2] != ~0 ? in reloc_tex()
570 *(uint32_t *)(uniform_data_u + sample->p_offset[2]) : 0); in reloc_tex()
571 uint32_t p3 = (sample->p_offset[3] != ~0 ? in reloc_tex()
572 *(uint32_t *)(uniform_data_u + sample->p_offset[3]) : 0); in reloc_tex()
573 uint32_t *validated_p0 = exec->uniforms_v + sample->p_offset[0]; in reloc_tex()
736 DRM_INFO("Texture p0 at %d: 0x%08x\n", sample->p_offset[0], p0); in reloc_tex()
737 DRM_INFO("Texture p1 at %d: 0x%08x\n", sample->p_offset[1], p1); in reloc_tex()
738 DRM_INFO("Texture p2 at %d: 0x%08x\n", sample->p_offset[2], p2); in reloc_tex()
[all …]
A Dvc4_validate_shaders.c177 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/tools/perf/util/
A Dsymbol-minimal.c143 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/tools/testing/selftests/kvm/lib/
A Delf.c181 offset_rv = lseek(fd, phdr.p_offset, SEEK_SET); in kvm_vm_elf_load()
182 TEST_ASSERT(offset_rv == phdr.p_offset, in kvm_vm_elf_load()
188 (intmax_t) phdr.p_offset); in kvm_vm_elf_load()
/linux/drivers/net/ethernet/qlogic/qed/
A Dqed_init_ops.c498 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/drivers/soc/qcom/
A Dmdt_loader.c118 hash_offset = phdrs[1].p_offset; in qcom_mdt_read_metadata()
249 if (phdr->p_filesz && phdr->p_offset < fw->size) { in __qcom_mdt_load()
251 if (phdr->p_offset + phdr->p_filesz > fw->size) { in __qcom_mdt_load()
258 memcpy(ptr, fw->data + phdr->p_offset, phdr->p_filesz); in __qcom_mdt_load()
/linux/block/partitions/
A Dkarma.c27 __le32 p_offset; in karma_partition() member
51 put_partition(state, slot, le32_to_cpu(p->p_offset), in karma_partition()
A Dosf.c47 __le32 p_offset; in osf_partition() member
80 le32_to_cpu(partition->p_offset), in osf_partition()
/linux/arch/sparc/vdso/
A Dvdso2c.h33 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/arch/x86/um/
A Delfcore.c29 ofs = phdr.p_offset = offset; in elf_core_write_extra_phdrs()
32 phdr.p_offset += ofs; in elf_core_write_extra_phdrs()
/linux/arch/powerpc/boot/
A Delf_util.c45 info->elfoffset = (unsigned long)elf64ph->p_offset; in parse_elf64()
76 info->elfoffset = elf32ph->p_offset; in parse_elf32()
A Delf.h97 Elf32_Off p_offset; member
109 Elf64_Off p_offset; /* Segment file offset */ member
/linux/fs/
A Dbinfmt_elf_fdpic.c246 pos = phdr->p_offset; in load_elf_fdpic_binary()
815 if (phdr->p_offset > params->hdr.e_phoff || in elf_fdpic_map_file()
816 phdr->p_offset + phdr->p_filesz < stop) in elf_fdpic_map_file()
827 params->hdr.e_phoff - phdr->p_offset; in elf_fdpic_map_file()
975 if (phdr->p_offset == 0) in elf_fdpic_map_file_constdisp_on_uclinux()
1035 (unsigned long) phdr->p_offset, in elf_fdpic_map_file_by_direct_mmap()
1086 phdr->p_offset - disp); in elf_fdpic_map_file_by_direct_mmap()
1090 phdr->p_offset - disp, maddr); in elf_fdpic_map_file_by_direct_mmap()
1104 if (phdr->p_offset == 0) in elf_fdpic_map_file_by_direct_mmap()
1265 phdr->p_offset = offset; in fill_elf_note_phdr()
[all …]
/linux/arch/x86/entry/vdso/
A Dvdso2c.h69 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/arch/s390/kernel/
A Dkexec_elf.c39 buf.buffer = kernel + phdr->p_offset; in kexec_file_add_kernel_elf()
98 if (phdr->p_offset > kernel_len) in s390_elf_load()
/linux/lib/
A Dbuildid.c86 page_addr + phdr[i].p_offset, in get_build_id_32()
111 page_addr + phdr[i].p_offset, in get_build_id_64()
/linux/tools/testing/selftests/powerpc/ptrace/
A Dcore-pkey.c232 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/tools/testing/selftests/vDSO/
A Dparse_vdso.c99 + (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/arch/mips/kernel/
A Delf.c110 pos = phdr32->p_offset; in arch_elf_pt_proc()
116 pos = phdr64->p_offset; in arch_elf_pt_proc()
/linux/tools/testing/selftests/sgx/
A Dload.c218 src_offset = phdr->p_offset & PAGE_MASK; in encl_load()
229 seg->offset = (phdr->p_offset & PAGE_MASK) - src_offset; in encl_load()
/linux/include/uapi/linux/
A Delf.h247 Elf32_Off p_offset; member
259 Elf64_Off p_offset; /* Segment file offset */ member

Completed in 37 milliseconds

123