Lines Matching refs:p

46   unsigned char *p, *q;  in coap_split_uri()  local
56 p = str_var; in coap_split_uri()
57 if (*p == '/') { in coap_split_uri()
58 q = p; in coap_split_uri()
63 while (len && *q && tolower(*p) == *q) { in coap_split_uri()
64 ++p; ++q; --len; in coap_split_uri()
75 if (len && (secure = tolower(*p) == 's')) { in coap_split_uri()
76 ++p; --len; in coap_split_uri()
80 while (len && *q && tolower(*p) == *q) { in coap_split_uri()
81 ++p; ++q; --len; in coap_split_uri()
90 q = p; in coap_split_uri()
91 if (len && *p == '[') { /* IPv6 address reference */ in coap_split_uri()
92 ++p; in coap_split_uri()
98 if (!len || *q != ']' || p == q) { in coap_split_uri()
103 COAP_SET_STR(&uri->host, q - p, p); in coap_split_uri()
112 if (p == q) { in coap_split_uri()
117 COAP_SET_STR(&uri->host, q - p, p); in coap_split_uri()
122 p = ++q; in coap_split_uri()
130 if (p < q) { /* explicit port number given */ in coap_split_uri()
133 while (p < q) in coap_split_uri()
134 uri_port = uri_port * 10 + (*p++ - '0'); in coap_split_uri()
152 p = ++q; in coap_split_uri()
160 if (p < q) { in coap_split_uri()
161 COAP_SET_STR(&uri->path, q - p, p); in coap_split_uri()
162 p = q; in coap_split_uri()
167 if (len && *p == '?') { in coap_split_uri()
168 ++p; in coap_split_uri()
170 COAP_SET_STR(&uri->query, len, p); in coap_split_uri()
329 const unsigned char *p, *q; in coap_split_path_impl() local
331 p = q = s; in coap_split_path_impl()
335 if (!dots((unsigned char *)p, q - p)) { in coap_split_path_impl()
336 h((unsigned char *)p, q - p, data); in coap_split_path_impl()
339 p = q + 1; in coap_split_path_impl()
347 if (!dots((unsigned char *)p, q - p)) { in coap_split_path_impl()
348 h((unsigned char *)p, q - p, data); in coap_split_path_impl()
389 const unsigned char *p; in coap_split_query() local
391 p = s; in coap_split_query()
394 write_option((unsigned char *)p, s - p, &tmp); in coap_split_query()
395 p = s + 1; in coap_split_query()
403 write_option((unsigned char *)p, s - p, &tmp); in coap_split_query()