Lines Matching defs:plp
1526 struct prop_lookup *plp = (struct prop_lookup *)pdata;
1528 (void) topo_prop_getprop(node, plp->pl_pgroup, plp->pl_pname,
1529 plp->pl_args, &plp->pl_prop, &err);
1540 struct prop_lookup *plp;
1545 if ((plp = topo_mod_alloc(mod, sizeof (struct prop_lookup))) == NULL)
1549 (char **)&plp->pl_pgroup);
1551 (char **)&plp->pl_pname);
1552 err |= nvlist_lookup_nvlist(in, TOPO_PROP_RESOURCE, &plp->pl_rsrc);
1554 topo_mod_free(mod, plp, sizeof (struct prop_lookup));
1561 if ((err = nvlist_lookup_nvlist(in, TOPO_PROP_PARGS, &plp->pl_args))
1564 topo_mod_free(mod, plp, sizeof (struct prop_lookup));
1567 plp->pl_args = NULL;
1571 plp->pl_prop = NULL;
1572 if ((hwp = hc_walk_init(mod, node, plp->pl_rsrc, hc_prop_get,
1573 (void *)plp)) != NULL) {
1585 if (plp->pl_prop != NULL)
1586 *out = plp->pl_prop;
1588 topo_mod_free(mod, plp, sizeof (struct prop_lookup));
1599 struct prop_lookup *plp = (struct prop_lookup *)pdata;
1601 (void) topo_prop_getpgrp(node, plp->pl_pgroup, &plp->pl_prop, &err);
1612 struct prop_lookup *plp;
1617 if ((plp = topo_mod_alloc(mod, sizeof (struct prop_lookup))) == NULL)
1621 (char **)&plp->pl_pgroup);
1622 err |= nvlist_lookup_nvlist(in, TOPO_PROP_RESOURCE, &plp->pl_rsrc);
1624 topo_mod_free(mod, plp, sizeof (struct prop_lookup));
1628 plp->pl_prop = NULL;
1629 if ((hwp = hc_walk_init(mod, node, plp->pl_rsrc, hc_pgrp_get,
1630 (void *)plp)) != NULL) {
1642 if (plp->pl_prop != NULL)
1643 *out = plp->pl_prop;
1645 topo_mod_free(mod, plp, sizeof (struct prop_lookup));
1656 struct prop_lookup *plp = (struct prop_lookup *)pdata;
1658 (void) topo_prop_setprop(node, plp->pl_pgroup, plp->pl_prop,
1659 plp->pl_flag, plp->pl_args, &err);
1671 struct prop_lookup *plp;
1676 if ((plp = topo_mod_alloc(mod, sizeof (struct prop_lookup))) == NULL)
1680 (char **)&plp->pl_pgroup);
1681 err |= nvlist_lookup_nvlist(in, TOPO_PROP_RESOURCE, &plp->pl_rsrc);
1682 err |= nvlist_lookup_nvlist(in, TOPO_PROP_VAL, &plp->pl_prop);
1683 err |= nvlist_lookup_int32(in, TOPO_PROP_FLAG, &plp->pl_flag);
1685 topo_mod_free(mod, plp, sizeof (struct prop_lookup));
1692 if ((err = nvlist_lookup_nvlist(in, TOPO_PROP_PARGS, &plp->pl_args))
1697 plp->pl_args = NULL;
1700 if ((hwp = hc_walk_init(mod, node, plp->pl_rsrc, hc_prop_setprop,
1701 (void *)plp)) != NULL) {
1713 topo_mod_free(mod, plp, sizeof (struct prop_lookup));