Lines Matching refs:cl
31 struct cmdline *cl, in cmd_quit_parsed() argument
37 cmdline_quit(cl); in cmd_quit_parsed()
60 cmd_show_vm_parsed(void *parsed_result, struct cmdline *cl, in cmd_show_vm_parsed() argument
69 cmdline_printf(cl, "VM: '%s', status = ", info.name); in cmd_show_vm_parsed()
71 cmdline_printf(cl, "ACTIVE\n"); in cmd_show_vm_parsed()
73 cmdline_printf(cl, "INACTIVE\n"); in cmd_show_vm_parsed()
74 cmdline_printf(cl, "Channels %u\n", info.num_channels); in cmd_show_vm_parsed()
76 cmdline_printf(cl, " [%u]: %s, status = ", i, in cmd_show_vm_parsed()
80 cmdline_printf(cl, "CONNECTED\n"); in cmd_show_vm_parsed()
83 cmdline_printf(cl, "DISCONNECTED\n"); in cmd_show_vm_parsed()
86 cmdline_printf(cl, "DISABLED\n"); in cmd_show_vm_parsed()
89 cmdline_printf(cl, "PROCESSING\n"); in cmd_show_vm_parsed()
92 cmdline_printf(cl, "UNKNOWN\n"); in cmd_show_vm_parsed()
96 cmdline_printf(cl, "Virtual CPU(s): %u\n", info.num_vcpus); in cmd_show_vm_parsed()
98 cmdline_printf(cl, " [%u]: Physical CPU %d\n", i, in cmd_show_vm_parsed()
137 cmd_set_pcpu_parsed(void *parsed_result, struct cmdline *cl, in cmd_set_pcpu_parsed() argument
143 cmdline_printf(cl, "Pinned vCPU(%"PRId8") to pCPU core " in cmd_set_pcpu_parsed()
146 cmdline_printf(cl, "Unable to pin vCPU(%"PRId8") to pCPU core " in cmd_set_pcpu_parsed()
184 cmd_vm_op_parsed(void *parsed_result, struct cmdline *cl, in cmd_vm_op_parsed() argument
191 cmdline_printf(cl, "Unable to add VM '%s'\n", res->vm_name); in cmd_vm_op_parsed()
193 cmdline_printf(cl, "Unable to remove VM '%s'\n", res->vm_name); in cmd_vm_op_parsed()
223 cmd_channels_op_parsed(void *parsed_result, struct cmdline *cl, in cmd_channels_op_parsed() argument
234 cmdline_printf(cl, "Added %d channels for VM '%s'\n", in cmd_channels_op_parsed()
253 cmdline_printf(cl, "Channel number '%u' exceeds the maximum number " in cmd_channels_op_parsed()
261 cmdline_printf(cl, "[%u]: Adding channel %u\n", i, channel_list[i]); in cmd_channels_op_parsed()
265 cmdline_printf(cl, "Enabled %d channels for '%s'\n", channels_added, in cmd_channels_op_parsed()
304 __rte_unused struct cmdline *cl, in cmd_set_query_parsed() argument
311 cmdline_printf(cl, "Unable to allow query for VM '%s'\n", in cmd_set_query_parsed()
315 cmdline_printf(cl, "Unable to disallow query for VM '%s'\n", in cmd_set_query_parsed()
351 cmd_channels_status_op_parsed(void *parsed_result, struct cmdline *cl, in cmd_channels_status_op_parsed() argument
368 cmdline_printf(cl, "Updated status of %d channels " in cmd_channels_status_op_parsed()
385 cmdline_printf(cl, "%u exceeds the maximum number of allowable " in cmd_channels_status_op_parsed()
394 cmdline_printf(cl, "Updated status of %d channels " in cmd_channels_status_op_parsed()
437 cmd_show_cpu_freq_parsed(void *parsed_result, struct cmdline *cl, in cmd_show_cpu_freq_parsed() argument
444 cmdline_printf(cl, "Unable to get frequency for core %u\n", in cmd_show_cpu_freq_parsed()
448 cmdline_printf(cl, "Core %u frequency: %"PRId32"\n", res->core_num, in cmd_show_cpu_freq_parsed()
478 cmd_set_cpu_freq_parsed(void *parsed_result, struct cmdline *cl, in cmd_set_cpu_freq_parsed() argument
497 cmdline_printf(cl, "Error scaling core(%u) '%s'\n", res->core_num, in cmd_set_cpu_freq_parsed()
541 struct cmdline *cl; in run_cli() local
543 cl = cmdline_stdin_new(main_ctx, "vmpower> "); in run_cli()
544 if (cl == NULL) in run_cli()
547 cmdline_interact(cl); in run_cli()
548 cmdline_stdin_exit(cl); in run_cli()