Home
last modified time | relevance | path

Searched refs:res_inst_id (Results 1 – 25 of 37) sorted by relevance

12

/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_obj_access_control.c231 int res_inst_id = res_inst[idx][ACCESS_CONTROL_ACL_ID + i].res_inst_id; in check_acl_table() local
233 if (res_inst_id == short_server_id) { in check_acl_table()
236 } else if (res_inst_id == 0) { in check_acl_table()
339 uint16_t res_inst_id, uint8_t *data, in write_validate_cb() argument
345 if (res_inst_id == 0) { in write_validate_cb()
350 if (lwm2m_server_short_id_to_inst(res_inst_id) >= 0) { in write_validate_cb()
370 if (res_inst[idx][ACCESS_CONTROL_ACL_ID + i].res_inst_id == res_inst_id) { in write_validate_cb()
371 res_inst[idx][ACCESS_CONTROL_ACL_ID + i].res_inst_id = in write_validate_cb()
Dlwm2m_obj_device.c146 error_code_ri[i].res_inst_id = RES_INSTANCE_NOT_CREATED; in reset_error_list()
150 error_code_ri[0].res_inst_id = 0; in reset_error_list()
177 uint16_t res_inst_id, size_t *data_len) in current_time_read_cb() argument
186 uint16_t res_inst_id, size_t *data_len) in current_time_pre_write_cb() argument
193 uint16_t res_inst_id, uint8_t *data, in current_time_post_write_cb() argument
231 error_code_ri[i].res_inst_id = i; in lwm2m_device_add_err()
276 error_code_ri[i].res_inst_id = i; in lwm2m_obj_device_settings_set()
280 error_code_ri[i].res_inst_id = in lwm2m_obj_device_settings_set()
Dlwm2m_registry.c416 if (r->res_instances[i].res_inst_id == path->res_inst_id) { in path_to_objs()
480 LOG_ERR("res instance %d not found", path->res_inst_id); in lwm2m_set_res_buf()
565 LOG_ERR("res instance %d not found", path->res_inst_id); in lwm2m_engine_set()
573 path->res_inst_id, path->level); in lwm2m_engine_set()
585 res_inst->res_inst_id, &max_data_len); in lwm2m_engine_set()
590 path->obj_inst_id, path->res_id, path->res_inst_id, path->level); in lwm2m_engine_set()
609 ret = res->validate_cb(obj_inst->obj_inst_id, res->res_id, res_inst->res_inst_id, in lwm2m_engine_set()
664 path->res_inst_id, path->level); in lwm2m_engine_set()
716 ret = res->post_write_cb(obj_inst->obj_inst_id, res->res_id, res_inst->res_inst_id, in lwm2m_engine_set()
838 LOG_ERR("res instance %d not found", path->res_inst_id); in lwm2m_get_res_buf()
[all …]
Dipso_onoff_switch.c91 uint16_t res_inst_id, uint8_t *data, in state_post_write_cb() argument
123 uint16_t res_id, uint16_t res_inst_id, in on_time_read_cb() argument
142 uint16_t res_id, uint16_t res_inst_id, in off_time_read_cb() argument
161 uint16_t res_inst_id, uint8_t *data, in time_post_write_cb() argument
Dipso_timer.c156 uint16_t res_id, uint16_t res_inst_id, in remaining_time_read_cb() argument
180 uint16_t res_id, uint16_t res_inst_id, in cumulative_time_read_cb() argument
204 uint16_t res_inst_id, uint8_t *data, in cumulative_time_post_write_cb() argument
220 uint16_t res_inst_id, uint8_t *data, in enabled_post_write_cb() argument
241 uint16_t res_inst_id, uint8_t *data, in trigger_counter_post_write_cb() argument
Dlwm2m_obj_swmgmt.c191 uint16_t res_inst_id, uint8_t *data, in callback_write_not_defined() argument
199 static void *callback_read_not_defined(uint16_t obj_inst_id, uint16_t res_id, uint16_t res_inst_id, in callback_read_not_defined() argument
363 void *state_read_pkg_version(uint16_t obj_inst_id, uint16_t res_id, uint16_t res_inst_id, in state_read_pkg_version() argument
375 result = instance->read_package_cb(obj_inst_id, res_id, res_inst_id, data_len); in state_read_pkg_version()
563 uint16_t res_inst_id, uint8_t *data, in package_write_cb() argument
578 ret = instance->write_package_cb(obj_inst_id, res_id, res_inst_id, data, data_len, in package_write_cb()
650 uint16_t res_inst_id, uint8_t *data, in package_uri_write_cb() argument
Dipso_light_control.c70 static void *on_time_read_cb(uint16_t obj_inst_id, uint16_t res_id, uint16_t res_inst_id, in on_time_read_cb() argument
92 uint16_t res_inst_id, uint8_t *data, in on_time_post_write_cb() argument
Dlwm2m_util.c490 path->res_inst_id = value; in lwm2m_string_to_path()
525 if (level >= LWM2M_PATH_LEVEL_RESOURCE_INST && (a->res_inst_id != b->res_inst_id)) { in lwm2m_obj_path_equal()
Dlwm2m_object.h260 _ri_ptr[_ri_idx + _i].res_inst_id = \
263 _ri_ptr[_ri_idx + _i].res_inst_id = \
279 _ri_ptr[_ri_idx + _i].res_inst_id = \
282 _ri_ptr[_ri_idx + _i].res_inst_id = \
392 uint16_t res_inst_id; /* 65535 == not "created" */ member
431 ri[i].res_inst_id = RES_INSTANCE_NOT_CREATED; in init_res_instance()
Dlwm2m_obj_firmware.c238 uint16_t res_inst_id, uint8_t *data, in package_write_cb() argument
273 ret = write_callback(obj_inst_id, res_id, res_inst_id, data, data_len, last_block, in package_write_cb()
302 uint16_t res_inst_id, uint8_t *data, in package_uri_write_cb() argument
Dlwm2m_message_handling.c495 *id[4] = {&path->obj_id, &path->obj_inst_id, &path->res_id, &path->res_inst_id}; in coap_options_to_path()
1034 res_inst->res_inst_id, write_buf, len, in lwm2m_write_handler_opaque()
1048 obj_inst->obj_inst_id, res->res_id, res_inst->res_inst_id, data_ptr, in lwm2m_write_handler_opaque()
1099 res_inst->res_inst_id, &data_len); in lwm2m_write_handler()
1268 res_inst->res_inst_id, write_buf, len, last_block, in lwm2m_write_handler()
1291 res_inst->res_inst_id, data_ptr, len, last_block, in lwm2m_write_handler()
1514 if (res->res_instances[i].res_inst_id != RES_INSTANCE_NOT_CREATED) { in lwm2m_read_handler()
1529 res_inst_id_tmp = msg->path.res_inst_id; in lwm2m_read_handler()
1533 if (res->res_instances[i].res_inst_id == RES_INSTANCE_NOT_CREATED) { in lwm2m_read_handler()
1539 msg->path.res_inst_id != res->res_instances[i].res_inst_id) { in lwm2m_read_handler()
[all …]
Dlwm2m_rw_senml_cbor.c317 path->res_id, path->res_inst_id); in put_begin_ri()
354 if (path->res_inst_id > 0) { in put_name_nth_ri()
974 msg->path.res_inst_id = msg->in.block_ctx->path.res_inst_id; in do_write_op_senml_cbor()
1110 input->res_inst_id); in path_to_string()
Dipso_push_button.c86 uint16_t res_inst_id, uint8_t *data, in state_post_write_cb() argument
Dlwm2m_rw_oma_tlv.c110 path->res_inst_id : path->res_id; in tlv_calc_id()
916 msg->in.block_ctx->path.res_inst_id = tlv->id; in write_tlv_resource_instance()
919 msg->path.res_inst_id = tlv->id; in write_tlv_resource_instance()
957 msg->path.res_inst_id = tlv_resource_instance.id; in lwm2m_multi_resource_tlv_parse()
Dlwm2m_obj_gateway.c65 uint16_t res_inst_id, uint8_t *data, in prefix_validation_cb() argument
Dlwm2m_observation.c185 p->res_inst_id != o_p->res_inst_id) { in lwm2m_observer_path_compare()
466 tmp->path.res_id, tmp->path.res_inst_id, tmp->path.level); in engine_observe_node_init()
822 cur += sprintf(buf + cur, "/%u", path->res_inst_id); in lwm2m_path_log_buf()
1580 new_entry->path.res_inst_id <= entry->path.res_inst_id); in lwm2m_engine_add_path_to_list()
Dlwm2m_shell.c618 obj_path.res_inst_id, cache, elems, rc); in cmd_cache()
733 ri->res_inst_id != RES_INSTANCE_NOT_CREATED) { in print_object_instance()
744 oi->obj_inst_id, re->res_id, ri->res_inst_id); in print_object_instance()
/Zephyr-latest/samples/net/lwm2m_client/src/
Dtimer.c18 static int timer_on_off_validate_cb(uint16_t obj_inst_id, uint16_t res_id, uint16_t res_inst_id, in timer_on_off_validate_cb() argument
35 static int timer_digital_state_cb(uint16_t obj_inst_id, uint16_t res_id, uint16_t res_inst_id, in timer_digital_state_cb() argument
Dfirmware_update.c35 uint16_t res_inst_id, size_t *data_len) in firmware_get_buf() argument
42 uint16_t res_inst_id, uint8_t *data, in firmware_block_received_cb() argument
Dled.c24 static int led_on_off_cb(uint16_t obj_inst_id, uint16_t res_id, uint16_t res_inst_id, uint8_t *data, in led_on_off_cb() argument
/Zephyr-latest/tests/net/lib/lwm2m/observation/src/
Dlwm2m_observation.c39 path->res_inst_id != compare_path->res_inst_id) { in lwm2m_path_object_equal_upto()
85 entry->path.res_inst_id >= prev->path.res_inst_id; in assert_path_list_order()
136 zassert_true(entry->path.res_inst_id >= res_inst_id_max, in assert_path_list_order()
140 entry->path.res_inst_id, res_inst_id_max); in assert_path_list_order()
168 zassert_true(entry->path.res_inst_id >= res_inst_id_max, in assert_path_list_order()
172 entry->path.res_inst_id, res_inst_id_max); in assert_path_list_order()
208 res_inst_id_max = entry->path.res_inst_id; in assert_path_list_order()
/Zephyr-latest/tests/net/lib/lwm2m/interop/src/
Dfirmware_update.c33 uint16_t res_inst_id, size_t *data_len) in firmware_get_buf() argument
40 uint16_t res_inst_id, uint8_t *data, in firmware_block_received_cb() argument
/Zephyr-latest/include/zephyr/net/
Dlwm2m_path.h94 {.obj_id = oi, .obj_inst_id = oii, .res_id = ri, .res_inst_id = rii, .level = 4}
Dlwm2m.h104 uint16_t res_inst_id; /**< Resource instance ID */ member
372 uint16_t res_inst_id,
407 uint16_t res_id, uint16_t res_inst_id,
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_registry/src/
Dlwm2m_registry.c19 uint16_t res_inst_id, in pre_write_cb() argument
27 uint16_t res_inst_id, uint8_t *data, in post_write_cb() argument
37 uint16_t res_inst_id, in read_cb() argument
45 uint16_t res_inst_id, uint8_t *data, uint16_t data_len, in validate_cb() argument

12