Lines Matching refs:cmds
18 void qmp_register_command(QmpCommandList *cmds, const char *name, in qmp_register_command() argument
32 QTAILQ_INSERT_TAIL(cmds, cmd, node); in qmp_register_command()
35 const QmpCommand *qmp_find_command(const QmpCommandList *cmds, const char *name) in qmp_find_command() argument
39 QTAILQ_FOREACH(cmd, cmds, node) { in qmp_find_command()
47 static void qmp_toggle_command(QmpCommandList *cmds, const char *name, in qmp_toggle_command() argument
52 QTAILQ_FOREACH(cmd, cmds, node) { in qmp_toggle_command()
61 void qmp_disable_command(QmpCommandList *cmds, const char *name, in qmp_disable_command() argument
64 qmp_toggle_command(cmds, name, false, disable_reason); in qmp_disable_command()
67 void qmp_enable_command(QmpCommandList *cmds, const char *name) in qmp_enable_command() argument
69 qmp_toggle_command(cmds, name, true, NULL); in qmp_enable_command()
87 void qmp_for_each_command(const QmpCommandList *cmds, qmp_cmd_callback_fn fn, in qmp_for_each_command() argument
92 QTAILQ_FOREACH(cmd, cmds, node) { in qmp_for_each_command()