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()
1359 if (cmdptr == cmd_head) { in kdb_local()
1360 strscpy(cmd_hist[cmd_head], cmd_cur, in kdb_local()
1362 *(cmd_hist[cmd_head] + in kdb_local()
1363 strlen(cmd_hist[cmd_head])-1) = '\0'; in kdb_local()
1370 strscpy(cmd_hist[cmd_head], cmd_cur, in kdb_local()
1374 cmd_head = (cmd_head+1) % KDB_CMD_HISTORY_COUNT; in kdb_local()
1375 if (cmd_head == cmd_tail) in kdb_local()
1379 cmdptr = cmd_head; in kdb_local()