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()
32 orc->sp_reg = ORC_REG_UNDEFINED; in init_orc_entry()
38 orc->sp_reg = ORC_REG_SP; in init_orc_entry()
41 orc->sp_reg = ORC_REG_SP_INDIRECT; in init_orc_entry()
44 orc->sp_reg = ORC_REG_BP; in init_orc_entry()
47 orc->sp_reg = ORC_REG_BP_INDIRECT; in init_orc_entry()
50 orc->sp_reg = ORC_REG_R10; in init_orc_entry()
53 orc->sp_reg = ORC_REG_R13; in init_orc_entry()
56 orc->sp_reg = ORC_REG_DI; in init_orc_entry()
59 orc->sp_reg = ORC_REG_DX; in init_orc_entry()
69 orc->bp_reg = ORC_REG_UNDEFINED; in init_orc_entry()
72 orc->bp_reg = ORC_REG_PREV_SP; in init_orc_entry()
75 orc->bp_reg = ORC_REG_BP; in init_orc_entry()
83 orc->sp_offset = cfi->cfa.offset; in init_orc_entry()
84 orc->bp_offset = bp->offset; in init_orc_entry()
85 orc->type = cfi->type; in init_orc_entry()
95 struct orc_entry *orc; in write_orc_entry() local
98 orc = (struct orc_entry *)orc_sec->data->d_buf + idx; in write_orc_entry()
99 memcpy(orc, o, sizeof(*orc)); in write_orc_entry()
100 orc->sp_offset = bswap_if_needed(orc->sp_offset); in write_orc_entry()
101 orc->bp_offset = bswap_if_needed(orc->bp_offset); in write_orc_entry()
113 struct orc_entry orc; member
118 static int orc_list_add(struct list_head *orc_list, struct orc_entry *orc, in orc_list_add() argument
128 entry->orc = *orc; in orc_list_add()
159 struct orc_entry orc, prev_orc = {0}; in orc_create() local
171 if (init_orc_entry(&orc, insn->cfi, insn)) in orc_create()
173 if (!memcmp(&prev_orc, &orc, sizeof(orc))) in orc_create()
175 if (orc_list_add(&orc_list, &orc, sec, in orc_create()
179 prev_orc = orc; in orc_create()
196 if (init_orc_entry(&orc, cfi, insn)) in orc_create()
198 if (!memcmp(&prev_orc, &orc, sizeof(orc))) in orc_create()
200 if (orc_list_add(&orc_list, &orc, insn->sec, in orc_create()
204 prev_orc = orc; in orc_create()
240 &entry->orc)) in orc_create()