Lines Matching refs:delta
185 cpkt->delta = 0U; in coap_packet_init()
248 static void option_header_set_delta(uint8_t *opt, uint8_t delta) in option_header_set_delta() argument
250 *opt = (delta & 0xF) << 4; in option_header_set_delta()
357 if (code < cpkt->delta) { in coap_packet_append_option()
364 code = (code == cpkt->delta) ? 0 : code - cpkt->delta; in coap_packet_append_option()
373 cpkt->delta += code; in coap_packet_append_option()
538 uint16_t delta; in parse_option() local
556 delta = option_header_get_delta(opt); in parse_option()
563 if (r == 0 && delta > COAP_OPTION_NO_EXT) { in parse_option()
567 if (delta > COAP_OPTION_NO_EXT) { in parse_option()
570 delta, &delta, &hdr_len); in parse_option()
593 if (u16_add_overflow(*opt_delta, delta, opt_delta) || in parse_option()
620 option->delta = *opt_delta; in parse_option()
675 r = encode_option(cpkt, option.delta - previous_code, option.value, option.len, in remove_middle_option()
702 if (code > cpkt->delta) { in coap_packet_remove_option()
739 cpkt->delta = previous_code; in coap_packet_remove_option()
750 uint16_t delta; in coap_packet_parse() local
772 cpkt->delta = 0U; in coap_packet_parse()
791 delta = 0U; in coap_packet_parse()
799 &delta, &opt_len, option); in coap_packet_parse()
808 cpkt->delta = delta; in coap_packet_parse()
920 uint16_t delta; in coap_find_options() local
931 delta = 0U; in coap_find_options()
934 while (delta <= code && num < veclen) { in coap_find_options()
936 cpkt->max_len, &delta, &opt_len, in coap_find_options()
942 if (code == options[num].delta) { in coap_find_options()
1096 if (options[i].delta != COAP_OPTION_URI_PATH) { in coap_uri_path_match()
1127 if (options[i].delta == COAP_OPTION_URI_PATH) { in coap_uri_path_match()
1431 r = encode_option(cpkt, option.delta - code, option.value, option.len, last_offset + r); in insert_option()