Lines Matching refs:cmd_pos
47 p_cb->cmd_pos = 0;
64 p_cb->cmd_pos = 0;
173 p_cb->cmd_pos = 0;
177 while (p_cb->cmd_pos < p_cb->cmd_max_len - 1 && i < len) {
179 if ((p_cb->cmd_pos == 0) && (p_buf[i] == 0)) {
184 p_cb->p_cmd_buf[p_cb->cmd_pos] = p_buf[i++];
185 if (p_cb->p_cmd_buf[p_cb->cmd_pos] == '\r' ||
186 p_cb->p_cmd_buf[p_cb->cmd_pos] == '\n') {
187 p_cb->p_cmd_buf[p_cb->cmd_pos] = 0;
188 if ((p_cb->cmd_pos > 2) &&
197 p_cb->cmd_pos = 0;
199 } else if (p_cb->p_cmd_buf[p_cb->cmd_pos] == 0x1A ||
200 p_cb->p_cmd_buf[p_cb->cmd_pos] == 0x1B) {
201 p_cb->p_cmd_buf[++p_cb->cmd_pos] = 0;
203 p_cb->cmd_pos = 0;
205 ++p_cb->cmd_pos;
209 if (i < len) p_cb->cmd_pos = 0;