Searched refs:elem_idx (Results 1 – 11 of 11) sorted by relevance
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | utils.c | 31 uint16_t mod_id, uint8_t elem_idx) in bt_mesh_shell_mdl_instance_set() argument 36 if (elem_idx >= comp->elem_count) { in bt_mesh_shell_mdl_instance_set() 41 mod_temp = bt_mesh_model_find(&comp->elem[elem_idx], mod_id); in bt_mesh_shell_mdl_instance_set() 46 shell_error(sh, "Unable to find model instance for element index %d", elem_idx); in bt_mesh_shell_mdl_instance_set() 63 comp->elem[i].rt->addr, mod->rt->elem_idx); in bt_mesh_shell_mdl_print_all()
|
D | utils.h | 20 uint8_t elem_idx = shell_strtoul(argv[1], 0, &err); \ 27 return bt_mesh_shell_mdl_instance_set(sh, &(mod_ptr), (mod_id), elem_idx); \ 40 uint16_t mod_id, uint8_t elem_idx);
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_cdp1.c | 307 static void verify_model_item(struct bt_mesh_comp_p1_model_item *mod_item, int elem_idx, in verify_model_item() argument 310 ASSERT_EQUAL(test_p1_elem_models[elem_idx][mod_idx + offset].cor_present, in verify_model_item() 312 ASSERT_EQUAL(test_p1_elem_models[elem_idx][mod_idx + offset].format, mod_item->format); in verify_model_item() 313 ASSERT_EQUAL(test_p1_elem_models[elem_idx][mod_idx + offset].ext_item_cnt, in verify_model_item() 316 ASSERT_EQUAL(test_p1_elem_models[elem_idx][mod_idx + offset].cor_id, in verify_model_item() 321 static void verify_ext_item(struct bt_mesh_comp_p1_ext_item *ext_item, int elem_idx, int mod_idx, in verify_ext_item() argument 326 switch (elem_idx * 100 + (mod_idx + offset)) { in verify_ext_item() 340 FAIL("Unexpected call to %s (elem %d, mod %d, offset %d)", __func__, elem_idx, in verify_ext_item() 363 int elem_idx = 0; in verify_cdp1() local 366 ASSERT_EQUAL(test_p1_elems[elem_idx].nsig, p1_elem->nsig); in verify_cdp1() [all …]
|
D | test_access.c | 269 if (model->rt->elem_idx == 1) { in model3_init()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | access.c | 100 (mod_rel_list[(idx)].elem_base == mod->rt->elem_idx && \ 104 (mod_rel_list[(idx)].elem_ext == mod->rt->elem_idx && \ 541 elem_offset = mod->rt->elem_idx - mod_rel_list[i].elem_base; in add_items_to_page() 577 offset = mod->rt->elem_idx - mod_rel_list[i].elem_base; in mod_items_size() 962 return &dev_comp->elem[mod->rt->elem_idx]; in bt_mesh_model_elem() 965 const struct bt_mesh_model *bt_mesh_model_get(bool vnd, uint8_t elem_idx, uint8_t mod_idx) in bt_mesh_model_get() argument 969 if (elem_idx >= dev_comp->elem_count) { in bt_mesh_model_get() 970 LOG_ERR("Invalid element index %u", elem_idx); in bt_mesh_model_get() 974 elem = &dev_comp->elem[elem_idx]; in bt_mesh_model_get() 1036 mod->rt->elem_idx = elem - dev_comp->elem; in mod_init() [all …]
|
D | access.h | 60 const struct bt_mesh_model *bt_mesh_model_get(bool vnd, uint8_t elem_idx, uint8_t mod_idx);
|
D | cfg_srv.c | 1230 uint16_t elem_idx; member 1240 if (mod->rt->elem_idx != visit->elem_idx) { in mod_sub_list_visitor() 1259 LOG_DBG("sublist: model %u:%x: %u groups", mod->rt->elem_idx, mod->id, count); in mod_sub_list_visitor() 1308 visit_ctx.elem_idx = mod->rt->elem_idx; in mod_sub_get() 1367 visit_ctx.elem_idx = mod->rt->elem_idx; in mod_sub_get_vnd()
|
D | rpr_cli.c | 366 if (mod->rt->elem_idx) { in rpr_cli_init()
|
D | rpr_srv.c | 1314 if (mod->rt->elem_idx || srv.mod) { in rpr_srv_init()
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | access.h | 901 uint8_t elem_idx; /* Belongs to Nth element */ member 1048 return (mod->rt->elem_idx == 0); in bt_mesh_model_in_primary()
|
/Zephyr-latest/doc/releases/ |
D | migration-guide-3.6.rst | 490 The ``model->user_data``, ``model->elem_idx`` and ``model->mod_idx`` field has been changed to 491 the new runtime structure, replaced by ``model->rt->user_data``, ``model->rt->elem_idx`` and
|