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()
268 if (mdef->monitor->enabled) in rv_enable_monitor()
271 retval = mdef->monitor->enable(); in rv_enable_monitor()
274 mdef->monitor->enabled = 1; in rv_enable_monitor()
325 snprintf(buff, sizeof(buff), "%s\n", mdef->monitor->description); in monitor_desc_read_data()
344 const char *name = mdef->monitor->name; in create_monitor_dir()
382 seq_printf(m, "%s\n", mon_def->monitor->name); in monitors_show()
419 if (m_def->monitor->enabled) in enabled_monitors_next()
547 if (strcmp(ptr, mdef->monitor->name) != 0) in enabled_monitors_write()
618 if (mdef->monitor->enabled) in reset_all_monitors()
619 mdef->monitor->reset(); in reset_all_monitors()
694 int rv_register_monitor(struct rv_monitor *monitor) in rv_register_monitor() argument
699 if (strlen(monitor->name) >= MAX_RV_MONITOR_NAME_SIZE) { in rv_register_monitor()
700 pr_info("Monitor %s has a name longer than %d\n", monitor->name, in rv_register_monitor()
708 if (strcmp(monitor->name, r->monitor->name) == 0) { in rv_register_monitor()
709 pr_info("Monitor %s is already registered\n", monitor->name); in rv_register_monitor()
721 r->monitor = monitor; in rv_register_monitor()
742 int rv_unregister_monitor(struct rv_monitor *monitor) in rv_unregister_monitor() argument
749 if (strcmp(monitor->name, ptr->monitor->name) == 0) { in rv_unregister_monitor()