phdr 23 arch/ia64/kernel/elfcore.c struct elf_phdr phdr = gate_phdrs[i]; phdr 25 arch/ia64/kernel/elfcore.c if (phdr.p_type == PT_LOAD) { phdr 26 arch/ia64/kernel/elfcore.c phdr.p_memsz = PAGE_ALIGN(phdr.p_memsz); phdr 27 arch/ia64/kernel/elfcore.c phdr.p_filesz = phdr.p_memsz; phdr 29 arch/ia64/kernel/elfcore.c ofs = phdr.p_offset = offset; phdr 30 arch/ia64/kernel/elfcore.c offset += phdr.p_filesz; phdr 32 arch/ia64/kernel/elfcore.c phdr.p_offset = ofs; phdr 35 arch/ia64/kernel/elfcore.c phdr.p_offset += ofs; phdr 37 arch/ia64/kernel/elfcore.c phdr.p_paddr = 0; /* match other core phdrs */ phdr 38 arch/ia64/kernel/elfcore.c if (!dump_emit(cprm, &phdr, sizeof(phdr))) phdr 2193 arch/ia64/kernel/unwind.c Elf64_Phdr *punw = NULL, *phdr = (Elf64_Phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); phdr 2196 arch/ia64/kernel/unwind.c for (i = 0; i < GATE_EHDR->e_phnum; ++i, ++phdr) phdr 2197 arch/ia64/kernel/unwind.c if (phdr->p_type == PT_IA_64_UNWIND) { phdr 2198 arch/ia64/kernel/unwind.c punw = phdr; phdr 502 arch/mips/include/asm/elf.h extern int arch_elf_pt_proc(void *ehdr, void *phdr, struct file *elf, phdr 698 arch/mips/kernel/vpe.c struct elf_phdr *phdr = (struct elf_phdr *) phdr 702 arch/mips/kernel/vpe.c if (phdr->p_type == PT_LOAD) { phdr 703 arch/mips/kernel/vpe.c memcpy((void *)phdr->p_paddr, phdr 704 arch/mips/kernel/vpe.c (char *)hdr + phdr->p_offset, phdr 705 arch/mips/kernel/vpe.c phdr->p_filesz); phdr 706 arch/mips/kernel/vpe.c memset((void *)phdr->p_paddr + phdr->p_filesz, phdr 707 arch/mips/kernel/vpe.c 0, phdr->p_memsz - phdr->p_filesz); phdr 709 arch/mips/kernel/vpe.c phdr++; phdr 237 arch/parisc/boot/compressed/misc.c Elf64_Phdr *phdrs, *phdr; phdr 240 arch/parisc/boot/compressed/misc.c Elf32_Phdr *phdrs, *phdr; phdr 265 arch/parisc/boot/compressed/misc.c phdr = &phdrs[i]; phdr 267 arch/parisc/boot/compressed/misc.c switch (phdr->p_type) { phdr 269 arch/parisc/boot/compressed/misc.c dest = (void *)((unsigned long) phdr->p_paddr & phdr 271 arch/parisc/boot/compressed/misc.c memmove(dest, output + phdr->p_offset, phdr->p_filesz); phdr 658 arch/powerpc/kernel/fadump.c struct elf_phdr *phdr; phdr 664 arch/powerpc/kernel/fadump.c phdr = (struct elf_phdr *)bufp; phdr 666 arch/powerpc/kernel/fadump.c if (phdr->p_type == PT_NOTE) { phdr 667 arch/powerpc/kernel/fadump.c phdr->p_paddr = __pa(fw_dump.cpu_notes_buf_vaddr); phdr 668 arch/powerpc/kernel/fadump.c phdr->p_offset = phdr->p_paddr; phdr 669 arch/powerpc/kernel/fadump.c phdr->p_filesz = fw_dump.cpu_notes_buf_size; phdr 670 arch/powerpc/kernel/fadump.c phdr->p_memsz = fw_dump.cpu_notes_buf_size; phdr 955 arch/powerpc/kernel/fadump.c struct elf_phdr *phdr; phdr 970 arch/powerpc/kernel/fadump.c phdr = (struct elf_phdr *)bufp; phdr 972 arch/powerpc/kernel/fadump.c phdr->p_type = PT_NOTE; phdr 973 arch/powerpc/kernel/fadump.c phdr->p_flags = 0; phdr 974 arch/powerpc/kernel/fadump.c phdr->p_vaddr = 0; phdr 975 arch/powerpc/kernel/fadump.c phdr->p_align = 0; phdr 977 arch/powerpc/kernel/fadump.c phdr->p_offset = 0; phdr 978 arch/powerpc/kernel/fadump.c phdr->p_paddr = 0; phdr 979 arch/powerpc/kernel/fadump.c phdr->p_filesz = 0; phdr 980 arch/powerpc/kernel/fadump.c phdr->p_memsz = 0; phdr 985 arch/powerpc/kernel/fadump.c phdr = (struct elf_phdr *)bufp; phdr 987 arch/powerpc/kernel/fadump.c phdr->p_type = PT_NOTE; phdr 988 arch/powerpc/kernel/fadump.c phdr->p_flags = 0; phdr 989 arch/powerpc/kernel/fadump.c phdr->p_vaddr = 0; phdr 990 arch/powerpc/kernel/fadump.c phdr->p_align = 0; phdr 992 arch/powerpc/kernel/fadump.c phdr->p_paddr = fadump_relocate(paddr_vmcoreinfo_note()); phdr 993 arch/powerpc/kernel/fadump.c phdr->p_offset = phdr->p_paddr; phdr 994 arch/powerpc/kernel/fadump.c phdr->p_memsz = phdr->p_filesz = VMCOREINFO_NOTE_SIZE; phdr 1011 arch/powerpc/kernel/fadump.c phdr = (struct elf_phdr *)bufp; phdr 1013 arch/powerpc/kernel/fadump.c phdr->p_type = PT_LOAD; phdr 1014 arch/powerpc/kernel/fadump.c phdr->p_flags = PF_R|PF_W|PF_X; phdr 1015 arch/powerpc/kernel/fadump.c phdr->p_offset = mbase; phdr 1023 arch/powerpc/kernel/fadump.c phdr->p_offset = fw_dump.boot_mem_dest_addr + offset; phdr 1030 arch/powerpc/kernel/fadump.c phdr->p_paddr = mbase; phdr 1031 arch/powerpc/kernel/fadump.c phdr->p_vaddr = (unsigned long)__va(mbase); phdr 1032 arch/powerpc/kernel/fadump.c phdr->p_filesz = msize; phdr 1033 arch/powerpc/kernel/fadump.c phdr->p_memsz = msize; phdr 1034 arch/powerpc/kernel/fadump.c phdr->p_align = 0; phdr 1078 arch/powerpc/kernel/prom_init.c Elf32_Phdr phdr[2]; phdr 1116 arch/powerpc/kernel/prom_init.c .e_phoff = offsetof(struct fake_elf, phdr), phdr 1120 arch/powerpc/kernel/prom_init.c .phdr = { phdr 113 arch/powerpc/oprofile/cell/vma_map.c Elf32_Phdr phdr; phdr 154 arch/powerpc/oprofile/cell/vma_map.c if (copy_from_user(&phdr, phdr_start + i, sizeof(phdr))) phdr 157 arch/powerpc/oprofile/cell/vma_map.c if (phdr.p_type != PT_LOAD) phdr 159 arch/powerpc/oprofile/cell/vma_map.c if (phdr.p_flags & (1 << 27)) phdr 162 arch/powerpc/oprofile/cell/vma_map.c map = vma_map_add(map, phdr.p_vaddr, phdr.p_memsz, phdr 163 arch/powerpc/oprofile/cell/vma_map.c phdr.p_offset, 0, 0); phdr 306 arch/powerpc/platforms/powernv/opal-core.c Elf64_Phdr *phdr; phdr 377 arch/powerpc/platforms/powernv/opal-core.c phdr = (Elf64_Phdr *)bufp; phdr 379 arch/powerpc/platforms/powernv/opal-core.c phdr->p_type = cpu_to_be32(PT_NOTE); phdr 380 arch/powerpc/platforms/powernv/opal-core.c phdr->p_flags = 0; phdr 381 arch/powerpc/platforms/powernv/opal-core.c phdr->p_align = 0; phdr 382 arch/powerpc/platforms/powernv/opal-core.c phdr->p_paddr = phdr->p_vaddr = 0; phdr 383 arch/powerpc/platforms/powernv/opal-core.c phdr->p_offset = cpu_to_be64(hdr_size); phdr 384 arch/powerpc/platforms/powernv/opal-core.c phdr->p_filesz = phdr->p_memsz = cpu_to_be64(cpu_notes_size); phdr 391 arch/powerpc/platforms/powernv/opal-core.c phdr = (Elf64_Phdr *)bufp; phdr 393 arch/powerpc/platforms/powernv/opal-core.c phdr->p_type = cpu_to_be32(PT_LOAD); phdr 394 arch/powerpc/platforms/powernv/opal-core.c phdr->p_flags = cpu_to_be32(PF_R|PF_W|PF_X); phdr 395 arch/powerpc/platforms/powernv/opal-core.c phdr->p_align = 0; phdr 405 arch/powerpc/platforms/powernv/opal-core.c phdr->p_paddr = cpu_to_be64(paddr); phdr 406 arch/powerpc/platforms/powernv/opal-core.c phdr->p_vaddr = cpu_to_be64(opal_base_addr + paddr); phdr 407 arch/powerpc/platforms/powernv/opal-core.c phdr->p_filesz = phdr->p_memsz = phdr 409 arch/powerpc/platforms/powernv/opal-core.c phdr->p_offset = cpu_to_be64(opalcore_off); phdr 170 arch/s390/include/asm/elf.h #define arch_elf_pt_proc(ehdr, phdr, elf, interp, state) \ phdr 173 arch/s390/include/asm/elf.h if ((phdr)->p_type == PT_S390_PGSTE && \ phdr 185 arch/s390/include/asm/elf.h #define arch_elf_pt_proc(ehdr, phdr, elf, interp, state) \ phdr 561 arch/s390/kernel/crash_dump.c static void loads_init(Elf64_Phdr *phdr, u64 loads_offset) phdr 568 arch/s390/kernel/crash_dump.c phdr->p_filesz = end - start; phdr 569 arch/s390/kernel/crash_dump.c phdr->p_type = PT_LOAD; phdr 570 arch/s390/kernel/crash_dump.c phdr->p_offset = start; phdr 571 arch/s390/kernel/crash_dump.c phdr->p_vaddr = start; phdr 572 arch/s390/kernel/crash_dump.c phdr->p_paddr = start; phdr 573 arch/s390/kernel/crash_dump.c phdr->p_memsz = end - start; phdr 574 arch/s390/kernel/crash_dump.c phdr->p_flags = PF_R | PF_W | PF_X; phdr 575 arch/s390/kernel/crash_dump.c phdr->p_align = PAGE_SIZE; phdr 576 arch/s390/kernel/crash_dump.c phdr++; phdr 583 arch/s390/kernel/crash_dump.c static void *notes_init(Elf64_Phdr *phdr, void *ptr, u64 notes_offset) phdr 597 arch/s390/kernel/crash_dump.c memset(phdr, 0, sizeof(*phdr)); phdr 598 arch/s390/kernel/crash_dump.c phdr->p_type = PT_NOTE; phdr 599 arch/s390/kernel/crash_dump.c phdr->p_offset = notes_offset; phdr 600 arch/s390/kernel/crash_dump.c phdr->p_filesz = (unsigned long) PTR_SUB(ptr, ptr_start); phdr 601 arch/s390/kernel/crash_dump.c phdr->p_memsz = phdr->p_filesz; phdr 21 arch/s390/kernel/kexec_elf.c const Elf_Phdr *phdr; phdr 34 arch/s390/kernel/kexec_elf.c phdr = (void *)ehdr + ehdr->e_phoff; phdr 35 arch/s390/kernel/kexec_elf.c for (i = 0; i < ehdr->e_phnum; i++, phdr++) { phdr 36 arch/s390/kernel/kexec_elf.c if (phdr->p_type != PT_LOAD) phdr 39 arch/s390/kernel/kexec_elf.c buf.buffer = kernel + phdr->p_offset; phdr 40 arch/s390/kernel/kexec_elf.c buf.bufsz = phdr->p_filesz; phdr 42 arch/s390/kernel/kexec_elf.c buf.mem = ALIGN(phdr->p_paddr, phdr->p_align); phdr 45 arch/s390/kernel/kexec_elf.c buf.memsz = phdr->p_memsz; phdr 46 arch/s390/kernel/kexec_elf.c data->memsz = ALIGN(data->memsz, phdr->p_align) + buf.memsz; phdr 48 arch/s390/kernel/kexec_elf.c if (entry - phdr->p_paddr < phdr->p_memsz) { phdr 72 arch/s390/kernel/kexec_elf.c const Elf_Phdr *phdr; phdr 92 arch/s390/kernel/kexec_elf.c phdr = (void *)ehdr + ehdr->e_phoff; phdr 93 arch/s390/kernel/kexec_elf.c size = ALIGN(size, phdr->p_align); phdr 94 arch/s390/kernel/kexec_elf.c for (i = 0; i < ehdr->e_phnum; i++, phdr++) { phdr 95 arch/s390/kernel/kexec_elf.c if (phdr->p_type == PT_INTERP) phdr 98 arch/s390/kernel/kexec_elf.c if (phdr->p_offset > kernel_len) phdr 101 arch/s390/kernel/kexec_elf.c size += ALIGN(phdr->p_filesz, phdr->p_align); phdr 274 arch/x86/boot/compressed/misc.c Elf64_Phdr *phdrs, *phdr; phdr 277 arch/x86/boot/compressed/misc.c Elf32_Phdr *phdrs, *phdr; phdr 300 arch/x86/boot/compressed/misc.c phdr = &phdrs[i]; phdr 302 arch/x86/boot/compressed/misc.c switch (phdr->p_type) { phdr 305 arch/x86/boot/compressed/misc.c if ((phdr->p_align % 0x200000) != 0) phdr 310 arch/x86/boot/compressed/misc.c dest += (phdr->p_paddr - LOAD_PHYSICAL_ADDR); phdr 312 arch/x86/boot/compressed/misc.c dest = (void *)(phdr->p_paddr); phdr 314 arch/x86/boot/compressed/misc.c memmove(dest, output + phdr->p_offset, phdr->p_filesz); phdr 366 arch/x86/kernel/cpu/microcode/intel.c struct microcode_header_intel *phdr = &patch->hdr; phdr 369 arch/x86/kernel/cpu/microcode/intel.c phdr->sig, phdr 370 arch/x86/kernel/cpu/microcode/intel.c phdr->pf, phdr 371 arch/x86/kernel/cpu/microcode/intel.c phdr->rev)) phdr 726 arch/x86/kernel/cpu/microcode/intel.c struct microcode_header_intel *phdr; phdr 731 arch/x86/kernel/cpu/microcode/intel.c phdr = (struct microcode_header_intel *)iter->data; phdr 733 arch/x86/kernel/cpu/microcode/intel.c if (phdr->rev <= uci->cpu_sig.rev) phdr 736 arch/x86/kernel/cpu/microcode/intel.c if (!find_matching_signature(phdr, phdr 250 arch/x86/kernel/crash.c Elf64_Phdr *phdr; phdr 278 arch/x86/kernel/crash.c phdr = (Elf64_Phdr *)(ehdr + 1); phdr 279 arch/x86/kernel/crash.c for (i = 0; i < ehdr->e_phnum; phdr++, i++) phdr 280 arch/x86/kernel/crash.c if (phdr->p_type == PT_LOAD && phdr 281 arch/x86/kernel/crash.c phdr->p_paddr == image->arch.backup_src_start && phdr 282 arch/x86/kernel/crash.c phdr->p_memsz == image->arch.backup_src_sz) { phdr 283 arch/x86/kernel/crash.c phdr->p_offset = image->arch.backup_load_addr; phdr 26 arch/x86/um/elfcore.c struct elf_phdr phdr = phdrp[i]; phdr 28 arch/x86/um/elfcore.c if (phdr.p_type == PT_LOAD) { phdr 29 arch/x86/um/elfcore.c ofs = phdr.p_offset = offset; phdr 30 arch/x86/um/elfcore.c offset += phdr.p_filesz; phdr 32 arch/x86/um/elfcore.c phdr.p_offset += ofs; phdr 34 arch/x86/um/elfcore.c phdr.p_paddr = 0; /* match other core phdrs */ phdr 35 arch/x86/um/elfcore.c if (!dump_emit(cprm, &phdr, sizeof(phdr))) phdr 460 drivers/infiniband/hw/hfi1/rc.c ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth; phdr 462 drivers/infiniband/hw/hfi1/rc.c ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; phdr 468 drivers/infiniband/hw/hfi1/rc.c ohdr = &ps->s_txreq->phdr.hdr.opah.u.l.oth; phdr 470 drivers/infiniband/hw/hfi1/rc.c ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth; phdr 302 drivers/infiniband/hw/hfi1/ruc.c grh = &ps->s_txreq->phdr.hdr.opah.u.l.grh; phdr 338 drivers/infiniband/hw/hfi1/ruc.c hfi1_make_16b_hdr(&ps->s_txreq->phdr.hdr.opah, phdr 375 drivers/infiniband/hw/hfi1/ruc.c struct ib_grh *grh = &ps->s_txreq->phdr.hdr.ibh.u.l.grh; phdr 407 drivers/infiniband/hw/hfi1/ruc.c hfi1_make_ib_hdr(&ps->s_txreq->phdr.hdr.ibh, phdr 5034 drivers/infiniband/hw/hfi1/tid_rdma.c ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; phdr 99 drivers/infiniband/hw/hfi1/uc.c ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth; phdr 101 drivers/infiniband/hw/hfi1/uc.c ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; phdr 107 drivers/infiniband/hw/hfi1/uc.c ohdr = &ps->s_txreq->phdr.hdr.opah.u.l.oth; phdr 109 drivers/infiniband/hw/hfi1/uc.c ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth; phdr 329 drivers/infiniband/hw/hfi1/ud.c grh = &ps->s_txreq->phdr.hdr.ibh.u.l.grh; phdr 335 drivers/infiniband/hw/hfi1/ud.c ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth; phdr 338 drivers/infiniband/hw/hfi1/ud.c ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; phdr 369 drivers/infiniband/hw/hfi1/ud.c ps->s_txreq->phdr.hdr.hdr_type = HFI1_PKT_TYPE_9B; phdr 370 drivers/infiniband/hw/hfi1/ud.c hfi1_make_ib_hdr(&ps->s_txreq->phdr.hdr.ibh, phdr 426 drivers/infiniband/hw/hfi1/ud.c grh = &ps->s_txreq->phdr.hdr.opah.u.l.grh; phdr 431 drivers/infiniband/hw/hfi1/ud.c ohdr = &ps->s_txreq->phdr.hdr.opah.u.l.oth; phdr 434 drivers/infiniband/hw/hfi1/ud.c ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth; phdr 454 drivers/infiniband/hw/hfi1/ud.c hfi1_16B_set_qpn(&ps->s_txreq->phdr.hdr.opah.u.mgmt, phdr 463 drivers/infiniband/hw/hfi1/ud.c ps->s_txreq->phdr.hdr.hdr_type = HFI1_PKT_TYPE_16B; phdr 464 drivers/infiniband/hw/hfi1/ud.c hfi1_make_16b_hdr(&ps->s_txreq->phdr.hdr.opah, phdr 640 drivers/infiniband/hw/hfi1/verbs.c hdr = &tx->phdr.hdr; phdr 767 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_sdma_header *phdr = &tx->phdr; phdr 771 drivers/infiniband/hw/hfi1/verbs.c if (tx->phdr.hdr.hdr_type) { phdr 792 drivers/infiniband/hw/hfi1/verbs.c phdr->pbc = cpu_to_le64(pbc); phdr 796 drivers/infiniband/hw/hfi1/verbs.c phdr, phdr 853 drivers/infiniband/hw/hfi1/verbs.c if (ps->s_txreq->phdr.hdr.hdr_type) { phdr 870 drivers/infiniband/hw/hfi1/verbs.c if (ps->s_txreq->phdr.hdr.hdr_type) phdr 902 drivers/infiniband/hw/hfi1/verbs.c &ps->s_txreq->phdr.hdr, ib_is_sc5(sc5)); phdr 998 drivers/infiniband/hw/hfi1/verbs.c if (ps->s_txreq->phdr.hdr.hdr_type) { phdr 1003 drivers/infiniband/hw/hfi1/verbs.c hdr = (u32 *)&ps->s_txreq->phdr.hdr.opah; phdr 1006 drivers/infiniband/hw/hfi1/verbs.c hdr = (u32 *)&ps->s_txreq->phdr.hdr.ibh; phdr 1028 drivers/infiniband/hw/hfi1/verbs.c if (ps->s_txreq->phdr.hdr.hdr_type) phdr 1099 drivers/infiniband/hw/hfi1/verbs.c &ps->s_txreq->phdr.hdr, ib_is_sc5(sc5)); phdr 1107 drivers/infiniband/hw/hfi1/verbs.c hfi1_rc_verbs_aborted(qp, &ps->s_txreq->phdr.hdr); phdr 1108 drivers/infiniband/hw/hfi1/verbs.c hfi1_rc_send_complete(qp, &ps->s_txreq->phdr.hdr); phdr 1266 drivers/infiniband/hw/hfi1/verbs.c if (ps->s_txreq->phdr.hdr.hdr_type) { phdr 1267 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_16b_header *hdr = &ps->s_txreq->phdr.hdr.opah; phdr 1278 drivers/infiniband/hw/hfi1/verbs.c struct ib_header *hdr = &ps->s_txreq->phdr.hdr.ibh; phdr 59 drivers/infiniband/hw/hfi1/verbs_txreq.h struct hfi1_sdma_header phdr; phdr 97 drivers/infiniband/hw/hfi1/verbs_txreq.h tx->phdr.hdr.hdr_type = priv->hdr_type; phdr 781 drivers/infiniband/hw/qib/qib_verbs.c struct qib_pio_header *phdr; phdr 824 drivers/infiniband/hw/qib/qib_verbs.c phdr = &dev->pio_hdrs[tx->hdr_inx]; phdr 825 drivers/infiniband/hw/qib/qib_verbs.c phdr->pbc[0] = cpu_to_le32(plen); phdr 826 drivers/infiniband/hw/qib/qib_verbs.c phdr->pbc[1] = cpu_to_le32(control); phdr 827 drivers/infiniband/hw/qib/qib_verbs.c memcpy(&phdr->hdr, hdr, hdrwords << 2); phdr 839 drivers/infiniband/hw/qib/qib_verbs.c phdr = kmalloc(tx->hdr_dwords << 2, GFP_ATOMIC); phdr 840 drivers/infiniband/hw/qib/qib_verbs.c if (!phdr) phdr 842 drivers/infiniband/hw/qib/qib_verbs.c phdr->pbc[0] = cpu_to_le32(plen); phdr 843 drivers/infiniband/hw/qib/qib_verbs.c phdr->pbc[1] = cpu_to_le32(control); phdr 844 drivers/infiniband/hw/qib/qib_verbs.c memcpy(&phdr->hdr, hdr, hdrwords << 2); phdr 845 drivers/infiniband/hw/qib/qib_verbs.c qib_copy_from_sge((u32 *) &phdr->hdr + hdrwords, ss, len); phdr 847 drivers/infiniband/hw/qib/qib_verbs.c tx->txreq.addr = dma_map_single(&dd->pcidev->dev, phdr, phdr 851 drivers/infiniband/hw/qib/qib_verbs.c tx->align_buf = phdr; phdr 858 drivers/infiniband/hw/qib/qib_verbs.c kfree(phdr); phdr 705 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_pseudo_header *phdr; phdr 707 drivers/infiniband/ulp/ipoib/ipoib_main.c phdr = skb_push(skb, sizeof(*phdr)); phdr 708 drivers/infiniband/ulp/ipoib/ipoib_main.c memcpy(phdr->hwaddr, daddr, INFINIBAND_ALEN); phdr 1040 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_pseudo_header *phdr) phdr 1053 drivers/infiniband/ulp/ipoib/ipoib_main.c path = __path_find(dev, phdr->hwaddr + 4); phdr 1056 drivers/infiniband/ulp/ipoib/ipoib_main.c path = path_rec_create(dev, phdr->hwaddr + 4); phdr 1065 drivers/infiniband/ulp/ipoib/ipoib_main.c init_path_rec(priv, path, phdr->hwaddr + 4); phdr 1072 drivers/infiniband/ulp/ipoib/ipoib_main.c push_pseudo_header(skb, phdr->hwaddr); phdr 1084 drivers/infiniband/ulp/ipoib/ipoib_main.c IPOIB_QPN(phdr->hwaddr)); phdr 1099 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_pseudo_header *phdr; phdr 1103 drivers/infiniband/ulp/ipoib/ipoib_main.c phdr = (struct ipoib_pseudo_header *) skb->data; phdr 1104 drivers/infiniband/ulp/ipoib/ipoib_main.c skb_pull(skb, sizeof(*phdr)); phdr 1107 drivers/infiniband/ulp/ipoib/ipoib_main.c if (unlikely(phdr->hwaddr[4] == 0xff)) { phdr 1120 drivers/infiniband/ulp/ipoib/ipoib_main.c phdr->hwaddr[8] = (priv->pkey >> 8) & 0xff; phdr 1121 drivers/infiniband/ulp/ipoib/ipoib_main.c phdr->hwaddr[9] = priv->pkey & 0xff; phdr 1123 drivers/infiniband/ulp/ipoib/ipoib_main.c neigh = ipoib_neigh_get(dev, phdr->hwaddr); phdr 1126 drivers/infiniband/ulp/ipoib/ipoib_main.c ipoib_mcast_send(dev, phdr->hwaddr, skb); phdr 1135 drivers/infiniband/ulp/ipoib/ipoib_main.c neigh = ipoib_neigh_get(dev, phdr->hwaddr); phdr 1137 drivers/infiniband/ulp/ipoib/ipoib_main.c neigh = neigh_add_path(skb, phdr->hwaddr, dev); phdr 1145 drivers/infiniband/ulp/ipoib/ipoib_main.c unicast_arp_send(skb, dev, phdr); phdr 1163 drivers/infiniband/ulp/ipoib/ipoib_main.c IPOIB_QPN(phdr->hwaddr)); phdr 1166 drivers/infiniband/ulp/ipoib/ipoib_main.c neigh_refresh_path(neigh, phdr->hwaddr, dev); phdr 1170 drivers/infiniband/ulp/ipoib/ipoib_main.c push_pseudo_header(skb, phdr->hwaddr); phdr 1481 drivers/media/common/siano/smscoreapi.c struct sms_msg_hdr *phdr = (struct sms_msg_hdr *) ((u8 *) cb->p phdr 1503 drivers/media/common/siano/smscoreapi.c if ((phdr->msg_type == MSG_SMS_HO_PER_SLICES_IND) || phdr 1504 drivers/media/common/siano/smscoreapi.c (phdr->msg_type == MSG_SMS_TRANSMISSION_IND)) { phdr 1506 drivers/media/common/siano/smscoreapi.c phdr->msg_dst_id = DVBT_BDA_CONTROL_MSG_ID; phdr 1510 drivers/media/common/siano/smscoreapi.c client = smscore_find_client(coredev, phdr->msg_type, phdr->msg_dst_id); phdr 1518 drivers/media/common/siano/smscoreapi.c switch (phdr->msg_type) { phdr 1536 drivers/media/common/siano/smscoreapi.c (struct sms_version_res *) phdr; phdr 1558 drivers/media/common/siano/smscoreapi.c struct sms_msg_data *validity = (struct sms_msg_data *) phdr; phdr 1584 drivers/media/common/siano/smscoreapi.c u32 *msgdata = (u32 *) phdr; phdr 1597 drivers/media/common/siano/smscoreapi.c ((char *)phdr phdr 1599 drivers/media/common/siano/smscoreapi.c (int)phdr->msg_length phdr 1614 drivers/media/common/siano/smscoreapi.c smscore_translate_msg(phdr->msg_type), phdr 1615 drivers/media/common/siano/smscoreapi.c phdr->msg_type); phdr 1794 drivers/media/common/siano/smscoreapi.c struct sms_msg_hdr *phdr = (struct sms_msg_hdr *) buffer; phdr 1811 drivers/media/common/siano/smscoreapi.c phdr->msg_src_id); phdr 508 drivers/media/common/siano/smsdvb-main.c struct sms_msg_hdr *phdr = (struct sms_msg_hdr *) (((u8 *) cb->p) phdr 510 drivers/media/common/siano/smsdvb-main.c void *p = phdr + 1; phdr 515 drivers/media/common/siano/smsdvb-main.c switch (phdr->msg_type) { phdr 85 drivers/media/common/siano/smsendian.c struct sms_msg_hdr *phdr = (struct sms_msg_hdr *)msg; phdr 87 drivers/media/common/siano/smsendian.c phdr->msg_type = le16_to_cpu((__force __le16)phdr->msg_type); phdr 88 drivers/media/common/siano/smsendian.c phdr->msg_length = le16_to_cpu((__force __le16)phdr->msg_length); phdr 89 drivers/media/common/siano/smsendian.c phdr->msg_flags = le16_to_cpu((__force __le16)phdr->msg_flags); phdr 1021 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c static void load_imem_segment(struct c8sectpfei *fei, Elf32_Phdr *phdr, phdr 1025 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c const u8 *imem_src = fw->data + phdr->p_offset; phdr 1038 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c phdr->p_paddr, phdr->p_filesz, phdr 1039 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c dest, phdr->p_memsz + phdr->p_memsz / 3); phdr 1041 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c for (i = 0; i < phdr->p_filesz; i++) { phdr 1057 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c static void load_dmem_segment(struct c8sectpfei *fei, Elf32_Phdr *phdr, phdr 1067 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c seg_num, phdr->p_paddr, phdr->p_filesz, phdr 1068 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c dst, phdr->p_memsz); phdr 1070 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c memcpy((void __force *)dst, (void *)fw->data + phdr->p_offset, phdr 1071 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c phdr->p_filesz); phdr 1073 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c memset((void __force *)dst + phdr->p_filesz, 0, phdr 1074 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c phdr->p_memsz - phdr->p_filesz); phdr 1080 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c Elf32_Phdr *phdr; phdr 1088 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c phdr = (Elf32_Phdr *)(fw->data + ehdr->e_phoff); phdr 1091 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c for (i = 0; i < ehdr->e_phnum; i++, phdr++) { phdr 1094 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c if (phdr->p_type != PT_LOAD) phdr 1100 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c if (phdr->p_offset + phdr->p_filesz > fw->size) { phdr 1113 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c if (phdr->p_flags & PF_X) { phdr 1119 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c dst += (phdr->p_paddr & 0xFFFFF) * sizeof(unsigned int); phdr 1120 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c load_imem_segment(fei, phdr, fw, dst, i); phdr 1127 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c dst += (phdr->p_paddr & 0xFFFFF) * sizeof(unsigned int); phdr 1128 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c load_dmem_segment(fei, phdr, fw, dst, i); phdr 98 drivers/media/usb/siano/smsusb.c struct sms_msg_hdr *phdr = (struct sms_msg_hdr *)surb->cb->p; phdr 100 drivers/media/usb/siano/smsusb.c smsendian_handle_message_header(phdr); phdr 101 drivers/media/usb/siano/smsusb.c if (urb->actual_length >= phdr->msg_length) { phdr 102 drivers/media/usb/siano/smsusb.c surb->cb->size = phdr->msg_length; phdr 105 drivers/media/usb/siano/smsusb.c (phdr->msg_flags & MSG_HDR_FLAG_SPLIT_MSG)) { phdr 109 drivers/media/usb/siano/smsusb.c ((phdr->msg_flags >> 8) & 3); phdr 112 drivers/media/usb/siano/smsusb.c if (((int) phdr->msg_length + phdr 115 drivers/media/usb/siano/smsusb.c phdr->msg_length, phdr 123 drivers/media/usb/siano/smsusb.c memcpy((char *) phdr + surb->cb->offset, phdr 124 drivers/media/usb/siano/smsusb.c phdr, sizeof(struct sms_msg_hdr)); phdr 129 drivers/media/usb/siano/smsusb.c smscore_translate_msg(phdr->msg_type), phdr 130 drivers/media/usb/siano/smsusb.c phdr->msg_type, phdr->msg_length); phdr 132 drivers/media/usb/siano/smsusb.c smsendian_handle_rx_message((struct sms_msg_data *) phdr); phdr 138 drivers/media/usb/siano/smsusb.c phdr->msg_length, urb->actual_length); phdr 209 drivers/media/usb/siano/smsusb.c struct sms_msg_hdr *phdr; phdr 217 drivers/media/usb/siano/smsusb.c phdr = kmemdup(buffer, size, GFP_KERNEL); phdr 218 drivers/media/usb/siano/smsusb.c if (!phdr) phdr 222 drivers/media/usb/siano/smsusb.c smscore_translate_msg(phdr->msg_type), phdr->msg_type, phdr 223 drivers/media/usb/siano/smsusb.c phdr->msg_length); phdr 225 drivers/media/usb/siano/smsusb.c smsendian_handle_tx_message((struct sms_msg_data *) phdr); phdr 226 drivers/media/usb/siano/smsusb.c smsendian_handle_message_header((struct sms_msg_hdr *)phdr); phdr 228 drivers/media/usb/siano/smsusb.c phdr, size, &dummy, 1000); phdr 230 drivers/media/usb/siano/smsusb.c kfree(phdr); phdr 194 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct ethhdr *phdr = (struct ethhdr *)(skb->data); phdr 205 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c memcpy(&src_addr, phdr->h_source, ETH_ALEN); phdr 307 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct ethhdr *phdr = (struct ethhdr *)(skb->data); phdr 316 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (ether_addr_equal(phdr->h_source, adapter->mac_addr)) phdr 328 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c memcpy(&src_addr, phdr->h_source, ETH_ALEN); phdr 657 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct ethhdr *phdr; phdr 669 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c phdr = (struct ethhdr *)skb->data; phdr 670 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (!ether_addr_equal(phdr->h_source, adapter->mac_addr)) phdr 677 drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h #define D11A_PHY_HDR_GRATE(phdr) ((phdr)->rlpt[0] & 0x0f) phdr 678 drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h #define D11A_PHY_HDR_GRES(phdr) (((phdr)->rlpt[0] >> 4) & 0x01) phdr 679 drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h #define D11A_PHY_HDR_GLENGTH(phdr) (((u32 *)((phdr)->rlpt) >> 5) & 0x0fff) phdr 680 drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h #define D11A_PHY_HDR_GPARITY(phdr) (((phdr)->rlpt[3] >> 1) & 0x01) phdr 681 drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h #define D11A_PHY_HDR_GTAIL(phdr) (((phdr)->rlpt[3] >> 2) & 0x3f) phdr 684 drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h #define D11A_PHY_HDR_SRATE(phdr, rate) \ phdr 685 drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h ((phdr)->rlpt[0] = ((phdr)->rlpt[0] & 0xf0) | ((rate) & 0xf)) phdr 687 drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h #define D11A_PHY_HDR_SRES(phdr) ((phdr)->rlpt[0] &= 0xef) phdr 689 drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h #define D11A_PHY_HDR_SLENGTH(phdr, length) \ phdr 690 drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h (*(u32 *)((phdr)->rlpt) = *(u32 *)((phdr)->rlpt) | \ phdr 693 drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h #define D11A_PHY_HDR_STAIL(phdr) ((phdr)->rlpt[3] &= 0x03) phdr 94 drivers/remoteproc/qcom_common.c const struct elf32_phdr *phdr; phdr 103 drivers/remoteproc/qcom_common.c phdr = &phdrs[i]; phdr 105 drivers/remoteproc/qcom_common.c if (phdr->p_type != PT_LOAD) phdr 108 drivers/remoteproc/qcom_common.c if ((phdr->p_flags & QCOM_MDT_TYPE_MASK) == QCOM_MDT_TYPE_HASH) phdr 111 drivers/remoteproc/qcom_common.c if (!phdr->p_memsz) phdr 114 drivers/remoteproc/qcom_common.c ret = rproc_coredump_add_segment(rproc, phdr->p_paddr, phdr 115 drivers/remoteproc/qcom_common.c phdr->p_memsz); phdr 714 drivers/remoteproc/qcom_q6v5_mss.c static bool q6v5_phdr_valid(const struct elf32_phdr *phdr) phdr 716 drivers/remoteproc/qcom_q6v5_mss.c if (phdr->p_type != PT_LOAD) phdr 719 drivers/remoteproc/qcom_q6v5_mss.c if ((phdr->p_flags & QCOM_MDT_TYPE_MASK) == QCOM_MDT_TYPE_HASH) phdr 722 drivers/remoteproc/qcom_q6v5_mss.c if (!phdr->p_memsz) phdr 927 drivers/remoteproc/qcom_q6v5_mss.c const struct elf32_phdr *phdr; phdr 969 drivers/remoteproc/qcom_q6v5_mss.c phdr = &phdrs[i]; phdr 971 drivers/remoteproc/qcom_q6v5_mss.c if (!q6v5_phdr_valid(phdr)) phdr 974 drivers/remoteproc/qcom_q6v5_mss.c if (phdr->p_flags & QCOM_MDT_RELOCATABLE) phdr 977 drivers/remoteproc/qcom_q6v5_mss.c if (phdr->p_paddr < min_addr) phdr 978 drivers/remoteproc/qcom_q6v5_mss.c min_addr = phdr->p_paddr; phdr 980 drivers/remoteproc/qcom_q6v5_mss.c if (phdr->p_paddr + phdr->p_memsz > max_addr) phdr 981 drivers/remoteproc/qcom_q6v5_mss.c max_addr = ALIGN(phdr->p_paddr + phdr->p_memsz, SZ_4K); phdr 996 drivers/remoteproc/qcom_q6v5_mss.c phdr = &phdrs[i]; phdr 998 drivers/remoteproc/qcom_q6v5_mss.c if (!q6v5_phdr_valid(phdr)) phdr 1001 drivers/remoteproc/qcom_q6v5_mss.c offset = phdr->p_paddr - mpss_reloc; phdr 1002 drivers/remoteproc/qcom_q6v5_mss.c if (offset < 0 || offset + phdr->p_memsz > qproc->mpss_size) { phdr 1010 drivers/remoteproc/qcom_q6v5_mss.c if (phdr->p_filesz && phdr->p_offset < fw->size) { phdr 1012 drivers/remoteproc/qcom_q6v5_mss.c if (phdr->p_offset + phdr->p_filesz > fw->size) { phdr 1020 drivers/remoteproc/qcom_q6v5_mss.c memcpy(ptr, fw->data + phdr->p_offset, phdr->p_filesz); phdr 1021 drivers/remoteproc/qcom_q6v5_mss.c } else if (phdr->p_filesz) { phdr 1035 drivers/remoteproc/qcom_q6v5_mss.c if (phdr->p_memsz > phdr->p_filesz) { phdr 1036 drivers/remoteproc/qcom_q6v5_mss.c memset(ptr + phdr->p_filesz, 0, phdr 1037 drivers/remoteproc/qcom_q6v5_mss.c phdr->p_memsz - phdr->p_filesz); phdr 1039 drivers/remoteproc/qcom_q6v5_mss.c size += phdr->p_memsz; phdr 1186 drivers/remoteproc/qcom_q6v5_mss.c const struct elf32_phdr *phdr; phdr 1204 drivers/remoteproc/qcom_q6v5_mss.c phdr = &phdrs[i]; phdr 1206 drivers/remoteproc/qcom_q6v5_mss.c if (!q6v5_phdr_valid(phdr)) phdr 1209 drivers/remoteproc/qcom_q6v5_mss.c ret = rproc_coredump_add_custom_segment(rproc, phdr->p_paddr, phdr 1210 drivers/remoteproc/qcom_q6v5_mss.c phdr->p_memsz, phdr 1568 drivers/remoteproc/remoteproc_core.c struct elf32_phdr *phdr; phdr 1581 drivers/remoteproc/remoteproc_core.c data_size += sizeof(*phdr) + segment->size; phdr 1604 drivers/remoteproc/remoteproc_core.c ehdr->e_phentsize = sizeof(*phdr); phdr 1607 drivers/remoteproc/remoteproc_core.c phdr = data + ehdr->e_phoff; phdr 1608 drivers/remoteproc/remoteproc_core.c offset = ehdr->e_phoff + sizeof(*phdr) * ehdr->e_phnum; phdr 1610 drivers/remoteproc/remoteproc_core.c memset(phdr, 0, sizeof(*phdr)); phdr 1611 drivers/remoteproc/remoteproc_core.c phdr->p_type = PT_LOAD; phdr 1612 drivers/remoteproc/remoteproc_core.c phdr->p_offset = offset; phdr 1613 drivers/remoteproc/remoteproc_core.c phdr->p_vaddr = segment->da; phdr 1614 drivers/remoteproc/remoteproc_core.c phdr->p_paddr = segment->da; phdr 1615 drivers/remoteproc/remoteproc_core.c phdr->p_filesz = segment->size; phdr 1616 drivers/remoteproc/remoteproc_core.c phdr->p_memsz = segment->size; phdr 1617 drivers/remoteproc/remoteproc_core.c phdr->p_flags = PF_R | PF_W | PF_X; phdr 1618 drivers/remoteproc/remoteproc_core.c phdr->p_align = 0; phdr 1634 drivers/remoteproc/remoteproc_core.c offset += phdr->p_filesz; phdr 1635 drivers/remoteproc/remoteproc_core.c phdr++; phdr 141 drivers/remoteproc/remoteproc_elf_loader.c struct elf32_phdr *phdr; phdr 146 drivers/remoteproc/remoteproc_elf_loader.c phdr = (struct elf32_phdr *)(elf_data + ehdr->e_phoff); phdr 149 drivers/remoteproc/remoteproc_elf_loader.c for (i = 0; i < ehdr->e_phnum; i++, phdr++) { phdr 150 drivers/remoteproc/remoteproc_elf_loader.c u32 da = phdr->p_paddr; phdr 151 drivers/remoteproc/remoteproc_elf_loader.c u32 memsz = phdr->p_memsz; phdr 152 drivers/remoteproc/remoteproc_elf_loader.c u32 filesz = phdr->p_filesz; phdr 153 drivers/remoteproc/remoteproc_elf_loader.c u32 offset = phdr->p_offset; phdr 156 drivers/remoteproc/remoteproc_elf_loader.c if (phdr->p_type != PT_LOAD) phdr 160 drivers/remoteproc/remoteproc_elf_loader.c phdr->p_type, da, memsz, filesz); phdr 185 drivers/remoteproc/remoteproc_elf_loader.c if (phdr->p_filesz) phdr 186 drivers/remoteproc/remoteproc_elf_loader.c memcpy(ptr, elf_data + phdr->p_offset, filesz); phdr 1408 drivers/scsi/be2iscsi/be_main.c struct pdu_base *phdr, void *pdata, unsigned int dlen) phdr 1417 drivers/scsi/be2iscsi/be_main.c code = AMAP_GET_BITS(struct amap_pdu_base, opcode, phdr); phdr 1436 drivers/scsi/be2iscsi/be_main.c login_hdr = (struct iscsi_hdr *)phdr; phdr 1446 drivers/scsi/be2iscsi/be_main.c __iscsi_complete_pdu(conn, (struct iscsi_hdr *)phdr, pdata, dlen); phdr 1594 drivers/scsi/be2iscsi/be_main.c void *phdr = NULL, *pdata = NULL; phdr 1603 drivers/scsi/be2iscsi/be_main.c if (!phdr) { phdr 1604 drivers/scsi/be2iscsi/be_main.c phdr = pasync_handle->pbuffer; phdr 1627 drivers/scsi/be2iscsi/be_main.c AMAP_GET_BITS(struct amap_pdu_base, opcode, phdr), phdr 1633 drivers/scsi/be2iscsi/be_main.c status = beiscsi_complete_pdu(beiscsi_conn, phdr, pdata, dlen); phdr 1459 drivers/scsi/qla2xxx/qla_nx2.c u8 *phdr; phdr 1467 drivers/scsi/qla2xxx/qla_nx2.c phdr = vha->reset_tmplt.buff; phdr 1472 drivers/scsi/qla2xxx/qla_nx2.c *phdr, *(phdr+1), *(phdr+2), *(phdr+3), *(phdr+4), phdr 1473 drivers/scsi/qla2xxx/qla_nx2.c *(phdr+5), *(phdr+6), *(phdr+7), *(phdr + 8), phdr 1474 drivers/scsi/qla2xxx/qla_nx2.c *(phdr+9), *(phdr+10), *(phdr+11), *(phdr+12), phdr 1475 drivers/scsi/qla2xxx/qla_nx2.c *(phdr+13), *(phdr+14), *(phdr+15)); phdr 606 drivers/scsi/qla4xxx/ql4_83xx.c uint8_t *phdr; phdr 614 drivers/scsi/qla4xxx/ql4_83xx.c phdr = ha->reset_tmplt.buff; phdr 618 drivers/scsi/qla4xxx/ql4_83xx.c *phdr, *(phdr+1), *(phdr+2), *(phdr+3), *(phdr+4), phdr 619 drivers/scsi/qla4xxx/ql4_83xx.c *(phdr+5), *(phdr+6), *(phdr+7), *(phdr + 8), phdr 620 drivers/scsi/qla4xxx/ql4_83xx.c *(phdr+9), *(phdr+10), *(phdr+11), *(phdr+12), phdr 621 drivers/scsi/qla4xxx/ql4_83xx.c *(phdr+13), *(phdr+14), *(phdr+15))); phdr 20 drivers/soc/qcom/mdt_loader.c static bool mdt_phdr_valid(const struct elf32_phdr *phdr) phdr 22 drivers/soc/qcom/mdt_loader.c if (phdr->p_type != PT_LOAD) phdr 25 drivers/soc/qcom/mdt_loader.c if ((phdr->p_flags & QCOM_MDT_TYPE_MASK) == QCOM_MDT_TYPE_HASH) phdr 28 drivers/soc/qcom/mdt_loader.c if (!phdr->p_memsz) phdr 43 drivers/soc/qcom/mdt_loader.c const struct elf32_phdr *phdr; phdr 53 drivers/soc/qcom/mdt_loader.c phdr = &phdrs[i]; phdr 55 drivers/soc/qcom/mdt_loader.c if (!mdt_phdr_valid(phdr)) phdr 58 drivers/soc/qcom/mdt_loader.c if (phdr->p_paddr < min_addr) phdr 59 drivers/soc/qcom/mdt_loader.c min_addr = phdr->p_paddr; phdr 61 drivers/soc/qcom/mdt_loader.c if (phdr->p_paddr + phdr->p_memsz > max_addr) phdr 62 drivers/soc/qcom/mdt_loader.c max_addr = ALIGN(phdr->p_paddr + phdr->p_memsz, SZ_4K); phdr 135 drivers/soc/qcom/mdt_loader.c const struct elf32_phdr *phdr; phdr 182 drivers/soc/qcom/mdt_loader.c phdr = &phdrs[i]; phdr 184 drivers/soc/qcom/mdt_loader.c if (!mdt_phdr_valid(phdr)) phdr 187 drivers/soc/qcom/mdt_loader.c if (phdr->p_flags & QCOM_MDT_RELOCATABLE) phdr 190 drivers/soc/qcom/mdt_loader.c if (phdr->p_paddr < min_addr) phdr 191 drivers/soc/qcom/mdt_loader.c min_addr = phdr->p_paddr; phdr 193 drivers/soc/qcom/mdt_loader.c if (phdr->p_paddr + phdr->p_memsz > max_addr) phdr 194 drivers/soc/qcom/mdt_loader.c max_addr = ALIGN(phdr->p_paddr + phdr->p_memsz, SZ_4K); phdr 221 drivers/soc/qcom/mdt_loader.c phdr = &phdrs[i]; phdr 223 drivers/soc/qcom/mdt_loader.c if (!mdt_phdr_valid(phdr)) phdr 226 drivers/soc/qcom/mdt_loader.c offset = phdr->p_paddr - mem_reloc; phdr 227 drivers/soc/qcom/mdt_loader.c if (offset < 0 || offset + phdr->p_memsz > mem_size) { phdr 235 drivers/soc/qcom/mdt_loader.c if (phdr->p_filesz && phdr->p_offset < fw->size) { phdr 237 drivers/soc/qcom/mdt_loader.c if (phdr->p_offset + phdr->p_filesz > fw->size) { phdr 245 drivers/soc/qcom/mdt_loader.c memcpy(ptr, fw->data + phdr->p_offset, phdr->p_filesz); phdr 246 drivers/soc/qcom/mdt_loader.c } else if (phdr->p_filesz) { phdr 250 drivers/soc/qcom/mdt_loader.c ptr, phdr->p_filesz); phdr 259 drivers/soc/qcom/mdt_loader.c if (phdr->p_memsz > phdr->p_filesz) phdr 260 drivers/soc/qcom/mdt_loader.c memset(ptr + phdr->p_filesz, 0, phdr->p_memsz - phdr->p_filesz); phdr 278 drivers/soc/qcom/smem.c phdr_to_last_uncached_entry(struct smem_partition_header *phdr) phdr 280 drivers/soc/qcom/smem.c void *p = phdr; phdr 282 drivers/soc/qcom/smem.c return p + le32_to_cpu(phdr->offset_free_uncached); phdr 286 drivers/soc/qcom/smem.c phdr_to_first_cached_entry(struct smem_partition_header *phdr, phdr 289 drivers/soc/qcom/smem.c void *p = phdr; phdr 292 drivers/soc/qcom/smem.c return p + le32_to_cpu(phdr->size) - ALIGN(sizeof(*e), cacheline); phdr 296 drivers/soc/qcom/smem.c phdr_to_last_cached_entry(struct smem_partition_header *phdr) phdr 298 drivers/soc/qcom/smem.c void *p = phdr; phdr 300 drivers/soc/qcom/smem.c return p + le32_to_cpu(phdr->offset_free_cached); phdr 304 drivers/soc/qcom/smem.c phdr_to_first_uncached_entry(struct smem_partition_header *phdr) phdr 306 drivers/soc/qcom/smem.c void *p = phdr; phdr 308 drivers/soc/qcom/smem.c return p + sizeof(*phdr); phdr 349 drivers/soc/qcom/smem.c struct smem_partition_header *phdr, phdr 357 drivers/soc/qcom/smem.c hdr = phdr_to_first_uncached_entry(phdr); phdr 358 drivers/soc/qcom/smem.c end = phdr_to_last_uncached_entry(phdr); phdr 359 drivers/soc/qcom/smem.c cached = phdr_to_last_cached_entry(phdr); phdr 389 drivers/soc/qcom/smem.c le32_add_cpu(&phdr->offset_free_uncached, alloc_size); phdr 394 drivers/soc/qcom/smem.c le16_to_cpu(phdr->host0), le16_to_cpu(phdr->host1)); phdr 443 drivers/soc/qcom/smem.c struct smem_partition_header *phdr; phdr 466 drivers/soc/qcom/smem.c phdr = __smem->partitions[host]; phdr 467 drivers/soc/qcom/smem.c ret = qcom_smem_alloc_private(__smem, phdr, item, size); phdr 469 drivers/soc/qcom/smem.c phdr = __smem->global_partition; phdr 470 drivers/soc/qcom/smem.c ret = qcom_smem_alloc_private(__smem, phdr, item, size); phdr 512 drivers/soc/qcom/smem.c struct smem_partition_header *phdr, phdr 519 drivers/soc/qcom/smem.c e = phdr_to_first_uncached_entry(phdr); phdr 520 drivers/soc/qcom/smem.c end = phdr_to_last_uncached_entry(phdr); phdr 539 drivers/soc/qcom/smem.c e = phdr_to_first_cached_entry(phdr, cacheline); phdr 540 drivers/soc/qcom/smem.c end = phdr_to_last_cached_entry(phdr); phdr 561 drivers/soc/qcom/smem.c le16_to_cpu(phdr->host0), le16_to_cpu(phdr->host1)); phdr 577 drivers/soc/qcom/smem.c struct smem_partition_header *phdr; phdr 596 drivers/soc/qcom/smem.c phdr = __smem->partitions[host]; phdr 598 drivers/soc/qcom/smem.c ptr = qcom_smem_get_private(__smem, phdr, cacheln, item, size); phdr 600 drivers/soc/qcom/smem.c phdr = __smem->global_partition; phdr 602 drivers/soc/qcom/smem.c ptr = qcom_smem_get_private(__smem, phdr, cacheln, item, size); phdr 623 drivers/soc/qcom/smem.c struct smem_partition_header *phdr; phdr 631 drivers/soc/qcom/smem.c phdr = __smem->partitions[host]; phdr 632 drivers/soc/qcom/smem.c ret = le32_to_cpu(phdr->offset_free_cached) - phdr 633 drivers/soc/qcom/smem.c le32_to_cpu(phdr->offset_free_uncached); phdr 635 drivers/soc/qcom/smem.c phdr = __smem->global_partition; phdr 636 drivers/soc/qcom/smem.c ret = le32_to_cpu(phdr->offset_free_cached) - phdr 637 drivers/soc/qcom/smem.c le32_to_cpu(phdr->offset_free_uncached); phdr 778 drivers/staging/fieldbus/anybuss/host.c u8 *phdr = (u8 *)hdr; phdr 795 drivers/staging/fieldbus/anybuss/host.c dev_err(dev, "%02X%02X", phdr[i], phdr[i + 1]); phdr 94 drivers/staging/uwb/i1480/dfu/mac.c int fw_hdrs_load(struct i1480 *i1480, struct fw_hdr **phdr, phdr 100 drivers/staging/uwb/i1480/dfu/mac.c struct fw_hdr *hdr, **prev_hdr = phdr; phdr 108 drivers/staging/uwb/i1480/dfu/mac.c *phdr = NULL; phdr 134 drivers/staging/uwb/i1480/dfu/mac.c fw_hdrs_free(*phdr); phdr 581 drivers/visorbus/visorchipset.c struct visor_controlvm_parameters_header *phdr; phdr 583 drivers/visorbus/visorchipset.c phdr = &ctx->data; phdr 584 drivers/visorbus/visorchipset.c if ((unsigned long)phdr->name_offset + phdr 585 drivers/visorbus/visorchipset.c (unsigned long)phdr->name_length > ctx->param_bytes) phdr 587 drivers/visorbus/visorchipset.c ctx->curr = (char *)&phdr + phdr->name_offset; phdr 588 drivers/visorbus/visorchipset.c ctx->bytes_remaining = phdr->name_length; phdr 589 drivers/visorbus/visorchipset.c return parser_string_get(ctx->curr, phdr->name_length); phdr 495 fs/binfmt_elf.c struct elf_phdr *phdr, phdr 1447 fs/binfmt_elf.c static void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset) phdr 1449 fs/binfmt_elf.c phdr->p_type = PT_NOTE; phdr 1450 fs/binfmt_elf.c phdr->p_offset = offset; phdr 1451 fs/binfmt_elf.c phdr->p_vaddr = 0; phdr 1452 fs/binfmt_elf.c phdr->p_paddr = 0; phdr 1453 fs/binfmt_elf.c phdr->p_filesz = sz; phdr 1454 fs/binfmt_elf.c phdr->p_memsz = 0; phdr 1455 fs/binfmt_elf.c phdr->p_flags = 0; phdr 1456 fs/binfmt_elf.c phdr->p_align = 0; phdr 2304 fs/binfmt_elf.c struct elf_phdr phdr; phdr 2306 fs/binfmt_elf.c phdr.p_type = PT_LOAD; phdr 2307 fs/binfmt_elf.c phdr.p_offset = offset; phdr 2308 fs/binfmt_elf.c phdr.p_vaddr = vma->vm_start; phdr 2309 fs/binfmt_elf.c phdr.p_paddr = 0; phdr 2310 fs/binfmt_elf.c phdr.p_filesz = vma_filesz[i++]; phdr 2311 fs/binfmt_elf.c phdr.p_memsz = vma->vm_end - vma->vm_start; phdr 2312 fs/binfmt_elf.c offset += phdr.p_filesz; phdr 2313 fs/binfmt_elf.c phdr.p_flags = vma->vm_flags & VM_READ ? PF_R : 0; phdr 2315 fs/binfmt_elf.c phdr.p_flags |= PF_W; phdr 2317 fs/binfmt_elf.c phdr.p_flags |= PF_X; phdr 2318 fs/binfmt_elf.c phdr.p_align = ELF_EXEC_PAGESIZE; phdr 2320 fs/binfmt_elf.c if (!dump_emit(cprm, &phdr, sizeof(phdr))) phdr 141 fs/binfmt_elf_fdpic.c struct elf32_phdr *phdr; phdr 161 fs/binfmt_elf_fdpic.c phdr = params->phdrs; phdr 162 fs/binfmt_elf_fdpic.c for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { phdr 163 fs/binfmt_elf_fdpic.c if (phdr->p_type != PT_GNU_STACK) phdr 166 fs/binfmt_elf_fdpic.c if (phdr->p_flags & PF_X) phdr 171 fs/binfmt_elf_fdpic.c params->stack_size = phdr->p_memsz; phdr 186 fs/binfmt_elf_fdpic.c struct elf_phdr *phdr; phdr 229 fs/binfmt_elf_fdpic.c phdr = exec_params.phdrs; phdr 231 fs/binfmt_elf_fdpic.c for (i = 0; i < exec_params.hdr.e_phnum; i++, phdr++) { phdr 232 fs/binfmt_elf_fdpic.c switch (phdr->p_type) { phdr 235 fs/binfmt_elf_fdpic.c if (phdr->p_filesz > PATH_MAX) phdr 238 fs/binfmt_elf_fdpic.c if (phdr->p_filesz < 2) phdr 242 fs/binfmt_elf_fdpic.c interpreter_name = kmalloc(phdr->p_filesz, GFP_KERNEL); phdr 246 fs/binfmt_elf_fdpic.c pos = phdr->p_offset; phdr 248 fs/binfmt_elf_fdpic.c phdr->p_filesz, &pos); phdr 249 fs/binfmt_elf_fdpic.c if (unlikely(retval != phdr->p_filesz)) { phdr 256 fs/binfmt_elf_fdpic.c if (interpreter_name[phdr->p_filesz - 1] != '\0') phdr 291 fs/binfmt_elf_fdpic.c exec_params.load_addr = phdr->p_vaddr; phdr 738 fs/binfmt_elf_fdpic.c struct elf32_phdr *phdr; phdr 800 fs/binfmt_elf_fdpic.c phdr = params->phdrs; phdr 802 fs/binfmt_elf_fdpic.c for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { phdr 803 fs/binfmt_elf_fdpic.c if (phdr->p_type != PT_LOAD) phdr 806 fs/binfmt_elf_fdpic.c if (phdr->p_offset > params->hdr.e_phoff || phdr 807 fs/binfmt_elf_fdpic.c phdr->p_offset + phdr->p_filesz < stop) phdr 812 fs/binfmt_elf_fdpic.c if (phdr->p_vaddr >= seg->p_vaddr && phdr 813 fs/binfmt_elf_fdpic.c phdr->p_vaddr + phdr->p_filesz <= phdr 816 fs/binfmt_elf_fdpic.c (phdr->p_vaddr - seg->p_vaddr) + phdr 818 fs/binfmt_elf_fdpic.c params->hdr.e_phoff - phdr->p_offset; phdr 826 fs/binfmt_elf_fdpic.c phdr = params->phdrs; phdr 827 fs/binfmt_elf_fdpic.c for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { phdr 828 fs/binfmt_elf_fdpic.c if (phdr->p_type != PT_DYNAMIC) phdr 833 fs/binfmt_elf_fdpic.c if (phdr->p_vaddr >= seg->p_vaddr && phdr 834 fs/binfmt_elf_fdpic.c phdr->p_vaddr + phdr->p_memsz <= phdr 840 fs/binfmt_elf_fdpic.c (phdr->p_vaddr - seg->p_vaddr) + phdr 846 fs/binfmt_elf_fdpic.c if (phdr->p_memsz == 0 || phdr 847 fs/binfmt_elf_fdpic.c phdr->p_memsz % sizeof(Elf32_Dyn) != 0) phdr 850 fs/binfmt_elf_fdpic.c tmp = phdr->p_memsz / sizeof(Elf32_Dyn); phdr 921 fs/binfmt_elf_fdpic.c struct elf32_phdr *phdr; phdr 930 fs/binfmt_elf_fdpic.c phdr = params->phdrs; phdr 931 fs/binfmt_elf_fdpic.c for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { phdr 935 fs/binfmt_elf_fdpic.c if (base > phdr->p_vaddr) phdr 936 fs/binfmt_elf_fdpic.c base = phdr->p_vaddr; phdr 937 fs/binfmt_elf_fdpic.c if (top < phdr->p_vaddr + phdr->p_memsz) phdr 938 fs/binfmt_elf_fdpic.c top = phdr->p_vaddr + phdr->p_memsz; phdr 955 fs/binfmt_elf_fdpic.c phdr = params->phdrs; phdr 956 fs/binfmt_elf_fdpic.c for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { phdr 960 fs/binfmt_elf_fdpic.c seg->addr = maddr + (phdr->p_vaddr - base); phdr 961 fs/binfmt_elf_fdpic.c seg->p_vaddr = phdr->p_vaddr; phdr 962 fs/binfmt_elf_fdpic.c seg->p_memsz = phdr->p_memsz; phdr 964 fs/binfmt_elf_fdpic.c ret = read_code(file, seg->addr, phdr->p_offset, phdr 965 fs/binfmt_elf_fdpic.c phdr->p_filesz); phdr 970 fs/binfmt_elf_fdpic.c if (phdr->p_offset == 0) phdr 974 fs/binfmt_elf_fdpic.c if (phdr->p_filesz < phdr->p_memsz) { phdr 975 fs/binfmt_elf_fdpic.c if (clear_user((void *) (seg->addr + phdr->p_filesz), phdr 976 fs/binfmt_elf_fdpic.c phdr->p_memsz - phdr->p_filesz)) phdr 981 fs/binfmt_elf_fdpic.c if (phdr->p_flags & PF_X) { phdr 985 fs/binfmt_elf_fdpic.c phdr->p_memsz; phdr 989 fs/binfmt_elf_fdpic.c mm->end_data = seg->addr + phdr->p_memsz; phdr 1009 fs/binfmt_elf_fdpic.c struct elf32_phdr *phdr; phdr 1020 fs/binfmt_elf_fdpic.c phdr = params->phdrs; phdr 1021 fs/binfmt_elf_fdpic.c for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { phdr 1025 fs/binfmt_elf_fdpic.c if (phdr->p_type != PT_LOAD) phdr 1029 fs/binfmt_elf_fdpic.c (unsigned long) phdr->p_vaddr, phdr 1030 fs/binfmt_elf_fdpic.c (unsigned long) phdr->p_offset, phdr 1031 fs/binfmt_elf_fdpic.c (unsigned long) phdr->p_filesz, phdr 1032 fs/binfmt_elf_fdpic.c (unsigned long) phdr->p_memsz); phdr 1035 fs/binfmt_elf_fdpic.c if (phdr->p_flags & PF_R) prot |= PROT_READ; phdr 1036 fs/binfmt_elf_fdpic.c if (phdr->p_flags & PF_W) prot |= PROT_WRITE; phdr 1037 fs/binfmt_elf_fdpic.c if (phdr->p_flags & PF_X) prot |= PROT_EXEC; phdr 1052 fs/binfmt_elf_fdpic.c maddr = phdr->p_vaddr; phdr 1063 fs/binfmt_elf_fdpic.c delta_vaddr = phdr->p_vaddr; phdr 1066 fs/binfmt_elf_fdpic.c maddr = load_addr + phdr->p_vaddr - delta_vaddr; phdr 1082 fs/binfmt_elf_fdpic.c disp = phdr->p_vaddr & ~PAGE_MASK; phdr 1083 fs/binfmt_elf_fdpic.c maddr = vm_mmap(file, maddr, phdr->p_memsz + disp, prot, flags, phdr 1084 fs/binfmt_elf_fdpic.c phdr->p_offset - disp); phdr 1087 fs/binfmt_elf_fdpic.c loop, phdr->p_memsz + disp, prot, flags, phdr 1088 fs/binfmt_elf_fdpic.c phdr->p_offset - disp, maddr); phdr 1095 fs/binfmt_elf_fdpic.c load_addr += PAGE_ALIGN(phdr->p_memsz + disp); phdr 1098 fs/binfmt_elf_fdpic.c seg->p_vaddr = phdr->p_vaddr; phdr 1099 fs/binfmt_elf_fdpic.c seg->p_memsz = phdr->p_memsz; phdr 1102 fs/binfmt_elf_fdpic.c if (phdr->p_offset == 0) phdr 1119 fs/binfmt_elf_fdpic.c excess = phdr->p_memsz - phdr->p_filesz; phdr 1120 fs/binfmt_elf_fdpic.c excess1 = PAGE_SIZE - ((maddr + phdr->p_filesz) & ~PAGE_MASK); phdr 1124 fs/binfmt_elf_fdpic.c unsigned long xaddr = maddr + phdr->p_filesz + excess1; phdr 1142 fs/binfmt_elf_fdpic.c loop, maddr + phdr->p_filesz, excess1); phdr 1143 fs/binfmt_elf_fdpic.c if (clear_user((void __user *) maddr + phdr->p_filesz, phdr 1151 fs/binfmt_elf_fdpic.c loop, maddr + phdr->p_filesz, excess); phdr 1152 fs/binfmt_elf_fdpic.c if (clear_user((void *) maddr + phdr->p_filesz, excess)) phdr 1158 fs/binfmt_elf_fdpic.c if (phdr->p_flags & PF_X) { phdr 1161 fs/binfmt_elf_fdpic.c mm->end_code = maddr + phdr->p_memsz; phdr 1165 fs/binfmt_elf_fdpic.c mm->end_data = maddr + phdr->p_memsz; phdr 1315 fs/binfmt_elf_fdpic.c static inline void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset) phdr 1317 fs/binfmt_elf_fdpic.c phdr->p_type = PT_NOTE; phdr 1318 fs/binfmt_elf_fdpic.c phdr->p_offset = offset; phdr 1319 fs/binfmt_elf_fdpic.c phdr->p_vaddr = 0; phdr 1320 fs/binfmt_elf_fdpic.c phdr->p_paddr = 0; phdr 1321 fs/binfmt_elf_fdpic.c phdr->p_filesz = sz; phdr 1322 fs/binfmt_elf_fdpic.c phdr->p_memsz = 0; phdr 1323 fs/binfmt_elf_fdpic.c phdr->p_flags = 0; phdr 1324 fs/binfmt_elf_fdpic.c phdr->p_align = 0; phdr 1728 fs/binfmt_elf_fdpic.c struct elf_phdr phdr; phdr 1733 fs/binfmt_elf_fdpic.c phdr.p_type = PT_LOAD; phdr 1734 fs/binfmt_elf_fdpic.c phdr.p_offset = offset; phdr 1735 fs/binfmt_elf_fdpic.c phdr.p_vaddr = vma->vm_start; phdr 1736 fs/binfmt_elf_fdpic.c phdr.p_paddr = 0; phdr 1737 fs/binfmt_elf_fdpic.c phdr.p_filesz = maydump(vma, cprm->mm_flags) ? sz : 0; phdr 1738 fs/binfmt_elf_fdpic.c phdr.p_memsz = sz; phdr 1739 fs/binfmt_elf_fdpic.c offset += phdr.p_filesz; phdr 1740 fs/binfmt_elf_fdpic.c phdr.p_flags = vma->vm_flags & VM_READ ? PF_R : 0; phdr 1742 fs/binfmt_elf_fdpic.c phdr.p_flags |= PF_W; phdr 1744 fs/binfmt_elf_fdpic.c phdr.p_flags |= PF_X; phdr 1745 fs/binfmt_elf_fdpic.c phdr.p_align = ELF_EXEC_PAGESIZE; phdr 1747 fs/binfmt_elf_fdpic.c if (!dump_emit(cprm, &phdr, sizeof(phdr))) phdr 368 fs/proc/kcore.c struct elf_phdr *phdrs, *phdr; phdr 380 fs/proc/kcore.c phdr = &phdrs[1]; phdr 382 fs/proc/kcore.c phdr->p_type = PT_LOAD; phdr 383 fs/proc/kcore.c phdr->p_flags = PF_R | PF_W | PF_X; phdr 384 fs/proc/kcore.c phdr->p_offset = kc_vaddr_to_offset(m->addr) + data_offset; phdr 386 fs/proc/kcore.c phdr->p_vaddr = (size_t)m->vaddr; phdr 388 fs/proc/kcore.c phdr->p_vaddr = (size_t)m->addr; phdr 390 fs/proc/kcore.c phdr->p_paddr = __pa(m->addr); phdr 392 fs/proc/kcore.c phdr->p_paddr = __pa_symbol(m->addr); phdr 394 fs/proc/kcore.c phdr->p_paddr = (elf_addr_t)-1; phdr 395 fs/proc/kcore.c phdr->p_filesz = phdr->p_memsz = m->size; phdr 396 fs/proc/kcore.c phdr->p_align = PAGE_SIZE; phdr 397 fs/proc/kcore.c phdr++; phdr 831 fs/proc/vmcore.c Elf64_Phdr phdr; phdr 854 fs/proc/vmcore.c phdr.p_type = PT_NOTE; phdr 855 fs/proc/vmcore.c phdr.p_flags = 0; phdr 858 fs/proc/vmcore.c phdr.p_offset = roundup(note_off, PAGE_SIZE); phdr 859 fs/proc/vmcore.c phdr.p_vaddr = phdr.p_paddr = 0; phdr 860 fs/proc/vmcore.c phdr.p_filesz = phdr.p_memsz = phdr_sz; phdr 861 fs/proc/vmcore.c phdr.p_align = 0; phdr 865 fs/proc/vmcore.c memcpy(tmp, &phdr, sizeof(phdr)); phdr 866 fs/proc/vmcore.c tmp += sizeof(phdr); phdr 881 fs/proc/vmcore.c elfnotes_orig_sz = phdr.p_memsz; phdr 1022 fs/proc/vmcore.c Elf32_Phdr phdr; phdr 1045 fs/proc/vmcore.c phdr.p_type = PT_NOTE; phdr 1046 fs/proc/vmcore.c phdr.p_flags = 0; phdr 1049 fs/proc/vmcore.c phdr.p_offset = roundup(note_off, PAGE_SIZE); phdr 1050 fs/proc/vmcore.c phdr.p_vaddr = phdr.p_paddr = 0; phdr 1051 fs/proc/vmcore.c phdr.p_filesz = phdr.p_memsz = phdr_sz; phdr 1052 fs/proc/vmcore.c phdr.p_align = 0; phdr 1056 fs/proc/vmcore.c memcpy(tmp, &phdr, sizeof(phdr)); phdr 1057 fs/proc/vmcore.c tmp += sizeof(phdr); phdr 1072 fs/proc/vmcore.c elfnotes_orig_sz = phdr.p_memsz; phdr 1380 fs/proc/vmcore.c Elf64_Phdr *phdr = (Elf64_Phdr *)(elfptr + sizeof(Elf64_Ehdr)); phdr 1383 fs/proc/vmcore.c for (i = 0; i < ehdr->e_phnum; i++, phdr++) { phdr 1384 fs/proc/vmcore.c if (phdr->p_type == PT_NOTE) { phdr 1386 fs/proc/vmcore.c phdr->p_memsz = elfnotes_orig_sz + vmcoreddsz; phdr 1387 fs/proc/vmcore.c phdr->p_filesz = phdr->p_memsz; phdr 1391 fs/proc/vmcore.c start = rounddown(phdr->p_offset, PAGE_SIZE); phdr 1392 fs/proc/vmcore.c end = roundup(phdr->p_offset + phdr->p_memsz, phdr 1395 fs/proc/vmcore.c phdr->p_offset = vmcore_off + (phdr->p_offset - start); phdr 1400 fs/proc/vmcore.c Elf32_Phdr *phdr = (Elf32_Phdr *)(elfptr + sizeof(Elf32_Ehdr)); phdr 1403 fs/proc/vmcore.c for (i = 0; i < ehdr->e_phnum; i++, phdr++) { phdr 1404 fs/proc/vmcore.c if (phdr->p_type == PT_NOTE) { phdr 1406 fs/proc/vmcore.c phdr->p_memsz = elfnotes_orig_sz + vmcoreddsz; phdr 1407 fs/proc/vmcore.c phdr->p_filesz = phdr->p_memsz; phdr 1411 fs/proc/vmcore.c start = rounddown(phdr->p_offset, PAGE_SIZE); phdr 1412 fs/proc/vmcore.c end = roundup(phdr->p_offset + phdr->p_memsz, phdr 1415 fs/proc/vmcore.c phdr->p_offset = vmcore_off + (phdr->p_offset - start); phdr 936 include/asm-generic/vmlinux.lds.h #define PERCPU_VADDR(cacheline, vaddr, phdr) \ phdr 940 include/asm-generic/vmlinux.lds.h } phdr \ phdr 202 kernel/bpf/stackmap.c Elf32_Phdr *phdr; phdr 210 kernel/bpf/stackmap.c phdr = (Elf32_Phdr *)(page_addr + sizeof(Elf32_Ehdr)); phdr 213 kernel/bpf/stackmap.c if (phdr[i].p_type == PT_NOTE) phdr 215 kernel/bpf/stackmap.c page_addr + phdr[i].p_offset, phdr 216 kernel/bpf/stackmap.c phdr[i].p_filesz); phdr 225 kernel/bpf/stackmap.c Elf64_Phdr *phdr; phdr 233 kernel/bpf/stackmap.c phdr = (Elf64_Phdr *)(page_addr + sizeof(Elf64_Ehdr)); phdr 236 kernel/bpf/stackmap.c if (phdr[i].p_type == PT_NOTE) phdr 238 kernel/bpf/stackmap.c page_addr + phdr[i].p_offset, phdr 239 kernel/bpf/stackmap.c phdr[i].p_filesz); phdr 185 kernel/kexec_elf.c static bool elf_is_phdr_sane(const struct elf_phdr *phdr, size_t buf_len) phdr 188 kernel/kexec_elf.c if (phdr->p_offset + phdr->p_filesz < phdr->p_offset) { phdr 191 kernel/kexec_elf.c } else if (phdr->p_offset + phdr->p_filesz > buf_len) { phdr 194 kernel/kexec_elf.c } else if (phdr->p_paddr + phdr->p_memsz < phdr->p_paddr) { phdr 207 kernel/kexec_elf.c struct elf_phdr *phdr = (struct elf_phdr *) &elf_info->proghdrs[idx]; phdr 215 kernel/kexec_elf.c phdr->p_type = elf32_to_cpu(elf_info->ehdr, buf_phdr->p_type); phdr 216 kernel/kexec_elf.c phdr->p_flags = elf32_to_cpu(elf_info->ehdr, buf_phdr->p_flags); phdr 220 kernel/kexec_elf.c phdr->p_offset = elf64_to_cpu(ehdr, buf_phdr->p_offset); phdr 221 kernel/kexec_elf.c phdr->p_paddr = elf64_to_cpu(ehdr, buf_phdr->p_paddr); phdr 222 kernel/kexec_elf.c phdr->p_vaddr = elf64_to_cpu(ehdr, buf_phdr->p_vaddr); phdr 223 kernel/kexec_elf.c phdr->p_filesz = elf64_to_cpu(ehdr, buf_phdr->p_filesz); phdr 224 kernel/kexec_elf.c phdr->p_memsz = elf64_to_cpu(ehdr, buf_phdr->p_memsz); phdr 225 kernel/kexec_elf.c phdr->p_align = elf64_to_cpu(ehdr, buf_phdr->p_align); phdr 229 kernel/kexec_elf.c phdr->p_offset = elf32_to_cpu(ehdr, buf_phdr->p_offset); phdr 230 kernel/kexec_elf.c phdr->p_paddr = elf32_to_cpu(ehdr, buf_phdr->p_paddr); phdr 231 kernel/kexec_elf.c phdr->p_vaddr = elf32_to_cpu(ehdr, buf_phdr->p_vaddr); phdr 232 kernel/kexec_elf.c phdr->p_filesz = elf32_to_cpu(ehdr, buf_phdr->p_filesz); phdr 233 kernel/kexec_elf.c phdr->p_memsz = elf32_to_cpu(ehdr, buf_phdr->p_memsz); phdr 234 kernel/kexec_elf.c phdr->p_align = elf32_to_cpu(ehdr, buf_phdr->p_align); phdr 242 kernel/kexec_elf.c return elf_is_phdr_sane(phdr, len) ? 0 : -ENOEXEC; phdr 401 kernel/kexec_elf.c const struct elf_phdr *phdr; phdr 403 kernel/kexec_elf.c phdr = &elf_info->proghdrs[i]; phdr 404 kernel/kexec_elf.c if (phdr->p_type != PT_LOAD) phdr 407 kernel/kexec_elf.c size = phdr->p_filesz; phdr 408 kernel/kexec_elf.c if (size > phdr->p_memsz) phdr 409 kernel/kexec_elf.c size = phdr->p_memsz; phdr 411 kernel/kexec_elf.c kbuf->buffer = (void *) elf_info->buffer + phdr->p_offset; phdr 413 kernel/kexec_elf.c kbuf->memsz = phdr->p_memsz; phdr 414 kernel/kexec_elf.c kbuf->buf_align = phdr->p_align; phdr 415 kernel/kexec_elf.c kbuf->buf_min = phdr->p_paddr; phdr 1244 kernel/kexec_file.c Elf64_Phdr *phdr; phdr 1272 kernel/kexec_file.c phdr = (Elf64_Phdr *)(ehdr + 1); phdr 1288 kernel/kexec_file.c phdr->p_type = PT_NOTE; phdr 1290 kernel/kexec_file.c phdr->p_offset = phdr->p_paddr = notes_addr; phdr 1291 kernel/kexec_file.c phdr->p_filesz = phdr->p_memsz = sizeof(note_buf_t); phdr 1293 kernel/kexec_file.c phdr++; phdr 1297 kernel/kexec_file.c phdr->p_type = PT_NOTE; phdr 1298 kernel/kexec_file.c phdr->p_offset = phdr->p_paddr = paddr_vmcoreinfo_note(); phdr 1299 kernel/kexec_file.c phdr->p_filesz = phdr->p_memsz = VMCOREINFO_NOTE_SIZE; phdr 1301 kernel/kexec_file.c phdr++; phdr 1305 kernel/kexec_file.c phdr->p_type = PT_LOAD; phdr 1306 kernel/kexec_file.c phdr->p_flags = PF_R|PF_W|PF_X; phdr 1307 kernel/kexec_file.c phdr->p_vaddr = (Elf64_Addr)_text; phdr 1308 kernel/kexec_file.c phdr->p_filesz = phdr->p_memsz = _end - _text; phdr 1309 kernel/kexec_file.c phdr->p_offset = phdr->p_paddr = __pa_symbol(_text); phdr 1311 kernel/kexec_file.c phdr++; phdr 1319 kernel/kexec_file.c phdr->p_type = PT_LOAD; phdr 1320 kernel/kexec_file.c phdr->p_flags = PF_R|PF_W|PF_X; phdr 1321 kernel/kexec_file.c phdr->p_offset = mstart; phdr 1323 kernel/kexec_file.c phdr->p_paddr = mstart; phdr 1324 kernel/kexec_file.c phdr->p_vaddr = (unsigned long long) __va(mstart); phdr 1325 kernel/kexec_file.c phdr->p_filesz = phdr->p_memsz = mend - mstart + 1; phdr 1326 kernel/kexec_file.c phdr->p_align = 0; phdr 1328 kernel/kexec_file.c phdr++; phdr 1330 kernel/kexec_file.c phdr, phdr->p_vaddr, phdr->p_paddr, phdr->p_filesz, phdr 1331 kernel/kexec_file.c ehdr->e_phnum, phdr->p_offset); phdr 71 net/dsa/tag_mtk.c __be16 *phdr, hdr; phdr 83 net/dsa/tag_mtk.c phdr = (__be16 *)(skb->data - 2); phdr 84 net/dsa/tag_mtk.c hdr = ntohs(*phdr); phdr 34 net/dsa/tag_qca.c u16 *phdr, hdr; phdr 42 net/dsa/tag_qca.c phdr = (u16 *)(skb->data + 2 * ETH_ALEN); phdr 48 net/dsa/tag_qca.c *phdr = htons(hdr); phdr 58 net/dsa/tag_qca.c __be16 *phdr, hdr; phdr 67 net/dsa/tag_qca.c phdr = (__be16 *)(skb->data - 2); phdr 68 net/dsa/tag_qca.c hdr = ntohs(*phdr); phdr 870 net/ipv6/exthdrs.c struct rt0_hdr *phdr, *ihdr; phdr 875 net/ipv6/exthdrs.c phdr = skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); phdr 876 net/ipv6/exthdrs.c memcpy(phdr, ihdr, sizeof(struct rt0_hdr)); phdr 881 net/ipv6/exthdrs.c memcpy(phdr->addr, ihdr->addr + 1, phdr 884 net/ipv6/exthdrs.c phdr->addr[hops - 1] = **addr_p; phdr 887 net/ipv6/exthdrs.c phdr->rt_hdr.nexthdr = *proto; phdr 1084 net/sctp/sm_make_chunk.c struct sctp_paramhdr phdr; phdr 1087 net/sctp/sm_make_chunk.c paylen + sizeof(phdr)); phdr 1092 net/sctp/sm_make_chunk.c sizeof(phdr)); phdr 1094 net/sctp/sm_make_chunk.c phdr.type = htons(chunk->chunk_hdr->type); phdr 1095 net/sctp/sm_make_chunk.c phdr.length = chunk->chunk_hdr->length; phdr 1097 net/sctp/sm_make_chunk.c sctp_addto_param(retval, sizeof(phdr), &phdr); phdr 101 net/tipc/socket.c struct tipc_msg phdr; phdr 149 net/tipc/socket.c return msg_prevnode(&tsk->phdr); phdr 154 net/tipc/socket.c return msg_destnode(&tsk->phdr); phdr 159 net/tipc/socket.c return msg_destport(&tsk->phdr); phdr 164 net/tipc/socket.c return msg_src_droppable(&tsk->phdr) != 0; phdr 169 net/tipc/socket.c msg_set_src_droppable(&tsk->phdr, unreliable ? 1 : 0); phdr 174 net/tipc/socket.c return msg_dest_droppable(&tsk->phdr) != 0; phdr 179 net/tipc/socket.c msg_set_dest_droppable(&tsk->phdr, unreturnable ? 1 : 0); phdr 184 net/tipc/socket.c return msg_importance(&tsk->phdr); phdr 191 net/tipc/socket.c msg_set_importance(&tsk->phdr, (u32)imp); phdr 451 net/tipc/socket.c msg = &tsk->phdr; phdr 778 net/tipc/socket.c struct tipc_msg *hdr = &tsk->phdr; phdr 844 net/tipc/socket.c struct tipc_msg *hdr = &tsk->phdr; phdr 940 net/tipc/socket.c struct tipc_msg *hdr = &tsk->phdr; phdr 1028 net/tipc/socket.c struct tipc_msg *hdr = &tsk->phdr; phdr 1098 net/tipc/socket.c struct tipc_msg *hdr = &tsk->phdr; phdr 1306 net/tipc/socket.c struct tipc_msg *hdr = &tsk->phdr; phdr 1447 net/tipc/socket.c struct tipc_msg *hdr = &tsk->phdr; phdr 1523 net/tipc/socket.c struct tipc_msg *msg = &tsk->phdr; phdr 2046 net/tipc/socket.c msg_set_importance(&tsk->phdr, msg_importance(hdr)); phdr 2794 net/tipc/socket.c msg = &tsk->phdr; phdr 2887 net/tipc/socket.c struct tipc_msg *hdr = &tsk->phdr; phdr 1175 tools/perf/util/symbol-elf.c GElf_Phdr phdr; phdr 1184 tools/perf/util/symbol-elf.c if (gelf_getphdr(elf, i, &phdr) == NULL) phdr 1186 tools/perf/util/symbol-elf.c if (phdr.p_type != PT_LOAD) phdr 1189 tools/perf/util/symbol-elf.c if (!(phdr.p_flags & PF_X)) phdr 1192 tools/perf/util/symbol-elf.c if (!(phdr.p_flags & PF_R)) phdr 1195 tools/perf/util/symbol-elf.c sz = min(phdr.p_memsz, phdr.p_filesz); phdr 1198 tools/perf/util/symbol-elf.c err = mapfn(phdr.p_vaddr, sz, phdr.p_offset, data); phdr 1410 tools/perf/util/symbol-elf.c GElf_Phdr phdr = { phdr 1421 tools/perf/util/symbol-elf.c if (!gelf_update_phdr(kcore->elf, idx, &phdr)) phdr 115 tools/perf/util/symbol-minimal.c Elf32_Phdr *phdr; phdr 135 tools/perf/util/symbol-minimal.c for (i = 0, phdr = buf; i < ehdr.e_phnum; i++, phdr++) { phdr 140 tools/perf/util/symbol-minimal.c phdr->p_type = bswap_32(phdr->p_type); phdr 141 tools/perf/util/symbol-minimal.c phdr->p_offset = bswap_32(phdr->p_offset); phdr 142 tools/perf/util/symbol-minimal.c phdr->p_filesz = bswap_32(phdr->p_filesz); phdr 145 tools/perf/util/symbol-minimal.c if (phdr->p_type != PT_NOTE) phdr 148 tools/perf/util/symbol-minimal.c buf_size = phdr->p_filesz; phdr 149 tools/perf/util/symbol-minimal.c offset = phdr->p_offset; phdr 166 tools/perf/util/symbol-minimal.c Elf64_Phdr *phdr; phdr 186 tools/perf/util/symbol-minimal.c for (i = 0, phdr = buf; i < ehdr.e_phnum; i++, phdr++) { phdr 191 tools/perf/util/symbol-minimal.c phdr->p_type = bswap_32(phdr->p_type); phdr 192 tools/perf/util/symbol-minimal.c phdr->p_offset = bswap_64(phdr->p_offset); phdr 193 tools/perf/util/symbol-minimal.c phdr->p_filesz = bswap_64(phdr->p_filesz); phdr 196 tools/perf/util/symbol-minimal.c if (phdr->p_type != PT_NOTE) phdr 199 tools/perf/util/symbol-minimal.c buf_size = phdr->p_filesz; phdr 200 tools/perf/util/symbol-minimal.c offset = phdr->p_offset; phdr 149 tools/testing/selftests/kvm/lib/elf.c Elf64_Phdr phdr; phdr 150 tools/testing/selftests/kvm/lib/elf.c test_read(fd, &phdr, sizeof(phdr)); phdr 153 tools/testing/selftests/kvm/lib/elf.c if (phdr.p_type != PT_LOAD) phdr 157 tools/testing/selftests/kvm/lib/elf.c TEST_ASSERT(phdr.p_memsz > 0, "Unexpected loadable segment " phdr 160 tools/testing/selftests/kvm/lib/elf.c n1, (uint64_t) phdr.p_memsz); phdr 161 tools/testing/selftests/kvm/lib/elf.c vm_vaddr_t seg_vstart = phdr.p_vaddr; phdr 163 tools/testing/selftests/kvm/lib/elf.c vm_vaddr_t seg_vend = phdr.p_vaddr + phdr.p_memsz - 1; phdr 183 tools/testing/selftests/kvm/lib/elf.c if (phdr.p_filesz) { phdr 184 tools/testing/selftests/kvm/lib/elf.c offset_rv = lseek(fd, phdr.p_offset, SEEK_SET); phdr 185 tools/testing/selftests/kvm/lib/elf.c TEST_ASSERT(offset_rv == phdr.p_offset, phdr 191 tools/testing/selftests/kvm/lib/elf.c (intmax_t) phdr.p_offset); phdr 192 tools/testing/selftests/kvm/lib/elf.c test_read(fd, addr_gva2hva(vm, phdr.p_vaddr), phdr 193 tools/testing/selftests/kvm/lib/elf.c phdr.p_filesz); phdr 199 tools/testing/selftests/powerpc/ptrace/core-pkey.c Elf64_Phdr *phdr; phdr 216 tools/testing/selftests/powerpc/ptrace/core-pkey.c phdr_size = sizeof(*phdr) * ehdr->e_phnum; phdr 223 tools/testing/selftests/powerpc/ptrace/core-pkey.c for (phdr = p + ehdr->e_phoff; phdr 224 tools/testing/selftests/powerpc/ptrace/core-pkey.c (void *) phdr < p + ehdr->e_phoff + phdr_size; phdr 225 tools/testing/selftests/powerpc/ptrace/core-pkey.c phdr += ehdr->e_phentsize) phdr 226 tools/testing/selftests/powerpc/ptrace/core-pkey.c if (phdr->p_type == PT_NOTE) phdr 229 tools/testing/selftests/powerpc/ptrace/core-pkey.c FAIL_IF((void *) phdr >= p + ehdr->e_phoff + phdr_size); phdr 232 tools/testing/selftests/powerpc/ptrace/core-pkey.c for (nhdr = p + phdr->p_offset; phdr 233 tools/testing/selftests/powerpc/ptrace/core-pkey.c (void *) nhdr < p + phdr->p_offset + phdr->p_filesz; phdr 238 tools/testing/selftests/powerpc/ptrace/core-pkey.c FAIL_IF((void *) nhdr >= p + phdr->p_offset + phdr->p_filesz);