Lines Matching refs:delta
56 result->delta = (*opt & 0xf0) >> 4; in coap_opt_parse()
59 switch(result->delta) { in coap_opt_parse()
70 result->delta = ((*opt & 0xff) << 8) + 269; in coap_opt_parse()
71 if (result->delta < 269) { in coap_opt_parse()
78 result->delta += *opt & 0xff; in coap_opt_parse()
185 oi->type += option.delta; in coap_option_next()
330 unsigned short delta, size_t length) { in coap_opt_setheader() argument
338 if (delta < 13) { in coap_opt_setheader()
339 opt[0] = delta << 4; in coap_opt_setheader()
340 } else if (delta < 270) { in coap_opt_setheader()
342 debug("insufficient space to encode option delta %d", delta); in coap_opt_setheader()
347 opt[++skip] = delta - 13; in coap_opt_setheader()
350 debug("insufficient space to encode option delta %d", delta); in coap_opt_setheader()
355 opt[++skip] = ((delta - 269) >> 8) & 0xff; in coap_opt_setheader()
356 opt[++skip] = (delta - 269) & 0xff; in coap_opt_setheader()
371 debug("insufficient space to encode option delta %d", delta); in coap_opt_setheader()
384 coap_opt_encode(coap_opt_t *opt, size_t maxlen, unsigned short delta, in coap_opt_encode() argument
388 l = coap_opt_setheader(opt, maxlen, delta, length); in coap_opt_encode()