Lines Matching refs:cmdKey

101  * Input:       cmdKey : Pass in the buff string, which is ready to be operated
103 * size : cmdKey length
105 LITE_OS_SEC_TEXT_MINOR UINT32 OsCmdKeyShift(const CHAR *cmdKey, CHAR *cmdOut, UINT32 size)
113 if ((cmdKey == NULL) || (cmdOut == NULL)) {
117 len = strlen(cmdKey);
129 /* Scan each charactor in 'cmdKey',and squeeze the overmuch space and ignore invalid charactor */
130 for (; *cmdKey != '\0'; cmdKey++) {
132 if (*(cmdKey) == '\"') {
140 if ((*cmdKey == ' ') && ((*(cmdKey + 1) == ' ') || (*(cmdKey + 1) == '\0')) && QUOTES_STATUS_CLOSE(quotes)) {
143 if (*cmdKey == '\'') {
146 *output = *cmdKey;
172 LITE_OS_SEC_TEXT_MINOR BOOL OsCmdKeyCheck(const CHAR *cmdKey)
174 const CHAR *temp = cmdKey;
181 if (strlen(cmdKey) >= CMD_KEY_LEN) {
224 if ((strncmp(cmdItem->cmd->cmdKey, cmd->cmd->cmdKey, strlen(cmd->cmd->cmdKey)) >= 0) &&
225 (strncmp(cmdNext->cmd->cmdKey, cmd->cmd->cmdKey, strlen(cmd->cmd->cmdKey)) < 0)) {
231 if (strncmp(cmd->cmd->cmdKey, cmdItem->cmd->cmdKey, strlen(cmd->cmd->cmdKey)) > 0) {
317 const CHAR *cmdKey = NULL;
324 cmdKey = curCmdItem->cmd->cmdKey;
326 (strlen(cmdKey) == strlen(cmdParsed->cmdKeyword)) &&
327 (strncmp(cmdKey, (CHAR *)(cmdParsed->cmdKeyword), strlen(cmdKey)) == 0)) {
402 STATIC UINT32 OsCmdItemCreate(CmdType cmdType, const CHAR *cmdKey, UINT32 paraNum, CmdCallBackFunc cmdProc)
423 cmdItemNode->cmd->cmdKey = cmdKey;
434 LITE_OS_SEC_TEXT_MINOR UINT32 osCmdReg(CmdType cmdType, const CHAR *cmdKey, UINT32 paraNum, CmdCallBackFunc cmdProc)
446 if ((cmdProc == NULL) || (cmdKey == NULL) ||
447 (cmdType >= CMD_TYPE_BUTT) || (strlen(cmdKey) >= CMD_KEY_LEN) || !strlen(cmdKey)) {
457 if (OsCmdKeyCheck(cmdKey) != TRUE) {
464 ((strlen(cmdKey) == strlen(cmdItemNode->cmd->cmdKey)) &&
465 (strncmp((CHAR *)(cmdItemNode->cmd->cmdKey), cmdKey, strlen(cmdKey)) == 0))) {
472 return OsCmdItemCreate(cmdType, cmdKey, paraNum, cmdProc);