Lines Matching refs:cmd
33 int run_command(const char *cmd, int flag) in run_command() argument
40 if (cli_simple_run_command(cmd, flag) == -1) in run_command()
49 return parse_string_outer(cmd, hush_flags); in run_command()
60 int run_command_repeatable(const char *cmd, int flag) in run_command_repeatable() argument
63 return cli_simple_run_command(cmd, flag); in run_command_repeatable()
69 if (parse_string_outer(cmd, in run_command_repeatable()
85 int run_command_list(const char *cmd, int len, int flag) in run_command_list() argument
88 char *buff = (char *)cmd; /* cast away const */ in run_command_list()
92 len = strlen(cmd); in run_command_list()
98 need_buff = strchr(cmd, '\n') != NULL; in run_command_list()
105 memcpy(buff, cmd, len); in run_command_list()
184 void cli_secure_boot_cmd(const char *cmd) in cli_secure_boot_cmd() argument
191 if (!cmd) { in cli_secure_boot_cmd()
201 cmdtp = find_cmd(cmd); in cli_secure_boot_cmd()
203 printf("## Error: \"%s\" not defined\n", cmd); in cli_secure_boot_cmd()
208 rc = (cmdtp->cmd)(cmdtp, 0, 1, (char **)&cmd); in cli_secure_boot_cmd()
211 rc = board_run_command(cmd); in cli_secure_boot_cmd()
215 printf("## Error: \"%s\" returned (code %d)\n", cmd, rc); in cli_secure_boot_cmd()