| /dpdk/lib/cmdline/ |
| H A D | cmdline.h | 26 struct cmdline; 28 struct cmdline *cmdline_new(cmdline_parse_ctx_t *ctx, const char *prompt, int s_in, int s_out); 29 void cmdline_set_prompt(struct cmdline *cl, const char *prompt); 30 void cmdline_free(struct cmdline *cl); 31 void cmdline_printf(const struct cmdline *cl, const char *fmt, ...) 33 int cmdline_in(struct cmdline *cl, const char *buf, int size); 38 cmdline_get_rdline(struct cmdline *cl); 52 int cmdline_poll(struct cmdline *cl); 54 void cmdline_interact(struct cmdline *cl); 55 void cmdline_quit(struct cmdline *cl);
|
| H A D | cmdline.c | 22 struct cmdline *cl = rdl->opaque; in cmdline_valid_buffer() 38 struct cmdline *cl = rdl->opaque; in cmdline_complete_buffer() 46 struct cmdline *cl; in cmdline_write_char() 68 struct cmdline * 71 struct cmdline *cl; in cmdline_new() 77 cl = malloc(sizeof(struct cmdline)); in cmdline_new() 99 cmdline_get_rdline(struct cmdline *cl) in cmdline_get_rdline() 105 cmdline_free(struct cmdline *cl) in cmdline_free() 172 cmdline_quit(struct cmdline *cl) in cmdline_quit() 180 cmdline_poll(struct cmdline *cl) in cmdline_poll() [all …]
|
| H A D | cmdline_private.h | 72 struct cmdline { struct 88 void terminal_adjust(struct cmdline *cl); argument 91 void terminal_restore(const struct cmdline *cl); 94 int cmdline_poll_char(struct cmdline *cl); 97 ssize_t cmdline_read_char(struct cmdline *cl, char *c);
|
| H A D | cmdline_socket.c | 19 struct cmdline * 36 struct cmdline * 39 struct cmdline *cl; in cmdline_stdin_new() 50 cmdline_stdin_exit(struct cmdline *cl) in cmdline_stdin_exit()
|
| H A D | cmdline_parse.h | 74 struct cmdline; 133 void (*f)(void *, struct cmdline *, void *); 155 int cmdline_parse(struct cmdline *cl, const char *buf); 176 int cmdline_complete(struct cmdline *cl, const char *buf, int *state,
|
| H A D | cmdline_os_unix.c | 12 terminal_adjust(struct cmdline *cl) in terminal_adjust() 26 terminal_restore(const struct cmdline *cl) in terminal_restore() 32 cmdline_poll_char(struct cmdline *cl) in cmdline_poll_char() 44 cmdline_read_char(struct cmdline *cl, char *c) in cmdline_read_char()
|
| H A D | cmdline_socket.h | 17 struct cmdline *cmdline_file_new(cmdline_parse_ctx_t *ctx, const char *prompt, const char *path); 18 struct cmdline *cmdline_stdin_new(cmdline_parse_ctx_t *ctx, const char *prompt); 19 void cmdline_stdin_exit(struct cmdline *cl);
|
| H A D | cmdline_os_windows.c | 19 terminal_adjust(struct cmdline *cl) in terminal_adjust() 55 terminal_restore(const struct cmdline *cl) in terminal_restore() 93 cmdline_poll_char_file(struct cmdline *cl, HANDLE handle) in cmdline_poll_char_file() 135 cmdline_poll_char(struct cmdline *cl) in cmdline_poll_char() 144 cmdline_read_char(struct cmdline *cl, char *c) in cmdline_read_char()
|
| H A D | meson.build | 4 sources = files('cmdline.c', 16 headers = files('cmdline.h',
|
| /dpdk/app/test-cmdline/ |
| H A D | commands.c | 29 struct cmdline *cl, in cmd_quit_parsed() 60 struct cmdline *cl, in cmd_single_parsed() 91 struct cmdline *cl, in cmd_single_long_parsed() 124 struct cmdline *cl, in cmd_autocomplete_1_parsed() 157 struct cmdline *cl, in cmd_autocomplete_2_parsed() 188 struct cmdline *cl, in cmd_num_parsed() 220 struct cmdline *cl, in cmd_ambig_1_parsed() 256 struct cmdline *cl, in cmd_ambig_2_parsed() 294 struct cmdline *cl, in cmd_get_history_bufsize_parsed() 328 struct cmdline *cl, in cmd_clear_history_parsed()
|
| /dpdk/drivers/net/failsafe/ |
| H A D | failsafe_args.c | 95 RTE_ASSERT(cmdline != NULL || sdev->cmdline != NULL); in fs_execute_cmd() 96 if (sdev->cmdline == NULL) { in fs_execute_cmd() 99 len = strlen(cmdline) + 1; in fs_execute_cmd() 101 if (sdev->cmdline == NULL) { in fs_execute_cmd() 105 strlcpy(sdev->cmdline, cmdline, len); in fs_execute_cmd() 108 if (sdev->cmdline[i] == ',') in fs_execute_cmd() 109 sdev->cmdline[i] = ' '; in fs_execute_cmd() 111 DEBUG("'%s'", sdev->cmdline); in fs_execute_cmd() 450 free(sdev->cmdline); in failsafe_args_free() 451 sdev->cmdline = NULL; in failsafe_args_free() [all …]
|
| /dpdk/examples/ethtool/ethtool-app/ |
| H A D | ethapp.c | 139 struct cmdline *ctx, in pcmd_quit_callback() 148 __rte_unused struct cmdline *ctx, in pcmd_drvinfo_callback() 171 __rte_unused struct cmdline *ctx, in pcmd_link_callback() 201 __rte_unused struct cmdline *ctx, in pcmd_regs_callback() 247 __rte_unused struct cmdline *ctx, in pcmd_eeprom_callback() 306 __rte_unused struct cmdline *ctx, in pcmd_module_eeprom_callback() 354 __rte_unused struct cmdline *ctx, in pcmd_pause_callback() 404 __rte_unused struct cmdline *ctx, in pcmd_open_callback() 428 __rte_unused struct cmdline *ctx, in pcmd_stop_callback() 453 __rte_unused struct cmdline *ctx, in pcmd_rxmode_callback() [all …]
|
| /dpdk/examples/qos_sched/ |
| H A D | cmdline.c | 25 struct cmdline *cl, in cmd_help_parsed() 68 struct cmdline *cl, in cmd_quit_parsed() 95 __rte_unused struct cmdline *cl, in cmd_setqavg_parsed() 137 __rte_unused struct cmdline *cl, in cmd_appstats_parsed() 171 __rte_unused struct cmdline *cl, in cmd_subportstats_parsed() 222 __rte_unused struct cmdline *cl, in cmd_pipestats_parsed() 285 __rte_unused struct cmdline *cl, in cmd_avg_q_parsed() 362 __rte_unused struct cmdline *cl, in cmd_avg_tcpipe_parsed() 429 __rte_unused struct cmdline *cl, in cmd_avg_pipe_parsed() 488 __rte_unused struct cmdline *cl, in cmd_avg_tcsubport_parsed() [all …]
|
| /dpdk/app/test/ |
| H A D | commands.c | 59 __rte_unused struct cmdline *cl, in cmd_autotest_parsed() 112 __rte_unused struct cmdline *cl, in cmd_dump_parsed() 166 static void cmd_dump_one_parsed(void *parsed_result, struct cmdline *cl, in cmd_dump_one_parsed() 217 struct cmdline *cl, in cmd_quit_parsed() 244 static void cmd_set_rxtx_parsed(void *parsed_result, struct cmdline *cl, in cmd_set_rxtx_parsed() 280 struct cmdline *cl, in cmd_set_rxtx_anchor_parsed() 317 struct cmdline *cl, in cmd_set_rxtx_sc_parsed()
|
| H A D | test_cmdline_lib.c | 54 struct cmdline *cl; in test_cmdline_parse_fns() 156 struct cmdline *cl; in test_cmdline_socket_fns() 201 struct cmdline *cl; in test_cmdline_fns()
|
| /dpdk/examples/multi_process/hotplug_mp/ |
| H A D | commands.c | 20 struct cmdline *cl, in cmd_help_parsed() 50 struct cmdline *cl, in cmd_quit_parsed() 76 struct cmdline *cl, in cmd_list_parsed() 114 struct cmdline *cl, in cmd_dev_attach_parsed() 160 struct cmdline *cl, in cmd_dev_detach_parsed()
|
| /dpdk/examples/vm_power_manager/ |
| H A D | vm_power_cli.c | 30 struct cmdline *cl, in cmd_quit_parsed() 59 cmd_show_vm_parsed(void *parsed_result, struct cmdline *cl, in cmd_show_vm_parsed() 136 cmd_set_pcpu_parsed(void *parsed_result, struct cmdline *cl, in cmd_set_pcpu_parsed() 183 cmd_vm_op_parsed(void *parsed_result, struct cmdline *cl, in cmd_vm_op_parsed() 222 cmd_channels_op_parsed(void *parsed_result, struct cmdline *cl, in cmd_channels_op_parsed() 303 __rte_unused struct cmdline *cl, in cmd_set_query_parsed() 350 cmd_channels_status_op_parsed(void *parsed_result, struct cmdline *cl, in cmd_channels_status_op_parsed() 436 cmd_show_cpu_freq_parsed(void *parsed_result, struct cmdline *cl, in cmd_show_cpu_freq_parsed() 477 cmd_set_cpu_freq_parsed(void *parsed_result, struct cmdline *cl, in cmd_set_cpu_freq_parsed() 540 struct cmdline *cl; in run_cli()
|
| /dpdk/app/test-pmd/ |
| H A D | cmdline.c | 71 static struct cmdline *testpmd_cl; 1258 __rte_unused struct cmdline *cl, in cmd_operate_specific_port_parsed() 1545 __rte_unused struct cmdline *cl, in cmd_config_speed_all_parsed() 2846 __rte_unused struct cmdline *cl, in cmd_setup_rxtx_queue_parsed() 7832 struct cmdline *cl, in cmd_reset_parsed() 8448 __rte_unused struct cmdline *cl, in cmd_showqueue_parsed() 8885 struct cmdline *cl, in cmd_quit_parsed() 11172 __rte_unused struct cmdline *cl, in cmd_set_vf_vlan_anti_spoof_parsed() 11278 __rte_unused struct cmdline *cl, in cmd_set_vf_mac_anti_spoof_parsed() 11385 __rte_unused struct cmdline *cl, in cmd_set_vf_vlan_stripq_parsed() [all …]
|
| H A D | cmdline_mtr.c | 221 __rte_unused struct cmdline *cl, in cmd_show_port_meter_cap_parsed() 356 __rte_unused struct cmdline *cl, in cmd_add_port_meter_profile_srtcm_parsed() 469 __rte_unused struct cmdline *cl, in cmd_add_port_meter_profile_trtcm_parsed() 588 __rte_unused struct cmdline *cl, in cmd_add_port_meter_profile_trtcm_rfc4115_parsed() 674 __rte_unused struct cmdline *cl, in cmd_del_port_meter_profile_parsed() 771 __rte_unused struct cmdline *cl, in cmd_create_port_meter_parsed() 865 __rte_unused struct cmdline *cl, in cmd_enable_port_meter_parsed() 926 __rte_unused struct cmdline *cl, in cmd_disable_port_meter_parsed() 991 __rte_unused struct cmdline *cl, in cmd_del_port_meter_policy_parsed() 1052 __rte_unused struct cmdline *cl, in cmd_del_port_meter_parsed() [all …]
|
| /dpdk/doc/guides/sample_app_ug/ |
| H A D | cmd_line.rst | 55 $ ./<build_dir>/examples/dpdk-cmdline -l 0-3 -n 4 65 EAL Initialization and cmdline Start 71 .. literalinclude:: ../../../examples/cmdline/main.c 78 .. literalinclude:: ../../../examples/cmdline/main.c 87 Defining a cmdline Context 90 A cmdline context is a list of commands that are listed in a NULL-terminated table, for example: 92 .. literalinclude:: ../../../examples/cmdline/commands.c 116 .. literalinclude:: ../../../examples/cmdline/commands.c
|
| /dpdk/examples/multi_process/simple_mp/ |
| H A D | mp_commands.c | 42 __rte_unused struct cmdline *cl, in cmd_send_parsed() 80 struct cmdline *cl, in cmd_quit_parsed() 107 struct cmdline *cl, in cmd_help_parsed()
|
| /dpdk/examples/vm_power_manager/guest_cli/ |
| H A D | vm_power_cli_guest.c | 112 __rte_unused struct cmdline *cl, in cmd_quit_parsed() 177 __rte_unused struct cmdline *cl, in cmd_query_freq_list_parsed() 287 __rte_unused struct cmdline *cl, in cmd_query_caps_list_parsed() 409 cmd_set_cpu_freq_parsed(void *parsed_result, struct cmdline *cl, in cmd_set_cpu_freq_parsed() 472 send_policy(struct rte_power_channel_packet *pkt, struct cmdline *cl) in send_policy() 495 cmd_send_policy_parsed(void *parsed_result, struct cmdline *cl, in cmd_send_policy_parsed() 540 struct cmdline *cl; in run_cli()
|
| /dpdk/examples/ipsec-secgw/ |
| H A D | parser.c | 195 __rte_unused struct cmdline *cl, void *data) in cfg_sp_add_cfg_item_parsed() 250 __rte_unused struct cmdline *cl, void *data) in cfg_sa_add_cfg_item_parsed() 290 __rte_unused struct cmdline *cl, void *data) in cfg_rt_add_cfg_item_parsed() 333 __rte_unused struct cmdline *cl, void *data) in cfg_flow_add_cfg_item_parsed() 377 cfg_parse_neigh(void *parsed_result, __rte_unused struct cmdline *cl, in cfg_parse_neigh() 430 struct cmdline *cl = cmdline_stdin_new(ipsec_ctx, ""); in parse_cfg_file()
|
| /dpdk/examples/vdpa/ |
| H A D | main.c | 253 struct cmdline *cl, in cmd_help_parsed() 289 struct cmdline *cl, in cmd_list_vdpa_devices_parsed() 341 struct cmdline *cl, in cmd_create_vdpa_port_parsed() 387 static void cmd_device_stats_parsed(void *parsed_result, struct cmdline *cl, in cmd_device_stats_parsed() 494 struct cmdline *cl, in cmd_quit_parsed() 527 struct cmdline *cl; in main()
|
| /dpdk/examples/cmdline/ |
| H A D | commands.c | 67 struct cmdline *cl, in cmd_obj_del_show_parsed() 120 struct cmdline *cl, in cmd_obj_add_parsed() 181 struct cmdline *cl, in cmd_help_parsed()
|