Lines Matching refs:rsp
538 static void prepare_block1_response(struct coap_packet *rsp, in prepare_block1_response() argument
559 r = coap_packet_init(rsp, data, COAP_BUF_SIZE, COAP_VERSION_1, in prepare_block1_response()
564 r = coap_append_block1_option(rsp, rsp_ctx); in prepare_block1_response()
611 struct coap_packet rsp; in ZTEST() local
622 prepare_block1_response(&rsp, &rsp_ctx, &req); in ZTEST()
635 struct coap_packet *rsp) in prepare_block2_request() argument
646 coap_next_block(rsp, req_ctx); in prepare_block2_request()
659 static void prepare_block2_response(struct coap_packet *rsp, in prepare_block2_response() argument
685 r = coap_packet_init(rsp, data, COAP_BUF_SIZE, COAP_VERSION_1, 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()
698 r = coap_packet_append_payload_marker(rsp); in prepare_block2_response()
706 r = coap_packet_append_payload(rsp, payload, payload_len); in prepare_block2_response()
709 *more = coap_next_block(rsp, rsp_ctx); in prepare_block2_response()
753 struct coap_packet rsp; in ZTEST() local
763 prepare_block2_request(&req, &req_ctx, &rsp); in ZTEST()
764 prepare_block2_response(&rsp, &rsp_ctx, &req, &more); in ZTEST()
776 struct coap_packet rsp; in ZTEST() local
804 r = coap_packet_init(&rsp, rsp_data, COAP_BUF_SIZE, in ZTEST()
810 rsp_pending = coap_pending_received(&rsp, pendings, NUM_PENDINGS); in ZTEST()
963 struct coap_packet rsp; in ZTEST() local
1010 r = coap_packet_parse(&rsp, rsp_data, req.offset, options, opt_num); in ZTEST()
1013 reply = coap_response_received(&rsp, in ZTEST()