Searched refs:mod (Results 1 - 25 of 240) sorted by relevance

12345678910

/illumos-gate/usr/src/cmd/fm/fmadm/common/
H A Dgc.c36 const char *mod; local
41 if ((mod = strrchr(argv[1], '/')) == NULL)
42 mod = argv[1];
44 mod++;
46 if (fmd_adm_module_gc(adm, mod) != 0)
47 die("failed to garbage-collect module %s", mod);
48 note("%s module has been garbage-collected\n", mod);
H A Dreset.c36 const char *mod; local
52 if ((mod = strrchr(argv[optind], '/')) == NULL)
53 mod = argv[optind];
55 mod++;
58 if (fmd_adm_serd_reset(adm, mod, opt_s) != 0)
60 note("%s serd engine '%s' has been reset\n", mod, opt_s);
62 if (fmd_adm_module_reset(adm, mod) != 0)
63 die("failed to reset module %s", mod);
64 note("%s module has been reset\n", mod);
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_module.c52 topo_mod_release(topo_mod_t *mod, tnode_t *node) argument
54 topo_mod_enter(mod);
56 if (mod->tm_info->tmi_ops->tmo_release != NULL)
57 mod->tm_info->tmi_ops->tmo_release(mod, node);
59 topo_mod_exit(mod);
63 topo_mod_hold(topo_mod_t *mod) argument
65 (void) pthread_mutex_lock(&mod->tm_lock);
66 mod->tm_refs++;
67 assert(mod
72 topo_mod_rele(topo_mod_t *mod) argument
88 topo_mod_enter(topo_mod_t *mod) argument
101 topo_mod_exit(topo_mod_t *mod) argument
125 topo_mod_stop(topo_mod_t *mod) argument
140 topo_mod_start(topo_mod_t *mod, topo_version_t version) argument
170 topo_mod_t *mod; local
183 topo_mod_destroy(topo_mod_t *mod) argument
206 set_create_error(topo_hdl_t *thp, topo_mod_t *mod, const char *path, int err) argument
227 topo_mod_t *mod; local
300 topo_mod_t *mod = NULL; local
318 topo_mod_t *mod; local
340 topo_modhash_unload(topo_mod_t *mod) argument
[all...]
H A Dtopo_rtld.c46 rtld_fini(topo_mod_t *mod) argument
48 topo_rtld_t *rp = mod->tm_data;
50 assert(mod != NULL);
52 if (mod->tm_flags & TOPO_MOD_REG) {
53 rp->rtld_fini(mod);
54 if (mod->tm_flags & TOPO_MOD_REG) {
55 topo_mod_unregister(mod);
61 topo_mod_free(mod, rp, sizeof (topo_rtld_t));
67 rtld_init(topo_mod_t *mod, topo_version_t version) argument
73 if ((dlp = dlopen(mod
[all...]
H A Dtopo_mod.c122 topo_mod_t *mod = NULL; local
130 if ((mod = topo_mod_lookup(thp, name, 1)) != NULL) {
131 if (mod->tm_info->tmi_version != version) {
132 topo_mod_rele(mod);
136 return (mod);
143 (mod = topo_modhash_load(thp, name, path, &topo_rtld_ops, version))
144 == NULL) { /* returned with mod held */
153 return (mod);
157 topo_mod_unload(topo_mod_t *mod) argument
159 topo_mod_rele(mod);
163 set_register_error(topo_mod_t *mod, int err) argument
176 topo_mod_register(topo_mod_t *mod, const topo_modinfo_t *mip, topo_version_t version) argument
215 topo_mod_unregister(topo_mod_t *mod) argument
241 topo_mod_enumerate(topo_mod_t *mod, tnode_t *node, const char *enum_name, const char *name, topo_instance_t min, topo_instance_t max, void *data) argument
281 topo_mod_enummap(topo_mod_t *mod, tnode_t *node, const char *name, const char *scheme) argument
288 set_fmri_err(topo_mod_t *mod, int err) argument
295 topo_mod_hcfmri(topo_mod_t *mod, tnode_t *pnode, int version, const char *name, topo_instance_t inst, nvlist_t *hc_specific, nvlist_t *auth, const char *part, const char *rev, const char *serial) argument
389 topo_mod_devfmri(topo_mod_t *mod, int version, const char *dev_path, const char *devid) argument
424 topo_mod_cpufmri(topo_mod_t *mod, int version, uint32_t cpu_id, uint8_t cpumask, const char *serial) argument
463 topo_mod_memfmri(topo_mod_t *mod, int version, uint64_t pa, uint64_t offset, const char *unum, int flags) argument
503 topo_mod_pkgfmri(topo_mod_t *mod, int version, const char *path) argument
535 topo_mod_modfmri(topo_mod_t *mod, int version, const char *driver) argument
570 topo_mod_swfmri(topo_mod_t *mod, int version, char *obj_path, char *obj_root, nvlist_t *obj_pkg, char *site_token, char *site_module, char *site_file, char *site_func, int64_t site_line, char *ctxt_origin, char *ctxt_execname, int64_t ctxt_pid, char *ctxt_zone, int64_t ctxt_ctid, char **ctxt_stack, uint_t ctxt_stackdepth) argument
631 topo_mod_str2nvl(topo_mod_t *mod, const char *fmristr, nvlist_t **fmri) argument
650 topo_mod_nvl2str(topo_mod_t *mod, nvlist_t *fmri, char **fmristr) argument
669 topo_mod_getspecific(topo_mod_t *mod) argument
675 topo_mod_setspecific(topo_mod_t *mod, void *data) argument
681 topo_mod_setdebug(topo_mod_t *mod) argument
687 topo_mod_ipmi_hold(topo_mod_t *mod) argument
709 topo_mod_ipmi_rele(topo_mod_t *mod) argument
717 topo_mod_devinfo(topo_mod_t *mod) argument
723 topo_mod_smbios(topo_mod_t *mod) argument
734 topo_mod_prominfo(topo_mod_t *mod) argument
740 topo_mod_pcidb(topo_mod_t *mod) argument
751 topo_mod_clrdebug(topo_mod_t *mod) argument
758 topo_mod_dprintf(topo_mod_t *mod, const char *format, ...) argument
772 topo_mod_product(topo_mod_t *mod) argument
778 topo_mod_server(topo_mod_t *mod) argument
787 topo_mod_psn(topo_mod_t *mod) argument
800 topo_mod_csn(topo_mod_t *mod) argument
830 topo_mod_auth(topo_mod_t *mod, tnode_t *pnode) argument
902 topo_mod_walk_init(topo_mod_t *mod, tnode_t *node, topo_mod_walk_cb_t cb_f, void *pdata, int *errp) argument
916 topo_mod_clean_str(topo_mod_t *mod, const char *str) argument
925 topo_mod_file_search(topo_mod_t *mod, const char *file, int oflags) argument
943 topo_mod_hc_occupied(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
981 topo_mod_create_ufm_slot(topo_mod_t *mod, tnode_t *ufmnode, topo_ufm_slot_info_t *slotinfo) argument
1116 topo_mod_create_ufm(topo_mod_t *mod, tnode_t *parent, const char *descr, topo_ufm_slot_info_t *slotinfo) argument
[all...]
H A Dfmd.c63 fmd_init(topo_mod_t *mod, topo_version_t version) argument
69 topo_mod_setdebug(mod);
71 topo_mod_dprintf(mod, "initializing fmd builtin\n");
74 return (topo_mod_seterrno(mod, EMOD_VER_NEW));
76 if (topo_mod_register(mod, &fmd_info, TOPO_VERSION) != 0) {
77 topo_mod_dprintf(mod, "failed to register fmd: "
78 "%s\n", topo_mod_errmsg(mod));
79 return (-1); /* mod errno already set */
86 fmd_fini(topo_mod_t *mod) argument
88 topo_mod_unregister(mod);
94 fmd_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t min, topo_instance_t max, void *notused1, void *notused2) argument
127 fmd_fmri_nvl2str(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *nvl, nvlist_t **out) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dsun4vpi.c60 _topo_init(topo_mod_t *mod, topo_version_t version) argument
67 topo_mod_setdebug(mod);
69 topo_mod_dprintf(mod, "sun4vpi module initializing.\n");
72 (void) topo_mod_seterrno(mod, EMOD_VER_NEW);
73 topo_mod_dprintf(mod, "incompatible topo version %d\n",
81 topo_mod_dprintf(mod, "not sun4v architecture: %s\n", isa);
85 result = topo_mod_register(mod, &pi_modinfo, TOPO_VERSION);
87 topo_mod_dprintf(mod, "registration failed: %s\n",
88 topo_mod_errmsg(mod));
93 topo_mod_dprintf(mod, "modul
101 _topo_fini(topo_mod_t *mod) argument
115 pi_enum(topo_mod_t *mod, tnode_t *t_parent, const char *name, topo_instance_t min, topo_instance_t max, void *pi_private, void *data) argument
232 topo_mod_t *mod = pip->mod; local
[all...]
H A Dpi_bay.c71 pi_bay_ocpath(topo_mod_t *mod, di_node_t dnode) argument
80 tgt_port = pi_get_target_port(mod, dnode);
82 topo_mod_dprintf(mod, "pi_bay_ocpath: failed to get "
88 lun = pi_get_lun(mod, dnode);
90 topo_mod_dprintf(mod, "pi_bay_ocpath: failed to get 'lun' "
92 topo_mod_strfree(mod, tgt_port);
106 topo_mod_strfree(mod, tgt_port);
107 return (topo_mod_strdup(mod, buf));
116 pi_bay_pgroups(topo_mod_t *mod, tnode_t *t_node, di_node_t cnode, argument
127 topo_mod_dprintf(mod, "pi_bay_pgroup
206 pi_bay_find_nodes(topo_mod_t *mod, di_node_t *nodep, di_node_t *sibp, di_minor_t *minorp, int phy) argument
275 pi_bay_update_node(topo_mod_t *mod, tnode_t *t_node, uint8_t phy, char *pri_path) argument
354 pi_enum_bay(topo_mod_t *mod, md_t *mdp, mde_cookie_t mde_node, topo_instance_t inst, tnode_t *t_parent, const char *hc_name, tnode_t **t_node) argument
[all...]
H A Dpi_niu.c44 pi_enum_niu(topo_mod_t *mod, md_t *mdp, mde_cookie_t mde_node, argument
52 topo_mod_dprintf(mod,
57 if (topo_mod_load(mod, NIU, TOPO_VERSION) == NULL) {
58 topo_mod_dprintf(mod, "%s could not load %s module: %s\n",
59 _ENUM_NAME, NIU, topo_strerror(topo_mod_errno(mod)));
66 result = topo_mod_enumerate(mod, t_parent, NIU, hc_name, inst, inst,
69 topo_mod_dprintf(mod,
71 (uint64_t)mde_node, topo_strerror(topo_mod_errno(mod)));
75 topo_mod_dprintf(mod, "%s added node_0x%llx type %s\n",
/illumos-gate/usr/src/lib/fm/topo/modules/common/ipmi/
H A Dipmi_methods.c39 get_fmtstr(topo_mod_t *mod, nvlist_t *in) argument
45 topo_mod_dprintf(mod, "get_fmtstr() called\n");
48 topo_mod_dprintf(mod, "Failed to lookup 'args' list (%s)\n",
50 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL);
54 topo_mod_dprintf(mod, "Failed to lookup 'format' arg (%s)\n",
56 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL);
63 store_prop_val(topo_mod_t *mod, void *buf, char *propname, topo_type_t type, argument
66 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) {
67 topo_mod_dprintf(mod, "Failed to allocate 'out' nvlist\n");
68 return (topo_mod_seterrno(mod, EMOD_NOME
127 ipmi_fru_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
175 ipmi_fru_fmri(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi.c80 _topo_init(topo_mod_t *mod, topo_version_t version) argument
87 topo_mod_setdebug(mod);
89 topo_mod_dprintf(mod, "module initializing.\n");
92 (void) topo_mod_seterrno(mod, EMOD_VER_NEW);
93 topo_mod_dprintf(mod, "incompatible topo version %d\n",
101 topo_mod_dprintf(mod, "not i86pc architecture: %s\n", isa);
105 result = topo_mod_register(mod, &x86pi_modinfo, TOPO_VERSION);
107 topo_mod_dprintf(mod, "registration failed: %s\n",
108 topo_mod_errmsg(mod));
112 topo_mod_dprintf(mod, "modul
121 _topo_fini(topo_mod_t *mod) argument
135 x86pi_enum(topo_mod_t *mod, tnode_t *t_parent, const char *name, topo_instance_t min, topo_instance_t max, void *pi_private, void *data) argument
166 x86pi_enum_start(topo_mod_t *mod, x86pi_enum_t *x86pi) argument
248 x86pi_enum_gentopo(topo_mod_t *mod, tnode_t *t_parent) argument
[all...]
H A Dx86pi_chassis.c40 x86pi_gen_chassis(topo_mod_t *mod, tnode_t *t_parent, int smb_id, int instance) argument
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, "
[all...]
H A Dx86pi_generic.c44 x86pi_enum_generic(topo_mod_t *mod, x86pi_hcfmri_t *hcfmri, argument
53 topo_mod_dprintf(mod, "%s adding entry for type (%s)\n",
57 topo_mod_dprintf(mod,
64 auth = topo_mod_auth(mod, t_bindparent);
65 fmri = topo_mod_hcfmri(mod, t_fmriparent, FM_HC_SCHEME_VERSION,
72 topo_mod_dprintf(mod,
74 hcfmri->hc_name, topo_strerror(topo_mod_errno(mod)));
78 rv = topo_node_range_create(mod, t_bindparent, hcfmri->hc_name, 0, 4);
79 if (rv != 0 && topo_mod_errno(mod) != EMOD_NODE_DUP) {
80 topo_mod_dprintf(mod, "
131 x86pi_node_bind(topo_mod_t *mod, tnode_t *t_parent, x86pi_hcfmri_t *hcfmri, nvlist_t *fmri, int flag) argument
[all...]
H A Dx86pi_bay.c72 bay_bdf(topo_mod_t *mod, smbios_port_ext_t *epp, uint16_t *bdf) argument
81 shp = topo_mod_smbios(mod);
83 topo_mod_dprintf(mod, "%s: failed to load SMBIOS\n", f);
104 topo_mod_dprintf(mod, "%s: unknown device type: %d\n",
108 topo_mod_dprintf(mod, "%s: %s: bus(0x%02x) dev/func(0x%02x)\n", f,
120 bay_pgroups(topo_mod_t *mod, tnode_t *tnp, di_node_t *dnp, di_node_t *sibp, argument
133 topo_mod_dprintf(mod,
136 (void) topo_mod_seterrno(mod, err);
140 ap_path = topo_mod_alloc(mod, MAXPATHLEN);
142 topo_mod_dprintf(mod, "
197 bay_update_tnode(topo_mod_t *mod, tnode_t *tnodep, uint16_t bdf, int phy) argument
269 x86pi_gen_bay(topo_mod_t *mod, tnode_t *t_parent, smbios_port_ext_t *eport, int instance) argument
[all...]
H A Dx86pi_hostbridge.c68 x86pi_hbr_enum_init(topo_mod_t *mod) argument
72 if (did_hash_init(mod) < 0) {
73 topo_mod_dprintf(mod, "%s: did_hash_init() failed.\n", f);
77 if ((pcimp = topo_mod_load(mod, PCI_ENUM, PCI_ENUMR_VERS)) == NULL) {
78 topo_mod_dprintf(mod,
81 did_hash_fini(mod);
89 x86pi_hbr_enum_fini(topo_mod_t *mod) argument
91 did_hash_fini(mod);
97 pciex_process(topo_mod_t *mod, tnode_t *tn_hbr, di_node_t rcn, argument
107 if ((did = did_create(mod, rc
163 pci_process(topo_mod_t *mod, tnode_t *tn_hbr, di_node_t bn) argument
189 x86pi_gen_pci_pciexrc(topo_mod_t *mod, tnode_t *tn_hbr, uint16_t bdf, topo_instance_t *rcip) argument
235 x86pi_gen_hbr(topo_mod_t *mod, tnode_t *tn_bb, int hbr_smbid, topo_instance_t hbri, topo_instance_t *rcip) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/
H A Ddisk.c51 disk_declare_driver(topo_mod_t *mod, tnode_t *baynode, topo_list_t *dlistp, argument
60 if ((err = disk_mptsas_find_disk(mod, baynode,
64 err = disk_declare_addr(mod, baynode, dlistp,
66 topo_mod_strfree(mod, sas_address);
71 topo_mod_dprintf(mod, "unknown disk driver '%s'\n", driver);
77 disk_enum(topo_mod_t *mod, tnode_t *baynode, argument
83 topo_list_t *dlistp = topo_mod_getspecific(mod);
86 topo_mod_dprintf(mod, "disk_enum: "
100 topo_mod_dprintf(mod, "disk_enum: "
106 topo_mod_dprintf(mod, "disk_enu
151 _topo_init(topo_mod_t *mod, topo_version_t version) argument
192 _topo_fini(topo_mod_t *mod) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chipset/
H A Dchipset.c77 topo_chipset_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, argument
85 topo_mod_dprintf(mod, "chipset_enum: asked to enumerate %s", name);
88 topo_mod_dprintf(mod, "chipset_enum: asked to enumerate "
90 return (topo_mod_seterrno(mod, EMOD_UKNOWN_ENUM));
94 topo_mod_dprintf(mod, "chipset_enum: no device present", name);
98 if ((auth = topo_mod_auth(mod, pnode)) == NULL) {
99 topo_mod_dprintf(mod, "chipset_enum: failed to get topo "
100 "auth: %s", topo_mod_errmsg(mod));
106 if ((fmri = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION,
108 topo_mod_dprintf(mod, "chipset_enu
167 _topo_init(topo_mod_t *mod, topo_version_t version) argument
188 _topo_fini(topo_mod_t *mod) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/niu/
H A Dniu.c65 _topo_init(topo_mod_t *mod, topo_version_t version) argument
71 topo_mod_setdebug(mod);
72 topo_mod_dprintf(mod, "initializing niu enumerator\n");
74 if (topo_mod_register(mod, &niu_info, TOPO_VERSION) < 0) {
75 topo_mod_dprintf(mod, "niu registration failed: %s\n",
76 topo_mod_errmsg(mod));
77 return; /* mod errno already set */
79 topo_mod_dprintf(mod, "NIU enumr initd\n");
83 _topo_fini(topo_mod_t *mod) argument
85 topo_mod_unregister(mod);
88 devprop_set(tnode_t *tn, di_node_t dn, const char *tpgrp, const char *tpnm, topo_mod_t *mod) argument
107 driverprop_set(tnode_t *tn, di_node_t dn, const char *tpgrp, const char *tpnm, topo_mod_t *mod) argument
122 moduleprop_set(tnode_t *tn, di_node_t dn, const char *tpgrp, const char *tpnm, topo_mod_t *mod) argument
145 niu_tnode_create(topo_mod_t *mod, tnode_t *parent, const char *name, topo_instance_t i, void *priv) argument
187 niu_asru_set(tnode_t *tn, di_node_t dn, topo_mod_t *mod) argument
218 niu_declare(tnode_t *parent, const char *name, topo_instance_t i, void *priv, topo_mod_t *mod) argument
244 niufn_declare(tnode_t *parent, const char *name, topo_instance_t i, void *priv, topo_mod_t *mod) argument
275 niufn_instance_get(topo_mod_t *mod, di_node_t node, topo_instance_t *inst) argument
298 niufn_instantiate(tnode_t *parent, const char *name, di_node_t pnode, topo_mod_t *mod) argument
349 niu_enum(topo_mod_t *mod, tnode_t *rnode, const char *name, topo_instance_t min, topo_instance_t max, void *arg, void *notused) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_label.c45 get_fmtstr(topo_mod_t *mod, nvlist_t *in) argument
51 topo_mod_dprintf(mod, "get_fmtstr() called\n");
54 topo_mod_dprintf(mod, "Failed to lookup 'args' list (%s)\n",
56 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL);
60 topo_mod_dprintf(mod, "Failed to lookup 'format' arg (%s)\n",
62 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL);
69 store_prop_val(topo_mod_t *mod, char *buf, char *propname, nvlist_t **out) argument
71 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) {
72 topo_mod_dprintf(mod, "Failed to allocate 'out' nvlist\n");
73 return (topo_mod_seterrno(mod, EMOD_NOME
114 simple_dimm_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
175 simple_dimm_label_mp(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
261 seq_dimm_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
339 simple_chip_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
396 fsb2_chip_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
447 g4_chip_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
540 get_num_chips(topo_mod_t *mod) argument
590 a4fplus_chip_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
669 simple_cs_label_mp(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
716 g4_dimm_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
790 g12f_dimm_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_ipmi/
H A Dfac_prov_ipmi.c183 _topo_init(topo_mod_t *mod, topo_version_t version) argument
186 topo_mod_setdebug(mod);
188 return (topo_mod_register(mod, &ipmi_info, TOPO_VERSION));
192 _topo_fini(topo_mod_t *mod) argument
194 topo_mod_unregister(mod);
205 ipmi_platform_message(topo_mod_t *mod, tnode_t *node, topo_version_t vers, argument
218 return (topo_mod_seterrno(mod, ETOPO_METHOD_VERNEW));
224 if ((hdl = topo_mod_ipmi_hold(mod)) == NULL) {
225 topo_mod_dprintf(mod, "Failed to get IPMI handle\n");
231 topo_mod_dprintf(mod, "Faile
340 ipmi_sensor_state(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
469 ipmi_sensor_reading(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
574 ipmi_indicator_mode(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
695 bay_locate_mode(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
829 bay_indicator_mode(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
1029 x4500_present_mode(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
1160 chassis_service_mode(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
1321 chassis_ident_mode(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
1438 set_thresh_prop(topo_mod_t *mod, tnode_t *fnode, ipmi_sdr_full_sensor_t *fs, uint8_t raw_thresh, const struct sensor_thresh *thresh) argument
1461 make_sensor_node(topo_mod_t *mod, tnode_t *pnode, struct sensor_data *sd, ipmi_handle_t *hdl) argument
1715 get_entity_info(topo_mod_t *mod, tnode_t *node, ipmi_handle_t *hdl, struct entity_info *ei) argument
1789 ipmi_sensor_enum(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
1839 ipmi_entity(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
1924 dimm_ipmi_entity(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
1987 cs_ipmi_entity(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
2059 fac_prov_ipmi_enum(topo_mod_t *mod, tnode_t *rnode, const char *name, topo_instance_t min, topo_instance_t max, void *arg, void *unused) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/chip/
H A Dchip_sun4v.c75 _topo_init(topo_mod_t *mod) argument
80 topo_mod_setdebug(mod);
81 topo_mod_dprintf(mod, "initializing chip enumerator\n");
83 if ((chip = topo_mod_zalloc(mod, sizeof (md_info_t))) == NULL)
86 if (cpu_mdesc_init(mod, chip) != 0) {
87 topo_mod_dprintf(mod, "failed to get cpus from the PRI/MD\n");
88 topo_mod_free(mod, chip, sizeof (md_info_t));
92 topo_mod_setspecific(mod, (void *)chip);
94 if (topo_mod_register(mod, &chip_info, TOPO_VERSION) != 0) {
95 topo_mod_dprintf(mod, "faile
108 _topo_fini(topo_mod_t *mod) argument
122 chip_tnode_create(topo_mod_t *mod, tnode_t *parent, const char *name, topo_instance_t i, char *serial, nvlist_t *fru, char *label, void *priv) argument
209 cpu_fmri_create(topo_mod_t *mod, uint32_t cpuid, char *serial, uint8_t cpumask) argument
233 cpu_create(topo_mod_t *mod, tnode_t *rnode, const char *name, md_info_t *chip, uint64_t serial) argument
309 dimm_instantiate(tnode_t *parent, const char *name, topo_mod_t *mod) argument
343 chip_create(topo_mod_t *mod, tnode_t *rnode, const char *name, topo_instance_t min, topo_instance_t max, md_info_t *chip) argument
413 chip_enum(topo_mod_t *mod, tnode_t *rnode, const char *name, topo_instance_t min, topo_instance_t max, void *arg, void *notused) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4u/hostbridge/
H A Dhb_sun4u.c37 count_busorrc(topo_mod_t *mod, busorrc_t *list, int *hbc, int *bph) argument
59 topo_mod_dprintf(mod,
62 return (topo_mod_seterrno(mod, EMOD_PARTIAL_ENUM));
65 topo_mod_dprintf(mod,
67 topo_mod_dprintf(mod, "%d buses total.\n", bt);
72 busorrc_process(topo_mod_t *mod, busorrc_t *list, int isrc, tnode_t *ptn) argument
78 topo_mod_dprintf(mod, "No root complexes found.\n");
80 topo_mod_dprintf(mod, "No pci buses found.\n");
107 if (count_busorrc(mod, list, &hbc, &busper) < 0)
110 return (declare_exbuses(mod, lis
116 pci_hostbridges_find(topo_mod_t *mod, tnode_t *ptn) argument
172 platform_hb_enum(topo_mod_t *mod, tnode_t *parent, const char *name, topo_instance_t imin, topo_instance_t imax) argument
180 platform_hb_label(topo_mod_t *mod, tnode_t *node, nvlist_t *in, nvlist_t **out) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/hostbridge/
H A Dhb_i86pc.c37 hb_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn) argument
42 if ((hbdid = did_create(mod, bn, 0, hbi, NO_RC, TRUST_BDF)) == NULL)
44 if ((hb = pcihostbridge_declare(mod, ptn, bn, hbi)) == NULL)
46 if (topo_mod_enumerate(mod,
56 rc_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn) argument
62 if ((hbdid = did_create(mod, bn, 0, hbi, hbi, TRUST_BDF)) == NULL)
64 if ((hb = pciexhostbridge_declare(mod, ptn, bn, hbi)) == NULL)
66 if ((rc = pciexrc_declare(mod, hb, bn, hbi)) == NULL)
68 if (topo_mod_enumerate(mod,
80 pci_hostbridges_find(topo_mod_t *mod, tnode_ argument
139 platform_hb_enum(topo_mod_t *mod, tnode_t *parent, const char *name, topo_instance_t imin, topo_instance_t imax) argument
147 platform_hb_label(topo_mod_t *mod, tnode_t *node, nvlist_t *in, nvlist_t **out) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/common/xfp/
H A Dxfp.c60 _topo_init(topo_mod_t *mod, topo_version_t version) argument
66 topo_mod_setdebug(mod);
67 topo_mod_dprintf(mod, "initializing xfp enumerator\n");
69 if (topo_mod_register(mod, &xfp_info, TOPO_VERSION) < 0) {
70 topo_mod_dprintf(mod, "xfp registration failed: %s\n",
71 topo_mod_errmsg(mod));
72 return (-1); /* mod errno already set */
74 topo_mod_dprintf(mod, "xfp enum initd\n");
79 _topo_fini(topo_mod_t *mod) argument
81 topo_mod_unregister(mod);
85 xfp_tnode_create(topo_mod_t *mod, tnode_t *parent, const char *name, topo_instance_t i, void *priv) argument
147 xfp_label_set(topo_mod_t *mod, tnode_t *parent, tnode_t *node, topo_instance_t n) argument
178 xfp_declare(tnode_t *parent, const char *name, topo_instance_t i, void *priv, topo_mod_t *mod) argument
204 xfp_enum(topo_mod_t *mod, tnode_t *rnode, const char *name, topo_instance_t min, topo_instance_t max, void *notused, void *data) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/common/smbios/
H A Dsmbios_enum.c55 distill_dimm_form(topo_mod_t *mod, smbios_memdevice_t *smb_md) argument
59 return (topo_mod_strdup(mod, TOPO_DIMM_SLOT_FORM_DIMM));
61 return (topo_mod_strdup(mod, TOPO_DIMM_SLOT_FORM_SODIMM));
63 return (topo_mod_strdup(mod, TOPO_DIMM_SLOT_FORM_FBDIMM));
65 topo_mod_dprintf(mod, "skipping device with form factor 0x%x",
72 smbios2topotype(topo_mod_t *mod, uint8_t type) argument
76 return (topo_mod_strdup(mod, TOPO_DIMM_TYPE_DDR));
79 return (topo_mod_strdup(mod, TOPO_DIMM_TYPE_DDR2));
81 return (topo_mod_strdup(mod, TOPO_DIMM_TYPE_DDR3));
83 return (topo_mod_strdup(mod, TOPO_DIMM_TYPE_DDR
112 topo_mod_t *mod = smed->sme_mod; local
210 topo_mod_t *mod = smed->sme_mod; local
359 topo_mod_t *mod = smed->sme_mod; local
425 topo_mod_t *mod = smed->sme_mod; local
611 smbios_enum(topo_mod_t *mod, tnode_t *rnode, const char *name, topo_instance_t min, topo_instance_t max, void *arg, void *unused) argument
661 _topo_init(topo_mod_t *mod, topo_version_t version) argument
678 _topo_fini(topo_mod_t *mod) argument
[all...]

Completed in 275 milliseconds

12345678910