Lines Matching refs:rt

100 	(mod_rel_list[(idx)].elem_base == mod->rt->elem_idx && \
101 mod_rel_list[(idx)].idx_base == mod->rt->mod_idx + (offset))
104 (mod_rel_list[(idx)].elem_ext == mod->rt->elem_idx && \
105 mod_rel_list[(idx)].idx_ext == mod->rt->mod_idx + (offset))
390 elem->rt->addr); in comp_add_elem()
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()
626 comp->elem[i].rt->addr); in bt_mesh_comp_data_get_page_1()
842 .src = bt_mesh_model_elem(mod)->rt->addr, in publish_transmit()
962 return &dev_comp->elem[mod->rt->elem_idx]; in bt_mesh_model_elem()
1036 mod->rt->elem_idx = elem - dev_comp->elem; in mod_init()
1038 mod->rt->mod_idx = mod - elem->vnd_models; in mod_init()
1048 mod->rt->mod_idx = mod - elem->models; in mod_init()
1120 elem->rt->addr = addr++; in bt_mesh_comp_provision()
1122 LOG_DBG("addr 0x%04x mod_count %u vnd_mod_count %u", elem->rt->addr, in bt_mesh_comp_provision()
1136 elem->rt->addr = BT_MESH_ADDR_UNASSIGNED; in bt_mesh_comp_unprovision()
1168 if (mod->rt->elem_idx != ctx->mod->rt->elem_idx) { in find_group_mod_visitor()
1226 if (mod->rt->elem_idx != ctx->mod->rt->elem_idx) { in find_uuid_mod_visitor()
1294 index = addr - dev_comp->elem[0].rt->addr; in bt_mesh_elem_find()
1376 return (dev_comp->elem[mod->rt->elem_idx].rt->addr == dst); in model_has_dst()
1380 (BT_MESH_ADDR_IS_FIXED_GROUP(dst) && mod->rt->elem_idx != 0)) { in model_has_dst()
1388 return mod->rt->elem_idx == 0; in model_has_dst()
1485 LOG_DBG("No OpCode 0x%08x for elem 0x%02x", opcode, elem->rt->addr); in element_model_recv()
1490 LOG_DBG("Model at 0x%04x is not bound to app idx %d", elem->rt->addr, ctx->app_idx); in element_model_recv()
1496 elem->rt->addr); in element_model_recv()
1544 index = ctx->recv_dst - dev_comp->elem[0].rt->addr; in bt_mesh_model_recv()
1608 return bt_mesh_delayable_msg_manage(ctx, msg, bt_mesh_model_elem(model)->rt->addr, in bt_mesh_model_send()
1613 return bt_mesh_access_send(ctx, msg, bt_mesh_model_elem(model)->rt->addr, cb, cb_data); in bt_mesh_model_send()
1713 if (cb(model, user_data) == BT_MESH_WALK_STOP || !model->rt->next) { in bt_mesh_model_extensions_walk()
1718 for (it = model->rt->next; it != model; it = it->rt->next) { in bt_mesh_model_extensions_walk()
1749 base->rt->elem_idx, in mod_rel_register()
1750 base->rt->mod_idx + get_sig_offset(base), in mod_rel_register()
1751 ext->rt->elem_idx, in mod_rel_register()
1752 ext->rt->mod_idx + get_sig_offset(ext), in mod_rel_register()
1777 const struct bt_mesh_model *a_next = a->rt->next; in bt_mesh_model_extend()
1778 const struct bt_mesh_model *b_next = b->rt->next; in bt_mesh_model_extend()
1781 base_mod->rt->flags |= BT_MESH_MOD_EXTENDED; in bt_mesh_model_extend()
1788 for (it = a; (it != NULL) && (it->rt->next != a); it = it->rt->next) { in bt_mesh_model_extend()
1796 b->rt->next = a_next; in bt_mesh_model_extend()
1798 b->rt->next = a; in bt_mesh_model_extend()
1802 a->rt->next = b_next; in bt_mesh_model_extend()
1804 a->rt->next = b; in bt_mesh_model_extend()
1855 return model->rt->flags & BT_MESH_MOD_EXTENDED; in bt_mesh_model_is_extended()
2115 uint16_t mod_key = (((uint16_t)mod->rt->elem_idx << 8) | mod->rt->mod_idx); in encode_mod_path()
2248 if (!mod->rt->flags) { in store_pending_mod()
2252 if (mod->rt->flags & BT_MESH_MOD_BIND_PENDING) { in store_pending_mod()
2253 mod->rt->flags &= ~BT_MESH_MOD_BIND_PENDING; in store_pending_mod()
2257 if (mod->rt->flags & BT_MESH_MOD_SUB_PENDING) { in store_pending_mod()
2258 mod->rt->flags &= ~BT_MESH_MOD_SUB_PENDING; in store_pending_mod()
2263 if (mod->rt->flags & BT_MESH_MOD_PUB_PENDING) { in store_pending_mod()
2264 mod->rt->flags &= ~BT_MESH_MOD_PUB_PENDING; in store_pending_mod()
2268 if (mod->rt->flags & BT_MESH_MOD_DATA_PENDING) { in store_pending_mod()
2269 mod->rt->flags &= ~BT_MESH_MOD_DATA_PENDING; in store_pending_mod()
2281 mod->rt->flags |= BT_MESH_MOD_BIND_PENDING; in bt_mesh_model_bind_store()
2287 mod->rt->flags |= BT_MESH_MOD_SUB_PENDING; in bt_mesh_model_sub_store()
2293 mod->rt->flags |= BT_MESH_MOD_PUB_PENDING; in bt_mesh_model_pub_store()
2670 mod->rt->flags |= BT_MESH_MOD_DATA_PENDING; in bt_mesh_model_data_store_schedule()