Lines Matching refs:mod

66 x86pi_hcfmri_info_fini(topo_mod_t *mod, x86pi_hcfmri_t *hc)
69 topo_mod_strfree(mod, (char *)hc->hc_name);
71 topo_mod_strfree(mod, (char *)hc->manufacturer);
73 topo_mod_strfree(mod, (char *)hc->product);
75 topo_mod_strfree(mod, (char *)hc->version);
77 topo_mod_strfree(mod, (char *)hc->serial_number);
79 topo_mod_strfree(mod, (char *)hc->asset_tag);
81 topo_mod_strfree(mod, (char *)hc->location);
83 topo_mod_strfree(mod, (char *)hc->part_number);
94 x86pi_get_serverid(topo_mod_t *mod)
99 topo_mod_dprintf(mod, "x86pi_get_serverid\n");
106 topo_mod_dprintf(mod, "x86pi_get_serverid: hostname = %s\n", hostname);
108 return (topo_mod_strdup(mod, hostname));
116 x86pi_smb_open(topo_mod_t *mod)
121 topo_mod_dprintf(mod, "%s\n", f);
123 smb_hdl = topo_mod_smbios(mod);
125 topo_mod_dprintf(mod, "%s: failed to load SMBIOS\n", f);
138 x86pi_smb_strcnt(topo_mod_t *mod, smbs_cnt_t *stype)
145 shp = topo_mod_smbios(mod);
171 x86pi_set_auth(topo_mod_t *mod, x86pi_hcfmri_t *hcfmri, tnode_t *t_parent,
186 if (mod == NULL || t_parent == NULL || t_node == NULL) {
196 (void) topo_mod_seterrno(mod, err);
201 auth = topo_mod_auth(mod, t_parent);
229 topo_mod_dprintf(mod, "%s: product name not "
244 (void) topo_mod_seterrno(mod, err);
245 topo_mod_dprintf(mod, "%s: failed to set "
264 topo_mod_dprintf(mod, "%s: psn not found\n", f);
275 (void) topo_mod_seterrno(mod, err);
276 topo_mod_dprintf(mod, "%s: failed to "
302 topo_mod_dprintf(mod,
310 csn = val = topo_mod_strdup(mod, hcfmri->serial_number);
329 (void) topo_mod_seterrno(mod, err);
330 topo_mod_dprintf(mod, "%s: failed to "
338 topo_mod_strfree(mod, val);
354 server = val = x86pi_get_serverid(mod);
356 topo_mod_dprintf(mod, "%s: server "
372 (void) topo_mod_seterrno(mod, err);
373 topo_mod_dprintf(mod, "%s: failed to "
381 topo_mod_strfree(mod, val);
395 x86pi_set_frufmri(topo_mod_t *mod, x86pi_hcfmri_t *hcfmri, tnode_t *t_parent,
404 if (t_node == NULL || mod == NULL) {
420 auth = topo_mod_auth(mod, t_parent);
421 frufmri = topo_mod_hcfmri(mod, t_parent, FM_HC_SCHEME_VERSION,
425 topo_mod_dprintf(mod, "failed to create FRU: %s\n",
426 topo_strerror(topo_mod_errno(mod)));
433 (void) topo_mod_seterrno(mod, err);
445 x86pi_set_label(topo_mod_t *mod, const char *label, const char *name,
451 if (mod == NULL) {
462 (void) topo_mod_seterrno(mod, err);
463 topo_mod_dprintf(mod, "x86pi_set_label: failed with label %s "
477 x86pi_set_system(topo_mod_t *mod, tnode_t *t_node)
484 if (mod == NULL || t_node == NULL) {
494 (void) topo_mod_seterrno(mod, err);
505 topo_mod_dprintf(mod, "x86pi_set_system: failed to "
514 (void) topo_mod_seterrno(mod, err);
515 topo_mod_dprintf(mod,
529 (void) topo_mod_seterrno(mod, errno);
530 topo_mod_dprintf(mod, "x86pi_set_system: failed to "
539 (void) topo_mod_seterrno(mod, err);
540 topo_mod_dprintf(mod,
560 x86pi_check_comp(topo_mod_t *mod)
572 shp = topo_mod_smbios(mod);
579 topo_mod_dprintf(mod, "%s: failed to open /dev/fm.\n", f);
585 obuf = topo_mod_alloc(mod, outsz);
600 topo_mod_dprintf(mod, "%s: ioctl to /dev/fm failed", f);
611 topo_mod_free(mod, obuf, outsz);
623 x86pi_cleanup_smbios_str(topo_mod_t *mod, const char *begin, int str_type)
662 pp = topo_mod_strdup(mod, buf);
665 topo_mod_strfree(mod, (char *)begin);
674 x86pi_bdf(topo_mod_t *mod, di_node_t node)
679 topo_mod_dprintf(mod, "couldn't get \"reg\" prop: %s.\n",
691 x86pi_phy(topo_mod_t *mod, di_node_t node)
696 topo_mod_dprintf(mod, "couldn't get \"sata-phy\" prop: %s.\n",