Lines Matching refs:orc

16 static int init_orc_entry(struct orc_entry *orc, struct cfi_state *cfi,  in init_orc_entry()  argument
21 memset(orc, 0, sizeof(*orc)); in init_orc_entry()
29 orc->type = ORC_TYPE_UNDEFINED; in init_orc_entry()
35 orc->type = ORC_TYPE_UNDEFINED; in init_orc_entry()
38 orc->type = ORC_TYPE_END_OF_STACK; in init_orc_entry()
41 orc->type = ORC_TYPE_CALL; in init_orc_entry()
44 orc->type = ORC_TYPE_REGS; in init_orc_entry()
47 orc->type = ORC_TYPE_REGS_PARTIAL; in init_orc_entry()
54 orc->signal = cfi->signal; in init_orc_entry()
58 orc->sp_reg = ORC_REG_SP; in init_orc_entry()
61 orc->sp_reg = ORC_REG_SP_INDIRECT; in init_orc_entry()
64 orc->sp_reg = ORC_REG_BP; in init_orc_entry()
67 orc->sp_reg = ORC_REG_BP_INDIRECT; in init_orc_entry()
70 orc->sp_reg = ORC_REG_R10; in init_orc_entry()
73 orc->sp_reg = ORC_REG_R13; in init_orc_entry()
76 orc->sp_reg = ORC_REG_DI; in init_orc_entry()
79 orc->sp_reg = ORC_REG_DX; in init_orc_entry()
88 orc->bp_reg = ORC_REG_UNDEFINED; in init_orc_entry()
91 orc->bp_reg = ORC_REG_PREV_SP; in init_orc_entry()
94 orc->bp_reg = ORC_REG_BP; in init_orc_entry()
101 orc->sp_offset = cfi->cfa.offset; in init_orc_entry()
102 orc->bp_offset = bp->offset; in init_orc_entry()
112 struct orc_entry *orc; in write_orc_entry() local
115 orc = (struct orc_entry *)orc_sec->data->d_buf + idx; in write_orc_entry()
116 memcpy(orc, o, sizeof(*orc)); in write_orc_entry()
117 orc->sp_offset = bswap_if_needed(elf, orc->sp_offset); in write_orc_entry()
118 orc->bp_offset = bswap_if_needed(elf, orc->bp_offset); in write_orc_entry()
130 struct orc_entry orc; member
135 static int orc_list_add(struct list_head *orc_list, struct orc_entry *orc, in orc_list_add() argument
145 entry->orc = *orc; in orc_list_add()
172 struct orc_entry orc, prev_orc = {0}; in orc_create() local
184 if (init_orc_entry(&orc, insn->cfi, insn)) in orc_create()
186 if (!memcmp(&prev_orc, &orc, sizeof(orc))) in orc_create()
188 if (orc_list_add(&orc_list, &orc, sec, in orc_create()
192 prev_orc = orc; in orc_create()
209 if (init_orc_entry(&orc, cfi, insn)) in orc_create()
211 if (!memcmp(&prev_orc, &orc, sizeof(orc))) in orc_create()
213 if (orc_list_add(&orc_list, &orc, insn->sec, in orc_create()
217 prev_orc = orc; in orc_create()
253 &entry->orc)) in orc_create()