Searched refs:cmd_hnew (Results 1 – 2 of 2) sorted by relevance
93 cmd->cmd_hnew = 0; in mdb_cmdbuf_create()173 if (cmd->cmd_hold != cmd->cmd_hnew) { in mdb_cmdbuf_accept()174 int lastidx = cmd->cmd_hnew == 0 ? cmd->cmd_halloc - 1 : in mdb_cmdbuf_accept()175 cmd->cmd_hnew - 1; in mdb_cmdbuf_accept()186 cmd->cmd_hnew = (cmd->cmd_hnew + 1) % cmd->cmd_histlen; in mdb_cmdbuf_accept()187 if (cmd->cmd_hnew >= cmd->cmd_halloc) in mdb_cmdbuf_accept()190 cmd->cmd_buf = cmd->cmd_history[cmd->cmd_hnew]; in mdb_cmdbuf_accept()191 cmd->cmd_hcur = cmd->cmd_hnew; in mdb_cmdbuf_accept()199 cmd->cmd_hcur = cmd->cmd_hnew; in mdb_cmdbuf_accept()439 if (cmd->cmd_hcur-- == cmd->cmd_hnew) { in mdb_cmdbuf_prevhist()[all …]
45 ssize_t cmd_hnew; /* Newest history entry index */ member