Lines Matching refs:cmd_pos
48 p_cb->cmd_pos = 0; in bta_ag_at_init()
65 p_cb->cmd_pos = 0; in bta_ag_at_reinit()
179 p_cb->cmd_pos = 0; in bta_ag_at_parse()
183 while (p_cb->cmd_pos < p_cb->cmd_max_len - 1 && i < len) { in bta_ag_at_parse()
185 if ((p_cb->cmd_pos == 0) && (p_buf[i] == 0)) { in bta_ag_at_parse()
190 p_cb->p_cmd_buf[p_cb->cmd_pos] = p_buf[i++]; in bta_ag_at_parse()
191 if (p_cb->p_cmd_buf[p_cb->cmd_pos] == '\r' || in bta_ag_at_parse()
192 p_cb->p_cmd_buf[p_cb->cmd_pos] == '\n') { in bta_ag_at_parse()
193 p_cb->p_cmd_buf[p_cb->cmd_pos] = 0; in bta_ag_at_parse()
194 if ((p_cb->cmd_pos > 2) && in bta_ag_at_parse()
198 char* p_end = p_cb->p_cmd_buf + p_cb->cmd_pos; in bta_ag_at_parse()
204 p_cb->cmd_pos = 0; in bta_ag_at_parse()
206 } else if (p_cb->p_cmd_buf[p_cb->cmd_pos] == 0x1A || in bta_ag_at_parse()
207 p_cb->p_cmd_buf[p_cb->cmd_pos] == 0x1B) { in bta_ag_at_parse()
208 p_cb->p_cmd_buf[++p_cb->cmd_pos] = 0; in bta_ag_at_parse()
210 p_cb->cmd_pos = 0; in bta_ag_at_parse()
212 ++p_cb->cmd_pos; in bta_ag_at_parse()
216 if (i < len) p_cb->cmd_pos = 0; in bta_ag_at_parse()