Lines Matching refs:req_ctx
490 struct coap_block_context *req_ctx, in prepare_block1_request() argument
502 if (req_ctx->total_size == 0) { in prepare_block1_request()
504 coap_block_transfer_init(req_ctx, COAP_BLOCK_32, in prepare_block1_request()
516 r = coap_append_block1_option(req, req_ctx); in prepare_block1_request()
520 r = coap_append_size1_option(req, req_ctx); in prepare_block1_request()
527 payload_len = req_ctx->total_size - req_ctx->current; in prepare_block1_request()
535 *more = coap_next_block(req, req_ctx); in prepare_block1_request()
570 static void verify_block1_request(struct coap_block_context *req_ctx, in verify_block1_request() argument
576 zassert_equal(req_ctx->block_size, COAP_BLOCK_32, in verify_block1_request()
582 req_ctx->current, block_size * iter, in verify_block1_request()
586 req_ctx->current, req_ctx->total_size, in verify_block1_request()
590 zassert_equal(req_ctx->total_size, BLOCK_WISE_TRANSFER_SIZE_GET, in verify_block1_request()
608 struct coap_block_context req_ctx; in ZTEST() local
617 memset(&req_ctx, 0, sizeof(req_ctx)); in ZTEST()
621 prepare_block1_request(&req, &req_ctx, &more); in ZTEST()
626 verify_block1_request(&req_ctx, i); in ZTEST()
634 struct coap_block_context *req_ctx, in prepare_block2_request() argument
642 if (req_ctx->total_size == 0) { in prepare_block2_request()
643 coap_block_transfer_init(req_ctx, COAP_BLOCK_64, in prepare_block2_request()
646 coap_next_block(rsp, req_ctx); in prepare_block2_request()
655 r = coap_append_block2_option(req, req_ctx); in prepare_block2_request()
712 static void verify_block2_request(struct coap_block_context *req_ctx, in verify_block2_request() argument
715 zassert_equal(req_ctx->block_size, COAP_BLOCK_64, in verify_block2_request()
717 zassert_equal(req_ctx->current, in verify_block2_request()
720 zassert_equal(req_ctx->total_size, BLOCK2_WISE_TRANSFER_SIZE_GET, in verify_block2_request()
750 struct coap_block_context req_ctx; in ZTEST() local
759 memset(&req_ctx, 0, sizeof(req_ctx)); in ZTEST()
763 prepare_block2_request(&req, &req_ctx, &rsp); in ZTEST()
768 verify_block2_request(&req_ctx, i); in ZTEST()