Lines Matching refs:mod
40 x86pi_gen_chassis(topo_mod_t *mod, tnode_t *t_parent, int smb_id, int instance)
50 shp = topo_mod_smbios(mod);
52 topo_mod_dprintf(mod, "%s: failed to load SMBIOS\n", f);
72 ch_hcfmri.serial_number = x86pi_cleanup_smbios_str(mod,
74 ch_hcfmri.version = x86pi_cleanup_smbios_str(mod, ip.smbi_version, 0);
75 ch_hcfmri.manufacturer = x86pi_cleanup_smbios_str(mod,
79 ch_hcfmri.hc_name = topo_mod_strdup(mod, "chassis");
82 topo_mod_dprintf(mod, "%s: instance (%d)\n", f, ch_hcfmri.instance);
83 topo_mod_dprintf(mod, "%s: hc name (%s)\n", f, ch_hcfmri.hc_name);
84 topo_mod_dprintf(mod, "%s: Serial Number (%s)\n",
86 topo_mod_dprintf(mod, "%s: Version (%s)\n", f, ch_hcfmri.version);
87 topo_mod_dprintf(mod, "%s: Manufacturer (%s)\n",
93 rv = x86pi_enum_generic(mod, &ch_hcfmri, t_parent, NULL,
96 rv = x86pi_enum_generic(mod, &ch_hcfmri, t_parent, t_parent,
100 topo_mod_dprintf(mod, "%s: failed to create %d tnode\n", f,
107 topo_mod_strfree(mod, (char *)ch_hcfmri.serial_number);
110 topo_mod_strfree(mod, (char *)ch_hcfmri.version);
113 topo_mod_strfree(mod, (char *)ch_hcfmri.manufacturer);
116 topo_mod_strfree(mod, (char *)ch_hcfmri.hc_name);