Lines Matching refs:cmd

254 			const struct shell_static_entry **cmd,  in tab_prepare()  argument
299 *cmd = selected_cmd_get(sh); in tab_prepare()
305 *cmd = z_shell_get_last_command(selected_cmd_get(sh), search_argc, in tab_prepare()
312 if ((*cmd == NULL) && (search_argc != 0)) { in tab_prepare()
326 const struct shell_static_entry *cmd, in find_completion_candidates() argument
340 while ((candidate = z_shell_cmd_get(cmd, idx, &dloc)) != NULL) { in find_completion_candidates()
357 const struct shell_static_entry *cmd, in autocomplete() argument
368 match = z_shell_cmd_get(cmd, subcmd_idx, &sh->ctx->active_cmd); in autocomplete()
426 const struct shell_static_entry *cmd, in tab_options_print() argument
441 match = z_shell_cmd_get(cmd, idx, &sh->ctx->active_cmd); in tab_options_print()
458 const struct shell_static_entry *cmd, in common_beginning_find() argument
469 match = z_shell_cmd_get(cmd, first, &dynamic_entry); in common_beginning_find()
481 match2 = z_shell_cmd_get(cmd, idx++, &dynamic_entry2); in common_beginning_find()
498 const struct shell_static_entry *cmd, in partial_autocomplete() argument
504 uint16_t common = common_beginning_find(sh, cmd, &completion, first, in partial_autocomplete()
816 const struct shell_static_entry *cmd; in tab_handle() local
824 bool tab_possible = tab_prepare(sh, &cmd, &argv, &argc, &arg_idx, in tab_handle()
831 find_completion_candidates(sh, cmd, argv[arg_idx], &first, &cnt, in tab_handle()
836 autocomplete(sh, cmd, argv[arg_idx], first); in tab_handle()
838 tab_options_print(sh, cmd, argv[arg_idx], first, cnt, in tab_handle()
840 partial_autocomplete(sh, cmd, argv[arg_idx], first, cnt); in tab_handle()
1725 int shell_execute_cmd(const struct shell *sh, const char *cmd) in shell_execute_cmd() argument
1727 uint16_t cmd_len = z_shell_strlen(cmd); in shell_execute_cmd()
1730 if (cmd == NULL) { in shell_execute_cmd()
1749 strcpy(sh->ctx->cmd_buff, cmd); in shell_execute_cmd()