Lines Matching refs:hook
287 void register_undef_hook(struct undef_hook *hook) in register_undef_hook() argument
292 list_add(&hook->node, &undef_hook); in register_undef_hook()
296 void unregister_undef_hook(struct undef_hook *hook) in unregister_undef_hook() argument
301 list_del(&hook->node); in unregister_undef_hook()
307 struct undef_hook *hook; in call_undef_hook() local
339 list_for_each_entry(hook, &undef_hook, node) in call_undef_hook()
340 if ((instr & hook->instr_mask) == hook->instr_val && in call_undef_hook()
341 (regs->pstate & hook->pstate_mask) == hook->pstate_val) in call_undef_hook()
342 fn = hook->fn; in call_undef_hook()
534 struct sys64_hook *hook; in do_sysinstr() local
536 for (hook = sys64_hooks; hook->handler; hook++) in do_sysinstr()
537 if ((hook->esr_mask & esr) == hook->esr_val) { in do_sysinstr()
538 hook->handler(esr, regs); in do_sysinstr()