Lines Matching refs:cmd_head
870 static unsigned int cmd_head, cmd_tail; variable
1143 if (cmd_head == cmd_tail) in handle_ctrl_cmd()
1153 if (cmdptr != cmd_head) in handle_ctrl_cmd()
1346 *(cmd_hist[cmd_head]) = '\0'; in kdb_local()
1361 if (cmdptr == cmd_head) { in kdb_local()
1362 strscpy(cmd_hist[cmd_head], cmd_cur, in kdb_local()
1364 *(cmd_hist[cmd_head] + in kdb_local()
1365 strlen(cmd_hist[cmd_head])-1) = '\0'; in kdb_local()
1372 strscpy(cmd_hist[cmd_head], cmd_cur, in kdb_local()
1376 cmd_head = (cmd_head+1) % KDB_CMD_HISTORY_COUNT; in kdb_local()
1377 if (cmd_head == cmd_tail) in kdb_local()
1381 cmdptr = cmd_head; in kdb_local()