Lines Matching refs:rdef
142 struct rv_reactor_def *rdef = p; in monitor_reactor_show() local
144 if (mdef->rdef == rdef) in monitor_reactor_show()
145 seq_printf(m, "[%s]\n", rdef->reactor->name); in monitor_reactor_show()
147 seq_printf(m, "%s\n", rdef->reactor->name); in monitor_reactor_show()
161 static void monitor_swap_reactors(struct rv_monitor_def *mdef, struct rv_reactor_def *rdef, in monitor_swap_reactors() argument
167 if (mdef->rdef == rdef) in monitor_swap_reactors()
175 mdef->rdef->counter--; in monitor_swap_reactors()
176 rdef->counter++; in monitor_swap_reactors()
178 mdef->rdef = rdef; in monitor_swap_reactors()
180 mdef->monitor->react = rdef->reactor->react; in monitor_swap_reactors()
192 struct rv_reactor_def *rdef; in monitor_reactors_write() local
224 list_for_each_entry(rdef, &rv_reactors_list, list) { in monitor_reactors_write()
225 if (strcmp(ptr, rdef->reactor->name) != 0) in monitor_reactors_write()
228 if (rdef == get_reactor_rdef_by_name("nop")) in monitor_reactors_write()
233 monitor_swap_reactors(mdef, rdef, enable); in monitor_reactors_write()
451 mdef->rdef = get_reactor_rdef_by_name("nop"); in reactor_populate_monitor()
452 mdef->rdef->counter++; in reactor_populate_monitor()
465 mdef->rdef->counter--; in reactor_cleanup_monitor()
466 WARN_ON_ONCE(mdef->rdef->counter < 0); in reactor_cleanup_monitor()