/linux-4.4.14/arch/mips/vdso/ |
H A D | genvdso.h | 15 ELF(Shdr) *shdr; patch_vdso() 25 shdr = shdrs + (sh_entsize * swap_uint16(ehdr->e_shstrndx)); patch_vdso() 26 shstrtab = vdso + FUNC(swap_uint)(shdr->sh_offset); patch_vdso() 29 shdr = shdrs + (i * sh_entsize); patch_vdso() 30 name = shstrtab + swap_uint32(shdr->sh_name); patch_vdso() 37 switch (swap_uint32(shdr->sh_type)) { patch_vdso() 45 dyn = vdso + FUNC(swap_uint)(shdr->sh_offset); patch_vdso() 59 shdr->sh_type = swap_uint32(SHT_MIPS_ABIFLAGS); patch_vdso() 60 shdr->sh_entsize = shdr->sh_size; patch_vdso() 117 ELF(Shdr) *shdr; get_symbols() 129 shdr = shdrs + (i * sh_entsize); get_symbols() 131 if (swap_uint32(shdr->sh_type) == SHT_SYMTAB) get_symbols() 151 symtab = vdso + FUNC(swap_uint)(shdr->sh_offset); get_symbols() 152 st_entsize = FUNC(swap_uint)(shdr->sh_entsize); get_symbols() 153 st_count = FUNC(swap_uint)(shdr->sh_size) / st_entsize; get_symbols() 156 shdr = shdrs + (swap_uint32(shdr->sh_link) * sh_entsize); get_symbols() 157 strtab = vdso + FUNC(swap_uint)(shdr->sh_offset); get_symbols()
|
/linux-4.4.14/scripts/ |
H A D | sortextable.h | 95 Elf_Shdr *shdr; do_func() local 117 shdr = (Elf_Shdr *)((char *)ehdr + _r(&ehdr->e_shoff)); do_func() 121 num_sections = _r(&shdr[0].sh_size); do_func() 125 secindex_strings = r(&shdr[0].sh_link); do_func() 127 shstrtab_sec = shdr + secindex_strings; do_func() 130 idx = r(&shdr[i].sh_name); do_func() 132 extab_sec = shdr + i; do_func() 135 if ((r(&shdr[i].sh_type) == SHT_REL || do_func() 136 r(&shdr[i].sh_type) == SHT_RELA) && do_func() 137 r(&shdr[i].sh_info) == extab_index) { do_func() 138 relocs = (void *)ehdr + _r(&shdr[i].sh_offset); do_func() 139 relocs_size = _r(&shdr[i].sh_size); do_func() 142 symtab_sec = shdr + i; do_func() 144 strtab_sec = shdr + i; do_func() 145 if (r(&shdr[i].sh_type) == SHT_SYMTAB_SHNDX) do_func() 147 (const char *)ehdr + _r(&shdr[i].sh_offset)); do_func() 197 sort_needed_sec = &shdr[get_secindex(r2(&sym->st_shndx), do_func()
|
H A D | recordmcount.h | 363 Elf_Shdr const *const shdr = &shdr0[w(relhdr->sh_info)]; nop_mcount() local 380 ret = make_nop((void *)ehdr, _w(shdr->sh_offset) + _w(relp->r_offset)); nop_mcount()
|
/linux-4.4.14/arch/powerpc/boot/ |
H A D | hack-coff.c | 39 struct external_scnhdr shdr; main() local 61 if (read(fd, &shdr, sizeof(shdr)) != sizeof(shdr)) main() 63 if (strcmp(shdr.s_name, ".text") == 0) { main() 66 } else if (strcmp(shdr.s_name, ".data") == 0) { main() 68 } else if (strcmp(shdr.s_name, ".bss") == 0) { main()
|
/linux-4.4.14/samples/bpf/ |
H A D | bpf_load.c | 171 GElf_Shdr *shdr, Elf_Data **data) get_sec() 179 if (gelf_getshdr(scn, shdr) != shdr) get_sec() 182 *shname = elf_strptr(elf, ehdr->e_shstrndx, shdr->sh_name); get_sec() 183 if (!*shname || !shdr->sh_size) get_sec() 194 GElf_Shdr *shdr, struct bpf_insn *insn) parse_relo_and_apply() 198 nrels = shdr->sh_size / shdr->sh_entsize; parse_relo_and_apply() 228 GElf_Shdr shdr, shdr_prog; load_bpf_file() local 253 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) load_bpf_file() 259 shdr.sh_link, (int) shdr.sh_flags); load_bpf_file() 276 } else if (shdr.sh_type == SHT_SYMTAB) { load_bpf_file() 284 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) load_bpf_file() 286 if (shdr.sh_type == SHT_REL) { load_bpf_file() 289 if (get_sec(elf, shdr.sh_info, &ehdr, &shname_prog, load_bpf_file() 295 processed_sec[shdr.sh_info] = true; load_bpf_file() 298 if (parse_relo_and_apply(data, symbols, &shdr, insns)) load_bpf_file() 314 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) load_bpf_file() 170 get_sec(Elf *elf, int i, GElf_Ehdr *ehdr, char **shname, GElf_Shdr *shdr, Elf_Data **data) get_sec() argument 193 parse_relo_and_apply(Elf_Data *data, Elf_Data *symbols, GElf_Shdr *shdr, struct bpf_insn *insn) parse_relo_and_apply() argument
|
/linux-4.4.14/arch/x86/tools/ |
H A D | relocs.c | 29 Elf_Shdr shdr; member in struct:section 244 name = sec_strtab + secs[shndx].shdr.sh_name; sec_name() 278 if (sec->shdr.sh_type != SHT_SYMTAB) sym_lookup() 281 nsyms = sec->shdr.sh_size/sizeof(Elf_Sym); sym_lookup() 392 Elf_Shdr shdr; read_shdrs() local 405 if (fread(&shdr, sizeof shdr, 1, fp) != 1) read_shdrs() 408 sec->shdr.sh_name = elf_word_to_cpu(shdr.sh_name); read_shdrs() 409 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); read_shdrs() 410 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); read_shdrs() 411 sec->shdr.sh_addr = elf_addr_to_cpu(shdr.sh_addr); read_shdrs() 412 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); read_shdrs() 413 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); read_shdrs() 414 sec->shdr.sh_link = elf_word_to_cpu(shdr.sh_link); read_shdrs() 415 sec->shdr.sh_info = elf_word_to_cpu(shdr.sh_info); read_shdrs() 416 sec->shdr.sh_addralign = elf_xword_to_cpu(shdr.sh_addralign); read_shdrs() 417 sec->shdr.sh_entsize = elf_xword_to_cpu(shdr.sh_entsize); read_shdrs() 418 if (sec->shdr.sh_link < ehdr.e_shnum) read_shdrs() 419 sec->link = &secs[sec->shdr.sh_link]; read_shdrs() 429 if (sec->shdr.sh_type != SHT_STRTAB) { read_strtabs() 432 sec->strtab = malloc(sec->shdr.sh_size); read_strtabs() 435 sec->shdr.sh_size); read_strtabs() 437 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { read_strtabs() 439 sec->shdr.sh_offset, strerror(errno)); read_strtabs() 441 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) read_strtabs() 442 != sec->shdr.sh_size) { read_strtabs() 454 if (sec->shdr.sh_type != SHT_SYMTAB) { read_symtabs() 457 sec->symtab = malloc(sec->shdr.sh_size); read_symtabs() 460 sec->shdr.sh_size); read_symtabs() 462 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { read_symtabs() 464 sec->shdr.sh_offset, strerror(errno)); read_symtabs() 466 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) read_symtabs() 467 != sec->shdr.sh_size) { read_symtabs() 471 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Sym); j++) { read_symtabs() 487 if (sec->shdr.sh_type != SHT_REL_TYPE) { read_relocs() 490 sec->reltab = malloc(sec->shdr.sh_size); read_relocs() 493 sec->shdr.sh_size); read_relocs() 495 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { read_relocs() 497 sec->shdr.sh_offset, strerror(errno)); read_relocs() 499 if (fread(sec->reltab, 1, sec->shdr.sh_size, fp) read_relocs() 500 != sec->shdr.sh_size) { read_relocs() 504 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) { read_relocs() 533 if (sec->shdr.sh_type != SHT_SYMTAB) { print_absolute_symbols() 537 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Sym); j++) { print_absolute_symbols() 572 if (sec->shdr.sh_type != SHT_REL_TYPE) { print_absolute_relocs() 576 sec_applies = &secs[sec->shdr.sh_info]; print_absolute_relocs() 577 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) { print_absolute_relocs() 582 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) { print_absolute_relocs() 657 if (sec->shdr.sh_type != SHT_REL_TYPE) { walk_relocs() 661 sec_applies = &secs[sec->shdr.sh_info]; walk_relocs() 662 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) { walk_relocs() 667 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) { walk_relocs() 711 if (secs[i].shdr.sh_addr != 0) /* non SMP kernel */ percpu_init() 763 if (sec->shdr.sh_info == per_cpu_shndx) do_reloc64() 1056 sec_name(sec->shdr.sh_info), do_reloc_info()
|
/linux-4.4.14/drivers/remoteproc/ |
H A D | remoteproc_elf_loader.c | 214 struct elf32_shdr *shdr; find_table() local 221 shdr = (struct elf32_shdr *)(elf_data + ehdr->e_shoff); find_table() 222 name_table = elf_data + shdr[ehdr->e_shstrndx].sh_offset; find_table() 224 for (i = 0; i < ehdr->e_shnum; i++, shdr++) { find_table() 225 u32 size = shdr->sh_size; find_table() 226 u32 offset = shdr->sh_offset; find_table() 228 if (strcmp(name_table + shdr->sh_name, ".resource_table")) find_table() 264 return shdr; find_table() 290 struct elf32_shdr *shdr; rproc_elf_find_rsc_table() local 297 shdr = find_table(dev, ehdr, fw->size); rproc_elf_find_rsc_table() 298 if (!shdr) rproc_elf_find_rsc_table() 301 table = (struct resource_table *)(elf_data + shdr->sh_offset); rproc_elf_find_rsc_table() 302 *tablesz = shdr->sh_size; rproc_elf_find_rsc_table() 322 struct elf32_shdr *shdr; rproc_elf_find_loaded_rsc_table() local 324 shdr = find_table(&rproc->dev, ehdr, fw->size); rproc_elf_find_loaded_rsc_table() 325 if (!shdr) rproc_elf_find_loaded_rsc_table() 328 return rproc_da_to_va(rproc, shdr->sh_addr, shdr->sh_size); rproc_elf_find_loaded_rsc_table()
|
/linux-4.4.14/arch/powerpc/oprofile/cell/ |
H A D | vma_map.c | 118 Elf32_Shdr shdr, shdr_str; create_vma_map() local 175 if (copy_from_user(&shdr, shdr_start + i, sizeof(shdr))) create_vma_map() 178 if (shdr.sh_type != SHT_SYMTAB) create_vma_map() 180 if (shdr.sh_entsize != sizeof (sym)) create_vma_map() 184 shdr_start + shdr.sh_link, create_vma_map() 185 sizeof(shdr))) create_vma_map() 191 for (j = 0; j < shdr.sh_size / sizeof (sym); j++) { create_vma_map() 193 shdr.sh_offset + create_vma_map()
|
/linux-4.4.14/tools/perf/util/ |
H A D | symbol-elf.c | 122 static inline const char *elf_sec__name(const GElf_Shdr *shdr, elf_sec__name() argument 125 return secstrs->d_buf + shdr->sh_name; elf_sec__name() 128 static inline int elf_sec__is_text(const GElf_Shdr *shdr, elf_sec__is_text() argument 131 return strstr(elf_sec__name(shdr, secstrs), "text") != NULL; elf_sec__is_text() 134 static inline bool elf_sec__is_data(const GElf_Shdr *shdr, elf_sec__is_data() argument 137 return strstr(elf_sec__name(shdr, secstrs), "data") != NULL; elf_sec__is_data() 140 static bool elf_sec__is_a(GElf_Shdr *shdr, Elf_Data *secstrs, elf_sec__is_a() argument 145 return elf_sec__is_text(shdr, secstrs); elf_sec__is_a() 147 return elf_sec__is_data(shdr, secstrs); elf_sec__is_a() 156 GElf_Shdr shdr; elf_addr_to_index() local 160 gelf_getshdr(sec, &shdr); elf_addr_to_index() 162 if ((addr >= shdr.sh_addr) && elf_addr_to_index() 163 (addr < (shdr.sh_addr + shdr.sh_size))) elf_addr_to_index() 353 GElf_Shdr shdr; elf_read_build_id() local 378 sec = elf_section_by_name(elf, &ehdr, &shdr, elf_read_build_id() 383 sec = elf_section_by_name(elf, &ehdr, &shdr, elf_read_build_id() 388 sec = elf_section_by_name(elf, &ehdr, &shdr, elf_read_build_id() 506 GElf_Shdr shdr; filename__read_debuglink() local 530 sec = elf_section_by_name(elf, &ehdr, &shdr, filename__read_debuglink() 712 GElf_Shdr shdr; symsrc__init() local 716 elf_section_by_name(elf, &ehdr, &shdr, symsrc__init() 794 GElf_Shdr shdr; dso__load_sym() local 832 shdr = syms_ss->symshdr; dso__load_sym() 841 sec = elf_getscn(elf, shdr.sh_link); dso__load_sym() 857 nr_syms = shdr.sh_size / shdr.sh_entsize; dso__load_sym() 942 gelf_getshdr(sec, &shdr); elf_symtab__for_each_symbol() 944 if (is_label && !elf_sec__is_a(&shdr, secstrs, map->type)) elf_symtab__for_each_symbol() 947 section_name = elf_sec__name(&shdr, secstrs); elf_symtab__for_each_symbol() 963 sym.st_value -= shdr.sh_addr - shdr.sh_offset; elf_symtab__for_each_symbol() 978 map->start = shdr.sh_addr + elf_symtab__for_each_symbol() 980 map->end = map->start + shdr.sh_size; elf_symtab__for_each_symbol() 981 map->pgoff = shdr.sh_offset; elf_symtab__for_each_symbol() 1000 map->pgoff = shdr.sh_offset; elf_symtab__for_each_symbol() 1019 start += map->start + shdr.sh_offset; elf_symtab__for_each_symbol() 1034 curr_map->start = shdr.sh_addr + elf_symtab__for_each_symbol() 1037 shdr.sh_size; elf_symtab__for_each_symbol() 1038 curr_map->pgoff = shdr.sh_offset; elf_symtab__for_each_symbol() 1057 (u64)sym.st_value, (u64)shdr.sh_addr, elf_symtab__for_each_symbol() 1058 (u64)shdr.sh_offset); elf_symtab__for_each_symbol() 1059 sym.st_value -= shdr.sh_addr - shdr.sh_offset; elf_symtab__for_each_symbol()
|
H A D | unwind-libunwind.c | 167 GElf_Shdr shdr; elf_section_offset() local 178 if (!elf_section_by_name(elf, &ehdr, &shdr, name, NULL)) elf_section_offset() 181 offset = shdr.sh_offset; elf_section_offset()
|
H A D | probe-finder.c | 1029 GElf_Shdr shdr; debuginfo__find_probes() local 1039 if (elf_section_by_name(elf, &ehdr, &shdr, ".eh_frame", NULL) && debuginfo__find_probes() 1040 shdr.sh_type == SHT_PROGBITS) { debuginfo__find_probes() 1427 GElf_Shdr mem, *shdr; debuginfo__get_text_offset() local 1446 shdr = gelf_getshdr(scn, &mem); debuginfo__get_text_offset() 1447 if (!shdr) debuginfo__get_text_offset() 1449 *offs = shdr->sh_addr; debuginfo__get_text_offset()
|
H A D | probe-event.c | 481 GElf_Shdr shdr; get_text_start_address() local 495 if (!elf_section_by_name(elf, &ehdr, &shdr, ".text", NULL)) get_text_start_address() 498 *address = shdr.sh_addr - shdr.sh_offset; get_text_start_address()
|
/linux-4.4.14/tools/lib/bpf/ |
H A D | libbpf.c | 192 GElf_Shdr shdr; member in struct:bpf_object::__anon15649::__anon15650 582 obj->efile.reloc[n].shdr = sh; bpf_object__elf_collect() 609 size_t nr_maps, GElf_Shdr *shdr, bpf_program__collect_reloc() 616 nrels = shdr->sh_size / shdr->sh_entsize; bpf_program__collect_reloc() 783 GElf_Shdr *shdr = &obj->efile.reloc[i].shdr; bpf_object__collect_reloc() local 785 int idx = shdr->sh_info; bpf_object__collect_reloc() 790 if (shdr->sh_type != SHT_REL) { bpf_object__collect_reloc() 803 shdr, data, bpf_object__collect_reloc() 608 bpf_program__collect_reloc(struct bpf_program *prog, size_t nr_maps, GElf_Shdr *shdr, Elf_Data *data, Elf_Data *symbols) bpf_program__collect_reloc() argument
|
/linux-4.4.14/drivers/cpufreq/ |
H A D | pmac64-cpufreq.c | 384 const struct smu_sdbp_header *shdr; g5_neo2_cpufreq_init() local 387 shdr = smu_get_sdb_partition(SMU_SDB_FVT_ID, NULL); g5_neo2_cpufreq_init() 388 if (!shdr) g5_neo2_cpufreq_init() 390 g5_fvt_table = (struct smu_sdbp_fvt *)&shdr[1]; g5_neo2_cpufreq_init() 391 ssize = (shdr->len * sizeof(u32)) - sizeof(*shdr); g5_neo2_cpufreq_init()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | base.c | 51 u8 idx = 0, sver, shdr; nvkm_clk_adjust() local 58 shdr = hdr; nvkm_clk_adjust() 59 subd = nvbios_boostSp(bios, idx++, data, &sver, &shdr, nvkm_clk_adjust() 342 u8 sver = ver, shdr = hdr; nvkm_pstate_new() local 344 &sver, &shdr, cnt, len, &perfS); nvkm_pstate_new()
|
/linux-4.4.14/drivers/scsi/lpfc/ |
H A D | lpfc_sli.c | 4938 union lpfc_sli4_cfg_shdr *shdr; lpfc_sli4_retrieve_pport_name() local 4971 shdr = &mbx_cntl_attr->cfg_shdr; lpfc_sli4_retrieve_pport_name() 4972 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_sli4_retrieve_pport_name() 4973 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_sli4_retrieve_pport_name() 5003 shdr = (union lpfc_sli4_cfg_shdr *)&get_port_name->header.cfg_shdr; lpfc_sli4_retrieve_pport_name() 5004 bf_set(lpfc_mbox_hdr_version, &shdr->request, LPFC_OPCODE_VERSION_1); lpfc_sli4_retrieve_pport_name() 5008 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_sli4_retrieve_pport_name() 5009 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_sli4_retrieve_pport_name() 5962 union lpfc_sli4_cfg_shdr *shdr; lpfc_sli4_get_allocated_extnts() local 6058 shdr = &rsrc_ext->header.cfg_shdr; 6063 shdr = &n_rsrc->cfg_shdr; 6067 if (bf_get(lpfc_mbox_hdr_status, &shdr->response)) { 6072 bf_get(lpfc_mbox_hdr_status, &shdr->response), 6073 bf_get(lpfc_mbox_hdr_add_status, &shdr->response)); 12874 union lpfc_sli4_cfg_shdr *shdr; lpfc_modify_fcp_eq_delay() local 12916 shdr = (union lpfc_sli4_cfg_shdr *) &eq_delay->header.cfg_shdr; lpfc_modify_fcp_eq_delay() 12917 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_modify_fcp_eq_delay() 12918 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_modify_fcp_eq_delay() 12958 union lpfc_sli4_cfg_shdr *shdr; lpfc_eq_create() local 13026 shdr = (union lpfc_sli4_cfg_shdr *) &eq_create->header.cfg_shdr; lpfc_eq_create() 13027 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_eq_create() 13028 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_eq_create() 13078 union lpfc_sli4_cfg_shdr *shdr; lpfc_cq_create() local 13096 shdr = (union lpfc_sli4_cfg_shdr *) &cq_create->header.cfg_shdr; lpfc_cq_create() 13101 bf_set(lpfc_mbox_hdr_version, &shdr->request, lpfc_cq_create() 13145 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_cq_create() 13146 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_cq_create() 13265 union lpfc_sli4_cfg_shdr *shdr; lpfc_mq_create() local 13284 shdr = (union lpfc_sli4_cfg_shdr *) &mq_create_ext->header.cfg_shdr; lpfc_mq_create() 13298 bf_set(lpfc_mbox_hdr_version, &shdr->request, lpfc_mq_create() 13355 shdr = (union lpfc_sli4_cfg_shdr *) &mq_create->header.cfg_shdr; lpfc_mq_create() 13361 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_mq_create() 13362 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_mq_create() 13419 union lpfc_sli4_cfg_shdr *shdr; lpfc_wq_create() local 13441 shdr = (union lpfc_sli4_cfg_shdr *) &wq_create->header.cfg_shdr; lpfc_wq_create() 13448 bf_set(lpfc_mbox_hdr_version, &shdr->request, lpfc_wq_create() 13468 bf_set(lpfc_mbox_hdr_version, &shdr->request, lpfc_wq_create() 13524 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_wq_create() 13525 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_wq_create() 13655 union lpfc_sli4_cfg_shdr *shdr; lpfc_rq_create() local 13678 shdr = (union lpfc_sli4_cfg_shdr *) &rq_create->header.cfg_shdr; lpfc_rq_create() 13679 bf_set(lpfc_mbox_hdr_version, &shdr->request, lpfc_rq_create() 13743 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_rq_create() 13744 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_rq_create() 13813 bf_set(lpfc_mbox_hdr_version, &shdr->request, lpfc_rq_create() 13872 shdr = (union lpfc_sli4_cfg_shdr *) &rq_create->header.cfg_shdr; lpfc_rq_create() 13873 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_rq_create() 13874 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_rq_create() 13917 union lpfc_sli4_cfg_shdr *shdr; lpfc_eq_destroy() local 13937 shdr = (union lpfc_sli4_cfg_shdr *) lpfc_eq_destroy() 13939 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_eq_destroy() 13940 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_eq_destroy() 13973 union lpfc_sli4_cfg_shdr *shdr; lpfc_cq_destroy() local 13992 shdr = (union lpfc_sli4_cfg_shdr *) lpfc_cq_destroy() 13994 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_cq_destroy() 13995 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_cq_destroy() 14027 union lpfc_sli4_cfg_shdr *shdr; lpfc_mq_destroy() local 14046 shdr = (union lpfc_sli4_cfg_shdr *) lpfc_mq_destroy() 14048 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_mq_destroy() 14049 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_mq_destroy() 14081 union lpfc_sli4_cfg_shdr *shdr; lpfc_wq_destroy() local 14099 shdr = (union lpfc_sli4_cfg_shdr *) lpfc_wq_destroy() 14101 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_wq_destroy() 14102 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_wq_destroy() 14135 union lpfc_sli4_cfg_shdr *shdr; lpfc_rq_destroy() local 14154 shdr = (union lpfc_sli4_cfg_shdr *) lpfc_rq_destroy() 14156 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_rq_destroy() 14157 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_rq_destroy() 14170 shdr = (union lpfc_sli4_cfg_shdr *) lpfc_rq_destroy() 14172 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_rq_destroy() 14173 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_rq_destroy() 14220 union lpfc_sli4_cfg_shdr *shdr; lpfc_sli4_post_sgl() local 14258 shdr = (union lpfc_sli4_cfg_shdr *) &post_sgl_pages->header.cfg_shdr; lpfc_sli4_post_sgl() 14259 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_sli4_post_sgl() 14260 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_sli4_post_sgl() 14390 union lpfc_sli4_cfg_shdr *shdr; lpfc_sli4_post_els_sgl_list() local 14451 shdr = (union lpfc_sli4_cfg_shdr *) &sgl->cfg_shdr; 14452 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); 14453 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); 14493 union lpfc_sli4_cfg_shdr *shdr; lpfc_sli4_post_scsi_sgl_block() local 14564 shdr = (union lpfc_sli4_cfg_shdr *) &sgl->cfg_shdr; 14565 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); 14566 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); 15610 union lpfc_sli4_cfg_shdr *shdr; lpfc_sli4_post_rpi_hdr() local 15645 shdr = (union lpfc_sli4_cfg_shdr *) &hdr_tmpl->header.cfg_shdr; lpfc_sli4_post_rpi_hdr() 15646 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_sli4_post_rpi_hdr() 15647 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_sli4_post_rpi_hdr() 15882 union lpfc_sli4_cfg_shdr *shdr; lpfc_mbx_cmpl_add_fcf_record() local 15887 shdr = (union lpfc_sli4_cfg_shdr *) virt_addr; lpfc_mbx_cmpl_add_fcf_record() 15888 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_mbx_cmpl_add_fcf_record() 15889 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_mbx_cmpl_add_fcf_record() 16777 union lpfc_sli4_cfg_shdr *shdr; lpfc_wr_object() local 16823 shdr = (union lpfc_sli4_cfg_shdr *) &wr_object->header.cfg_shdr; 16824 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); 16825 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
|
H A D | lpfc_init.c | 6844 union lpfc_sli4_cfg_shdr *shdr; lpfc_sli4_read_config() local 6964 shdr = (union lpfc_sli4_cfg_shdr *) lpfc_sli4_read_config() 6966 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_sli4_read_config() 6967 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_sli4_read_config() 7483 union lpfc_sli4_cfg_shdr *shdr; lpfc_sli4_queue_setup() local 7503 shdr = (union lpfc_sli4_cfg_shdr *) lpfc_sli4_queue_setup() 7505 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_sli4_queue_setup() 7506 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_sli4_queue_setup() 8048 union lpfc_sli4_cfg_shdr *shdr; lpfc_pci_function_reset() local 8070 shdr = (union lpfc_sli4_cfg_shdr *) lpfc_pci_function_reset() 8072 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_pci_function_reset() 8074 &shdr->response); lpfc_pci_function_reset()
|
H A D | lpfc_hbadisc.c | 1779 union lpfc_sli4_cfg_shdr *shdr; lpfc_sli4_fcf_rec_mbox_parse() local 1794 shdr = (union lpfc_sli4_cfg_shdr *)virt_addr; lpfc_sli4_fcf_rec_mbox_parse() 1795 lpfc_sli_pcimem_bcopy(shdr, shdr, lpfc_sli4_fcf_rec_mbox_parse() 1797 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_sli4_fcf_rec_mbox_parse() 1799 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_sli4_fcf_rec_mbox_parse()
|
H A D | lpfc_bsg.c | 2290 union lpfc_sli4_cfg_shdr *shdr; lpfc_sli4_bsg_link_diag_test() local 2376 shdr = (union lpfc_sli4_cfg_shdr *) lpfc_sli4_bsg_link_diag_test() 2378 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_sli4_bsg_link_diag_test() 2379 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_sli4_bsg_link_diag_test()
|
H A D | lpfc_els.c | 5003 union lpfc_sli4_cfg_shdr *shdr; lpfc_els_lcb_rsp() local 5015 shdr = (union lpfc_sli4_cfg_shdr *) lpfc_els_lcb_rsp() 5017 shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response); lpfc_els_lcb_rsp() 5018 shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response); lpfc_els_lcb_rsp()
|
/linux-4.4.14/kernel/ |
H A D | module.c | 375 Elf_Shdr *shdr = &info->sechdrs[i]; find_sec() local 377 if ((shdr->sh_flags & SHF_ALLOC) find_sec() 378 && strcmp(info->secstrings + shdr->sh_name, name) == 0) find_sec() 2775 Elf_Shdr *shdr = &info->sechdrs[i]; rewrite_section_headers() local 2776 if (shdr->sh_type != SHT_NOBITS rewrite_section_headers() 2777 && info->len < shdr->sh_offset + shdr->sh_size) { rewrite_section_headers() 2784 shdr->sh_addr = (size_t)info->hdr + shdr->sh_offset; rewrite_section_headers() 2788 if (strstarts(info->secstrings+shdr->sh_name, ".exit")) rewrite_section_headers() 2789 shdr->sh_flags &= ~(unsigned long)SHF_ALLOC; rewrite_section_headers() 3021 Elf_Shdr *shdr = &info->sechdrs[i]; move_module() local 3023 if (!(shdr->sh_flags & SHF_ALLOC)) move_module() 3026 if (shdr->sh_entsize & INIT_OFFSET_MASK) move_module() 3028 + (shdr->sh_entsize & ~INIT_OFFSET_MASK); move_module() 3030 dest = mod->module_core + shdr->sh_entsize; move_module() 3032 if (shdr->sh_type != SHT_NOBITS) move_module() 3033 memcpy(dest, (void *)shdr->sh_addr, shdr->sh_size); move_module() 3035 shdr->sh_addr = (unsigned long)dest; move_module() 3037 (long)shdr->sh_addr, info->secstrings + shdr->sh_name); move_module()
|
/linux-4.4.14/fs/xfs/libxfs/ |
H A D | xfs_dir2_node.c | 840 struct xfs_dir3_icleaf_hdr *shdr, xfs_dir3_leafn_moveents() 874 if (shdr->stale) { xfs_dir3_leafn_moveents() 895 if (start_s + count < shdr->count) { xfs_dir3_leafn_moveents() 904 shdr->count -= count; xfs_dir3_leafn_moveents() 905 shdr->stale -= stale; xfs_dir3_leafn_moveents() 837 xfs_dir3_leafn_moveents( xfs_da_args_t *args, struct xfs_buf *bp_s, struct xfs_dir3_icleaf_hdr *shdr, struct xfs_dir2_leaf_entry *sents, int start_s, struct xfs_buf *bp_d, struct xfs_dir3_icleaf_hdr *dhdr, struct xfs_dir2_leaf_entry *dents, int start_d, int count) xfs_dir3_leafn_moveents() argument
|
/linux-4.4.14/drivers/media/radio/wl128x/ |
H A D | fmdrv_common.c | 208 printk(KERN_INFO "<<%shdr:%02x len:%02x opcode:%02x type:%s dlen:%02x", dump_tx_skb_data()
|
/linux-4.4.14/net/appletalk/ |
H A D | ddp.c | 1529 * The push leaves us with a ddephdr not an shdr, and ltalk_rcv()
|