Lines Matching refs:res
47 int secure = 0, res = 0; in coap_split_uri() local
70 res = -1; in coap_split_uri()
85 res = -2; in coap_split_uri()
99 res = -3; in coap_split_uri()
113 res = -3; in coap_split_uri()
138 res = -4; in coap_split_uri()
178 return res; in coap_split_uri()
266 int res; in make_decoded_option() local
274 res = check_segment(s, length); in make_decoded_option()
275 if (res < 0) in make_decoded_option()
279 written = coap_opt_setheader(buf, buflen, 0, res); in make_decoded_option()
289 if (buflen < (size_t)res) { in make_decoded_option()
296 return written + res; in make_decoded_option()
362 int res; in write_option() local
365 res = make_decoded_option(s, len, state->buf.s, state->buf.length); in write_option()
366 if (res > 0) { in write_option()
367 state->buf.s += res; in write_option()
368 state->buf.length -= res; in write_option()