Lines Matching refs:sh_ubc
35 static struct sh_ubc ubc_dummy = { .num_events = 0 };
37 static struct sh_ubc *sh_ubc __read_mostly = &ubc_dummy;
52 for (i = 0; i < sh_ubc->num_events; i++) { in arch_install_hw_breakpoint()
61 if (WARN_ONCE(i == sh_ubc->num_events, "Can't find any breakpoint slot")) in arch_install_hw_breakpoint()
64 clk_enable(sh_ubc->clk); in arch_install_hw_breakpoint()
65 sh_ubc->enable(info, i); in arch_install_hw_breakpoint()
84 for (i = 0; i < sh_ubc->num_events; i++) { in arch_uninstall_hw_breakpoint()
93 if (WARN_ONCE(i == sh_ubc->num_events, "Can't find any breakpoint slot")) in arch_uninstall_hw_breakpoint()
96 sh_ubc->disable(info, i); in arch_uninstall_hw_breakpoint()
97 clk_disable(sh_ubc->clk); in arch_uninstall_hw_breakpoint()
267 for (i = 0; i < sh_ubc->num_events; i++) { in flush_ptrace_hw_breakpoint()
282 cmf = sh_ubc->triggered_mask(); in hw_breakpoint_handler()
289 resume_mask = sh_ubc->active_mask(); in hw_breakpoint_handler()
294 sh_ubc->disable_all(); in hw_breakpoint_handler()
297 for (i = 0; i < sh_ubc->num_events; i++) { in hw_breakpoint_handler()
319 sh_ubc->clear_triggered_mask(event_mask); in hw_breakpoint_handler()
351 sh_ubc->enable_all(resume_mask); in hw_breakpoint_handler()
385 if (args->trapnr != sh_ubc->trap_nr) in hw_breakpoint_exceptions_notify()
396 int register_sh_ubc(struct sh_ubc *ubc) in register_sh_ubc()
399 if (sh_ubc != &ubc_dummy) in register_sh_ubc()
401 sh_ubc = ubc; in register_sh_ubc()