Searched refs:ehdr (Results 1 - 25 of 105) sorted by last modified time

12345

/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/
H A Dr535.c2151 const struct elf64_hdr *ehdr = (const struct elf64_hdr *)img; local
2152 const struct elf64_shdr *shdr = (const struct elf64_shdr *)&img[ehdr->e_shoff];
2153 const char *names = &img[shdr[ehdr->e_shstrndx].sh_offset];
2155 for (int i = 0; i < ehdr->e_shnum; i++, shdr++) {
/linux-master/net/wireless/
H A Dnl80211.c18984 struct ethhdr *ehdr = eth_hdr(skb); local
18985 const u8 *addr = ehdr->h_source;
/linux-master/net/mac80211/
H A Dtx.c4691 struct ethhdr *ehdr = (struct ethhdr *)skb->data; local
4709 sdata->control_port_protocol == ehdr->h_proto))
6144 struct ethhdr *ehdr; local
6180 ehdr = skb_push(skb, sizeof(struct ethhdr));
6181 memcpy(ehdr->h_dest, dest, ETH_ALEN);
6187 memcpy(ehdr->h_source, sdata->vif.addr, ETH_ALEN);
6201 memcpy(ehdr->h_source, link_conf->addr, ETH_ALEN);
6205 ehdr->h_proto = proto;
6237 memcpy(ehdr->h_source, sdata->vif.addr, ETH_ALEN);
H A Drx.c2522 struct ethhdr *ehdr; local
2546 ehdr = (struct ethhdr *) rx->skb->data;
2547 if (ehdr->h_proto == rx->sdata->control_port_protocol)
2591 struct ethhdr *ehdr = (struct ethhdr *) rx->skb->data; local
2598 if (unlikely(ehdr->h_proto == rx->sdata->control_port_protocol))
2599 return ieee80211_is_our_addr(rx->sdata, ehdr->h_dest, NULL) ||
2600 ether_addr_equal(ehdr->h_dest, pae_group_addr);
2625 struct ethhdr *ehdr = (void *)skb_mac_header(skb); local
2645 !ether_addr_equal(ehdr->h_dest, sdata->vif.addr)))
2646 ether_addr_copy(ehdr
2665 struct ethhdr *ehdr = (struct ethhdr *) rx->skb->data; local
[all...]
/linux-master/tools/lib/bpf/
H A Dlibbpf.c631 Elf64_Ehdr *ehdr; member in struct:elf_state
1464 Elf64_Ehdr *ehdr; local
1510 obj->efile.ehdr = ehdr = elf64_getehdr(elf);
1511 if (!obj->efile.ehdr) {
1533 if (ehdr->e_type != ET_REL || (ehdr->e_machine && ehdr->e_machine != EM_BPF)) {
1548 if (obj->efile.ehdr->e_ident[EI_DATA] == ELFDATA2LSB)
1551 if (obj->efile.ehdr
12793 struct perf_event_header *ehdr; local
[all...]
/linux-master/include/net/
H A Dcfg80211.h6584 * @ehdr: pointer to a &struct ethhdr that will get the header, instead
6592 int ieee80211_data_to_8023_exthdr(struct sk_buff *skb, struct ethhdr *ehdr,
/linux-master/tools/objtool/include/objtool/
H A Delf.h84 GElf_Ehdr ehdr; member in struct:elf
159 return elf->ehdr.e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8;
/linux-master/tools/objtool/
H A Dorc_dump.c50 memcpy(&dummy_elf.ehdr, elf64_getehdr(elf), sizeof(dummy_elf.ehdr));
/linux-master/tools/objtool/arch/loongarch/
H A Ddecode.c66 if (elf->ehdr.e_machine == EM_LOONGARCH)
69 WARN("unexpected ELF machine type %d", elf->ehdr.e_machine);
/linux-master/drivers/remoteproc/
H A Dqcom_q6v5_mss.c1334 struct elf32_hdr *ehdr; local
1370 ehdr = (struct elf32_hdr *)fw->data;
1371 phdrs = (struct elf32_phdr *)(ehdr + 1);
1373 for (i = 0; i < ehdr->e_phnum; i++) {
1418 for (i = 0; i < ehdr->e_phnum; i++) {
1640 const struct elf32_hdr *ehdr; local
1654 ehdr = (struct elf32_hdr *)fw->data;
1655 phdrs = (struct elf32_phdr *)(ehdr + 1);
1658 for (i = 0; i < ehdr->e_phnum; i++) {
H A Dimx_dsp_rproc.c843 const void *ehdr, *phdr; local
850 ehdr = elf_data;
851 phnum = elf_hdr_get_e_phnum(class, ehdr);
852 phdr = elf_data + elf_hdr_get_e_phoff(class, ehdr);
/linux-master/arch/powerpc/kexec/
H A Dfile_load_64.c764 * @ehdr: ELF core header.
771 static void update_backup_region_phdr(struct kimage *image, Elf64_Ehdr *ehdr) argument
776 phdr = (Elf64_Phdr *)(ehdr + 1);
777 for (i = 0; i < ehdr->e_phnum; i++) {
H A Delf_64.c37 struct elfhdr ehdr; local
46 ret = kexec_build_elf_info(kernel_buf, kernel_len, &ehdr, &elf_info);
58 ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr);
/linux-master/tools/perf/util/
H A Dunwind-libunwind-local.c175 GElf_Ehdr ehdr; local
183 if (gelf_getehdr(elf, &ehdr) == NULL)
186 if (!elf_section_by_name(elf, &ehdr, &shdr, name, NULL))
235 GElf_Ehdr ehdr; local
241 if (gelf_getehdr(elf, &ehdr) == NULL)
244 retval = (ehdr.e_type == ET_EXEC);
H A Dsymbol-elf.c71 GElf_Ehdr *ehdr; local
73 ehdr = gelf_getehdr(elf, &gehdr);
74 if (!ehdr)
77 *dst = ehdr->e_phnum;
230 GElf_Ehdr ehdr; local
242 if (gelf_getehdr(elf, &ehdr) == NULL)
245 found = !!elf_section_by_name(elf, &ehdr, &shdr, sec, NULL);
397 static bool addend_may_be_ifunc(GElf_Ehdr *ehdr, struct rel_info *ri) argument
399 return ehdr->e_machine == EM_X86_64 && ri->is_rela &&
403 static bool get_ifunc_name(Elf *elf, struct dso *dso, GElf_Ehdr *ehdr, argument
434 get_plt_sizes(struct dso *dso, GElf_Ehdr *ehdr, GElf_Shdr *shdr_plt, u64 *plt_header_size, u64 *plt_entry_size) argument
539 get_rela_dyn_info(Elf *elf, GElf_Ehdr *ehdr, struct rela_dyn_info *di, Elf_Scn *scn) argument
633 dso__synthesize_plt_got_symbols(struct dso *dso, Elf *elf, GElf_Ehdr *ehdr, char *buf, size_t buf_sz) argument
682 GElf_Ehdr ehdr; local
860 GElf_Ehdr ehdr; local
1125 GElf_Ehdr ehdr; local
1218 elf__needs_adjust_symbols(GElf_Ehdr ehdr) argument
1232 GElf_Ehdr ehdr; local
1344 max_text_section(Elf *elf, GElf_Ehdr *ehdr) argument
1558 GElf_Ehdr ehdr; local
1916 GElf_Ehdr ehdr; local
1991 GElf_Ehdr ehdr; member in struct:kcore
1996 GElf_Ehdr *ehdr; local
2062 GElf_Ehdr *ehdr = &to->ehdr; local
2732 GElf_Ehdr ehdr; local
2861 GElf_Ehdr ehdr; local
[all...]
H A Dprobe-event.c295 GElf_Ehdr ehdr; local
310 if (gelf_getehdr(elf, &ehdr) == NULL)
313 sec = elf_section_by_name(elf, &ehdr, &shdr,
331 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32)
620 GElf_Ehdr ehdr; local
637 if (gelf_getehdr(elf, &ehdr) == NULL)
640 if (!elf_section_by_name(elf, &ehdr, &shdr, ".text", NULL))
/linux-master/lib/
H A Dbuildid.c72 Elf32_Ehdr *ehdr = (Elf32_Ehdr *)page_addr; local
77 if (ehdr->e_phnum >
83 for (i = 0; i < ehdr->e_phnum; ++i) {
97 Elf64_Ehdr *ehdr = (Elf64_Ehdr *)page_addr; local
102 if (ehdr->e_phnum >
108 for (i = 0; i < ehdr->e_phnum; ++i) {
129 Elf32_Ehdr *ehdr; local
144 ehdr = (Elf32_Ehdr *)page_addr;
147 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0)
151 if (ehdr
[all...]
/linux-master/kernel/
H A Dkexec_file.c838 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff;
842 for (i = 0; i < pi->ehdr->e_shnum; i++) {
903 sechdrs_size = array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum);
907 memcpy(sechdrs, (void *)pi->ehdr + pi->ehdr->e_shoff, sechdrs_size);
912 kbuf->image->start = pi->ehdr->e_entry;
914 for (i = 0; i < pi->ehdr->e_shnum; i++) {
942 pi->ehdr->e_entry >= sechdrs[i].sh_addr &&
943 pi->ehdr
1076 const Elf_Ehdr *ehdr; local
[all...]
H A Dcrash_core.c162 Elf64_Ehdr *ehdr; local
190 ehdr = (Elf64_Ehdr *)buf;
191 phdr = (Elf64_Phdr *)(ehdr + 1);
192 memcpy(ehdr->e_ident, ELFMAG, SELFMAG);
193 ehdr->e_ident[EI_CLASS] = ELFCLASS64;
194 ehdr->e_ident[EI_DATA] = ELFDATA2LSB;
195 ehdr->e_ident[EI_VERSION] = EV_CURRENT;
196 ehdr->e_ident[EI_OSABI] = ELF_OSABI;
197 memset(ehdr->e_ident + EI_PAD, 0, EI_NIDENT - EI_PAD);
198 ehdr
[all...]
/linux-master/include/linux/
H A Dkexec.h113 const Elf_Ehdr *ehdr; member in struct:purgatory_info
279 const struct elfhdr *ehdr; member in struct:kexec_elf_info
283 int kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr,
286 int kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,
/linux-master/fs/proc/
H A Dkcore.c339 struct elfhdr ehdr = { local
361 if (copy_to_iter((char *)&ehdr + *fpos, tsz, iter) != tsz) {
/linux-master/drivers/net/ethernet/sun/
H A Dniu.c6558 static u64 niu_compute_tx_flags(struct sk_buff *skb, struct ethhdr *ehdr, argument
6566 eth_proto = be16_to_cpu(ehdr->h_proto);
6569 struct vlan_ethhdr *vp = (struct vlan_ethhdr *) ehdr;
6632 struct ethhdr *ehdr; local
6665 ehdr = (struct ethhdr *) skb->data;
6669 tp->flags = cpu_to_le64(niu_compute_tx_flags(skb, ehdr, align, len));
/linux-master/arch/x86/kernel/
H A Dmachine_kexec_64.c397 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff;
398 strtab = (char *)pi->ehdr + sechdrs[symtabsec->sh_link].sh_offset;
399 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset;
401 rel = (void *)pi->ehdr + relsec->sh_offset;
431 sym = (void *)pi->ehdr + symtabsec->sh_offset;
455 else if (sym->st_shndx >= pi->ehdr->e_shnum) {
/linux-master/arch/x86/boot/compressed/
H A Dmisc.c297 Elf64_Ehdr ehdr; local
300 Elf32_Ehdr ehdr;
306 memcpy(&ehdr, output, sizeof(ehdr));
307 if (ehdr.e_ident[EI_MAG0] != ELFMAG0 ||
308 ehdr.e_ident[EI_MAG1] != ELFMAG1 ||
309 ehdr.e_ident[EI_MAG2] != ELFMAG2 ||
310 ehdr.e_ident[EI_MAG3] != ELFMAG3)
315 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum);
319 memcpy(phdrs, output + ehdr
[all...]
/linux-master/arch/s390/kernel/
H A Dmachine_kexec_file.c321 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff;
322 strtab = (char *)pi->ehdr + sechdrs[symtab->sh_link].sh_offset;
323 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset;
325 relas = (void *)pi->ehdr + relsec->sh_offset;
333 sym = (void *)pi->ehdr + symtab->sh_offset;
351 if (sym->st_shndx >= pi->ehdr->e_shnum &&

Completed in 476 milliseconds

12345