Lines Matching refs:mod

45 pci_label_physlot_lookup(topo_mod_t *mod, char *platform, did_t *dp)
50 topo_mod_dprintf(mod, "%s: doing a lookup for platform=%s\n",
57 topo_mod_dprintf(mod, "%s: doing a lookup for physlot=%d\n",
61 topo_mod_dprintf(mod, "%s: comparing against platform=%s\n",
66 topo_mod_dprintf(mod, "%s: found lookup table for this "
72 topo_mod_dprintf(mod, "%s: matched entry=%d, "
81 topo_mod_dprintf(mod, "%s: returning label=%s\n",
91 pci_label_slotname_lookup(topo_mod_t *mod, char *platform,
100 topo_mod_dprintf(mod, "%s: doing a lookup for platform=%s\n",
104 topo_mod_dprintf(mod, "%s: comparing against platform=%s\n",
109 topo_mod_dprintf(mod, "%s: found lookup table for this "
117 topo_mod_dprintf(mod, "%s: matched entry=%d, "
126 topo_mod_dprintf(mod,
129 if (ret = rw.srw_test(mod, dp))
131 topo_mod_dprintf(mod,
142 topo_mod_dprintf(mod, "%s: returning label=%s\n", __func__,
151 pci_label_missing_lookup(topo_mod_t *mod, char *platform, did_t *dp)
165 topo_mod_dprintf(mod, "%s: doing a lookup for platform=%s, "
170 topo_mod_dprintf(mod, "%s: comparing against platform=%s\n",
175 topo_mod_dprintf(mod, "%s: found lookup table for this "
184 topo_mod_dprintf(mod, "%s: matched entry=%d, "
191 topo_mod_dprintf(mod,
194 if (ret = m.dl_test(mod, dp))
196 topo_mod_dprintf(mod,
210 topo_mod_dprintf(mod, "%s: match found, label=%s\n",
220 pci_slot_label_lookup(topo_mod_t *mod, tnode_t *node, did_t *dp, did_t *pdp)
230 topo_mod_dprintf(mod, "%s: entry: node=%p, node_name=%s, "
253 topo_mod_dprintf(mod, "%s: node=%p: node has a physical "
275 adp = did_find(mod,
279 apdp = did_find(mod,
288 topo_mod_dprintf(mod, "%s: node=%p: checking next "
294 topo_mod_dprintf(mod, "%s: node=%p: "
301 topo_mod_dprintf(mod, "%s: node=%p: "
324 topo_mod_dprintf(mod,
327 (void) topo_mod_seterrno(mod, err);
331 topo_mod_dprintf(mod, "%s: node=%p: found "
337 topo_mod_dprintf(mod, "%s: node=%p: no ancestor "
348 topo_mod_dprintf(mod, "%s: node=%p: concatenating "
361 (void) topo_mod_seterrno(mod, err);
387 if ((l = (char *)pci_label_physlot_lookup(mod, pp, pdp))
391 pci_label_slotname_lookup(mod, pp, l, dp);
395 pci_label_missing_lookup(mod, pp, dp);
398 topo_mod_strfree(mod, plat);
407 topo_mod_strfree(mod, did_slot_label_get(dp));
408 l = topo_mod_strdup(mod, l);
412 topo_mod_dprintf(mod, "%s: exit: node=%p: label=%s\n",
419 pci_label_cmn(topo_mod_t *mod, tnode_t *node, nvlist_t *in, nvlist_t **out)
439 return (topo_mod_seterrno(mod, err));
444 topo_mod_dprintf(mod,
450 pdp = did_find(mod, topo_node_getspecific(pnode));
455 if ((l = pci_slot_label_lookup(mod, node, dp, pdp)) != NULL) {
458 if (topo_mod_nvalloc(mod, &rnvl, NV_UNIQUE_NAME) != 0 ||
460 return (topo_mod_seterrno(mod, EMOD_FMRI_NVL));
466 return (topo_mod_seterrno(mod, err));
472 pci_fru_cmn(topo_mod_t *mod, tnode_t *node, nvlist_t *in, nvlist_t **out)
487 topo_mod_dprintf(mod,
493 pdp = did_find(mod, topo_node_getspecific(pnode));
498 if (pci_slot_label_lookup(mod, pnode, dp, pdp) != NULL) {
502 topo_mod_dprintf(mod, "%s: error: %s\n",
503 __func__, topo_strerror(topo_mod_errno(mod)));
504 return (topo_mod_seterrno(mod, err));