Lines Matching defs:asru
130 nvlist_t *asru;
144 if (topo_node_asru(node, &asru, NULL, &err) != 0) {
149 rc = swdp->func(swdp->lhp, asru);
181 (void) topo_mod_nvl2str(mod, asru, &fmristr);
189 nvlist_free(asru);
337 nvlist_t *asru, *pargs, *args, *hcsp;
360 asru = mem_fmri_create(mod, serial, label);
365 if (asru == NULL)
372 * specifies physaddr and/or offset. Set them in asru as well.
378 err += nvlist_add_uint64(asru, FM_FMRI_MEM_PHYSADDR,
382 err += nvlist_add_uint64(asru, FM_FMRI_MEM_OFFSET,
388 nvlist_free(asru);
394 err |= nvlist_add_nvlist(*out, TOPO_PROP_VAL_VAL, asru);
395 nvlist_free(asru);
415 nvlist_lookup_uint64(hcsp, "asru-" FM_FMRI_HC_SPECIFIC_OFFSET,
419 nvlist_lookup_uint64(hcsp, "asru-" FM_FMRI_HC_SPECIFIC_PHYSADDR,
431 nvlist_t *asru;
438 topo_node_asru(node, &asru, in, &err) == 0) {
439 err = ldom_fmri_status(pi_lhp, asru);
445 nvlist_free(asru);
456 nvlist_t *asru;
463 topo_node_asru(node, &asru, in, &err) == 0) {
464 err = ldom_fmri_status(pi_lhp, asru);
468 nvlist_free(asru);
479 nvlist_t *asru;
486 topo_node_asru(node, &asru, in, &err) == 0) {
487 err = ldom_fmri_retire(pi_lhp, asru);
493 nvlist_free(asru);
504 nvlist_t *asru;
511 topo_node_asru(node, &asru, in, &err) == 0) {
512 err = ldom_fmri_unretire(pi_lhp, asru);
516 nvlist_free(asru);