Lines Matching refs: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;
521 topo_pgroup_t *pg;
528 if ((pg = pgroup_get(node, pgname)) == NULL) {
534 if ((pv = propval_get(pg, pname)) != NULL) {
560 topo_list_append(&pg->tpg_pvals, pvl);
980 topo_pgroup_t *pg;
986 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL;
987 pg = topo_list_next(pg)) {
988 if (strcmp(pg->tpg_info->tpi_name, pgname) == 0) {
993 if (pg == NULL) {
998 for (pvl = topo_list_next(&pg->tpg_list); pvl != NULL;
1002 topo_list_delete(&pg->tpg_pvals, pvl);
1077 topo_pgroup_t *pg;
1108 if ((pg = pgroup_get(node, pgname)) == NULL)
1117 topo_list_append(&pg->tpg_pvals, pvl);
1129 topo_pgroup_t *pg;
1134 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL;
1135 pg = topo_list_next(pg)) {
1136 if (strcmp(pgname, pg->tpg_info->tpi_name) == 0) {
1141 pip = pg->tpg_info;
1164 pgroup_seterr(tnode_t *node, topo_pgroup_t *pg, topo_ipgroup_info_t *pip,
1175 topo_hdl_free(thp, pg, sizeof (topo_pgroup_t));
1186 topo_pgroup_t *pg;
1196 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL;
1197 pg = topo_list_next(pg)) {
1198 if (strcmp(pg->tpg_info->tpi_name, pinfo->tpi_name) == 0) {
1205 if ((pg = topo_hdl_zalloc(thp, sizeof (topo_pgroup_t))) == NULL) {
1213 return (pgroup_seterr(node, pg, pip, err));
1217 return (pgroup_seterr(node, pg, pip, err));
1223 pg->tpg_info = pip;
1225 topo_list_append(&node->tn_pgroups, pg);
1235 topo_pgroup_t *pg;
1240 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL;
1241 pg = topo_list_next(pg)) {
1242 if (strcmp(pg->tpg_info->tpi_name, pname) == 0) {
1247 if (pg == NULL) {
1252 while ((pvl = topo_list_next(&pg->tpg_list)) != NULL) {
1253 topo_list_delete(&pg->tpg_pvals, pvl);
1258 topo_list_delete(&node->tn_pgroups, pg);
1261 pip = pg->tpg_info;
1268 topo_hdl_free(thp, pg, sizeof (topo_pgroup_t));
1275 topo_pgroup_t *pg;
1280 while ((pg = topo_list_next(&node->tn_pgroups)) != NULL) {
1281 while ((pvl = topo_list_next(&pg->tpg_pvals)) != NULL) {
1282 topo_list_delete(&pg->tpg_pvals, pvl);
1287 topo_list_delete(&node->tn_pgroups, pg);
1289 pip = pg->tpg_info;
1296 topo_hdl_free(thp, pg, sizeof (topo_pgroup_t));
1421 topo_pgroup_t *pg;
1431 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL;
1432 pg = topo_list_next(pg)) {
1434 if (strcmp(pgname, pg->tpg_info->tpi_name) != 0)
1438 pg->tpg_info->tpi_name) != 0 ||
1440 topo_stability2name(pg->tpg_info->tpi_namestab)) != 0 ||
1442 topo_stability2name(pg->tpg_info->tpi_datastab)) != 0 ||
1444 pg->tpg_info->tpi_version) != 0)
1448 for (pvl = topo_list_next(&pg->tpg_pvals); pvl != NULL;
1493 topo_pgroup_t *pg;
1502 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL;
1503 pg = topo_list_next(pg)) {
1508 pg->tpg_info->tpi_name) != 0 ||
1510 topo_stability2name(pg->tpg_info->tpi_namestab)) != 0 ||
1512 topo_stability2name(pg->tpg_info->tpi_datastab)) != 0 ||
1514 pg->tpg_info->tpi_version) != 0)
1518 for (pvl = topo_list_next(&pg->tpg_pvals); pvl != NULL;