Lines Matching refs:plp

1475 	struct prop_lookup *plp = (struct prop_lookup *)pdata;  in hc_prop_get()  local
1477 (void) topo_prop_getprop(node, plp->pl_pgroup, plp->pl_pname, in hc_prop_get()
1478 plp->pl_args, &plp->pl_prop, &err); in hc_prop_get()
1489 struct prop_lookup *plp; in hc_fmri_prop_get() local
1494 if ((plp = topo_mod_alloc(mod, sizeof (struct prop_lookup))) == NULL) in hc_fmri_prop_get()
1498 (char **)&plp->pl_pgroup); in hc_fmri_prop_get()
1500 (char **)&plp->pl_pname); in hc_fmri_prop_get()
1501 err |= nvlist_lookup_nvlist(in, TOPO_PROP_RESOURCE, &plp->pl_rsrc); in hc_fmri_prop_get()
1503 topo_mod_free(mod, plp, sizeof (struct prop_lookup)); in hc_fmri_prop_get()
1510 if ((err = nvlist_lookup_nvlist(in, TOPO_PROP_PARGS, &plp->pl_args)) in hc_fmri_prop_get()
1513 topo_mod_free(mod, plp, sizeof (struct prop_lookup)); in hc_fmri_prop_get()
1516 plp->pl_args = NULL; in hc_fmri_prop_get()
1520 plp->pl_prop = NULL; in hc_fmri_prop_get()
1521 if ((hwp = hc_walk_init(mod, node, plp->pl_rsrc, hc_prop_get, in hc_fmri_prop_get()
1522 (void *)plp)) != NULL) { in hc_fmri_prop_get()
1534 if (plp->pl_prop != NULL) in hc_fmri_prop_get()
1535 *out = plp->pl_prop; in hc_fmri_prop_get()
1537 topo_mod_free(mod, plp, sizeof (struct prop_lookup)); in hc_fmri_prop_get()
1548 struct prop_lookup *plp = (struct prop_lookup *)pdata; in hc_pgrp_get() local
1550 (void) topo_prop_getpgrp(node, plp->pl_pgroup, &plp->pl_prop, &err); in hc_pgrp_get()
1561 struct prop_lookup *plp; in hc_fmri_pgrp_get() local
1566 if ((plp = topo_mod_alloc(mod, sizeof (struct prop_lookup))) == NULL) in hc_fmri_pgrp_get()
1570 (char **)&plp->pl_pgroup); in hc_fmri_pgrp_get()
1571 err |= nvlist_lookup_nvlist(in, TOPO_PROP_RESOURCE, &plp->pl_rsrc); in hc_fmri_pgrp_get()
1573 topo_mod_free(mod, plp, sizeof (struct prop_lookup)); in hc_fmri_pgrp_get()
1577 plp->pl_prop = NULL; in hc_fmri_pgrp_get()
1578 if ((hwp = hc_walk_init(mod, node, plp->pl_rsrc, hc_pgrp_get, in hc_fmri_pgrp_get()
1579 (void *)plp)) != NULL) { in hc_fmri_pgrp_get()
1591 if (plp->pl_prop != NULL) in hc_fmri_pgrp_get()
1592 *out = plp->pl_prop; in hc_fmri_pgrp_get()
1594 topo_mod_free(mod, plp, sizeof (struct prop_lookup)); in hc_fmri_pgrp_get()
1605 struct prop_lookup *plp = (struct prop_lookup *)pdata; in hc_prop_setprop() local
1607 (void) topo_prop_setprop(node, plp->pl_pgroup, plp->pl_prop, in hc_prop_setprop()
1608 plp->pl_flag, plp->pl_args, &err); in hc_prop_setprop()
1620 struct prop_lookup *plp; in hc_fmri_prop_set() local
1625 if ((plp = topo_mod_alloc(mod, sizeof (struct prop_lookup))) == NULL) in hc_fmri_prop_set()
1629 (char **)&plp->pl_pgroup); in hc_fmri_prop_set()
1630 err |= nvlist_lookup_nvlist(in, TOPO_PROP_RESOURCE, &plp->pl_rsrc); in hc_fmri_prop_set()
1631 err |= nvlist_lookup_nvlist(in, TOPO_PROP_VAL, &plp->pl_prop); in hc_fmri_prop_set()
1632 err |= nvlist_lookup_int32(in, TOPO_PROP_FLAG, &plp->pl_flag); in hc_fmri_prop_set()
1634 topo_mod_free(mod, plp, sizeof (struct prop_lookup)); in hc_fmri_prop_set()
1641 if ((err = nvlist_lookup_nvlist(in, TOPO_PROP_PARGS, &plp->pl_args)) in hc_fmri_prop_set()
1646 plp->pl_args = NULL; in hc_fmri_prop_set()
1649 if ((hwp = hc_walk_init(mod, node, plp->pl_rsrc, hc_prop_setprop, in hc_fmri_prop_set()
1650 (void *)plp)) != NULL) { in hc_fmri_prop_set()
1662 topo_mod_free(mod, plp, sizeof (struct prop_lookup)); in hc_fmri_prop_set()