Lines Matching defs:pg

78 	topo_pgroup_t *pg;
82 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL;
83 pg = topo_list_next(pg)) {
84 if (strcmp(pg->tpg_info->tpi_name, pgname) == 0) {
85 return (pg);
93 propval_get(topo_pgroup_t *pg, const char *pname)
97 if (pg == NULL)
100 for (pvl = topo_list_next(&pg->tpg_pvals); pvl != NULL;
519 topo_pgroup_t *pg;
526 if ((pg = pgroup_get(node, pgname)) == NULL) {
532 if ((pv = propval_get(pg, pname)) != NULL) {
558 topo_list_append(&pg->tpg_pvals, pvl);
977 topo_pgroup_t *pg;
983 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL;
984 pg = topo_list_next(pg)) {
985 if (strcmp(pg->tpg_info->tpi_name, pgname) == 0) {
990 if (pg == NULL) {
995 for (pvl = topo_list_next(&pg->tpg_list); pvl != NULL;
999 topo_list_delete(&pg->tpg_pvals, pvl);
1074 topo_pgroup_t *pg;
1105 if ((pg = pgroup_get(node, pgname)) == NULL)
1114 topo_list_append(&pg->tpg_pvals, pvl);
1126 topo_pgroup_t *pg;
1131 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL;
1132 pg = topo_list_next(pg)) {
1133 if (strcmp(pgname, pg->tpg_info->tpi_name) == 0) {
1138 pip = pg->tpg_info;
1161 pgroup_seterr(tnode_t *node, topo_pgroup_t *pg, topo_ipgroup_info_t *pip,
1172 topo_hdl_free(thp, pg, sizeof (topo_pgroup_t));
1183 topo_pgroup_t *pg;
1193 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL;
1194 pg = topo_list_next(pg)) {
1195 if (strcmp(pg->tpg_info->tpi_name, pinfo->tpi_name) == 0) {
1202 if ((pg = topo_hdl_zalloc(thp, sizeof (topo_pgroup_t))) == NULL) {
1210 return (pgroup_seterr(node, pg, pip, err));
1214 return (pgroup_seterr(node, pg, pip, err));
1220 pg->tpg_info = pip;
1222 topo_list_append(&node->tn_pgroups, pg);
1232 topo_pgroup_t *pg;
1237 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL;
1238 pg = topo_list_next(pg)) {
1239 if (strcmp(pg->tpg_info->tpi_name, pname) == 0) {
1244 if (pg == NULL) {
1249 while ((pvl = topo_list_next(&pg->tpg_list)) != NULL) {
1250 topo_list_delete(&pg->tpg_pvals, pvl);
1255 topo_list_delete(&node->tn_pgroups, pg);
1258 pip = pg->tpg_info;
1265 topo_hdl_free(thp, pg, sizeof (topo_pgroup_t));
1272 topo_pgroup_t *pg;
1277 while ((pg = topo_list_next(&node->tn_pgroups)) != NULL) {
1278 while ((pvl = topo_list_next(&pg->tpg_pvals)) != NULL) {
1279 topo_list_delete(&pg->tpg_pvals, pvl);
1284 topo_list_delete(&node->tn_pgroups, pg);
1286 pip = pg->tpg_info;
1293 topo_hdl_free(thp, pg, sizeof (topo_pgroup_t));
1415 topo_pgroup_t *pg;
1425 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL;
1426 pg = topo_list_next(pg)) {
1428 if (strcmp(pgname, pg->tpg_info->tpi_name) != 0)
1432 pg->tpg_info->tpi_name) != 0 ||
1434 topo_stability2name(pg->tpg_info->tpi_namestab)) != 0 ||
1436 topo_stability2name(pg->tpg_info->tpi_datastab)) != 0 ||
1438 pg->tpg_info->tpi_version) != 0)
1442 for (pvl = topo_list_next(&pg->tpg_pvals); pvl != NULL;
1486 topo_pgroup_t *pg;
1495 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL;
1496 pg = topo_list_next(pg)) {
1501 pg->tpg_info->tpi_name) != 0 ||
1503 topo_stability2name(pg->tpg_info->tpi_namestab)) != 0 ||
1505 topo_stability2name(pg->tpg_info->tpi_datastab)) != 0 ||
1507 pg->tpg_info->tpi_version) != 0)
1511 for (pvl = topo_list_next(&pg->tpg_pvals); pvl != NULL;