Lines Matching refs:cmd_head
814 static unsigned int cmd_head, cmd_tail; variable
1100 if (cmd_head == cmd_tail) in handle_ctrl_cmd()
1109 if (cmdptr != cmd_head) in handle_ctrl_cmd()
1299 *(cmd_hist[cmd_head]) = '\0'; in kdb_local()
1317 if (cmdptr == cmd_head) { in kdb_local()
1318 strncpy(cmd_hist[cmd_head], cmd_cur, in kdb_local()
1320 *(cmd_hist[cmd_head] + in kdb_local()
1321 strlen(cmd_hist[cmd_head])-1) = '\0'; in kdb_local()
1328 strncpy(cmd_hist[cmd_head], cmd_cur, in kdb_local()
1332 cmd_head = (cmd_head+1) % KDB_CMD_HISTORY_COUNT; in kdb_local()
1333 if (cmd_head == cmd_tail) in kdb_local()
1337 cmdptr = cmd_head; in kdb_local()