Lines Matching refs:pos
22 if (at->buf[at->pos] == ',') { in next_list()
23 at->pos++; in next_list()
41 while (at->buf[at->pos] == ' ') { in skip_space()
42 at->pos++; in skip_space()
53 isdigit((unsigned char)at->buf[at->pos]) != 0; in at_get_number()
54 at->pos++, i++) { in at_get_number()
55 *val = *val * 10U + at->buf[at->pos] - '0'; in at_get_number()
96 uint8_t pos = at->pos; in get_cmd_value() local
99 while (cmd_len < buf->len && at->pos != at->buf_max_len) { in get_cmd_value()
101 at->buf[at->pos++] = *str; in get_cmd_value()
104 pos = at->pos; in get_cmd_value()
107 at->buf[at->pos] = '\0'; in get_cmd_value()
108 at->pos = 0U; in get_cmd_value()
115 if (pos == at->buf_max_len) { in get_cmd_value()
126 uint8_t pos = at->pos; in get_response_string() local
129 while (cmd_len < buf->len && at->pos != at->buf_max_len) { in get_response_string()
131 at->buf[at->pos++] = *str; in get_response_string()
134 pos = at->pos; in get_response_string()
137 at->buf[at->pos] = '\0'; in get_response_string()
138 at->pos = 0U; in get_response_string()
145 if (pos == at->buf_max_len) { in get_response_string()
155 at->pos = 0U; in reset_buffer()
430 return at->buf[at->pos] != '\0'; in at_has_next_list()
438 if (at->buf[at->pos] != '(') { in at_open_list()
441 at->pos++; in at_open_list()
450 if (at->buf[at->pos] != ')') { in at_close_list()
453 at->pos++; in at_close_list()
466 if (at->buf[at->pos] != '"') { in at_list_get_string()
469 at->pos++; in at_list_get_string()
471 while (at->buf[at->pos] != '\0' && at->buf[at->pos] != '"') { in at_list_get_string()
475 name[i++] = at->buf[at->pos++]; in at_list_get_string()
484 if (at->buf[at->pos] != '"') { in at_list_get_string()
487 at->pos++; in at_list_get_string()
505 if (at->buf[at->pos] == '-') { in at_list_get_range()
506 at->pos++; in at_list_get_range()
510 if (isdigit((unsigned char)at->buf[at->pos]) == 0) { in at_list_get_range()