Home
last modified time | relevance | path

Searched refs:scn (Results 1 – 16 of 16) sorted by relevance

/linux/tools/perf/util/
H A Dgenelf.c80 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 Dgenelf_debug.c498 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 Ddebuginfo.c157 Elf_Scn *scn; in debuginfo__get_text_offset()
175 scn = elf_getscn(elf, shndx); in debuginfo__get_text_offset()
176 if (!scn) in debuginfo__get_text_offset()
178 shdr = gelf_getshdr(scn, &mem); in debuginfo__get_text_offset()
155 Elf_Scn *scn; debuginfo__get_text_offset() local
H A Dsymbol-elf.c470 static void get_rela_dyn_info(Elf *elf, GElf_Ehdr *ehdr, struct rela_dyn_info *di, Elf_Scn *scn)
475 di->plt_got_data = elf_getdata(scn, NULL); in get_rela_dyn_info()
477 scn = elf_section_by_name(elf, ehdr, &rela_dyn_shdr, ".rela.dyn", NULL); in get_rela_dyn_info()
478 if (!scn || !rela_dyn_shdr.sh_link || !rela_dyn_shdr.sh_entsize) in get_rela_dyn_info()
482 di->rela_dyn_data = elf_getdata(scn, NULL); in get_rela_dyn_info()
484 scn = elf_getscn(elf, rela_dyn_shdr.sh_link); in get_rela_dyn_info()
485 if (!scn || !gelf_getshdr(scn, &shdr) || !shdr.sh_link) in get_rela_dyn_info()
488 di->dynsym_data = elf_getdata(scn, NULL); in get_rela_dyn_info()
571 Elf_Scn *scn; in dso__synthesize_plt_got_symbols()
471 get_rela_dyn_info(Elf * elf,GElf_Ehdr * ehdr,struct rela_dyn_info * di,Elf_Scn * scn) get_rela_dyn_info() argument
572 Elf_Scn *scn; dso__synthesize_plt_got_symbols() local
1073 Elf_Scn *scn; read_gnu_debugdata() local
2810 Elf_Scn *scn = NULL; construct_sdt_notes_list() local
[all...]
/linux/tools/lib/bpf/
H A Delf.c62 static Elf_Scn *elf_find_next_scn_by_type(Elf *elf, int sh_type, Elf_Scn *scn) in elf_find_next_scn_by_type() argument
64 while ((scn = elf_nextscn(elf, scn)) != NULL) { in elf_find_next_scn_by_type()
67 if (!gelf_getshdr(scn, &sh)) in elf_find_next_scn_by_type()
70 return scn; in elf_find_next_scn_by_type()
100 Elf_Scn *scn = NULL; in elf_sym_iter_new() local
111 scn = elf_find_next_scn_by_type(elf, sh_type, NULL); in elf_sym_iter_new()
112 if (!scn) { in elf_sym_iter_new()
118 if (!gelf_getshdr(scn, &sh)) in elf_sym_iter_new()
122 iter->syms = elf_getdata(scn, 0); in elf_sym_iter_new()
136 scn = elf_find_next_scn_by_type(elf, SHT_GNU_versym, NULL); in elf_sym_iter_new()
[all …]
H A Dlinker.c46 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 Dlibbpf.c792 static Elf64_Shdr *elf_sec_hdr(const struct bpf_object *obj, Elf_Scn *scn);
793 static const char *elf_sec_name(const struct bpf_object *obj, Elf_Scn *scn);
794 static Elf_Data *elf_sec_data(const struct bpf_object *obj, Elf_Scn *scn);
1726 Elf_Scn *scn; in find_elf_sec_sz() local
1731 scn = elf_sec_by_name(obj, name); in find_elf_sec_sz()
1732 data = elf_sec_data(obj, scn); in find_elf_sec_sz()
3055 Elf_Scn *scn; in bpf_object__init_user_btf_maps() local
3060 scn = elf_sec_by_idx(obj, obj->efile.btf_maps_shndx); in bpf_object__init_user_btf_maps()
3061 data = elf_sec_data(obj, scn); in bpf_object__init_user_btf_maps()
3397 Elf_Scn *scn; in bpf_object__init_btf() local
[all …]
H A Dusdt.c376 static int find_elf_sec_by_name(Elf *elf, const char *sec_name, GElf_Shdr *shdr, Elf_Scn **scn) in find_elf_sec_by_name() argument
396 *scn = sec; in find_elf_sec_by_name()
H A Dbtf.c1377 Elf_Scn *scn = NULL; in btf_find_elf_sections() local
1399 while ((scn = elf_nextscn(elf, scn)) != NULL) { in btf_find_elf_sections()
1405 if (gelf_getshdr(scn, &sh) != &sh) { in btf_find_elf_sections()
1432 data = elf_getdata(scn, 0); in btf_find_elf_sections()
/linux/scripts/gendwarfksyms/
H A Dsymbols.c202 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 Dkabi.c123 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/drivers/soc/fsl/dpio/
H A Dqbman-portal.h374 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 Ddpaa2-global.h34 struct scn { struct
41 } scn; member
189 return !!(cscn->scn.state & DPAA2_CSCN_STATE_CG); in dpaa2_cscn_state_congested()
/linux/drivers/scsi/bfa/
H A Dbfa_fcs_lport.c5164 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/tools/bpf/resolve_btfids/
H A Dmain.c443 Elf_Scn *scn = NULL; in elf_collect() local
488 while ((scn = elf_nextscn(elf, scn)) != NULL) { in elf_collect()
494 if (gelf_getshdr(scn, &sh) != &sh) { in elf_collect()
505 data = elf_getdata(scn, 0); in elf_collect()
577 Elf_Scn *scn = NULL; in symbols_collect() local
582 scn = elf_getscn(obj->efile.elf, obj->efile.symbols_shndx); in symbols_collect()
583 if (!scn) in symbols_collect()
586 if (gelf_getshdr(scn, &sh) != &sh) in symbols_collect()
1642 Elf_Scn *scn = NULL; in patch_btfids() local
1674 while ((scn = elf_nextscn(elf, scn)) != NULL) { in patch_btfids()
[all …]
/linux/drivers/scsi/
H A Dpmcraid.c740 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()