Lines Matching refs:cmd_pos
47 p_cb->cmd_pos = 0; in bta_ag_at_init()
65 p_cb->cmd_pos = 0; in bta_ag_at_reinit()
192 p_cb->cmd_pos = 0; in bta_ag_at_parse()
197 while (p_cb->cmd_pos < p_cb->cmd_max_len-1 && i < len) in bta_ag_at_parse()
200 if ((p_cb->cmd_pos == 0) && (p_buf[i] == 0)) in bta_ag_at_parse()
206 p_cb->p_cmd_buf[p_cb->cmd_pos] = p_buf[i++]; in bta_ag_at_parse()
207 if ( p_cb->p_cmd_buf[p_cb->cmd_pos] == '\r' || p_cb->p_cmd_buf[p_cb->cmd_pos] == '\n') in bta_ag_at_parse()
209 p_cb->p_cmd_buf[p_cb->cmd_pos] = 0; in bta_ag_at_parse()
210 if ((p_cb->cmd_pos > 2) && in bta_ag_at_parse()
220 p_cb->cmd_pos = 0; in bta_ag_at_parse()
223 … else if( p_cb->p_cmd_buf[p_cb->cmd_pos] == 0x1A || p_cb->p_cmd_buf[p_cb->cmd_pos] == 0x1B ) in bta_ag_at_parse()
225 p_cb->p_cmd_buf[++p_cb->cmd_pos] = 0; in bta_ag_at_parse()
227 p_cb->cmd_pos = 0; in bta_ag_at_parse()
231 ++p_cb->cmd_pos; in bta_ag_at_parse()
236 p_cb->cmd_pos = 0; in bta_ag_at_parse()