Lines Matching refs:mod_idx
101 mod_rel_list[(idx)].idx_base == mod->rt->mod_idx + (offset))
105 mod_rel_list[(idx)].idx_ext == mod->rt->mod_idx + (offset))
536 uint8_t mod_idx; in add_items_to_page() local
542 mod_idx = mod_rel_list[i].idx_base; in add_items_to_page()
551 elem_offset |= mod_idx << 3; in add_items_to_page()
559 data_buf_add_u8_offset(buf, mod_idx, offset); in add_items_to_page()
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
977 if (mod_idx >= elem->vnd_model_count) { in bt_mesh_model_get()
978 LOG_ERR("Invalid vendor model index %u", mod_idx); in bt_mesh_model_get()
982 return &elem->vnd_models[mod_idx]; in bt_mesh_model_get()
984 if (mod_idx >= elem->model_count) { in bt_mesh_model_get()
985 LOG_ERR("Invalid SIG model index %u", mod_idx); in bt_mesh_model_get()
989 return &elem->models[mod_idx]; in bt_mesh_model_get()
1038 mod->rt->mod_idx = mod - elem->vnd_models; in mod_init()
1048 mod->rt->mod_idx = mod - elem->models; in mod_init()
1750 base->rt->mod_idx + get_sig_offset(base), in mod_rel_register()
1752 ext->rt->mod_idx + get_sig_offset(ext), in mod_rel_register()
2024 uint8_t elem_idx, mod_idx; in mod_set() local
2036 mod_idx = mod_key; in mod_set()
2038 LOG_DBG("Decoded mod_key 0x%04x as elem_idx %u mod_idx %u", mod_key, elem_idx, mod_idx); in mod_set()
2040 mod = bt_mesh_model_get(vnd, elem_idx, mod_idx); in mod_set()
2042 LOG_ERR("Failed to get model for elem_idx %u mod_idx %u", elem_idx, mod_idx); in mod_set()
2115 uint16_t mod_key = (((uint16_t)mod->rt->elem_idx << 8) | mod->rt->mod_idx); in encode_mod_path()