| /linux/tools/perf/util/ |
| H A D | genelf.c | 80 Elf_Scn *scn; in jit_add_eh_frame_info() local 87 scn = elf_newscn(e); in jit_add_eh_frame_info() 88 if (!scn) { in jit_add_eh_frame_info() 93 d = elf_newdata(scn); in jit_add_eh_frame_info() 106 shdr = elf_getshdr(scn); in jit_add_eh_frame_info() 121 scn = elf_newscn(e); in jit_add_eh_frame_info() 122 if (!scn) { in jit_add_eh_frame_info() 127 d = elf_newdata(scn); in jit_add_eh_frame_info() 140 shdr = elf_getshdr(scn); in jit_add_eh_frame_info() 189 Elf_Scn *scn; in jit_write_elf() local [all …]
|
| H A D | genelf_debug.c | 498 Elf_Scn *scn; in jit_add_debug_info() local 513 scn = elf_newscn(e); in jit_add_debug_info() 514 if (!scn) { in jit_add_debug_info() 519 d = elf_newdata(scn); in jit_add_debug_info() 532 shdr = elf_getshdr(scn); in jit_add_debug_info() 547 scn = elf_newscn(e); in jit_add_debug_info() 548 if (!scn) { in jit_add_debug_info() 553 d = elf_newdata(scn); in jit_add_debug_info() 566 shdr = elf_getshdr(scn); in jit_add_debug_info() 581 scn = elf_newscn(e); in jit_add_debug_info() [all …]
|
| H A D | debuginfo.c | 155 Elf_Scn *scn; in debuginfo__get_text_offset() local 173 scn = elf_getscn(elf, shndx); in debuginfo__get_text_offset() 174 if (!scn) in debuginfo__get_text_offset() 176 shdr = gelf_getshdr(scn, &mem); in debuginfo__get_text_offset()
|
| H A D | symbol-elf.c | 471 static void get_rela_dyn_info(Elf *elf, GElf_Ehdr *ehdr, struct rela_dyn_info *di, Elf_Scn *scn) in get_rela_dyn_info() argument 476 di->plt_got_data = elf_getdata(scn, NULL); in get_rela_dyn_info() 478 scn = elf_section_by_name(elf, ehdr, &rela_dyn_shdr, ".rela.dyn", NULL); in get_rela_dyn_info() 479 if (!scn || !rela_dyn_shdr.sh_link || !rela_dyn_shdr.sh_entsize) in get_rela_dyn_info() 483 di->rela_dyn_data = elf_getdata(scn, NULL); in get_rela_dyn_info() 485 scn = elf_getscn(elf, rela_dyn_shdr.sh_link); in get_rela_dyn_info() 486 if (!scn || !gelf_getshdr(scn, &shdr) || !shdr.sh_link) in get_rela_dyn_info() 489 di->dynsym_data = elf_getdata(scn, NULL); in get_rela_dyn_info() 572 Elf_Scn *scn; in dso__synthesize_plt_got_symbols() local 576 scn = elf_section_by_name(elf, ehdr, &shdr, ".plt.got", NULL); in dso__synthesize_plt_got_symbols() [all …]
|
| /linux/scripts/gendwarfksyms/ |
| H A D | symbols.c | 202 Elf_Scn *scn; in elf_for_each_global() 212 scn = elf_nextscn(elf, NULL); in elf_for_each_global() 214 while (scn) { in elf_for_each_global() 215 shdr = gelf_getshdr(scn, &shdr_mem); in elf_for_each_global() 220 xndx_data = elf_getdata(scn, NULL); in elf_for_each_global() 226 scn = elf_nextscn(elf, scn); in elf_for_each_global() 230 scn = elf_nextscn(elf, NULL); in elf_for_each_global() 232 while (scn) { in elf_for_each_global() 233 shdr = gelf_getshdr(scn, in elf_for_each_global() 201 Elf_Scn *scn; elf_for_each_global() local [all...] |
| H A D | kabi.c | 123 Elf_Scn *scn; in kabi_read_rules() local 169 scn = elf_nextscn(elf, NULL); in kabi_read_rules() 171 while (scn) { in kabi_read_rules() 174 shdr = gelf_getshdr(scn, &shdr_mem); in kabi_read_rules() 183 rule_data = elf_getdata(scn, NULL); in kabi_read_rules() 189 scn = elf_nextscn(elf, scn); in kabi_read_rules()
|
| /linux/tools/bpf/resolve_btfids/ |
| H A D | main.c | 363 Elf_Scn *scn = NULL; in elf_collect() 408 while ((scn = elf_nextscn(elf, scn)) != NULL) { in elf_collect() 414 if (gelf_getshdr(scn, &sh) != &sh) { in elf_collect() 425 data = elf_getdata(scn, 0); in elf_collect() 463 Elf_Scn *scn = NULL; in symbols_collect() 468 scn = elf_getscn(obj->efile.elf, obj->efile.symbols_shndx); in symbols_collect() 469 if (!scn) in symbols_collect() 472 if (gelf_getshdr(scn, &sh) != &sh) in symbols_collect() 1342 Elf_Scn *scn 306 compressed_section_fix(Elf * elf,Elf_Scn * scn,GElf_Shdr * sh) compressed_section_fix() argument 331 Elf_Scn *scn = NULL; elf_collect() local 432 Elf_Scn *scn = NULL; symbols_collect() local [all...] |
| /linux/drivers/soc/fsl/dpio/ |
| H A D | qbman-portal.h | 374 static inline u8 qbman_result_SCN_state(const struct dpaa2_dq *scn) in qbman_result_SCN_state() argument 376 return scn->scn.state; in qbman_result_SCN_state() 384 static inline u32 qbman_result_SCN_rid(const struct dpaa2_dq *scn) in qbman_result_SCN_rid() argument 386 return le32_to_cpu(scn->scn.rid_tok) & SCN_RID_MASK; in qbman_result_SCN_rid() 392 static inline u64 qbman_result_SCN_ctx(const struct dpaa2_dq *scn) in qbman_result_SCN_ctx() argument 394 return le64_to_cpu(scn->scn.ctx); in qbman_result_SCN_ctx()
|
| /linux/include/soc/fsl/ |
| H A D | dpaa2-global.h | 34 struct scn { struct 41 } scn; member 189 return !!(cscn->scn.state & DPAA2_CSCN_STATE_CG); in dpaa2_cscn_state_congested()
|
| /linux/tools/lib/bpf/ |
| H A D | linker.c | 46 Elf_Scn *scn; member 115 Elf_Scn *scn; member 393 sec->scn = elf_newscn(linker->elf); in init_output_elf() 394 if (!sec->scn) { in init_output_elf() 399 sec->shdr = elf64_getshdr(sec->scn); in init_output_elf() 403 sec->data = elf_newdata(sec->scn); in init_output_elf() 413 sec->sec_idx = elf_ndxscn(sec->scn); in init_output_elf() 432 sec->scn = elf_newscn(linker->elf); in init_output_elf() 433 if (!sec->scn) { in init_output_elf() 438 sec->shdr = elf64_getshdr(sec->scn); in init_output_elf() [all …]
|
| H A D | libbpf.c | 784 static Elf64_Shdr *elf_sec_hdr(const struct bpf_object *obj, Elf_Scn *scn); 785 static const char *elf_sec_name(const struct bpf_object *obj, Elf_Scn *scn); 786 static Elf_Data *elf_sec_data(const struct bpf_object *obj, Elf_Scn *scn); 1718 Elf_Scn *scn; in find_elf_sec_sz() local 1723 scn = elf_sec_by_name(obj, name); in find_elf_sec_sz() 1724 data = elf_sec_data(obj, scn); in find_elf_sec_sz() 3026 Elf_Scn *scn; in bpf_object__init_user_btf_maps() local 3031 scn = elf_sec_by_idx(obj, obj->efile.btf_maps_shndx); in bpf_object__init_user_btf_maps() 3032 data = elf_sec_data(obj, scn); in bpf_object__init_user_btf_maps() 3310 Elf_Scn *scn; in bpf_object__init_btf() local [all …]
|
| /linux/drivers/scsi/bfa/ |
| H A D | bfa_fcs_lport.c | 5164 static void bfa_fcs_lport_scn_sm_offline(struct bfa_fcs_lport_scn_s *scn, 5167 struct bfa_fcs_lport_scn_s *scn, 5169 static void bfa_fcs_lport_scn_sm_scr(struct bfa_fcs_lport_scn_s *scn, 5171 static void bfa_fcs_lport_scn_sm_scr_retry(struct bfa_fcs_lport_scn_s *scn, 5173 static void bfa_fcs_lport_scn_sm_online(struct bfa_fcs_lport_scn_s *scn, 5180 bfa_fcs_lport_scn_sm_offline(struct bfa_fcs_lport_scn_s *scn, in bfa_fcs_lport_scn_sm_offline() argument 5185 bfa_sm_set_state(scn, bfa_fcs_lport_scn_sm_sending_scr); in bfa_fcs_lport_scn_sm_offline() 5186 bfa_fcs_lport_scn_send_scr(scn, NULL); in bfa_fcs_lport_scn_sm_offline() 5193 bfa_sm_fault(scn->port->fcs, event); in bfa_fcs_lport_scn_sm_offline() 5198 bfa_fcs_lport_scn_sm_sending_scr(struct bfa_fcs_lport_scn_s *scn, in bfa_fcs_lport_scn_sm_sending_scr() argument [all …]
|
| /linux/drivers/scsi/ |
| H A D | pmcraid.h | 679 struct pmcraid_state_msg scn; /* controller state change msg */ member
|
| H A D | pmcraid.c | 740 if (pinstance->scn.ioa_state != PMC_DEVICE_EVENT_RESET_START && in pmcraid_timeout_handler() 741 pinstance->scn.ioa_state != PMC_DEVICE_EVENT_SHUTDOWN_START) in pmcraid_timeout_handler() 1494 pinstance->scn.ioa_state = evt; in pmcraid_notify_ioastate() 1496 &pinstance->scn.msg, in pmcraid_notify_ioastate()
|
| /linux/arch/s390/kvm/ |
| H A D | interrupt.c | 56 *src_id = sigp_ctrl.scn; in sca_ext_call_pending() 65 union esca_sigp_ctrl old_val, new_val = {.scn = src_id, .c = 1}; in sca_inject_ext_call() 2975 int scn; in kvm_s390_get_irq_state() local 3015 if (sca_ext_call_pending(vcpu, &scn)) { in kvm_s390_get_irq_state() 3020 irq.u.extcall.code = scn; in kvm_s390_get_irq_state()
|