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()
24 orc->end = 0; in init_orc_entry()
25 orc->sp_reg = ORC_REG_UNDEFINED; in init_orc_entry()
29 orc->end = cfi->end; in init_orc_entry()
30 orc->signal = cfi->signal; in init_orc_entry()
33 orc->sp_reg = ORC_REG_UNDEFINED; in init_orc_entry()
39 orc->sp_reg = ORC_REG_SP; in init_orc_entry()
42 orc->sp_reg = ORC_REG_SP_INDIRECT; in init_orc_entry()
45 orc->sp_reg = ORC_REG_BP; in init_orc_entry()
48 orc->sp_reg = ORC_REG_BP_INDIRECT; in init_orc_entry()
51 orc->sp_reg = ORC_REG_R10; in init_orc_entry()
54 orc->sp_reg = ORC_REG_R13; in init_orc_entry()
57 orc->sp_reg = ORC_REG_DI; in init_orc_entry()
60 orc->sp_reg = ORC_REG_DX; in init_orc_entry()
70 orc->bp_reg = ORC_REG_UNDEFINED; in init_orc_entry()
73 orc->bp_reg = ORC_REG_PREV_SP; in init_orc_entry()
76 orc->bp_reg = ORC_REG_BP; in init_orc_entry()
84 orc->sp_offset = cfi->cfa.offset; in init_orc_entry()
85 orc->bp_offset = bp->offset; in init_orc_entry()
86 orc->type = cfi->type; in init_orc_entry()
96 struct orc_entry *orc; in write_orc_entry() local
99 orc = (struct orc_entry *)orc_sec->data->d_buf + idx; in write_orc_entry()
100 memcpy(orc, o, sizeof(*orc)); in write_orc_entry()
101 orc->sp_offset = bswap_if_needed(elf, orc->sp_offset); in write_orc_entry()
102 orc->bp_offset = bswap_if_needed(elf, orc->bp_offset); in write_orc_entry()
114 struct orc_entry orc; member
119 static int orc_list_add(struct list_head *orc_list, struct orc_entry *orc, in orc_list_add() argument
129 entry->orc = *orc; in orc_list_add()
160 struct orc_entry orc, prev_orc = {0}; in orc_create() local
172 if (init_orc_entry(&orc, insn->cfi, insn)) in orc_create()
174 if (!memcmp(&prev_orc, &orc, sizeof(orc))) in orc_create()
176 if (orc_list_add(&orc_list, &orc, sec, in orc_create()
180 prev_orc = orc; in orc_create()
197 if (init_orc_entry(&orc, cfi, insn)) in orc_create()
199 if (!memcmp(&prev_orc, &orc, sizeof(orc))) in orc_create()
201 if (orc_list_add(&orc_list, &orc, insn->sec, in orc_create()
205 prev_orc = orc; in orc_create()
241 &entry->orc)) in orc_create()