Lines Matching refs:cmd
324 static at_result_t at_cmd_process(at_cmd_t cmd, const char *cmd_args) in at_cmd_process() argument
326 RT_ASSERT(cmd); in at_cmd_process()
332 if (cmd->test == RT_NULL) in at_cmd_process()
337 return cmd->test(); in at_cmd_process()
342 if (cmd->query == RT_NULL) in at_cmd_process()
347 return cmd->query(); in at_cmd_process()
353 if (cmd->setup == RT_NULL) in at_cmd_process()
358 if(at_check_args(cmd_args, cmd->args_expr) < 0) in at_cmd_process()
363 return cmd->setup(cmd_args); in at_cmd_process()
368 if (cmd->exec == RT_NULL) in at_cmd_process()
373 return cmd->exec(); in at_cmd_process()
379 static at_cmd_t at_find_cmd(const char *cmd) in at_find_cmd() argument
387 if (!strcasecmp(cmd, cmd_table[i].name)) in at_find_cmd()