Lines Matching refs:payload_len
110 uint16_t payload_len; in ZTEST() local
138 payload_start = coap_packet_get_payload(&cpkt, &payload_len); in ZTEST()
140 zassert_equal(payload_len, sizeof(payload), "Invalid payload length"); in ZTEST()
141 zassert_equal_ptr(payload_start, cpkt.data + cpkt.offset - payload_len, in ZTEST()
233 uint16_t payload_len; in ZTEST() local
247 payload_start = coap_packet_get_payload(&cpkt, &payload_len); in ZTEST()
249 zassert_equal(payload_len, sizeof(payload), "Invalid payload length"); in ZTEST()
250 zassert_equal_ptr(payload_start, cpkt.data + cpkt.offset - payload_len, in ZTEST()
499 int payload_len; in prepare_block1_request() local
527 payload_len = req_ctx->total_size - req_ctx->current; in prepare_block1_request()
528 if (payload_len > block_size) { in prepare_block1_request()
529 payload_len = block_size; in prepare_block1_request()
532 r = coap_packet_append_payload(req, payload, payload_len); in prepare_block1_request()
672 int payload_len; in prepare_block2_response() local
701 payload_len = rsp_ctx->total_size - rsp_ctx->current; in prepare_block2_response()
702 if (payload_len > block_size) { in prepare_block2_response()
703 payload_len = block_size; in prepare_block2_response()
706 r = coap_packet_append_payload(rsp, payload, payload_len); in prepare_block2_response()