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()
162 struct rv_reactor_def *rdef, in monitor_swap_reactors_single() argument
168 if (mdef->rdef == rdef) in monitor_swap_reactors_single()
176 mdef->rdef->counter--; in monitor_swap_reactors_single()
177 rdef->counter++; in monitor_swap_reactors_single()
179 mdef->rdef = rdef; in monitor_swap_reactors_single()
181 mdef->monitor->react = rdef->reactor->react; in monitor_swap_reactors_single()
189 struct rv_reactor_def *rdef, bool reacting) in monitor_swap_reactors() argument
197 monitor_swap_reactors_single(p, rdef, reacting, true); in monitor_swap_reactors()
205 monitor_swap_reactors_single(mdef, rdef, reacting, false); in monitor_swap_reactors()
214 struct rv_reactor_def *rdef; in monitor_reactors_write() local
246 list_for_each_entry(rdef, &rv_reactors_list, list) { in monitor_reactors_write()
247 if (strcmp(ptr, rdef->reactor->name) != 0) in monitor_reactors_write()
250 if (rdef == get_reactor_rdef_by_name("nop")) in monitor_reactors_write()
255 monitor_swap_reactors(mdef, rdef, enable); in monitor_reactors_write()
472 mdef->rdef = get_reactor_rdef_by_name("nop"); in reactor_populate_monitor()
473 mdef->rdef->counter++; in reactor_populate_monitor()
486 mdef->rdef->counter--; in reactor_cleanup_monitor()
487 WARN_ON_ONCE(mdef->rdef->counter < 0); in reactor_cleanup_monitor()