Lines Matching refs:phdr
32 const struct elf_phdr *phdr; in riscv_kexec_elf_load() local
37 phdr = &elf_info->proghdrs[i]; in riscv_kexec_elf_load()
38 if (phdr->p_type != PT_LOAD) in riscv_kexec_elf_load()
41 size = phdr->p_filesz; in riscv_kexec_elf_load()
42 if (size > phdr->p_memsz) in riscv_kexec_elf_load()
43 size = phdr->p_memsz; in riscv_kexec_elf_load()
45 kbuf.buffer = (void *) elf_info->buffer + phdr->p_offset; in riscv_kexec_elf_load()
47 kbuf.buf_align = phdr->p_align; in riscv_kexec_elf_load()
48 kbuf.mem = phdr->p_paddr - old_pbase + new_pbase; in riscv_kexec_elf_load()
49 kbuf.memsz = phdr->p_memsz; in riscv_kexec_elf_load()
70 const struct elf_phdr *phdr; in elf_find_pbase() local
75 phdr = &elf_info->proghdrs[i]; in elf_find_pbase()
76 if (phdr->p_type != PT_LOAD) in elf_find_pbase()
79 if (lowest_paddr > phdr->p_paddr) in elf_find_pbase()
80 lowest_paddr = phdr->p_paddr; in elf_find_pbase()
82 if (lowest_vaddr > phdr->p_vaddr) in elf_find_pbase()
83 lowest_vaddr = phdr->p_vaddr; in elf_find_pbase()