Lines Matching refs:orc
15 static int init_orc_entry(struct orc_entry *orc, struct cfi_state *cfi, in init_orc_entry() argument
20 memset(orc, 0, sizeof(*orc)); in init_orc_entry()
23 orc->end = 0; in init_orc_entry()
24 orc->sp_reg = ORC_REG_UNDEFINED; in init_orc_entry()
28 orc->end = cfi->end; in init_orc_entry()
31 orc->sp_reg = ORC_REG_UNDEFINED; in init_orc_entry()
37 orc->sp_reg = ORC_REG_SP; in init_orc_entry()
40 orc->sp_reg = ORC_REG_SP_INDIRECT; in init_orc_entry()
43 orc->sp_reg = ORC_REG_BP; in init_orc_entry()
46 orc->sp_reg = ORC_REG_BP_INDIRECT; in init_orc_entry()
49 orc->sp_reg = ORC_REG_R10; in init_orc_entry()
52 orc->sp_reg = ORC_REG_R13; in init_orc_entry()
55 orc->sp_reg = ORC_REG_DI; in init_orc_entry()
58 orc->sp_reg = ORC_REG_DX; in init_orc_entry()
68 orc->bp_reg = ORC_REG_UNDEFINED; in init_orc_entry()
71 orc->bp_reg = ORC_REG_PREV_SP; in init_orc_entry()
74 orc->bp_reg = ORC_REG_BP; in init_orc_entry()
82 orc->sp_offset = cfi->cfa.offset; in init_orc_entry()
83 orc->bp_offset = bp->offset; in init_orc_entry()
84 orc->type = cfi->type; in init_orc_entry()
94 struct orc_entry *orc; in write_orc_entry() local
97 orc = (struct orc_entry *)orc_sec->data->d_buf + idx; in write_orc_entry()
98 memcpy(orc, o, sizeof(*orc)); in write_orc_entry()
110 struct orc_entry orc; member
115 static int orc_list_add(struct list_head *orc_list, struct orc_entry *orc, in orc_list_add() argument
125 entry->orc = *orc; in orc_list_add()
156 struct orc_entry orc, prev_orc = {0}; in orc_create() local
168 if (init_orc_entry(&orc, insn->cfi, insn)) in orc_create()
170 if (!memcmp(&prev_orc, &orc, sizeof(orc))) in orc_create()
172 if (orc_list_add(&orc_list, &orc, sec, in orc_create()
176 prev_orc = orc; in orc_create()
193 if (init_orc_entry(&orc, cfi, insn)) in orc_create()
195 if (!memcmp(&prev_orc, &orc, sizeof(orc))) in orc_create()
197 if (orc_list_add(&orc_list, &orc, insn->sec, in orc_create()
201 prev_orc = orc; in orc_create()
237 &entry->orc)) in orc_create()