Lines Matching defs:tree
809 auto tree = pldm_entity_association_tree_init();
810 EXPECT_NE(tree, nullptr);
811 pldm_entity_association_tree_destroy(tree);
836 auto tree = pldm_entity_association_tree_init();
839 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
842 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
845 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
848 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
851 tree, &entities[4], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
854 tree, &entities[5], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
857 tree, &entities[6], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
860 tree, &entities[7], 0xffff, l3a, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
863 tree, &entities[8], 0xffff, l3b, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
929 pldm_entity_association_tree_visit(tree, &out, &num);
1005 pldm_entity_association_tree_destroy(tree);
1039 auto tree = pldm_entity_association_tree_init();
1041 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_LOGICAL,
1045 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false,
1049 tree, &entities[2], 0xffff, l2, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false,
1053 tree, &entities[3], 0, l3, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false,
1057 tree, &entities[4], 1, l3, PLDM_ENTITY_ASSOCIAION_PHYSICAL, true, true,
1061 tree, &entities[5], 0, l4a, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false,
1065 tree, &entities[6], 0, l4b, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false,
1072 auto result1 = pldm_entity_association_tree_find(tree, &entity);
1076 tree, &entities[7], 0, result1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false,
1082 auto result2 = pldm_entity_association_tree_find(tree, &entity);
1086 tree, &entities[8], 0, result2, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false,
1089 pldm_entity_association_tree_destroy(tree);
1102 auto tree = pldm_entity_association_tree_init();
1104 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1108 pldm_entity_association_tree_visit(tree, &out, &num);
1114 pldm_entity_association_tree_destroy(tree);
1117 tree = pldm_entity_association_tree_init();
1118 node = pldm_entity_association_tree_add(tree, &entities[0], 0xffff, nullptr,
1121 node = pldm_entity_association_tree_add(tree, &entities[1], 0xffff, nullptr,
1124 node = pldm_entity_association_tree_add(tree, &entities[2], 0xffff, nullptr,
1127 pldm_entity_association_tree_visit(tree, &out, &num);
1139 pldm_entity_association_tree_destroy(tree);
1146 tree = pldm_entity_association_tree_init();
1147 node = pldm_entity_association_tree_add(tree, &entities[0], 0xffff, nullptr,
1151 tree, &entities[1], 0xffff, node, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1154 tree, &entities[2], 0xffff, node1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1156 pldm_entity_association_tree_visit(tree, &out, &num);
1168 pldm_entity_association_tree_destroy(tree);
1173 tree = pldm_entity_association_tree_init();
1174 node = pldm_entity_association_tree_add(tree, &entities[0], 0xffff, nullptr,
1177 node = pldm_entity_association_tree_add(tree, &entities[0], 0xffff, nullptr,
1180 node1 = pldm_entity_association_tree_add(tree, &entities[1], 0xffff, node,
1183 node2 = pldm_entity_association_tree_add(tree, &entities[2], 0xffff, node,
1186 pldm_entity_association_tree_visit(tree, &out, &num);
1201 pldm_entity_association_tree_destroy(tree);
1239 auto tree = pldm_entity_association_tree_init();
1242 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1245 tree, &entities[1], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1249 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1251 auto l2b = pldm_entity_association_tree_add(tree, &entities[2], 0xffff, l1,
1255 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1257 auto l2d = pldm_entity_association_tree_add(tree, &entities[4], 0xffff, l1,
1262 tree, &entities[5], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1265 tree, &entities[6], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1267 auto l3c = pldm_entity_association_tree_add(tree, &entities[7], 0xffff, l2a,
1270 auto l3d = pldm_entity_association_tree_add(tree, &entities[8], 0xffff, l2a,
1275 tree, &entities[9], 0xffff, l3a, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1278 tree, &entities[10], 0xffff, l3b, PLDM_ENTITY_ASSOCIAION_LOGICAL);
1293 int rc = pldm_entity_association_pdr_add(tree, repo, false, 1);
1535 pldm_entity_association_tree_destroy(tree);
1555 auto tree = pldm_entity_association_tree_init();
1558 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1562 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1564 pldm_entity_association_tree_add(tree, &entities[2], 0xffff, l1,
1570 pldm_find_entity_ref_in_tree(tree, entities[0], &node);
1632 pldm_entity_association_tree_destroy(tree);
1657 auto tree = pldm_entity_association_tree_init();
1660 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1663 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1666 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1669 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1672 tree, &entities[4], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1675 tree, &entities[5], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1678 tree, &entities[6], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1681 tree, &entities[7], 0xffff, l3a, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1684 tree, &entities[8], 0xffff, l3b, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1691 auto result = pldm_entity_association_tree_find(tree, &entity);
1697 result = pldm_entity_association_tree_find(tree, &entity);
1702 result = pldm_entity_association_tree_find(tree, &entity);
1707 result = pldm_entity_association_tree_find(tree, &entity);
1713 result = pldm_entity_association_tree_find(tree, &entity);
1717 pldm_entity_association_tree_destroy(tree);
1843 auto tree = pldm_entity_association_tree_init();
1845 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1848 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1851 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1854 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1872 pldm_entity_association_tree_destroy(tree);
1889 auto tree = pldm_entity_association_tree_init();
1898 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
1901 auto l1 = pldm_entity_association_tree_add(tree, &entities[1], 63, node,
1918 auto l2 = pldm_entity_association_tree_add(tree, &entities[2], 37, node,
1935 auto l3 = pldm_entity_association_tree_add(tree, &entities[3], 44, node,
1952 auto l4 = pldm_entity_association_tree_add(tree, &entities[4], 89, node,
1969 auto l5 = pldm_entity_association_tree_add(tree, &entities[5], 0xffff, node,
1986 auto l6 = pldm_entity_association_tree_add(tree, &entities[6], 90, node,
1990 auto l7 = pldm_entity_association_tree_add(tree, &entities[7], 100, l1,
2007 auto l8 = pldm_entity_association_tree_add(tree, &entities[8], 100, l2,
2025 pldm_entity_association_tree_destroy(tree);
2038 auto tree = pldm_entity_association_tree_init();
2040 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_LOGICAL,
2045 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false,
2049 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false,
2057 int rc = pldm_entity_association_pdr_add(tree, repo, false, 1);
2073 pldm_entity_association_tree_destroy(tree);
2086 auto tree = pldm_entity_association_tree_init();
2089 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
2092 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
2095 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
2098 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
2144 pldm_entity_association_tree_destroy(tree);
2158 auto tree = pldm_entity_association_tree_init();
2160 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
2163 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
2166 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
2169 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
2172 tree, &entities[4], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
2202 pldm_entity_association_tree_destroy(tree);
2217 auto tree = pldm_entity_association_tree_init();
2219 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
2222 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
2225 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
2228 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
2231 tree, &entities[4], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL);
2268 pldm_entity_association_tree_destroy(tree);
2282 auto tree = pldm_entity_association_tree_init();
2284 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_LOGICAL,
2289 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false,
2293 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false,
2297 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false,
2341 pldm_entity_association_tree_destroy(tree);