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()
23 orc->end = cfi->end; in init_orc_entry()
26 orc->sp_reg = ORC_REG_UNDEFINED; in init_orc_entry()
32 orc->sp_reg = ORC_REG_SP; in init_orc_entry()
35 orc->sp_reg = ORC_REG_SP_INDIRECT; in init_orc_entry()
38 orc->sp_reg = ORC_REG_BP; in init_orc_entry()
41 orc->sp_reg = ORC_REG_BP_INDIRECT; in init_orc_entry()
44 orc->sp_reg = ORC_REG_R10; in init_orc_entry()
47 orc->sp_reg = ORC_REG_R13; in init_orc_entry()
50 orc->sp_reg = ORC_REG_DI; in init_orc_entry()
53 orc->sp_reg = ORC_REG_DX; in init_orc_entry()
63 orc->bp_reg = ORC_REG_UNDEFINED; in init_orc_entry()
66 orc->bp_reg = ORC_REG_PREV_SP; in init_orc_entry()
69 orc->bp_reg = ORC_REG_BP; in init_orc_entry()
77 orc->sp_offset = cfi->cfa.offset; in init_orc_entry()
78 orc->bp_offset = bp->offset; in init_orc_entry()
79 orc->type = cfi->type; in init_orc_entry()
89 struct orc_entry *orc; in write_orc_entry() local
92 orc = (struct orc_entry *)orc_sec->data->d_buf + idx; in write_orc_entry()
93 memcpy(orc, o, sizeof(*orc)); in write_orc_entry()
94 orc->sp_offset = bswap_if_needed(orc->sp_offset); in write_orc_entry()
95 orc->bp_offset = bswap_if_needed(orc->bp_offset); in write_orc_entry()
107 struct orc_entry orc; member
112 static int orc_list_add(struct list_head *orc_list, struct orc_entry *orc, in orc_list_add() argument
122 entry->orc = *orc; in orc_list_add()
153 struct orc_entry orc, prev_orc = {0}; in orc_create() local
165 if (init_orc_entry(&orc, &insn->cfi)) in orc_create()
167 if (!memcmp(&prev_orc, &orc, sizeof(orc))) in orc_create()
169 if (orc_list_add(&orc_list, &orc, sec, in orc_create()
173 prev_orc = orc; in orc_create()
189 if (init_orc_entry(&orc, cfi)) in orc_create()
191 if (!memcmp(&prev_orc, &orc, sizeof(orc))) in orc_create()
193 if (orc_list_add(&orc_list, &orc, insn->sec, in orc_create()
197 prev_orc = orc; in orc_create()
233 &entry->orc)) in orc_create()