Home
last modified time | relevance | path

Searched refs:argc (Results 1 – 25 of 284) sorted by relevance

12345678910>>...12

/Zephyr-latest/modules/hostap/src/
Dwpa_cli.c21 size_t argc, in cmd_wpa_cli() argument
26 if (argc == 1) { in cmd_wpa_cli()
31 argv[argc] = "interactive"; in cmd_wpa_cli()
32 argc++; in cmd_wpa_cli()
35 return zephyr_wpa_ctrl_zephyr_cmd(argc - 1, &argv[1]); in cmd_wpa_cli()
39 static int cmd_hostapd_cli(const struct shell *sh, size_t argc, const char *argv[]) in cmd_hostapd_cli() argument
43 if (argc == 1) { in cmd_hostapd_cli()
48 argv[argc] = "interactive"; in cmd_hostapd_cli()
49 argc++; in cmd_hostapd_cli()
52 return zephyr_hostapd_ctrl_zephyr_cmd(argc - 1, &argv[1]); in cmd_hostapd_cli()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dmpl.c33 int cmd_mpl_test_set_media_state(const struct shell *sh, size_t argc, in cmd_mpl_test_set_media_state() argument
58 int cmd_mpl_test_unset_parent_group(const struct shell *sh, size_t argc, in cmd_mpl_test_unset_parent_group() argument
69 int cmd_mpl_debug_dump_state(const struct shell *sh, size_t argc, in cmd_mpl_debug_dump_state() argument
78 int cmd_media_proxy_pl_init(const struct shell *sh, size_t argc, char *argv[]) in cmd_media_proxy_pl_init() argument
93 int cmd_mpl_test_player_name_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_player_name_cb() argument
101 int cmd_mpl_test_player_icon_url_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_player_icon_url_cb() argument
109 int cmd_mpl_test_track_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_track_changed_cb() argument
116 int cmd_mpl_test_title_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_title_changed_cb() argument
123 int cmd_mpl_test_duration_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_duration_changed_cb() argument
130 int cmd_mpl_test_position_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_position_changed_cb() argument
[all …]
Dtbs_client.c31 static int cmd_tbs_client_discover(const struct shell *sh, size_t argc, in cmd_tbs_client_discover() argument
46 size_t argc, in cmd_tbs_client_set_signal_strength_interval() argument
56 if (argc > 2) { in cmd_tbs_client_set_signal_strength_interval()
80 interval = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_set_signal_strength_interval()
105 static int cmd_tbs_client_hold(const struct shell *sh, size_t argc, in cmd_tbs_client_hold() argument
112 if (argc > 2) { in cmd_tbs_client_hold()
136 call_index = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_hold()
159 static int cmd_tbs_client_retrieve(const struct shell *sh, size_t argc, in cmd_tbs_client_retrieve() argument
166 if (argc > 2) { in cmd_tbs_client_retrieve()
190 call_index = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_retrieve()
[all …]
Dtbs.c48 static int cmd_tbs_authorize(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_authorize() argument
62 static int cmd_tbs_init(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_init() argument
123 static int cmd_tbs_accept(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_accept() argument
152 static int cmd_tbs_terminate(const struct shell *sh, size_t argc, in cmd_tbs_terminate() argument
182 static int cmd_tbs_hold(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_hold() argument
211 static int cmd_tbs_retrieve(const struct shell *sh, size_t argc, in cmd_tbs_retrieve() argument
241 static int cmd_tbs_originate(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_originate() argument
247 if (argc > 2) { in cmd_tbs_originate()
266 result = bt_tbs_originate((uint8_t)service_index, argv[argc - 1], in cmd_tbs_originate()
277 static int cmd_tbs_join(const struct shell *sh, size_t argc, char *argv[]) in cmd_tbs_join() argument
[all …]
/Zephyr-latest/scripts/native_simulator/native/src/
Dnsi_cmdline.c115 void nsi_handle_cmd_line(int argc, char *argv[]) in nsi_handle_cmd_line() argument
122 s_argc = argc; in nsi_handle_cmd_line()
133 for (i = 1; i < argc; i++) { in nsi_handle_cmd_line()
136 test_argc = argc - i - 1; in nsi_handle_cmd_line()
148 void nsi_register_extra_args(int argc, char *argv[]) in nsi_register_extra_args() argument
150 int new_size = extra_argc + argc; in nsi_register_extra_args()
153 for (int i = 0; i < argc; i++) { in nsi_register_extra_args()
154 memcpy(&extra_argv[extra_argc], argv, argc*sizeof(char *)); in nsi_register_extra_args()
156 extra_argc += argc; in nsi_register_extra_args()
170 void nsi_get_cmd_line_args(int *argc, char ***argv) in nsi_get_cmd_line_args() argument
[all …]
/Zephyr-latest/subsys/shell/
Dshell_cmds.c203 static int cmd_comment(const struct shell *sh, size_t argc, char **argv) in cmd_comment() argument
206 ARG_UNUSED(argc); in cmd_comment()
212 static int cmd_clear(const struct shell *sh, size_t argc, char **argv) in cmd_clear() argument
222 static int cmd_backends(const struct shell *sh, size_t argc, char **argv) in cmd_backends() argument
224 ARG_UNUSED(argc); in cmd_backends()
237 static int cmd_bacskpace_mode_backspace(const struct shell *sh, size_t argc, in cmd_bacskpace_mode_backspace() argument
240 ARG_UNUSED(argc); in cmd_bacskpace_mode_backspace()
248 static int cmd_bacskpace_mode_delete(const struct shell *sh, size_t argc, in cmd_bacskpace_mode_delete() argument
251 ARG_UNUSED(argc); in cmd_bacskpace_mode_delete()
259 static int cmd_colors_off(const struct shell *sh, size_t argc, char **argv) in cmd_colors_off() argument
[all …]
/Zephyr-latest/subsys/mgmt/hawkbit/
Dshell.c20 static void cmd_run(const struct shell *sh, size_t argc, char **argv) in cmd_run() argument
22 ARG_UNUSED(argc); in cmd_run()
67 static int cmd_info(const struct shell *sh, size_t argc, char *argv) in cmd_info() argument
69 ARG_UNUSED(argc); in cmd_info()
91 static int cmd_init(const struct shell *sh, size_t argc, char *argv) in cmd_init() argument
93 ARG_UNUSED(argc); in cmd_init()
103 static int cmd_reset(const struct shell *sh, size_t argc, char *argv) in cmd_reset() argument
105 ARG_UNUSED(argc); in cmd_reset()
117 static int cmd_set_addr(const struct shell *sh, size_t argc, char **argv) in cmd_set_addr() argument
119 if (argc < 2) { in cmd_set_addr()
[all …]
/Zephyr-latest/samples/subsys/shell/shell_module/src/
Dmain.c36 static int cmd_log_test_start(const struct shell *sh, size_t argc, in cmd_log_test_start() argument
47 static int cmd_log_test_start_demo(const struct shell *sh, size_t argc, in cmd_log_test_start_demo() argument
50 return cmd_log_test_start(sh, argc, argv, 200); in cmd_log_test_start_demo()
53 static int cmd_log_test_start_flood(const struct shell *sh, size_t argc, in cmd_log_test_start_flood() argument
56 return cmd_log_test_start(sh, argc, argv, 10); in cmd_log_test_start_flood()
59 static int cmd_log_test_stop(const struct shell *sh, size_t argc, in cmd_log_test_stop() argument
62 ARG_UNUSED(argc); in cmd_log_test_stop()
88 static int cmd_demo_ping(const struct shell *sh, size_t argc, char **argv) in cmd_demo_ping() argument
90 ARG_UNUSED(argc); in cmd_demo_ping()
98 static int cmd_demo_board(const struct shell *sh, size_t argc, char **argv) in cmd_demo_board() argument
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/shell/
Dll.h16 int cmd_ll_addr_read(const struct shell *sh, size_t argc, char *argv[]);
18 int cmd_advx(const struct shell *sh, size_t argc, char *argv[]);
19 int cmd_scanx(const struct shell *sh, size_t argc, char *argv[]);
21 int cmd_test_tx(const struct shell *sh, size_t argc, char *argv[]);
22 int cmd_test_rx(const struct shell *sh, size_t argc, char *argv[]);
23 int cmd_test_end(const struct shell *sh, size_t argc, char *argv[]);
Dll.c27 int cmd_ll_addr_read(const struct shell *sh, size_t argc, char *argv[]) in cmd_ll_addr_read() argument
34 if (argc < 2) { in cmd_ll_addr_read()
58 int cmd_test_tx(const struct shell *sh, size_t argc, char *argv[]) in cmd_test_tx() argument
63 if (argc < 5) { in cmd_test_tx()
84 int cmd_test_rx(const struct shell *sh, size_t argc, char *argv[]) in cmd_test_rx() argument
89 if (argc < 4) { in cmd_test_rx()
109 int cmd_test_end(const struct shell *sh, size_t argc, char *argv[]) in cmd_test_end() argument
147 int cmd_advx(const struct shell *sh, size_t argc, char *argv[]) in cmd_advx() argument
158 if (argc < 2) { in cmd_advx()
162 if (argc > 1) { in cmd_advx()
[all …]
/Zephyr-latest/subsys/logging/
Dlog_cmds.c19 size_t argc,
74 size_t argc, in shell_backend_cmd_execute() argument
86 func(sh, NULL, argc, argv); in shell_backend_cmd_execute()
93 func(sh, backend, argc, argv); in shell_backend_cmd_execute()
105 size_t argc, char **argv) in log_status() argument
139 size_t argc, char **argv) in cmd_log_self_status() argument
145 return log_status(sh, sh->log_backend ? sh->log_backend->backend : NULL, argc, argv); in cmd_log_self_status()
149 size_t argc, char **argv) in cmd_log_backend_status() argument
151 shell_backend_cmd_execute(sh, argc, argv, log_status); in cmd_log_backend_status()
173 size_t argc, char **argv, uint32_t level) in filters_set() argument
[all …]
/Zephyr-latest/tests/subsys/shell/shell/src/
Dtest_module.c8 static int cmd2_handler(const struct shell *sh, size_t argc, char **argv) in cmd2_handler() argument
11 ARG_UNUSED(argc); in cmd2_handler()
19 static int sub_cmd1_handler(const struct shell *sh, size_t argc, char **argv) in sub_cmd1_handler() argument
22 ARG_UNUSED(argc); in sub_cmd1_handler()
31 static int sub_cmd2_handler(const struct shell *sh, size_t argc, char **argv) in sub_cmd2_handler() argument
34 ARG_UNUSED(argc); in sub_cmd2_handler()
/Zephyr-latest/subsys/net/lib/shell/
Dcm.c112 static int parse_ifi_target(const struct shell *sh, size_t argc, char *argv[], int *argidx, in parse_ifi_target() argument
120 if (*argidx >= argc) { in parse_ifi_target()
150 static int parse_if_target(const struct shell *sh, size_t argc, char *argv[], int *argidx, in parse_if_target() argument
156 if (*argidx >= argc) { in parse_if_target()
184 static int parse_target(const struct shell *sh, size_t argc, char *argv[], int *argidx, in parse_target() argument
190 if (*argidx >= argc) { in parse_target()
212 return parse_ifi_target(sh, argc, argv, argidx, target); in parse_target()
218 return parse_if_target(sh, argc, argv, argidx, target); in parse_target()
223 return parse_ifi_target(sh, argc, argv, argidx, target); in parse_target()
233 static int parse_getset(const struct shell *sh, size_t argc, char *argv[], int *argidx, in parse_getset() argument
[all …]
/Zephyr-latest/samples/arch/mpu/mpu_test/src/
Dmain.c37 static int cmd_read(const struct shell *sh, size_t argc, char *argv[]) in cmd_read() argument
39 ARG_UNUSED(argc); in cmd_read()
51 static int cmd_write_mcux(const struct shell *sh, size_t argc, char *argv[]) in cmd_write_mcux() argument
53 ARG_UNUSED(argc); in cmd_write_mcux()
76 static int cmd_write_stm32(const struct shell *sh, size_t argc, char *argv[]) in cmd_write_stm32() argument
78 ARG_UNUSED(argc); in cmd_write_stm32()
95 static int cmd_write(const struct shell *sh, size_t argc, char *argv[]) in cmd_write() argument
97 ARG_UNUSED(argc); in cmd_write()
112 static int cmd_run(const struct shell *sh, size_t argc, char *argv[]) in cmd_run() argument
114 ARG_UNUSED(argc); in cmd_run()
[all …]
/Zephyr-latest/subsys/settings/src/
Dsettings_shell.c41 static int cmd_list(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_list() argument
47 .subtree = (argc == 2 ? argv[1] : NULL) in cmd_list()
131 static int cmd_read(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_read() argument
137 if (argc > 2) { in cmd_read()
151 err = settings_load_subtree_direct(argv[argc - 1], settings_read_callback, &params); in cmd_read()
163 static int cmd_write(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_write() argument
170 if (argc > 3) { in cmd_write()
180 buffer_len = hex2bin(argv[argc - 1], strlen(argv[argc - 1]), in cmd_write()
184 buffer_len = strlen(argv[argc - 1]) + 1; in cmd_write()
186 shell_error(shell_ptr, "%s is bigger than shell's buffer", argv[argc - 1]); in cmd_write()
[all …]
/Zephyr-latest/boards/native/native_posix/
Dcmdline.c114 void native_handle_cmd_line(int argc, char *argv[]) in native_handle_cmd_line() argument
122 s_argc = argc; in native_handle_cmd_line()
126 for (i = 1; i < argc; i++) { in native_handle_cmd_line()
129 test_argc = argc - i - 1; in native_handle_cmd_line()
145 void native_get_cmd_line_args(int *argc, char ***argv) in native_get_cmd_line_args() argument
147 *argc = s_argc; in native_get_cmd_line_args()
155 void native_get_test_cmd_line_args(int *argc, char ***argv) in native_get_test_cmd_line_args() argument
157 *argc = test_argc; in native_get_test_cmd_line_args()
/Zephyr-latest/drivers/gnss/
Dgnss_nmea0183_match.c17 static int gnss_nmea0183_match_parse_utc(char **argv, uint16_t argc, uint32_t *utc) in gnss_nmea0183_match_parse_utc() argument
50 void gnss_nmea0183_match_gga_callback(struct modem_chat *chat, char **argv, uint16_t argc, in gnss_nmea0183_match_gga_callback() argument
55 if (gnss_nmea0183_parse_gga((const char **)argv, argc, &data->data) < 0) { in gnss_nmea0183_match_gga_callback()
59 if (gnss_nmea0183_match_parse_utc(argv, argc, &data->gga_utc) < 0) { in gnss_nmea0183_match_gga_callback()
66 void gnss_nmea0183_match_rmc_callback(struct modem_chat *chat, char **argv, uint16_t argc, in gnss_nmea0183_match_rmc_callback() argument
71 if (gnss_nmea0183_parse_rmc((const char **)argv, argc, &data->data) < 0) { in gnss_nmea0183_match_rmc_callback()
75 if (gnss_nmea0183_match_parse_utc(argv, argc, &data->rmc_utc) < 0) { in gnss_nmea0183_match_rmc_callback()
83 void gnss_nmea0183_match_gsv_callback(struct modem_chat *chat, char **argv, uint16_t argc, in gnss_nmea0183_match_gsv_callback() argument
90 if (gnss_nmea0183_parse_gsv_header((const char **)argv, argc, &header) < 0) { in gnss_nmea0183_match_gsv_callback()
105 ret = gnss_nmea0183_parse_gsv_svs((const char **)argv, argc, in gnss_nmea0183_match_gsv_callback()
/Zephyr-latest/boards/native/native_sim/
Dcmdline.c19 void native_get_cmd_line_args(int *argc, char ***argv) in native_get_cmd_line_args() argument
21 nsi_get_cmd_line_args(argc, argv); in native_get_cmd_line_args()
24 void native_get_test_cmd_line_args(int *argc, char ***argv) in native_get_test_cmd_line_args() argument
26 nsi_get_test_cmd_line_args(argc, argv); in native_get_test_cmd_line_args()
/Zephyr-latest/lib/posix/shell/
Denv.c19 static int cmd_env_get(const struct shell *sh, size_t argc, char **argv) in cmd_env_get() argument
24 switch (argc) { in cmd_env_get()
78 static int cmd_env_set(const struct shell *sh, size_t argc, char **argv) in cmd_env_set() argument
84 switch (argc) { in cmd_env_set()
115 static int cmd_env_unset(const struct shell *sh, size_t argc, char **argv) in cmd_env_unset() argument
117 for (--argc, ++argv; argc > 0; --argc, ++argv) { in cmd_env_unset()
/Zephyr-latest/subsys/fb/
Dcfb_shell.c31 static int cmd_clear(const struct shell *sh, size_t argc, char *argv[]) in cmd_clear() argument
35 ARG_UNUSED(argc); in cmd_clear()
85 static int cmd_print(const struct shell *sh, size_t argc, char *argv[]) in cmd_print() argument
111 static int cmd_draw_text(const struct shell *sh, size_t argc, char *argv[]) in cmd_draw_text() argument
129 static int cmd_draw_point(const struct shell *sh, size_t argc, char *argv[]) in cmd_draw_point() argument
148 static int cmd_draw_line(const struct shell *sh, size_t argc, char *argv[]) in cmd_draw_line() argument
169 static int cmd_draw_rect(const struct shell *sh, size_t argc, char *argv[]) in cmd_draw_rect() argument
190 static int cmd_scroll_vert(const struct shell *sh, size_t argc, char *argv[]) in cmd_scroll_vert() argument
226 static int cmd_scroll_horz(const struct shell *sh, size_t argc, char *argv[]) in cmd_scroll_horz() argument
263 static int cmd_set_font(const struct shell *sh, size_t argc, char *argv[]) in cmd_set_font() argument
[all …]
/Zephyr-latest/subsys/task_wdt/
Dtask_wdt_shell.c12 static int cmd_init(const struct shell *sh, size_t argc, char *argv) in cmd_init() argument
14 ARG_UNUSED(argc); in cmd_init()
35 static int cmd_add(const struct shell *sh, size_t argc, char **argv) in cmd_add() argument
37 if (argc != 2) { in cmd_add()
63 static int cmd_feed(const struct shell *sh, size_t argc, char **argv) in cmd_feed() argument
65 if (argc != 2) { in cmd_feed()
82 static int cmd_del(const struct shell *sh, size_t argc, char **argv) in cmd_del() argument
84 if (argc != 2) { in cmd_del()
/Zephyr-latest/drivers/regulator/
Dregulator_shell.c85 static int cmd_enable(const struct shell *sh, size_t argc, char **argv) in cmd_enable() argument
90 ARG_UNUSED(argc); in cmd_enable()
107 static int cmd_disable(const struct shell *sh, size_t argc, char **argv) in cmd_disable() argument
112 ARG_UNUSED(argc); in cmd_disable()
129 static int cmd_is_enabled(const struct shell *sh, size_t argc, char **argv) in cmd_is_enabled() argument
133 ARG_UNUSED(argc); in cmd_is_enabled()
150 static int cmd_vlist(const struct shell *sh, size_t argc, char **argv) in cmd_vlist() argument
156 ARG_UNUSED(argc); in cmd_vlist()
182 static int cmd_vset(const struct shell *sh, size_t argc, char **argv) in cmd_vset() argument
200 if (argc == 4) { in cmd_vset()
[all …]
/Zephyr-latest/samples/shields/npm6001_ek/src/
Dmain.c70 static int cmd_regulator_list(const struct shell *sh, size_t argc, char **argv) in cmd_regulator_list() argument
72 ARG_UNUSED(argc); in cmd_regulator_list()
84 static int cmd_regulator_voltages(const struct shell *sh, size_t argc, char **argv) in cmd_regulator_voltages() argument
89 ARG_UNUSED(argc); in cmd_regulator_voltages()
109 static int cmd_regulator_enable(const struct shell *sh, size_t argc, char **argv) in cmd_regulator_enable() argument
114 ARG_UNUSED(argc); in cmd_regulator_enable()
131 static int cmd_regulator_disable(const struct shell *sh, size_t argc, char **argv) in cmd_regulator_disable() argument
136 ARG_UNUSED(argc); in cmd_regulator_disable()
153 static int cmd_regulator_set(const struct shell *sh, size_t argc, char **argv) in cmd_regulator_set() argument
166 if (argc == 4) { in cmd_regulator_set()
[all …]
/Zephyr-latest/drivers/pm_cpu_ops/
Dpsci_shell.c13 static int cmd_reboot_warm(const struct shell *shctx, size_t argc, char **argv) in cmd_reboot_warm() argument
16 ARG_UNUSED(argc); in cmd_reboot_warm()
28 static int cmd_reboot_cold(const struct shell *shctx, size_t argc, char **argv) in cmd_reboot_cold() argument
31 ARG_UNUSED(argc); in cmd_reboot_cold()
43 static int cmd_psci_cpuon(const struct shell *shctx, size_t argc, char **argv) in cmd_psci_cpuon() argument
46 ARG_UNUSED(argc); in cmd_psci_cpuon()
/Zephyr-latest/subsys/bluetooth/mesh/shell/
Dhealth.c37 static int cmd_fault_get(const struct shell *sh, size_t argc, char *argv[]) in cmd_fault_get() argument
71 static int fault_clear(const struct shell *sh, size_t argc, char *argv[], bool acked) in fault_clear() argument
113 static int cmd_fault_clear(const struct shell *sh, size_t argc, char *argv[]) in cmd_fault_clear() argument
115 return fault_clear(sh, argc, argv, true); in cmd_fault_clear()
118 static int cmd_fault_clear_unack(const struct shell *sh, size_t argc, char *argv[]) in cmd_fault_clear_unack() argument
120 return fault_clear(sh, argc, argv, false); in cmd_fault_clear_unack()
123 static int fault_test(const struct shell *sh, size_t argc, char *argv[], bool acked) in fault_test() argument
166 static int cmd_fault_test(const struct shell *sh, size_t argc, char *argv[]) in cmd_fault_test() argument
168 return fault_test(sh, argc, argv, true); in cmd_fault_test()
171 static int cmd_fault_test_unack(const struct shell *sh, size_t argc, char *argv[]) in cmd_fault_test_unack() argument
[all …]

12345678910>>...12