Lines Matching refs:orc

151 	static struct orc_entry *orc;  in orc_find()  local
188 orc = orc_module_find(ip); in orc_find()
189 if (orc) in orc_find()
190 return orc; in orc_find()
247 struct orc_entry *orc = _orc; in unwind_module_init() local
251 orc_size % sizeof(*orc) != 0 || in unwind_module_init()
252 num_entries != orc_size / sizeof(*orc)); in unwind_module_init()
261 cur_orc_table = orc; in unwind_module_init()
266 mod->arch.orc_unwind = orc; in unwind_module_init()
276 struct orc_entry *orc; in unwind_init() local
295 orc = __orc_find(__start_orc_unwind_ip, __start_orc_unwind, in unwind_init()
298 if (!orc) { in unwind_init()
303 orc_lookup[i] = orc - __start_orc_unwind; in unwind_init()
307 orc = __orc_find(__start_orc_unwind_ip, __start_orc_unwind, num_entries, in unwind_init()
309 if (!orc) { in unwind_init()
313 orc_lookup[lookup_num_blocks-1] = orc - __start_orc_unwind; in unwind_init()
426 struct orc_entry *orc; in unwind_next_frame() local
448 orc = orc_find(state->signal ? state->ip : state->ip - 1); in unwind_next_frame()
449 if (!orc) { in unwind_next_frame()
456 orc = &orc_fp_entry; in unwind_next_frame()
461 if (orc->sp_reg == ORC_REG_UNDEFINED) { in unwind_next_frame()
462 if (!orc->end) in unwind_next_frame()
469 switch (orc->sp_reg) { in unwind_next_frame()
471 sp = state->sp + orc->sp_offset; in unwind_next_frame()
475 sp = state->bp + orc->sp_offset; in unwind_next_frame()
484 sp = state->bp + orc->sp_offset; in unwind_next_frame()
522 orc->sp_reg, (void *)state->ip); in unwind_next_frame()
530 if (orc->sp_reg == ORC_REG_SP_INDIRECT) in unwind_next_frame()
531 sp += orc->sp_offset; in unwind_next_frame()
535 switch (orc->type) { in unwind_next_frame()
593 orc->type, (void *)orig_ip); in unwind_next_frame()
598 switch (orc->bp_reg) { in unwind_next_frame()
605 if (!deref_stack_reg(state, sp + orc->bp_offset, &state->bp)) in unwind_next_frame()
610 if (!deref_stack_reg(state, state->bp + orc->bp_offset, &state->bp)) in unwind_next_frame()
616 orc->bp_reg, (void *)orig_ip); in unwind_next_frame()