Lines Matching refs:monitor
218 buff = mdef->monitor->enabled ? "1\n" : "0\n"; in monitor_enable_read_data()
230 if (mdef->monitor->enabled) { in __rv_disable_monitor()
231 mdef->monitor->enabled = 0; in __rv_disable_monitor()
232 mdef->monitor->disable(); in __rv_disable_monitor()
270 if (mdef->monitor->enabled) in rv_enable_monitor()
273 retval = mdef->monitor->enable(); in rv_enable_monitor()
276 mdef->monitor->enabled = 1; in rv_enable_monitor()
324 snprintf(buff, sizeof(buff), "%s\n", mdef->monitor->description); in monitor_desc_read_data()
342 const char *name = mdef->monitor->name; in create_monitor_dir()
380 seq_printf(m, "%s\n", mon_def->monitor->name); in monitors_show()
417 if (m_def->monitor->enabled) in enabled_monitors_next()
545 if (strcmp(ptr, mdef->monitor->name) != 0) in enabled_monitors_write()
616 if (mdef->monitor->enabled) in reset_all_monitors()
617 mdef->monitor->reset(); in reset_all_monitors()
691 int rv_register_monitor(struct rv_monitor *monitor) in rv_register_monitor() argument
696 if (strlen(monitor->name) >= MAX_RV_MONITOR_NAME_SIZE) { in rv_register_monitor()
697 pr_info("Monitor %s has a name longer than %d\n", monitor->name, in rv_register_monitor()
705 if (strcmp(monitor->name, r->monitor->name) == 0) { in rv_register_monitor()
706 pr_info("Monitor %s is already registered\n", monitor->name); in rv_register_monitor()
718 r->monitor = monitor; in rv_register_monitor()
739 int rv_unregister_monitor(struct rv_monitor *monitor) in rv_unregister_monitor() argument
746 if (strcmp(monitor->name, ptr->monitor->name) == 0) { in rv_unregister_monitor()