e_phnum           162 arch/alpha/boot/tools/objstrip.c 	if (elf->e_phnum != 1) {
e_phnum           165 arch/alpha/boot/tools/objstrip.c 		    prog_name, elf->e_phnum);
e_phnum            12 arch/ia64/kernel/elfcore.c 	return GATE_EHDR->e_phnum;
e_phnum            22 arch/ia64/kernel/elfcore.c 	for (i = 0; i < GATE_EHDR->e_phnum; ++i) {
e_phnum            50 arch/ia64/kernel/elfcore.c 	for (i = 0; i < GATE_EHDR->e_phnum; ++i) {
e_phnum            70 arch/ia64/kernel/elfcore.c 	for (i = 0; i < GATE_EHDR->e_phnum; ++i) {
e_phnum          2196 arch/ia64/kernel/unwind.c 	for (i = 0; i < GATE_EHDR->e_phnum; ++i, ++phdr)
e_phnum           180 arch/mips/boot/elf2ecoff.c 	e->e_phnum = swab16(e->e_phnum);
e_phnum           330 arch/mips/boot/elf2ecoff.c 				     ex.e_phnum * sizeof(Elf32_Phdr),
e_phnum           333 arch/mips/boot/elf2ecoff.c 		convert_elf_phdrs(ph, ex.e_phnum);
e_phnum           347 arch/mips/boot/elf2ecoff.c 	qsort(ph, ex.e_phnum, sizeof(Elf32_Phdr), phcmp);
e_phnum           349 arch/mips/boot/elf2ecoff.c 	for (i = 0; i < ex.e_phnum; i++) {
e_phnum           388 arch/mips/boot/elf2ecoff.c 				ex.e_phnum, ph[i].p_type);
e_phnum           564 arch/mips/boot/elf2ecoff.c 	for (i = 0; i < ex.e_phnum; i++) {
e_phnum           233 arch/mips/boot/tools/relocs.c 	ehdr.e_phnum     = elf_half_to_cpu(ehdr.e_phnum);
e_phnum           701 arch/mips/kernel/vpe.c 		for (i = 0; i < hdr->e_phnum; i++) {
e_phnum           258 arch/parisc/boot/compressed/misc.c 	phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum);
e_phnum           262 arch/parisc/boot/compressed/misc.c 	memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum);
e_phnum           264 arch/parisc/boot/compressed/misc.c 	for (i = 0; i < ehdr.e_phnum; i++) {
e_phnum            66 arch/powerpc/boot/elf.h 	Elf32_Half e_phnum;
e_phnum            83 arch/powerpc/boot/elf.h 	Elf64_Half e_phnum;
e_phnum            37 arch/powerpc/boot/elf_util.c 	for (i = 0; i < (unsigned int)elf64->e_phnum; i++, elf64ph++)
e_phnum            40 arch/powerpc/boot/elf_util.c 	if (i >= (unsigned int)elf64->e_phnum)
e_phnum            68 arch/powerpc/boot/elf_util.c 	for (i = 0; i < elf32->e_phnum; i++, elf32ph++)
e_phnum            71 arch/powerpc/boot/elf_util.c 	if (i >= elf32->e_phnum)
e_phnum           864 arch/powerpc/kernel/fadump.c 	elf->e_phnum = 0;
e_phnum           982 arch/powerpc/kernel/fadump.c 	(elf->e_phnum)++;
e_phnum           997 arch/powerpc/kernel/fadump.c 	(elf->e_phnum)++;
e_phnum          1037 arch/powerpc/kernel/fadump.c 		(elf->e_phnum)++;
e_phnum          1118 arch/powerpc/kernel/prom_init.c 		.e_phnum = 2
e_phnum           153 arch/powerpc/oprofile/cell/vma_map.c 	for (i = 0; i < ehdr.e_phnum; i++) {
e_phnum           372 arch/powerpc/platforms/powernv/opal-core.c 	elf->e_phnum = 0;
e_phnum           416 arch/powerpc/platforms/powernv/opal-core.c 	elf->e_phnum = cpu_to_be16(count);
e_phnum           526 arch/s390/kernel/crash_dump.c 	ehdr->e_phnum = mem_chunk_cnt + 1;
e_phnum            35 arch/s390/kernel/kexec_elf.c 	for (i = 0; i < ehdr->e_phnum; i++, phdr++) {
e_phnum            84 arch/s390/kernel/kexec_elf.c 	if (!ehdr->e_phnum || ehdr->e_phentsize != sizeof(Elf_Phdr))
e_phnum            88 arch/s390/kernel/kexec_elf.c 	size += ehdr->e_phentsize * ehdr->e_phnum;
e_phnum            94 arch/s390/kernel/kexec_elf.c 	for (i = 0; i < ehdr->e_phnum; i++, phdr++) {
e_phnum            28 arch/sparc/vdso/vdso2c.h 	for (i = 0; i < GET_BE(&hdr->e_phnum); i++) {
e_phnum           293 arch/x86/boot/compressed/misc.c 	phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum);
e_phnum           297 arch/x86/boot/compressed/misc.c 	memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum);
e_phnum           299 arch/x86/boot/compressed/misc.c 	for (i = 0; i < ehdr.e_phnum; i++) {
e_phnum            30 arch/x86/entry/vdso/vdso2c.h 	for (i = 0; i < GET_LE(&hdr->e_phnum); i++) {
e_phnum           279 arch/x86/kernel/crash.c 	for (i = 0; i < ehdr->e_phnum; phdr++, i++)
e_phnum           366 arch/x86/tools/relocs.c 	ehdr.e_phnum     = elf_half_to_cpu(ehdr.e_phnum);
e_phnum            12 arch/x86/um/elfcore.c 	return vsyscall_ehdr ? (((struct elfhdr *)vsyscall_ehdr)->e_phnum) : 0;
e_phnum            25 arch/x86/um/elfcore.c 		for (i = 0; i < ehdrp->e_phnum; ++i) {
e_phnum            51 arch/x86/um/elfcore.c 		for (i = 0; i < ehdrp->e_phnum; ++i) {
e_phnum            72 arch/x86/um/elfcore.c 		for (i = 0; i < ehdrp->e_phnum; ++i)
e_phnum          1091 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c 	for (i = 0; i < ehdr->e_phnum; i++, phdr++) {
e_phnum           102 drivers/remoteproc/qcom_common.c 	for (i = 0; i < ehdr->e_phnum; i++) {
e_phnum           968 drivers/remoteproc/qcom_q6v5_mss.c 	for (i = 0; i < ehdr->e_phnum; i++) {
e_phnum           995 drivers/remoteproc/qcom_q6v5_mss.c 	for (i = 0; i < ehdr->e_phnum; i++) {
e_phnum          1203 drivers/remoteproc/qcom_q6v5_mss.c 	for (i = 0; i < ehdr->e_phnum; i++) {
e_phnum          1605 drivers/remoteproc/remoteproc_core.c 	ehdr->e_phnum = phnum;
e_phnum          1608 drivers/remoteproc/remoteproc_core.c 	offset = ehdr->e_phoff + sizeof(*phdr) * ehdr->e_phnum;
e_phnum            80 drivers/remoteproc/remoteproc_elf_loader.c 	if (ehdr->e_phnum == 0) {
e_phnum           149 drivers/remoteproc/remoteproc_elf_loader.c 	for (i = 0; i < ehdr->e_phnum; i++, phdr++) {
e_phnum            52 drivers/soc/qcom/mdt_loader.c 	for (i = 0; i < ehdr->e_phnum; i++) {
e_phnum            98 drivers/soc/qcom/mdt_loader.c 	if (ehdr->e_phnum < 2)
e_phnum           181 drivers/soc/qcom/mdt_loader.c 	for (i = 0; i < ehdr->e_phnum; i++) {
e_phnum           220 drivers/soc/qcom/mdt_loader.c 	for (i = 0; i < ehdr->e_phnum; i++) {
e_phnum           251 fs/binfmt_elf.c 	NEW_AUX_ENT(AT_PHNUM, exec->e_phnum);
e_phnum           433 fs/binfmt_elf.c 	size = sizeof(struct elf_phdr) * elf_ex->e_phnum;
e_phnum           570 fs/binfmt_elf.c 					interp_elf_ex->e_phnum);
e_phnum           577 fs/binfmt_elf.c 	for (i = 0; i < interp_elf_ex->e_phnum; i++, eppnt++) {
e_phnum           723 fs/binfmt_elf.c 	for (i = 0; i < loc->elf_ex.e_phnum; i++, elf_ppnt++) {
e_phnum           786 fs/binfmt_elf.c 	for (i = 0; i < loc->elf_ex.e_phnum; i++, elf_ppnt++)
e_phnum           823 fs/binfmt_elf.c 		for (i = 0; i < loc->interp_elf_ex.e_phnum; i++, elf_ppnt++)
e_phnum           881 fs/binfmt_elf.c 	    i < loc->elf_ex.e_phnum; i++, elf_ppnt++) {
e_phnum           976 fs/binfmt_elf.c 							loc->elf_ex.e_phnum);
e_phnum          1193 fs/binfmt_elf.c 	if (elf_ex.e_type != ET_EXEC || elf_ex.e_phnum > 2 ||
e_phnum          1201 fs/binfmt_elf.c 	j = sizeof(struct elf_phdr) * elf_ex.e_phnum;
e_phnum          1216 fs/binfmt_elf.c 	for (j = 0, i = 0; i<elf_ex.e_phnum; i++)
e_phnum          1444 fs/binfmt_elf.c 	elf->e_phnum = segs;
e_phnum          2196 fs/binfmt_elf.c 	Elf_Half e_phnum;
e_phnum          2233 fs/binfmt_elf.c 	e_phnum = segs > PN_XNUM ? PN_XNUM : segs;
e_phnum          2239 fs/binfmt_elf.c 	if (!fill_note_info(elf, e_phnum, &info, cprm->siginfo, cprm->regs))
e_phnum          2286 fs/binfmt_elf.c 	if (e_phnum == PN_XNUM) {
e_phnum          2366 fs/binfmt_elf.c 	if (e_phnum == PN_XNUM) {
e_phnum           148 fs/binfmt_elf_fdpic.c 	if (params->hdr.e_phnum > 65536U / sizeof(struct elf_phdr))
e_phnum           151 fs/binfmt_elf_fdpic.c 	size = params->hdr.e_phnum * sizeof(struct elf_phdr);
e_phnum           162 fs/binfmt_elf_fdpic.c 	for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) {
e_phnum           231 fs/binfmt_elf_fdpic.c 	for (i = 0; i < exec_params.hdr.e_phnum; i++, phdr++) {
e_phnum           648 fs/binfmt_elf_fdpic.c 	NEW_AUX_ENT(AT_PHNUM,	exec_params->hdr.e_phnum);
e_phnum           746 fs/binfmt_elf_fdpic.c 	for (loop = 0; loop < params->hdr.e_phnum; loop++)
e_phnum           799 fs/binfmt_elf_fdpic.c 	stop += params->hdr.e_phnum * sizeof (struct elf_phdr);
e_phnum           802 fs/binfmt_elf_fdpic.c 	for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) {
e_phnum           827 fs/binfmt_elf_fdpic.c 	for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) {
e_phnum           931 fs/binfmt_elf_fdpic.c 	for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) {
e_phnum           956 fs/binfmt_elf_fdpic.c 	for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) {
e_phnum          1021 fs/binfmt_elf_fdpic.c 	for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) {
e_phnum          1308 fs/binfmt_elf_fdpic.c 	elf->e_phnum = segs;
e_phnum          1572 fs/binfmt_elf_fdpic.c 	Elf_Half e_phnum;
e_phnum          1644 fs/binfmt_elf_fdpic.c 	e_phnum = segs > PN_XNUM ? PN_XNUM : segs;
e_phnum          1647 fs/binfmt_elf_fdpic.c 	fill_elf_fdpic_header(elf, e_phnum);
e_phnum          1711 fs/binfmt_elf_fdpic.c 	if (e_phnum == PN_XNUM) {
e_phnum          1778 fs/binfmt_elf_fdpic.c 	if (e_phnum == PN_XNUM) {
e_phnum           352 fs/proc/kcore.c 			.e_phnum = nphdr,
e_phnum           711 fs/proc/vmcore.c 	for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) {
e_phnum           776 fs/proc/vmcore.c 	for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) {
e_phnum           809 fs/proc/vmcore.c 	for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) {
e_phnum           857 fs/proc/vmcore.c 			(ehdr_ptr->e_phnum - nr_ptnote +1) * sizeof(Elf64_Phdr);
e_phnum           876 fs/proc/vmcore.c 	ehdr_ptr->e_phnum = ehdr_ptr->e_phnum - nr_ptnote + 1;
e_phnum           902 fs/proc/vmcore.c 	for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) {
e_phnum           967 fs/proc/vmcore.c 	for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) {
e_phnum          1000 fs/proc/vmcore.c 	for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) {
e_phnum          1048 fs/proc/vmcore.c 			(ehdr_ptr->e_phnum - nr_ptnote +1) * sizeof(Elf32_Phdr);
e_phnum          1067 fs/proc/vmcore.c 	ehdr_ptr->e_phnum = ehdr_ptr->e_phnum - nr_ptnote + 1;
e_phnum          1096 fs/proc/vmcore.c 	for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) {
e_phnum          1139 fs/proc/vmcore.c 	for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) {
e_phnum          1211 fs/proc/vmcore.c 		ehdr.e_phnum == 0) {
e_phnum          1218 fs/proc/vmcore.c 				ehdr.e_phnum * sizeof(Elf64_Phdr);
e_phnum          1267 fs/proc/vmcore.c 		ehdr.e_phnum == 0) {
e_phnum          1273 fs/proc/vmcore.c 	elfcorebuf_sz_orig = sizeof(Elf32_Ehdr) + ehdr.e_phnum * sizeof(Elf32_Phdr);
e_phnum          1383 fs/proc/vmcore.c 		for (i = 0; i < ehdr->e_phnum; i++, phdr++) {
e_phnum          1403 fs/proc/vmcore.c 		for (i = 0; i < ehdr->e_phnum; i++, phdr++) {
e_phnum           215 include/uapi/linux/elf.h   Elf32_Half	e_phnum;
e_phnum           232 include/uapi/linux/elf.h   Elf64_Half e_phnum;
e_phnum           206 kernel/bpf/stackmap.c 	if (ehdr->e_phnum >
e_phnum           212 kernel/bpf/stackmap.c 	for (i = 0; i < ehdr->e_phnum; ++i)
e_phnum           229 kernel/bpf/stackmap.c 	if (ehdr->e_phnum >
e_phnum           235 kernel/bpf/stackmap.c 	for (i = 0; i < ehdr->e_phnum; ++i)
e_phnum            65 kernel/kexec_elf.c 	if (ehdr->e_phnum > 0 && ehdr->e_phentsize != sizeof(struct elf_phdr)) {
e_phnum            78 kernel/kexec_elf.c 	if (ehdr->e_phoff > 0 && ehdr->e_phnum > 0) {
e_phnum            85 kernel/kexec_elf.c 		phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum;
e_phnum           155 kernel/kexec_elf.c 	ehdr->e_phnum     = elf16_to_cpu(ehdr, buf_ehdr->e_phnum);
e_phnum           261 kernel/kexec_elf.c 	phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum;
e_phnum           267 kernel/kexec_elf.c 	for (i = 0; i < ehdr->e_phnum; i++) {
e_phnum           308 kernel/kexec_elf.c 	if (ehdr->e_phoff > 0 && ehdr->e_phnum > 0) {
e_phnum           346 kernel/kexec_elf.c 	for (i = 0; i < ehdr->e_phnum; i++) {
e_phnum           398 kernel/kexec_elf.c 	for (i = 0; i < ehdr->e_phnum; i++) {
e_phnum          1292 kernel/kexec_file.c 		(ehdr->e_phnum)++;
e_phnum          1300 kernel/kexec_file.c 	(ehdr->e_phnum)++;
e_phnum          1310 kernel/kexec_file.c 		ehdr->e_phnum++;
e_phnum          1327 kernel/kexec_file.c 		ehdr->e_phnum++;
e_phnum          1331 kernel/kexec_file.c 			ehdr->e_phnum, phdr->p_offset);
e_phnum           522 scripts/mod/modpost.c 	hdr->e_phnum     = TO_NATIVE(hdr->e_phnum);
e_phnum            72 sound/pci/mixart/mixart_hwdep.c 	__be16  e_phnum;
e_phnum           103 sound/pci/mixart/mixart_hwdep.c 		for( i=0; i < be16_to_cpu(elf_header->e_phnum); i++ ) {
e_phnum            84 tools/perf/util/symbol-elf.c 	*dst = ehdr->e_phnum;
e_phnum          1383 tools/perf/util/symbol-elf.c 	ehdr->e_phnum     = count;
e_phnum           123 tools/perf/util/symbol-minimal.c 			ehdr.e_phnum = bswap_16(ehdr.e_phnum);
e_phnum           126 tools/perf/util/symbol-minimal.c 		buf_size = ehdr.e_phentsize * ehdr.e_phnum;
e_phnum           135 tools/perf/util/symbol-minimal.c 		for (i = 0, phdr = buf; i < ehdr.e_phnum; i++, phdr++) {
e_phnum           174 tools/perf/util/symbol-minimal.c 			ehdr.e_phnum = bswap_16(ehdr.e_phnum);
e_phnum           177 tools/perf/util/symbol-minimal.c 		buf_size = ehdr.e_phentsize * ehdr.e_phnum;
e_phnum           186 tools/perf/util/symbol-minimal.c 		for (i = 0, phdr = buf; i < ehdr.e_phnum; i++, phdr++) {
e_phnum           138 tools/testing/selftests/kvm/lib/elf.c 	for (unsigned int n1 = 0; n1 < hdr.e_phnum; n1++) {
e_phnum           210 tools/testing/selftests/powerpc/ptrace/core-pkey.c 	FAIL_IF(ehdr->e_phoff == 0 || ehdr->e_phnum == 0);
e_phnum           216 tools/testing/selftests/powerpc/ptrace/core-pkey.c 	phdr_size = sizeof(*phdr) * ehdr->e_phnum;
e_phnum            89 tools/testing/selftests/proc/proc-pid-vm.c 	uint16_t e_phnum;
e_phnum           179 tools/testing/selftests/proc/proc-pid-vm.c 	h.e_phnum = 1;
e_phnum           116 tools/testing/selftests/vDSO/parse_vdso.c 	for (i = 0; i < hdr->e_phnum; i++)