Searched refs:block_ctx (Results 1 – 7 of 7) sorted by relevance
/Zephyr-Core-3.7.0/subsys/net/lib/lwm2m/ |
D | lwm2m_pull_context.c | 44 struct coap_block_context block_ctx; member 260 memcpy(&received_block_ctx, &context.block_ctx, sizeof(context.block_ctx)); in do_firmware_transfer_reply_cb() 262 ret = coap_update_from_block(check_response, &context.block_ctx); in do_firmware_transfer_reply_cb() 270 if (context.block_ctx.current < received_block_ctx.current) { in do_firmware_transfer_reply_cb() 274 memcpy(&context.block_ctx, &received_block_ctx, sizeof(context.block_ctx)); in do_firmware_transfer_reply_cb() 282 last_block = !coap_next_block(check_response, &context.block_ctx); in do_firmware_transfer_reply_cb() 288 LOG_DBG("total: %zd, current: %zd", context.block_ctx.total_size, in do_firmware_transfer_reply_cb() 289 context.block_ctx.current); in do_firmware_transfer_reply_cb() 314 size_t offset = context.block_ctx.current; in do_firmware_transfer_reply_cb() 330 context.block_ctx.total_size, offset); in do_firmware_transfer_reply_cb() [all …]
|
D | lwm2m_rw_opaque.c | 67 if (in->block_ctx != NULL) { in get_opaque() 69 in->block_ctx->ctx.current / in get_opaque() 71 in->block_ctx->ctx.block_size); in get_opaque() 74 opaque->len = in->block_ctx->ctx.total_size; in get_opaque()
|
D | lwm2m_message_handling.c | 333 ret = request_output_block_ctx(&msg->out.block_ctx); in build_msg_block_for_send() 338 ret = coap_block_transfer_init(msg->out.block_ctx, block_size, in build_msg_block_for_send() 349 msg->out.block_ctx->current = block_num * block_size_bytes; in build_msg_block_for_send() 350 msg->out.block_ctx->block_size = block_size; in build_msg_block_for_send() 353 ret = coap_append_descriptive_block_option(&msg->cpkt, msg->out.block_ctx); in build_msg_block_for_send() 404 NET_ASSERT(msg->out.block_ctx == NULL, "Expecting to have no context to release"); in prepare_msg_for_send() 566 release_output_block_ctx(&msg->out.block_ctx); in lwm2m_reset_message() 957 if (msg->in.block_ctx != NULL) { in lwm2m_write_handler_opaque() 958 last_block = msg->in.block_ctx->last_block; in lwm2m_write_handler_opaque() 961 opaque_ctx = msg->in.block_ctx->opaque; in lwm2m_write_handler_opaque() [all …]
|
D | lwm2m_rw_oma_tlv.c | 887 if (msg->in.block_ctx) { in write_tlv_resource() 888 msg->in.block_ctx->path.res_id = tlv->id; in write_tlv_resource() 918 if (msg->in.block_ctx) { in lwm2m_multi_resource_tlv_parse() 919 msg->in.block_ctx->path.res_id = multi_resource_tlv->id; in lwm2m_multi_resource_tlv_parse() 966 if (msg->in.block_ctx != NULL && msg->in.block_ctx->ctx.current > 0) { in do_write_op_tlv() 967 msg->path.res_id = msg->in.block_ctx->path.res_id; in do_write_op_tlv()
|
D | lwm2m_rw_senml_cbor.c | 957 if (msg->in.block_ctx != NULL && msg->in.block_ctx->ctx.current > 0) { in do_write_op_senml_cbor() 958 msg->path.res_id = msg->in.block_ctx->path.res_id; in do_write_op_senml_cbor() 959 msg->path.level = msg->in.block_ctx->path.level; in do_write_op_senml_cbor() 962 msg->path.res_inst_id = msg->in.block_ctx->path.res_inst_id; in do_write_op_senml_cbor()
|
D | lwm2m_object.h | 455 struct coap_block_context *block_ctx; member 470 struct lwm2m_block_context *block_ctx; member
|
D | lwm2m_rw_senml_json.c | 1479 if (msg->in.block_ctx) { in do_write_op_senml_json()
|