Lines Matching refs:rsp_ctx

539 				    struct coap_block_context *rsp_ctx,  in prepare_block1_response()  argument
548 if (rsp_ctx->total_size == 0) { in prepare_block1_response()
549 coap_block_transfer_init(rsp_ctx, COAP_BLOCK_32, in prepare_block1_response()
553 r = coap_update_from_block(req, rsp_ctx); in prepare_block1_response()
564 r = coap_append_block1_option(rsp, rsp_ctx); in prepare_block1_response()
594 static void verify_block1_response(struct coap_block_context *rsp_ctx, in verify_block1_response() argument
597 zassert_equal(rsp_ctx->block_size, COAP_BLOCK_32, in verify_block1_response()
599 zassert_equal(rsp_ctx->current, in verify_block1_response()
602 zassert_equal(rsp_ctx->total_size, BLOCK_WISE_TRANSFER_SIZE_GET, in verify_block1_response()
609 struct coap_block_context rsp_ctx; in ZTEST() local
618 memset(&rsp_ctx, 0, sizeof(rsp_ctx)); in ZTEST()
622 prepare_block1_response(&rsp, &rsp_ctx, &req); in ZTEST()
627 verify_block1_response(&rsp_ctx, i); in ZTEST()
660 struct coap_block_context *rsp_ctx, in prepare_block2_response() argument
674 if (rsp_ctx->total_size == 0) { in prepare_block2_response()
676 coap_block_transfer_init(rsp_ctx, COAP_BLOCK_64, in prepare_block2_response()
690 r = coap_append_block2_option(rsp, rsp_ctx); in prepare_block2_response()
694 r = coap_append_size2_option(rsp, rsp_ctx); in prepare_block2_response()
701 payload_len = rsp_ctx->total_size - rsp_ctx->current; in prepare_block2_response()
709 *more = coap_next_block(rsp, rsp_ctx); in prepare_block2_response()
724 static void verify_block2_response(struct coap_block_context *rsp_ctx, in verify_block2_response() argument
730 zassert_equal(rsp_ctx->block_size, COAP_BLOCK_64, in verify_block2_response()
736 rsp_ctx->current, block_size * iter, in verify_block2_response()
740 rsp_ctx->current, rsp_ctx->total_size, in verify_block2_response()
744 zassert_equal(rsp_ctx->total_size, BLOCK2_WISE_TRANSFER_SIZE_GET, in verify_block2_response()
751 struct coap_block_context rsp_ctx; in ZTEST() local
760 memset(&rsp_ctx, 0, sizeof(rsp_ctx)); in ZTEST()
764 prepare_block2_response(&rsp, &rsp_ctx, &req, &more); in ZTEST()
769 verify_block2_response(&rsp_ctx, i); in ZTEST()