Lines Matching refs:sh_ubc
37 static struct sh_ubc ubc_dummy = { .num_events = 0 };
39 static struct sh_ubc *sh_ubc __read_mostly = &ubc_dummy;
54 for (i = 0; i < sh_ubc->num_events; i++) { in arch_install_hw_breakpoint()
63 if (WARN_ONCE(i == sh_ubc->num_events, "Can't find any breakpoint slot")) in arch_install_hw_breakpoint()
66 clk_enable(sh_ubc->clk); in arch_install_hw_breakpoint()
67 sh_ubc->enable(info, i); in arch_install_hw_breakpoint()
86 for (i = 0; i < sh_ubc->num_events; i++) { in arch_uninstall_hw_breakpoint()
95 if (WARN_ONCE(i == sh_ubc->num_events, "Can't find any breakpoint slot")) in arch_uninstall_hw_breakpoint()
98 sh_ubc->disable(info, i); in arch_uninstall_hw_breakpoint()
99 clk_disable(sh_ubc->clk); in arch_uninstall_hw_breakpoint()
275 for (i = 0; i < sh_ubc->num_events; i++) { in flush_ptrace_hw_breakpoint()
290 cmf = sh_ubc->triggered_mask(); in hw_breakpoint_handler()
297 resume_mask = sh_ubc->active_mask(); in hw_breakpoint_handler()
302 sh_ubc->disable_all(); in hw_breakpoint_handler()
305 for (i = 0; i < sh_ubc->num_events; i++) { in hw_breakpoint_handler()
327 sh_ubc->clear_triggered_mask(event_mask); in hw_breakpoint_handler()
364 sh_ubc->enable_all(resume_mask); in hw_breakpoint_handler()
398 if (args->trapnr != sh_ubc->trap_nr) in hw_breakpoint_exceptions_notify()
409 int register_sh_ubc(struct sh_ubc *ubc) in register_sh_ubc()
412 if (sh_ubc != &ubc_dummy) in register_sh_ubc()
414 sh_ubc = ubc; in register_sh_ubc()