Lines Matching refs:mod_rel_list

88 static struct mod_relation mod_rel_list[MOD_REL_LIST_SIZE];  variable
92 (idx) < ARRAY_SIZE(mod_rel_list) && \
93 !(mod_rel_list[(idx)].elem_base == 0 && \
94 mod_rel_list[(idx)].idx_base == 0 && \
95 mod_rel_list[(idx)].elem_ext == 0 && \
96 mod_rel_list[(idx)].idx_ext == 0); \
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))
469 mod_rel_list[i].type == RELATION_TYPE_EXT) { in count_mod_ext()
471 offset = mod_rel_list[i].elem_ext - in count_mod_ext()
472 mod_rel_list[i].elem_base; in count_mod_ext()
493 mod_rel_list[i].type < RELATION_TYPE_EXT) { in is_cor_present()
495 memcpy(cor_id, &mod_rel_list[i].type, sizeof(uint8_t)); in is_cor_present()
540 mod_rel_list[i].type == RELATION_TYPE_EXT) { in add_items_to_page()
541 elem_offset = mod->rt->elem_idx - mod_rel_list[i].elem_base; in add_items_to_page()
542 mod_idx = mod_rel_list[i].idx_base; in add_items_to_page()
577 offset = mod->rt->elem_idx - mod_rel_list[i].elem_base; in mod_items_size()
1070 memset(mod_rel_list, 0, sizeof(mod_rel_list)); in bt_mesh_comp_register()
1080 mod_rel_list[i].type < RELATION_TYPE_EXT ? in bt_mesh_comp_register()
1083 mod_rel_list[i].elem_base, in bt_mesh_comp_register()
1084 mod_rel_list[i].idx_base); in bt_mesh_comp_register()
1086 mod_rel_list[i].elem_ext, in bt_mesh_comp_register()
1087 mod_rel_list[i].idx_ext); in bt_mesh_comp_register()
1757 for (i = 0; i < ARRAY_SIZE(mod_rel_list); i++) { in mod_rel_register()
1758 if (mod_rel_list[i].elem_base == 0 && in mod_rel_register()
1759 mod_rel_list[i].idx_base == 0 && in mod_rel_register()
1760 mod_rel_list[i].elem_ext == 0 && in mod_rel_register()
1761 mod_rel_list[i].idx_ext == 0) { in mod_rel_register()
1762 memcpy(&mod_rel_list[i], &extension, in mod_rel_register()
1832 if (mod_rel_list[i].type < RELATION_TYPE_EXT && in bt_mesh_model_correspond()
1833 mod_rel_list[i].type > cor_id) { in bt_mesh_model_correspond()
1834 cor_id = mod_rel_list[i].type; in bt_mesh_model_correspond()
1841 mod_rel_list[i].type < RELATION_TYPE_EXT) { in bt_mesh_model_correspond()
1842 return mod_rel_register(base_mod, corresponding_mod, mod_rel_list[i].type); in bt_mesh_model_correspond()