/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/lwm2m_rd_client/src/ |
D | stubs.c | 63 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_get_u32, const struct lwm2m_obj_path *, uint32_t *); 64 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_get_u16, const struct lwm2m_obj_path *, uint16_t *); 65 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_get_bool, const struct lwm2m_obj_path *, bool *); 66 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_set_u32, const struct lwm2m_obj_path *, uint32_t); 67 int lwm2m_get_bool_fake_default(const struct lwm2m_obj_path *path, bool *value) in lwm2m_get_bool_fake_default() 72 int lwm2m_get_bool_fake_true(const struct lwm2m_obj_path *path, bool *value) in lwm2m_get_bool_fake_true() 80 int lwm2m_get_u32_val(const struct lwm2m_obj_path *path, uint32_t *val) in lwm2m_get_u32_val() 193 FAKE_VALUE_FUNC(int, put_begin, struct lwm2m_output_context *, struct lwm2m_obj_path *); 194 FAKE_VALUE_FUNC(int, put_end, struct lwm2m_output_context *, struct lwm2m_obj_path *); 195 FAKE_VALUE_FUNC(int, put_begin_oi, struct lwm2m_output_context *, struct lwm2m_obj_path *); [all …]
|
D | stubs.h | 46 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_get_u32, const struct lwm2m_obj_path *, uint32_t *); 47 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_get_u16, const struct lwm2m_obj_path *, uint16_t *); 48 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_get_bool, const struct lwm2m_obj_path *, bool *); 49 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_set_u32, const struct lwm2m_obj_path *, uint32_t); 50 int lwm2m_get_bool_fake_default(const struct lwm2m_obj_path *path, bool *value); 51 int lwm2m_get_bool_fake_true(const struct lwm2m_obj_path *path, bool *value); 53 int lwm2m_get_u32_val(const struct lwm2m_obj_path *path, uint32_t *val);
|
/Zephyr-Core-3.5.0/include/zephyr/net/ |
D | lwm2m.h | 92 struct lwm2m_obj_path { struct 120 typedef void (*lwm2m_observe_cb_t)(enum lwm2m_observe_event event, struct lwm2m_obj_path *path, argument 749 const struct lwm2m_obj_path *path, uint32_t period_s); 786 const struct lwm2m_obj_path *path, uint32_t period_s); 815 int lwm2m_create_object_inst(const struct lwm2m_obj_path *path); 840 int lwm2m_delete_object_inst(const struct lwm2m_obj_path *path); 880 int lwm2m_set_opaque(const struct lwm2m_obj_path *path, const char *data_ptr, uint16_t data_len); 903 int lwm2m_set_string(const struct lwm2m_obj_path *path, const char *data_ptr); 926 int lwm2m_set_u8(const struct lwm2m_obj_path *path, uint8_t value); 949 int lwm2m_set_u16(const struct lwm2m_obj_path *path, uint16_t value); [all …]
|
D | lwm2m_path.h | 84 #define LWM2M_OBJ1(oi) (struct lwm2m_obj_path) {.obj_id = oi, .level = 1} 85 #define LWM2M_OBJ2(oi, oii) (struct lwm2m_obj_path) {.obj_id = oi, .obj_inst_id = oii, .level = 2} 86 #define LWM2M_OBJ3(oi, oii, ri) (struct lwm2m_obj_path) \ 88 #define LWM2M_OBJ4(oi, oii, ri, rii) (struct lwm2m_obj_path) \
|
/Zephyr-Core-3.5.0/subsys/net/lib/lwm2m/ |
D | lwm2m_registry.h | 68 int lwm2m_engine_get_create_res_inst(const struct lwm2m_obj_path *path, 90 int lwm2m_get_resource(const struct lwm2m_obj_path *path, struct lwm2m_engine_res **res); 99 struct lwm2m_engine_obj *lwm2m_engine_get_obj(const struct lwm2m_obj_path *path); 108 struct lwm2m_engine_obj_inst *lwm2m_engine_get_obj_inst(const struct lwm2m_obj_path *path); 117 struct lwm2m_engine_res *lwm2m_engine_get_res(const struct lwm2m_obj_path *path); 126 struct lwm2m_engine_res_inst *lwm2m_engine_get_res_inst(const struct lwm2m_obj_path *path); 158 int path_to_objs(const struct lwm2m_obj_path *path, struct lwm2m_engine_obj_inst **obj_inst, 222 struct lwm2m_obj_path path; 247 lwm2m_cache_entry_get_by_object(const struct lwm2m_obj_path *obj_path);
|
D | lwm2m_registry.c | 64 const struct lwm2m_obj_path *path, const void *value, 123 struct lwm2m_engine_obj *lwm2m_engine_get_obj(const struct lwm2m_obj_path *path) in lwm2m_engine_get_obj() 284 int lwm2m_create_object_inst(const struct lwm2m_obj_path *path) in lwm2m_create_object_inst() 306 struct lwm2m_obj_path path; in lwm2m_engine_create_obj_inst() 320 int lwm2m_delete_object_inst(const struct lwm2m_obj_path *path) in lwm2m_delete_object_inst() 341 struct lwm2m_obj_path path; in lwm2m_engine_delete_obj_inst() 355 struct lwm2m_engine_obj_inst *lwm2m_engine_get_obj_inst(const struct lwm2m_obj_path *path) in lwm2m_engine_get_obj_inst() 364 int path_to_objs(const struct lwm2m_obj_path *path, struct lwm2m_engine_obj_inst **obj_inst, in path_to_objs() 440 static bool is_string(const struct lwm2m_obj_path *path) in is_string() 457 int lwm2m_set_res_buf(const struct lwm2m_obj_path *path, void *buffer_ptr, uint16_t buffer_len, in lwm2m_set_res_buf() [all …]
|
D | lwm2m_object.h | 446 struct lwm2m_obj_path path; 491 struct lwm2m_obj_path path; 534 struct lwm2m_obj_path *path); 536 struct lwm2m_obj_path *path); 538 struct lwm2m_obj_path *path); 540 struct lwm2m_obj_path *path); 542 struct lwm2m_obj_path *path); 544 struct lwm2m_obj_path *path); 546 struct lwm2m_obj_path *path); 548 struct lwm2m_obj_path *path); [all …]
|
D | lwm2m_util.h | 27 int lwm2m_string_to_path(const char *pathstr, struct lwm2m_obj_path *path, char delim); 29 bool lwm2m_obj_path_equal(const struct lwm2m_obj_path *a, const struct lwm2m_obj_path *b);
|
D | lwm2m_observation.h | 11 int lwm2m_notify_observer_path(const struct lwm2m_obj_path *path); 58 struct lwm2m_obj_path path; 73 const struct lwm2m_obj_path *path); 75 int lwm2m_get_path_reference_ptr(struct lwm2m_engine_obj *obj, const struct lwm2m_obj_path *path,
|
D | lwm2m_rw_plain_text.c | 101 struct lwm2m_obj_path *path, int32_t value) in put_s32() 106 static int put_s8(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_s8() 113 struct lwm2m_obj_path *path, int16_t value) in put_s16() 119 struct lwm2m_obj_path *path, int64_t value) in put_s64() 125 struct lwm2m_obj_path *path, time_t value) in put_time() 131 struct lwm2m_obj_path *path, double *value) in plain_text_put_float() 150 struct lwm2m_obj_path *path, char *buf, size_t buflen) in put_string() 163 struct lwm2m_obj_path *path, bool value) in put_bool() 173 struct lwm2m_obj_path *path, struct lwm2m_objlnk *value) in put_objlnk()
|
D | lwm2m_rw_senml_cbor.c | 73 static int path_to_string(char *buf, size_t buf_size, const struct lwm2m_obj_path *input, 142 static int put_basename(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_basename() 188 static int put_end(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_end() 213 static int put_begin_oi(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_begin_oi() 227 static int put_begin_r(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_begin_r() 302 static int put_begin_ri(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_begin_ri() 347 static int put_name_nth_ri(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_name_nth_ri() 364 static int put_value(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int64_t value) in put_value() 382 static int put_s8(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int8_t value) in put_s8() 387 static int put_s16(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int16_t value) in put_s16() [all …]
|
D | lwm2m_rw_cbor.c | 34 static int put_time(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, time_t value) in put_time() 94 struct lwm2m_obj_path *path, int64_t value) in put_s64() 114 static int put_s32(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int32_t value) in put_s32() 134 static int put_s16(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int16_t value) in put_s16() 139 static int put_s8(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int8_t value) in put_s8() 145 struct lwm2m_obj_path *path, double *value) in put_float() 164 static int put_string(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_string() 184 static int put_opaque(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_opaque() 204 static int put_bool(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, bool value) in put_bool() 223 static int put_objlnk(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_objlnk()
|
D | lwm2m_rw_json.c | 194 struct lwm2m_obj_path *path) in init_object_name_parameters() 426 struct lwm2m_obj_path *path) in put_begin() 453 struct lwm2m_obj_path *path) in put_end() 466 struct lwm2m_obj_path *path) in put_begin_ri() 480 struct lwm2m_obj_path *path) in put_end_ri() 493 static int put_s32(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int32_t value) in put_s32() 517 struct lwm2m_obj_path *path, int16_t value) in put_s16() 522 static int put_s8(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_s8() 529 struct lwm2m_obj_path *path, int64_t value) in put_s64() 552 static int put_time(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, time_t value) in put_time() [all …]
|
D | lwm2m_rw_oma_tlv.c | 107 static uint16_t tlv_calc_id(uint8_t flags, struct lwm2m_obj_path *path) in tlv_calc_id() 333 struct lwm2m_obj_path *path) in put_begin_oi() 351 struct lwm2m_obj_path *path) in put_end_oi() 369 struct lwm2m_obj_path *path) in put_begin_ri() 383 struct lwm2m_obj_path *path) in put_end_ri() 403 static int put_s8(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_s8() 423 struct lwm2m_obj_path *path, int16_t value) in put_s16() 448 struct lwm2m_obj_path *path, int32_t value) in put_s32() 474 struct lwm2m_obj_path *path, int64_t value) in put_s64() 499 static int put_time(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, time_t value) in put_time() [all …]
|
D | lwm2m_rw_link_format.c | 44 struct lwm2m_obj_path *path) in put_begin() 237 const struct lwm2m_obj_path *path, in put_corelink_attributes_resource() 257 const struct lwm2m_obj_path *path, in put_corelink_ssid() 320 const struct lwm2m_obj_path *path, in put_obj_corelink() 371 const struct lwm2m_obj_path *path, in put_obj_inst_corelink() 437 const struct lwm2m_obj_path *path, in put_res_corelink() 501 const struct lwm2m_obj_path *path, in put_res_inst_corelink() 550 const struct lwm2m_obj_path *path) in put_corelink()
|
D | lwm2m_rw_plain_text.h | 56 struct lwm2m_obj_path *path,
|
D | lwm2m_rw_senml_json.c | 120 struct lwm2m_obj_path base_name; 303 struct lwm2m_obj_path *path) in init_object_name_parameters() 331 static int put_begin(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_begin() 351 static int put_end(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_end() 369 static int put_begin_oi(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_begin_oi() 398 static int put_begin_ri(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_begin_ri() 411 static int put_end_ri(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_end_ri() 424 static int put_end_r(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_end_r() 738 static int put_s32(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int32_t value) in put_s32() 761 static int put_s16(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int16_t value) in put_s16() [all …]
|
D | lwm2m_observation.c | 144 static bool lwm2m_observer_path_compare(const struct lwm2m_obj_path *o_p, in lwm2m_observer_path_compare() 145 const struct lwm2m_obj_path *p) in lwm2m_observer_path_compare() 175 static bool lwm2m_notify_observer_list(sys_slist_t *path_list, const struct lwm2m_obj_path *path) in lwm2m_notify_observer_list() 190 struct lwm2m_obj_path path; in lwm2m_notify_observer() 200 static int engine_observe_get_attributes(const struct lwm2m_obj_path *path, in engine_observe_get_attributes() 336 int lwm2m_notify_observer_path(const struct lwm2m_obj_path *path) in lwm2m_notify_observer_path() 504 if (memcmp(&obs_path->path, &comp_path->path, sizeof(struct lwm2m_obj_path))) { in engine_compare_obs_path_list() 589 memcpy(&obs_path_list_buf.path, &msg->path, sizeof(struct lwm2m_obj_path)); in engine_add_observer() 786 char *lwm2m_path_log_buf(char *buf, struct lwm2m_obj_path *path) in lwm2m_path_log_buf() 812 static int engine_remove_observer_by_path(struct lwm2m_ctx *ctx, struct lwm2m_obj_path *path) in engine_remove_observer_by_path() [all …]
|
D | lwm2m_shell.c | 62 struct lwm2m_obj_path lwm2m_path_list[CONFIG_LWM2M_COMPOSITE_PATH_LIST_SIZE]; in cmd_send() 107 struct lwm2m_obj_path path; in cmd_exec() 157 struct lwm2m_obj_path path; in cmd_read() 305 struct lwm2m_obj_path path; in cmd_write() 376 struct lwm2m_obj_path path; in cmd_create() 539 struct lwm2m_obj_path obj_path; in cmd_cache()
|
D | lwm2m_engine.h | 75 bool lwm2m_engine_bootstrap_override(struct lwm2m_ctx *client_ctx, struct lwm2m_obj_path *path);
|
D | ipso_buzzer.c | 103 struct lwm2m_obj_path path = LWM2M_OBJ(IPSO_OBJECT_BUZZER_ID, buzzer->obj_inst_id, in start_buzzer() 130 struct lwm2m_obj_path path = LWM2M_OBJ(IPSO_OBJECT_BUZZER_ID, buzzer->obj_inst_id, in stop_buzzer()
|
/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/lwm2m_engine/src/ |
D | stubs.h | 45 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_get_res_buf, const struct lwm2m_obj_path *, void **, uint16_t *, 53 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_get_bool, const struct lwm2m_obj_path *, bool *);
|
D | stubs.c | 31 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_get_res_buf, const struct lwm2m_obj_path *, void **, uint16_t *, 39 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_get_bool, const struct lwm2m_obj_path *, bool *);
|
/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/engine/src/ |
D | lwm2m_observation.c | 21 static bool lwm2m_path_object_equal_upto(struct lwm2m_obj_path *path, in lwm2m_path_object_equal_upto() 22 struct lwm2m_obj_path *compare_path, uint8_t level) in lwm2m_path_object_equal_upto() 230 struct lwm2m_obj_path insert_path; in run_insertion_test() 249 struct lwm2m_obj_path expected_path; in run_insertion_test() 252 zassert_mem_equal(&entry->path, &expected_path, sizeof(struct lwm2m_obj_path), in run_insertion_test()
|
/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/interop/src/ |
D | lwm2m-client.c | 127 struct lwm2m_obj_path *path, void *user_data) in observe_cb()
|