Lines Matching refs:hook
379 void register_undef_hook(struct undef_hook *hook) in register_undef_hook() argument
384 list_add(&hook->node, &undef_hook); in register_undef_hook()
388 void unregister_undef_hook(struct undef_hook *hook) in unregister_undef_hook() argument
393 list_del(&hook->node); in unregister_undef_hook()
399 struct undef_hook *hook; in call_undef_hook() local
433 list_for_each_entry(hook, &undef_hook, node) in call_undef_hook()
434 if ((instr & hook->instr_mask) == hook->instr_val && in call_undef_hook()
435 (regs->pstate & hook->pstate_mask) == hook->pstate_val) in call_undef_hook()
436 fn = hook->fn; in call_undef_hook()
753 const struct sys64_hook *hook, *hook_base; in do_cp15instr() local
776 for (hook = hook_base; hook->handler; hook++) in do_cp15instr()
777 if ((hook->esr_mask & esr) == hook->esr_val) { in do_cp15instr()
778 hook->handler(esr, regs); in do_cp15instr()
794 const struct sys64_hook *hook; in do_sysinstr() local
796 for (hook = sys64_hooks; hook->handler; hook++) in do_sysinstr()
797 if ((hook->esr_mask & esr) == hook->esr_val) { in do_sysinstr()
798 hook->handler(esr, regs); in do_sysinstr()