Home
last modified time | relevance | path

Searched refs:cl (Results 1 – 25 of 37) sorted by relevance

12

/dpdk/lib/cmdline/
H A Dcmdline.c65 strlcpy(cl->prompt, prompt, sizeof(cl->prompt)); in cmdline_set_prompt()
88 free(cl); in cmdline_new()
93 rdline_newline(&cl->rdl, cl->prompt); in cmdline_new()
95 return cl; in cmdline_new()
109 if (!cl) in cmdline_free()
114 if (cl->s_out != cl->s_in && cl->s_out > 2) in cmdline_free()
116 free(cl); in cmdline_free()
161 rdline_newline(&cl->rdl, cl->prompt); in cmdline_in()
174 if (!cl) in cmdline_quit()
186 if (!cl) in cmdline_poll()
[all …]
H A Dcmdline_os_windows.c19 terminal_adjust(struct cmdline *cl) in terminal_adjust() argument
24 ZeroMemory(&cl->oldterm, sizeof(cl->oldterm)); in terminal_adjust()
29 cl->oldterm.is_console_input = 1; in terminal_adjust()
30 cl->oldterm.input_mode = mode; in terminal_adjust()
46 cl->oldterm.output_mode = mode; in terminal_adjust()
122 cl->repeat_count = 1; in cmdline_poll_char_file()
123 cl->repeated_char = c; in cmdline_poll_char_file()
155 if (cl->repeat_count > 0) { in cmdline_read_char()
156 *c = cl->repeated_char; in cmdline_read_char()
157 cl->repeat_count--; in cmdline_read_char()
[all …]
H A Dcmdline_socket.c39 struct cmdline *cl; in cmdline_stdin_new() local
41 cl = cmdline_new(ctx, prompt, 0, 1); in cmdline_stdin_new()
43 if (cl != NULL) in cmdline_stdin_new()
44 terminal_adjust(cl); in cmdline_stdin_new()
46 return cl; in cmdline_stdin_new()
50 cmdline_stdin_exit(struct cmdline *cl) in cmdline_stdin_exit() argument
52 if (cl == NULL) in cmdline_stdin_exit()
55 terminal_restore(cl); in cmdline_stdin_exit()
56 cmdline_free(cl); in cmdline_stdin_exit()
H A Dcmdline_os_unix.c12 terminal_adjust(struct cmdline *cl) in terminal_adjust() argument
16 tcgetattr(0, &cl->oldterm); in terminal_adjust()
18 memcpy(&term, &cl->oldterm, sizeof(term)); in terminal_adjust()
26 terminal_restore(const struct cmdline *cl) in terminal_restore() argument
28 tcsetattr(fileno(stdin), TCSANOW, &cl->oldterm); in terminal_restore()
32 cmdline_poll_char(struct cmdline *cl) in cmdline_poll_char() argument
36 pfd.fd = cl->s_in; in cmdline_poll_char()
44 cmdline_read_char(struct cmdline *cl, char *c) in cmdline_read_char() argument
46 return read(cl->s_in, c, 1); in cmdline_read_char()
H A Dcmdline.h29 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 Dcmdline_private.h88 void terminal_adjust(struct cmdline *cl);
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);
/dpdk/app/test/
H A Dtest_cmdline_lib.c60 if (cl == NULL) { in test_cmdline_parse_fns()
79 cmdline_free(cl); in test_cmdline_parse_fns()
159 if (cl != NULL) in test_cmdline_socket_fns()
162 if (cl != NULL) in test_cmdline_socket_fns()
165 if (cl != NULL) in test_cmdline_socket_fns()
168 if (cl != NULL) in test_cmdline_socket_fns()
171 if (cl != NULL) in test_cmdline_socket_fns()
185 cl = NULL; in test_cmdline_socket_fns()
205 if (cl != NULL) in test_cmdline_fns()
208 if (cl != NULL) in test_cmdline_fns()
[all …]
H A Dcommands.c59 __rte_unused struct cmdline *cl, in cmd_autotest_parsed() argument
112 __rte_unused struct cmdline *cl, in cmd_dump_parsed() argument
175 cmdline_printf(cl, "Cannot find ring\n"); in cmd_dump_one_parsed()
184 cmdline_printf(cl, "Cannot find mempool\n"); in cmd_dump_one_parsed()
217 struct cmdline *cl, in cmd_quit_parsed() argument
220 cmdline_quit(cl); in cmd_quit_parsed()
249 cmdline_printf(cl, "Cannot find such mode\n"); in cmd_set_rxtx_parsed()
280 struct cmdline *cl, in cmd_set_rxtx_anchor_parsed() argument
285 cmdline_printf(cl, "Cannot find such anchor\n"); in cmd_set_rxtx_anchor_parsed()
317 struct cmdline *cl, in cmd_set_rxtx_sc_parsed() argument
[all …]
H A Dtest.c110 struct cmdline *cl; in main() local
209 cl = cmdline_new(main_ctx, "RTE>>", 0, 1); in main()
210 if (cl == NULL) { in main()
217 if (cmdline_in(cl, buf, strlen(buf)) < 0) { in main()
227 cmdline_free(cl); in main()
231 cl = cmdline_stdin_new(main_ctx, "RTE>>"); in main()
232 if (cl == NULL) { in main()
237 cmdline_interact(cl); in main()
238 cmdline_stdin_exit(cl); in main()
/dpdk/examples/vm_power_manager/
H A Dvm_power_cli.c30 struct cmdline *cl, in cmd_quit_parsed() argument
36 cmdline_quit(cl); in cmd_quit_parsed()
70 cmdline_printf(cl, "ACTIVE\n"); in cmd_show_vm_parsed()
72 cmdline_printf(cl, "INACTIVE\n"); in cmd_show_vm_parsed()
85 cmdline_printf(cl, "DISABLED\n"); in cmd_show_vm_parsed()
91 cmdline_printf(cl, "UNKNOWN\n"); in cmd_show_vm_parsed()
303 __rte_unused struct cmdline *cl, in cmd_set_query_parsed() argument
540 struct cmdline *cl; in run_cli() local
543 if (cl == NULL) in run_cli()
546 cmdline_interact(cl); in run_cli()
[all …]
/dpdk/app/test-cmdline/
H A Dcommands.c29 struct cmdline *cl, in cmd_quit_parsed() argument
32 cmdline_quit(cl); in cmd_quit_parsed()
60 struct cmdline *cl, in cmd_single_parsed() argument
91 struct cmdline *cl, in cmd_single_long_parsed() argument
124 struct cmdline *cl, in cmd_autocomplete_1_parsed() argument
157 struct cmdline *cl, in cmd_autocomplete_2_parsed() argument
188 struct cmdline *cl, in cmd_num_parsed() argument
220 struct cmdline *cl, in cmd_ambig_1_parsed() argument
256 struct cmdline *cl, in cmd_ambig_2_parsed() argument
294 struct cmdline *cl, in cmd_get_history_bufsize_parsed() argument
[all …]
H A Dcmdline_test.c27 struct cmdline *cl; in main() local
29 cl = cmdline_stdin_new(main_ctx, "CMDLINE_TEST>>"); in main()
30 if (cl == NULL) { in main()
33 cmdline_interact(cl); in main()
34 cmdline_stdin_exit(cl); in main()
/dpdk/examples/vm_power_manager/guest_cli/
H A Dvm_power_cli_guest.c112 __rte_unused struct cmdline *cl, in cmd_quit_parsed() argument
120 cmdline_quit(cl); in cmd_quit_parsed()
177 __rte_unused struct cmdline *cl, in cmd_query_freq_list_parsed() argument
198 cmdline_printf(cl, "Enabled core not found.\n"); in cmd_query_freq_list_parsed()
287 __rte_unused struct cmdline *cl, in cmd_query_caps_list_parsed() argument
308 cmdline_printf(cl, "Enabled core not found.\n"); in cmd_query_caps_list_parsed()
503 ret = send_policy(&policy, cl); in cmd_send_policy_parsed()
540 struct cmdline *cl; in run_cli() local
543 if (cl == NULL) in run_cli()
546 cmdline_interact(cl); in run_cli()
[all …]
/dpdk/examples/multi_process/hotplug_mp/
H A Dcommands.c20 struct cmdline *cl, in cmd_help_parsed() argument
23 cmdline_printf(cl, in cmd_help_parsed()
50 struct cmdline *cl, in cmd_quit_parsed() argument
53 cmdline_quit(cl); in cmd_quit_parsed()
76 struct cmdline *cl, in cmd_list_parsed() argument
82 cmdline_printf(cl, "list all etherdev\n"); in cmd_list_parsed()
114 struct cmdline *cl, in cmd_dev_attach_parsed() argument
123 cmdline_printf(cl, "cannot parse devargs\n"); in cmd_dev_attach_parsed()
160 struct cmdline *cl, in cmd_dev_detach_parsed() argument
169 cmdline_printf(cl, "cannot parse devargs\n"); in cmd_dev_detach_parsed()
[all …]
H A Dmain.c26 struct cmdline *cl; in main() local
32 cl = cmdline_stdin_new(main_ctx, "example> "); in main()
33 if (cl == NULL) in main()
35 cmdline_interact(cl); in main()
36 cmdline_stdin_exit(cl); in main()
/dpdk/examples/bond/
H A Dmain.c506 cmdline_printf(cl, in cmd_obj_send_parsed()
597 cmdline_printf(cl, in cmd_start_parsed()
630 cmdline_printf(cl, in cmd_help_parsed()
664 cmdline_printf(cl, in cmd_stop_parsed()
672 cmdline_printf(cl, in cmd_stop_parsed()
676 cmdline_printf(cl, in cmd_stop_parsed()
705 cmdline_printf(cl, in cmd_quit_parsed()
709 cmdline_quit(cl); in cmd_quit_parsed()
722 cmdline_quit(cl); in cmd_quit_parsed()
766 cmdline_printf(cl, in cmd_show_parsed()
[all …]
/dpdk/examples/cmdline/
H A Dmain.c28 struct cmdline *cl; in main() local
36 cl = cmdline_stdin_new(main_ctx, "example> "); in main()
37 if (cl == NULL) in main()
39 cmdline_interact(cl); in main()
40 cmdline_stdin_exit(cl); in main()
H A Dcommands.c67 struct cmdline *cl, in cmd_obj_del_show_parsed() argument
82 cmdline_printf(cl, "Object %s removed, ip=%s\n", in cmd_obj_del_show_parsed()
87 cmdline_printf(cl, "Object %s, ip=%s\n", in cmd_obj_del_show_parsed()
120 struct cmdline *cl, in cmd_obj_add_parsed() argument
129 cmdline_printf(cl, "Object %s already exist\n", res->name); in cmd_obj_add_parsed()
137 cmdline_printf(cl, "mem error\n"); in cmd_obj_add_parsed()
151 cmdline_printf(cl, "Object %s added, ip=%s\n", in cmd_obj_add_parsed()
181 struct cmdline *cl, in cmd_help_parsed() argument
184 cmdline_printf(cl, in cmd_help_parsed()
/dpdk/examples/vdpa/
H A Dmain.c253 struct cmdline *cl, in cmd_help_parsed() argument
257 cl, in cmd_help_parsed()
289 struct cmdline *cl, in cmd_list_vdpa_devices_parsed() argument
341 struct cmdline *cl, in cmd_create_vdpa_port_parsed() argument
494 struct cmdline *cl, in cmd_quit_parsed() argument
498 cmdline_quit(cl); in cmd_quit_parsed()
527 struct cmdline *cl; in main() local
546 cl = cmdline_stdin_new(main_ctx, "vdpa> "); in main()
547 if (cl == NULL) in main()
549 cmdline_interact(cl); in main()
[all …]
/dpdk/examples/qos_sched/
H A Dcmdline.c25 struct cmdline *cl, in cmd_help_parsed() argument
29 cl, in cmd_help_parsed()
68 struct cmdline *cl, in cmd_quit_parsed() argument
71 cmdline_quit(cl); in cmd_quit_parsed()
95 __rte_unused struct cmdline *cl, in cmd_setqavg_parsed() argument
137 __rte_unused struct cmdline *cl, in cmd_appstats_parsed() argument
606 struct cmdline *cl; in prompt() local
608 cl = cmdline_stdin_new(main_ctx, "qos_sched> "); in prompt()
609 if (cl == NULL) { in prompt()
612 cmdline_interact(cl); in prompt()
[all …]
/dpdk/examples/multi_process/simple_mp/
H A Dmp_commands.c42 __rte_unused struct cmdline *cl, in cmd_send_parsed() argument
80 struct cmdline *cl, in cmd_quit_parsed() argument
84 cmdline_quit(cl); in cmd_quit_parsed()
107 struct cmdline *cl, in cmd_help_parsed() argument
110 cmdline_printf(cl, "Simple demo example of multi-process in RTE\n\n" in cmd_help_parsed()
H A Dmain.c118 struct cmdline *cl = cmdline_stdin_new(simple_mp_ctx, "\nsimple_mp > "); in main() local
119 if (cl == NULL) in main()
121 cmdline_interact(cl); in main()
122 cmdline_stdin_exit(cl); in main()
/dpdk/drivers/bus/fslmc/qbman/
H A Dqbman_portal.c1511 const uint32_t *cl; in qbman_swp_enqueue_multiple_desc_direct() local
1536 cl = qb_cl(&d[i]); in qbman_swp_enqueue_multiple_desc_direct()
1549 cl = qb_cl(&d[i]); in qbman_swp_enqueue_multiple_desc_direct()
1576 const uint32_t *cl; in qbman_swp_enqueue_multiple_desc_cinh_read_direct() local
1601 cl = qb_cl(&d[i]); in qbman_swp_enqueue_multiple_desc_cinh_read_direct()
1614 cl = qb_cl(&d[i]); in qbman_swp_enqueue_multiple_desc_cinh_read_direct()
1641 const uint32_t *cl; in qbman_swp_enqueue_multiple_desc_cinh_direct() local
1665 cl = qb_cl(&d[i]); in qbman_swp_enqueue_multiple_desc_cinh_direct()
1678 cl = qb_cl(&d[i]); in qbman_swp_enqueue_multiple_desc_cinh_direct()
1696 const uint32_t *cl; in qbman_swp_enqueue_multiple_desc_mem_back() local
[all …]
/dpdk/examples/ipsec-secgw/
H A Dparser.c195 __rte_unused struct cmdline *cl, void *data) in cfg_sp_add_cfg_item_parsed() argument
250 __rte_unused struct cmdline *cl, void *data) in cfg_sa_add_cfg_item_parsed() argument
290 __rte_unused struct cmdline *cl, void *data) in cfg_rt_add_cfg_item_parsed() argument
333 __rte_unused struct cmdline *cl, void *data) in cfg_flow_add_cfg_item_parsed() argument
377 cfg_parse_neigh(void *parsed_result, __rte_unused struct cmdline *cl, in cfg_parse_neigh() argument
430 struct cmdline *cl = cmdline_stdin_new(ipsec_ctx, ""); in parse_cfg_file() local
441 if (cl == NULL) { in parse_cfg_file()
510 if (cmdline_parse(cl, str) < 0) { in parse_cfg_file()
525 cmdline_stdin_exit(cl); in parse_cfg_file()
535 if (cl) in parse_cfg_file()
[all …]
/dpdk/app/test-pmd/
H A Dcmdline.c85 cl, in cmd_help_brief_parsed()
134 cl, in cmd_help_long_parsed()
158 cl, in cmd_help_long_parsed()
272 cl, in cmd_help_long_parsed()
756 cl, in cmd_help_long_parsed()
920 cl, in cmd_help_long_parsed()
948 cl, in cmd_help_long_parsed()
1070 cl, in cmd_help_long_parsed()
1171 cl, in cmd_help_long_parsed()
8888 cmdline_quit(cl); in cmd_quit_parsed()
[all …]

12