sh_ubc
extern int register_sh_ubc(struct sh_ubc *);
static struct sh_ubc sh4a_ubc;
static struct sh_ubc sh4a_ubc = {
for (i = 0; i < sh_ubc->num_events; i++) {
cmf = sh_ubc->triggered_mask();
resume_mask = sh_ubc->active_mask();
sh_ubc->disable_all();
for (i = 0; i < sh_ubc->num_events; i++) {
sh_ubc->clear_triggered_mask(event_mask);
static struct sh_ubc ubc_dummy = { .num_events = 0 };
sh_ubc->enable_all(resume_mask);
static struct sh_ubc *sh_ubc __read_mostly = &ubc_dummy;
if (args->trapnr != sh_ubc->trap_nr)
int register_sh_ubc(struct sh_ubc *ubc)
if (sh_ubc != &ubc_dummy)
sh_ubc = ubc;
for (i = 0; i < sh_ubc->num_events; i++) {
if (WARN_ONCE(i == sh_ubc->num_events, "Can't find any breakpoint slot"))
clk_enable(sh_ubc->clk);
sh_ubc->enable(info, i);
for (i = 0; i < sh_ubc->num_events; i++) {
if (WARN_ONCE(i == sh_ubc->num_events, "Can't find any breakpoint slot"))
sh_ubc->disable(info, i);
clk_disable(sh_ubc->clk);