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()
276 for (i = 0; i < sh_ubc->num_events; i++) { in flush_ptrace_hw_breakpoint()
291 cmf = sh_ubc->triggered_mask(); in hw_breakpoint_handler()
298 resume_mask = sh_ubc->active_mask(); in hw_breakpoint_handler()
303 sh_ubc->disable_all(); in hw_breakpoint_handler()
306 for (i = 0; i < sh_ubc->num_events; i++) { in hw_breakpoint_handler()
328 sh_ubc->clear_triggered_mask(event_mask); in hw_breakpoint_handler()
365 sh_ubc->enable_all(resume_mask); in hw_breakpoint_handler()
399 if (args->trapnr != sh_ubc->trap_nr) in hw_breakpoint_exceptions_notify()
410 int register_sh_ubc(struct sh_ubc *ubc) in register_sh_ubc()
413 if (sh_ubc != &ubc_dummy) in register_sh_ubc()
415 sh_ubc = ubc; in register_sh_ubc()