Searched refs:mod (Results 51 - 75 of 245) sorted by relevance

12345678910

/opensolaris-onvv-gate/usr/src/lib/fm/topo/modules/i86pc/pcibus/
H A Dpci_i86pc.c42 platform_pci_label(topo_mod_t *mod, tnode_t *node, nvlist_t *in, argument
45 return (pci_label_cmn(mod, node, in, out));
49 platform_pci_fru(topo_mod_t *mod, tnode_t *node, nvlist_t *in, argument
52 return (pci_fru_cmn(mod, node, in, out));
60 parent_is_rc(topo_mod_t *mod, did_t *dp) argument
71 ba_is_2(topo_mod_t *mod, did_t *dp) argument
80 pdp = did_find(mod, topo_node_getspecific(ptp));
90 pdp = did_find(mod, topo_node_getspecific(ptp));
100 ba_is_4(topo_mod_t *mod, did_t *dp) argument
109 pdp = did_find(mod, topo_node_getspecifi
[all...]
/opensolaris-onvv-gate/usr/src/lib/fm/topo/modules/sun4v/platform-mem/
H A Dmem.c86 _topo_init(topo_mod_t *mod) argument
91 topo_mod_setdebug(mod);
92 topo_mod_dprintf(mod, "initializing %s enumerator\n",
95 if ((mem = topo_mod_zalloc(mod, sizeof (md_mem_info_t))) == NULL)
98 if (mem_mdesc_init(mod, mem) != 0) {
99 topo_mod_dprintf(mod, "failed to get dimms from the PRI/MD\n");
100 topo_mod_free(mod, mem, sizeof (md_mem_info_t));
104 topo_mod_setspecific(mod, (void *)mem);
106 if (topo_mod_register(mod, &mem_info, TOPO_VERSION) != 0) {
107 topo_mod_dprintf(mod, "faile
120 _topo_fini(topo_mod_t *mod) argument
136 mem_present(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
175 mem_replaced(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
213 mem_strarray_free(topo_mod_t *mod, char **arr, size_t dim) argument
301 mem_expand_opt(topo_mod_t *mod, nvlist_t *nvl, char **serids) argument
355 mem_expand(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
379 mem_page_isretired(topo_mod_t *mod, nvlist_t *nvl) argument
404 mem_page_retire(topo_mod_t *mod, nvlist_t *nvl) argument
429 mem_page_unretire(topo_mod_t *mod, nvlist_t *nvl) argument
454 mem_unusable(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
523 mem_contains(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
580 mem_fmri_create(topo_mod_t *mod, char *unum, char *serial) argument
603 mem_tnode_create(topo_mod_t *mod, tnode_t *parent, const char *name, topo_instance_t i, char *unum, char *serial, void *priv) argument
635 mem_create(topo_mod_t *mod, tnode_t *rnode, const char *name, md_mem_info_t *mem) argument
684 mem_enum(topo_mod_t *mod, tnode_t *rnode, const char *name, topo_instance_t min, topo_instance_t max, void *arg, void *notused) argument
703 mem_release(topo_mod_t *mod, tnode_t *node) argument
[all...]
/opensolaris-onvv-gate/usr/src/lib/fm/topo/modules/sun4u/chip/
H A Dchip_sun4u.c76 _topo_init(topo_mod_t *mod) argument
81 topo_mod_setdebug(mod);
82 topo_mod_dprintf(mod, "initializing chip enumerator\n");
84 if ((chip = topo_mod_zalloc(mod, sizeof (chip_t))) == NULL)
88 topo_mod_dprintf(mod, "kstat_open failed: %s\n",
90 topo_mod_free(mod, chip, sizeof (chip_t));
95 if ((chip->chip_cpustats = topo_mod_zalloc(mod, (
98 topo_mod_free(mod, chip, sizeof (chip_t));
102 if (topo_mod_register(mod, &chip_info, TOPO_VERSION) != 0) {
103 topo_mod_dprintf(mod, "faile
117 _topo_fini(topo_mod_t *mod) argument
152 cpu_fmri_create(topo_mod_t *mod, uint32_t cpuid, char *s, uint8_t cpumask) argument
177 cpu_create(topo_mod_t *mod, tnode_t *rnode, const char *name, topo_instance_t min, topo_instance_t max, chip_t *chip) argument
268 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...]
/opensolaris-onvv-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_subr.c50 whinge(topo_mod_t *mod, int *nerr, const char *fmt, ...) argument
62 topo_mod_dprintf(mod, "%s", buf);
72 nvprop_add(topo_mod_t *mod, nvpair_t *nvp, const char *pgname, tnode_t *node) argument
131 whinge(mod, &err, "nvprop_add: Can't handle type %d for "
147 add_nvlist_strprop(topo_mod_t *mod, tnode_t *node, nvlist_t *nvl, argument
162 whinge(mod, &err, "add_nvlist_strprop: failed to add '%s'\n",
174 add_nvlist_longprop(topo_mod_t *mod, tnode_t *node, nvlist_t *nvl, argument
189 whinge(mod, &err, "add_nvlist_longprop: failed to add '%s'\n",
201 add_nvlist_longprops(topo_mod_t *mod, tnode_t *node, nvlist_t *nvl, argument
210 if (add_nvlist_longprop(mod, nod
227 mkrsrc(topo_mod_t *mod, tnode_t *pnode, const char *name, int inst, nvlist_t *auth, nvlist_t **nvl) argument
240 cpu_fmri_create(topo_mod_t *mod, uint32_t cpuid, char *s, uint8_t cpumask) argument
265 mem_asru_compute(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
339 set_retnvl(topo_mod_t *mod, nvlist_t **out, const char *retname, uint32_t ret) argument
365 fmri_replaced(topo_mod_t *mod, tnode_t *node, nvlist_t *unum, int *errp) argument
442 rank_fmri_present(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
471 rank_fmri_replaced(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
489 fmri_dprint(topo_mod_t *mod, const char *op, uint32_t rc, nvlist_t *fmri) argument
528 strand_walker(topo_mod_t *mod, tnode_t *node, void *pdata) argument
584 walk_strands(topo_mod_t *mod, struct strand_walk_data *swdp, tnode_t *parent, int (*func)(fmd_agent_hdl_t *, int, int, int)) argument
616 retire_strands(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
640 unretire_strands(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
664 service_state_strands(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
691 unusable_strands(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
730 ntv_page_retire(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
750 ntv_page_unretire(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
770 ntv_page_service_state(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
797 ntv_page_unusable(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
[all...]
H A Dchip_amd.c139 amd_generic_mc_create(topo_mod_t *mod, uint16_t smbid, tnode_t *cnode, argument
154 if (topo_node_range_create(mod, mcnode, CHAN_NODE_NAME, 0,
156 whinge(mod, NULL, "amd_generic_mc_create: range create for "
166 if (mkrsrc(mod, mcnode, CHAN_NODE_NAME, chan, auth,
168 whinge(mod, NULL, "amd_generic_mc_create: mkrsrc "
173 if ((chnode = topo_node_bind(mod, mcnode, CHAN_NODE_NAME,
176 whinge(mod, NULL, "amd_generic_mc_create: node "
188 if (FM_AWARE_SMBIOS(mod)) {
190 whinge(mod, NULL, "amd_generic_mc_create: "
193 whinge(mod, NUL
304 amd_lookup_by_mcid(topo_mod_t *mod, topo_instance_t id) argument
362 amd_rank_create(topo_mod_t *mod, tnode_t *pnode, nvlist_t *dimmnvl, nvlist_t *auth) argument
460 amd_dimm_create(topo_mod_t *mod, uint16_t chip_smbid, tnode_t *pnode, const char *name, nvlist_t *mc, nvlist_t *auth) argument
581 amd_cs_create(topo_mod_t *mod, tnode_t *pnode, const char *name, nvlist_t *mc, nvlist_t *auth) argument
637 amd_dramchan_create(topo_mod_t *mod, tnode_t *pnode, const char *name, nvlist_t *auth) argument
698 amd_htconfig(topo_mod_t *mod, tnode_t *cnode, nvlist_t *htnvl) argument
718 amd_mc_create(topo_mod_t *mod, uint16_t smbid, tnode_t *pnode, const char *name, nvlist_t *auth, int32_t procnodeid, int32_t procnodes_per_pkg, int family, int model, int *nerrp) argument
[all...]
H A Dchip_smbios.c96 extdimmslot_to_dimmslot(topo_mod_t *mod, id_t chip_smbid, int channum, argument
105 shp = topo_mod_smbios(mod);
150 memnode_to_smbiosid(topo_mod_t *mod, uint16_t chip_smbid, const char *name, argument
166 dimmslot = extdimmslot_to_dimmslot(mod, chip_smbid, channum,
190 dimmslot = extdimmslot_to_dimmslot(mod, chip_smbid,
204 chip_get_smbstruct(topo_mod_t *mod, const smbios_struct_t *sp) argument
214 shp = topo_mod_smbios(mod);
230 topo_mod_dprintf(mod, "chip_get_smbstruct : "
246 topo_mod_dprintf(mod, "chip_get_smbstruct : "
270 topo_mod_dprintf(mod, "chip_get_smbstruc
334 chip_smbios_iterate(topo_mod_t *mod, smbios_rec_f *func_iter) argument
355 init_chip_smbios(topo_mod_t *mod) argument
367 chip_status_smbios_get(topo_mod_t *mod, id_t smb_id) argument
396 chip_fru_smbios_get(topo_mod_t *mod, id_t smb_id) argument
441 chip_cleanup_smbios_str(topo_mod_t *mod, const char *begin, int str_type) argument
489 chip_label_smbios_get(topo_mod_t *mod, tnode_t *pnode, id_t smb_id, char *ksmbios_label) argument
584 chip_serial_smbios_get(topo_mod_t *mod, id_t smb_id) argument
604 chip_part_smbios_get(topo_mod_t *mod, id_t smb_id) argument
623 chip_rev_smbios_get(topo_mod_t *mod, id_t smb_id) argument
[all...]
H A Dchip_intel.c97 mc_add_ranks(topo_mod_t *mod, tnode_t *dnode, nvlist_t *auth, int dimm, argument
113 if (topo_node_range_create(mod, dnode, RANK, rank,
115 whinge(mod, NULL, "mc_add_ranks: node range create failed"
120 fmri = topo_mod_hcfmri(mod, dnode, FM_HC_SCHEME_VERSION,
123 whinge(mod, NULL,
127 if ((rnode = topo_node_bind(mod, dnode, RANK, rank,
130 whinge(mod, NULL, "mc_add_ranks: node bind failed"
136 if (topo_method_register(mod, rnode, rank_methods) < 0)
137 whinge(mod, &err, "rank_create: "
140 if (! is_xpv() && topo_method_register(mod, rnod
162 mc_add_dimms(topo_mod_t *mod, uint16_t chip_smbid, tnode_t *pnode, nvlist_t *auth, nvlist_t **nvl, uint_t ndimms, int maxdimms, int maxranks) argument
288 mc_add_channel(topo_mod_t *mod, uint16_t chip_smbid, tnode_t *pnode, int channel, nvlist_t *auth, nvlist_t *nvl, int maxdimms, int maxranks) argument
335 mc_nb_create(topo_mod_t *mod, uint16_t chip_smbid, tnode_t *pnode, const char *name, nvlist_t *auth, nvlist_t *nvl) argument
436 mc_node_create(topo_mod_t *mod, uint16_t chip_smbid, tnode_t *pnode, const char *name, nvlist_t *auth) argument
477 onchip_mc_create(topo_mod_t *mod, uint16_t chip_smbid, tnode_t *pnode, const char *name, nvlist_t *auth) argument
485 mc_offchip_create(topo_mod_t *mod, tnode_t *pnode, const char *name, nvlist_t *auth) argument
[all...]
/opensolaris-onvv-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi_bboard.c57 x86pi_gen_bboard(topo_mod_t *mod, tnode_t *t_parent, int smb_id, argument
75 topo_mod_dprintf(mod, "%s\n", f);
77 shp = topo_mod_smbios(mod);
79 topo_mod_dprintf(mod, "%s: failed to load SMBIOS\n", f);
86 topo_mod_dprintf(mod, "%s: smbios_info_bboard() failed\n", f);
92 topo_mod_dprintf(mod, "%s: base board (%d) does not belong to "
110 bb_hcfmri.serial_number = x86pi_cleanup_smbios_str(mod,
112 bb_hcfmri.version = x86pi_cleanup_smbios_str(mod, ip.smbi_version, 0);
114 bb_hcfmri.part_number = x86pi_cleanup_smbios_str(mod,
116 bb_hcfmri.location = x86pi_cleanup_smbios_str(mod, i
199 x86pi_bb_getchips(topo_mod_t *mod, int index, int nboards) argument
249 x86pi_bb_topparent(topo_mod_t *mod, int index, tnode_t **pnode, id_t *psmbid) argument
304 x86pi_bb_chassis(topo_mod_t *mod, id_t bb_smbid) argument
323 x86pi_bb_contains(topo_mod_t *mod) argument
[all...]
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/ext/Encode/lib/Encode/
H A DConfig.pm154 while (my ($enc,$mod) = each %ExtModule){
155 $Encode::ExtModule{$enc} = $mod;
/opensolaris-onvv-gate/usr/src/lib/fm/topo/modules/sun4/pcibus/
H A Dpci_sun4.c38 pci_fru_compute(topo_mod_t *mod, tnode_t *node, nvlist_t *in, nvlist_t **out) argument
40 return (pci_fru_cmn(mod, node, in, out));
/opensolaris-onvv-gate/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dpcibus.c54 extern int platform_pci_label(topo_mod_t *mod, tnode_t *, nvlist_t *,
56 extern int platform_pci_fru(topo_mod_t *mod, tnode_t *, nvlist_t *,
124 pci_tnode_create(topo_mod_t *mod, tnode_t *parent, argument
129 if ((ntn = tnode_create(mod, parent, name, i, priv)) == NULL)
131 if (topo_method_register(mod, ntn, Pci_methods) < 0) {
132 topo_mod_dprintf(mod, "topo_method_register failed: %s\n",
133 topo_strerror(topo_mod_errno(mod)));
142 hostbridge_asdevice(topo_mod_t *mod, tnode_t *bus) argument
150 if ((dev32 = pcidev_declare(mod, bus, di, 32)) == NULL)
152 if (pcifn_declare(mod, dev3
160 pciexfn_declare(topo_mod_t *mod, tnode_t *parent, di_node_t dn, topo_instance_t i) argument
251 pciexdev_declare(topo_mod_t *mod, tnode_t *parent, di_node_t dn, topo_instance_t i) argument
280 pciexbus_declare(topo_mod_t *mod, tnode_t *parent, di_node_t dn, topo_instance_t i) argument
307 pcifn_declare(topo_mod_t *mod, tnode_t *parent, di_node_t dn, topo_instance_t i) argument
334 pcidev_declare(topo_mod_t *mod, tnode_t *parent, di_node_t dn, topo_instance_t i) argument
363 pcibus_declare(topo_mod_t *mod, tnode_t *parent, di_node_t dn, topo_instance_t i) argument
410 pci_bridge_declare(topo_mod_t *mod, tnode_t *fn, di_node_t din, int board, int bridge, int rc, int depth) argument
428 declare_dev_and_fn(topo_mod_t *mod, tnode_t *bus, tnode_t **dev, di_node_t din, int board, int bridge, int rc, int devno, int fnno, int depth) argument
552 pci_children_instantiate(topo_mod_t *mod, tnode_t *parent, di_node_t pn, int board, int bridge, int rc, int bover, int depth) argument
703 pci_enum(topo_mod_t *mod, tnode_t *ptn, const char *name, topo_instance_t min, topo_instance_t max, void *notused, void *data) argument
[all...]
/opensolaris-onvv-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dcpu.c78 cpu_init(topo_mod_t *mod, topo_version_t version) argument
83 topo_mod_setdebug(mod);
84 topo_mod_dprintf(mod, "initializing cpu builtin\n");
87 return (topo_mod_seterrno(mod, EMOD_VER_NEW));
89 if ((cpuip = topo_mod_zalloc(mod, sizeof (cpu_node_t))) == NULL)
90 return (topo_mod_seterrno(mod, EMOD_NOMEM));
93 topo_mod_dprintf(mod, "kstat_open failed: %s\n",
95 topo_mod_free(mod, cpuip, sizeof (cpu_node_t));
100 if ((cpuip->cn_cpustats = topo_mod_zalloc(mod, (
103 topo_mod_free(mod, cpui
123 cpu_fini(topo_mod_t *mod) argument
159 cpu_create(topo_mod_t *mod, tnode_t *rnode, const char *name, topo_instance_t min, topo_instance_t max, cpu_node_t *cpuip) argument
193 cpu_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t min, topo_instance_t max, void *arg, void *notused2) argument
243 cpu_release(topo_mod_t *mod, tnode_t *node) argument
333 cpu_nvl2str(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
367 cpu_str2nvl(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
483 fmri_create(topo_mod_t *mod, uint32_t cpu_id, uint8_t cpumask, char *s) argument
510 cpu_fmri_asru(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
535 cpu_fmri_create_meth(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
[all...]
H A Dsvc.c105 svc_error(topo_mod_t *mod) argument
109 return (topo_mod_seterrno(mod, EMOD_NOMEM));
112 return (topo_mod_seterrno(mod, EMOD_UNKNOWN));
117 svc_get_handle(topo_mod_t *mod) argument
119 scf_handle_t *hdl = topo_mod_getspecific(mod);
125 (void) svc_error(mod);
131 (void) svc_error(mod);
135 topo_mod_setspecific(mod, hdl);
141 svc_init(topo_mod_t *mod, topo_version_t version) argument
144 topo_mod_setdebug(mod);
159 svc_fini(topo_mod_t *mod) argument
170 svc_create_node(topo_mod_t *mod, tnode_t *pnode, char *fmristr) argument
238 svc_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t min, topo_instance_t max, void *notused1, void *notused2) argument
326 svc_release(topo_mod_t *mod, tnode_t *node) argument
347 svc_fmri_prop_get(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
418 svc_fmri_nvl2str(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *nvl, nvlist_t **out) argument
516 svc_fmri_str2nvl(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
697 svc_get_state(topo_mod_t *mod, nvlist_t *fmri, boolean_t presence_only, int *ret) argument
812 svc_fmri_present(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
836 svc_fmri_replaced(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
861 svc_fmri_service_state(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
885 svc_fmri_unusable(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
[all...]
H A Ddev.c88 dev_init(topo_mod_t *mod, topo_version_t version) argument
91 topo_mod_setdebug(mod);
92 topo_mod_dprintf(mod, "initializing dev builtin\n");
95 return (topo_mod_seterrno(mod, EMOD_VER_NEW));
97 if (topo_mod_register(mod, &dev_info, TOPO_VERSION) != 0) {
98 topo_mod_dprintf(mod, "failed to register dev_info: "
99 "%s\n", topo_mod_errmsg(mod));
107 dev_fini(topo_mod_t *mod) argument
109 topo_mod_unregister(mod);
114 dev_enum(topo_mod_t *mod, tnode_ argument
127 dev_release(topo_mod_t *mod, tnode_t *node) argument
200 dev_fmri_nvl2str(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *nvl, nvlist_t **out) argument
233 dev_fmri_str2nvl(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
374 dev_fmri_present(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
454 dev_fmri_replaced(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
534 dev_fmri_unusable(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
581 dev_fmri_service_state(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
[all...]
H A Dhc.c204 hc_init(topo_mod_t *mod, topo_version_t version) argument
210 topo_mod_setdebug(mod);
212 topo_mod_dprintf(mod, "initializing hc builtin\n");
215 return (topo_mod_seterrno(mod, EMOD_VER_NEW));
217 if (topo_mod_register(mod, &hc_info, TOPO_VERSION) != 0) {
218 topo_mod_dprintf(mod, "failed to register hc: "
219 "%s\n", topo_mod_errmsg(mod));
220 return (-1); /* mod errno already set */
227 hc_fini(topo_mod_t *mod) argument
229 topo_mod_unregister(mod);
312 hc_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t min, topo_instance_t max, void *notused1, void *notused2) argument
378 fmri_compare(topo_mod_t *mod, nvlist_t *nv1, nvlist_t *nv2) argument
445 hc_compare(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
606 hc_fmri_nvl2str(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *nvl, nvlist_t **out) argument
640 hc_base_fmri_create(topo_mod_t *mod, const nvlist_t *auth, const char *part, const char *rev, const char *serial) argument
677 make_hc_pairs(topo_mod_t *mod, char *fmri, int *num) argument
801 make_hc_auth(topo_mod_t *mod, char *fmri, char **serial, char **part, char **rev, nvlist_t **auth) argument
904 make_facility(topo_mod_t *mod, char *str, nvlist_t **nvl) argument
949 hc_fmri_str2nvl(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
1054 hc_list_create(topo_mod_t *mod, const char *name, char *inst) argument
1073 hc_create_seterror(topo_mod_t *mod, nvlist_t **hcl, int n, nvlist_t *fmri, int err) argument
1096 hc_name_canonical(topo_mod_t *mod, const char *name) argument
1120 hc_fmri_create(topo_mod_t *mod, nvlist_t *pfmri, int version, const char *name, topo_instance_t inst, const nvlist_t *auth, const char *part, const char *rev, const char *serial) argument
1191 hc_fmri_create_meth(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
1259 hc_match(topo_mod_t *mod, tnode_t *node, nvlist_t *fmri, const char *name, topo_instance_t inst, boolean_t *result) argument
1313 hc_walk_sibling(topo_mod_t *mod, tnode_t *node, struct hc_walk *hwp, const char *name, topo_instance_t inst) argument
1353 hc_walker(topo_mod_t *mod, tnode_t *node, void *pdata) argument
1460 hc_walk_init(topo_mod_t *mod, tnode_t *node, nvlist_t *rsrc, topo_mod_walk_cb_t cb, void *pdata) argument
1524 hc_prop_get(topo_mod_t *mod, tnode_t *node, void *pdata) argument
1537 hc_fmri_prop_get(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
1597 hc_pgrp_get(topo_mod_t *mod, tnode_t *node, void *pdata) argument
1609 hc_fmri_pgrp_get(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
1654 hc_prop_setprop(topo_mod_t *mod, tnode_t *node, void *pdata) argument
1668 hc_fmri_prop_set(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
1743 hc_is_present(topo_mod_t *mod, tnode_t *node, void *pdata) argument
1798 hc_fmri_present(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
1835 hc_is_replaced(topo_mod_t *mod, tnode_t *node, void *pdata) argument
1916 hc_fmri_replaced(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
1953 hc_unusable(topo_mod_t *mod, tnode_t *node, void *pdata) argument
1981 hc_fmri_unusable(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
2032 hc_fac_get(topo_mod_t *mod, tnode_t *node, void *pdata) argument
2075 hc_fmri_facility(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
2138 hc_expand(topo_mod_t *mod, tnode_t *node, void *pdata) argument
2179 hc_fmri_expand(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
2217 hc_retire_subr(topo_mod_t *mod, tnode_t *node, void *pdata) argument
2238 hc_fmri_retire_subr(topo_mod_t *mod, tnode_t *node, char *method_name, topo_version_t builtin_version, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
2279 hc_fmri_retire(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
2287 hc_fmri_unretire(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
2295 hc_fmri_service_state(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
[all...]
H A Dtopo_node.c134 topo_mod_t *hmod, *mod = node->tn_enum; local
139 topo_dprintf(mod->tm_hdl, TOPO_DBG_MODSVC, "destroying node %s=%d\n",
173 if (mod->tm_info->tmi_ops->tmo_release != NULL)
174 mod->tm_info->tmi_ops->tmo_release(mod, node);
176 topo_method_unregister_all(mod, node);
199 topo_mod_free(mod, node, sizeof (tnode_t));
200 topo_mod_rele(mod);
275 node_create_seterror(topo_mod_t *mod, tnode_t *pnode, topo_nodehash_t *nhp, argument
280 topo_dprintf(mod
297 topo_node_range_create(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t min, topo_instance_t max) argument
352 topo_mod_t *mod; local
424 node_bind_seterror(topo_mod_t *mod, tnode_t *pnode, tnode_t *node, boolean_t pnode_locked, int err) argument
446 topo_node_bind(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t inst, nvlist_t *fmri) argument
532 topo_node_facbind(topo_mod_t *mod, tnode_t *pnode, const char *name, const char *type) argument
795 topo_node_walk_init(topo_hdl_t *thp, topo_mod_t *mod, tnode_t *node, int (*cb_f)(), void *pdata, int *errp) argument
[all...]
H A Dtopo_nvl.c47 topo_mod_nvalloc(topo_mod_t *mod, nvlist_t **nvlp, uint_t nvflag) argument
49 if (nvlist_xalloc(nvlp, nvflag, &mod->tm_alloc->ta_nva) != 0)
56 topo_mod_nvdup(topo_mod_t *mod, nvlist_t *nvl, nvlist_t **nvlp) argument
58 if (nvlist_xdup(nvl, nvlp, &mod->tm_alloc->ta_nva) != 0)
/opensolaris-onvv-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dpi_meth.c105 set_retnvl(topo_mod_t *mod, nvlist_t **out, const char *retname, uint32_t ret) argument
109 topo_mod_dprintf(mod, "topo method set \"%s\" = %u\n", retname, ret);
111 if (topo_mod_nvalloc(mod, &nvl, NV_UNIQUE_NAME) < 0)
112 return (topo_mod_seterrno(mod, EMOD_NOMEM));
116 return (topo_mod_seterrno(mod, EMOD_NVL_INVAL));
127 cpu_walker(topo_mod_t *mod, tnode_t *node, void *pdata) argument
181 (void) topo_mod_nvl2str(mod, asru, &fmristr);
182 topo_mod_dprintf(mod, "%s cpu (%s): rc = %d, err = %s\n",
186 topo_mod_strfree(mod, fmristr);
194 walk_cpus(topo_mod_t *mod, struc argument
228 cpu_retire(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
247 cpu_unretire(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
266 cpu_service_state(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
291 cpu_unusable(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
309 mem_fmri_create(topo_mod_t *mod, char *serial, char *label) argument
334 mem_asru_compute(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
427 dimm_page_service_state(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
452 dimm_page_unusable(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
475 dimm_page_retire(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
500 dimm_page_unretire(topo_mod_t *mod, tnode_t *node, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
[all...]
/opensolaris-onvv-gate/usr/src/lib/fm/topo/modules/common/ses/
H A Dses_facility.c131 ses_indicator_mode(topo_mod_t *mod, tnode_t *tn, topo_version_t vers, argument
143 return (topo_mod_seterrno(mod, ETOPO_METHOD_VERNEW));
148 topo_mod_dprintf(mod, "invalid arguments to 'mode' method\n");
149 return (topo_mod_seterrno(mod, EMOD_NVL_INVAL));
156 if ((np = ses_node_lock(mod, tn)) == NULL) {
157 topo_mod_dprintf(mod, "failed to lookup ses node in 'mode' "
168 topo_mod_dprintf(mod, "invalid type for indicator "
170 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL);
175 topo_mod_dprintf(mod, "invalid indicator mode %d\n",
177 (void) topo_mod_seterrno(mod, EMOD_NVL_INVA
242 ses_sensor_reading(topo_mod_t *mod, tnode_t *tn, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
312 ses_sensor_state(topo_mod_t *mod, tnode_t *tn, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
401 ses_psu_state(topo_mod_t *mod, tnode_t *tn, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
453 ses_add_fac_common(topo_mod_t *mod, tnode_t *pnode, const char *name, const char *type, uint64_t nodeid) argument
516 ses_add_indicator(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, int type, const char *name, const char *propname, const char *altprop) argument
579 ses_add_sensor_common(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, const char *name, const char *class, int type) argument
618 ses_add_sensor(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, const char *name, const ses_sensor_desc_t *sdp) argument
687 ses_add_discrete(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, const char *name, const char *prop) argument
724 ses_add_psu_status(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid) argument
759 ses_node_enum_facility(topo_mod_t *mod, tnode_t *tn, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
857 ses_add_enclosure_sensors(topo_mod_t *mod, tnode_t *tn, ses_node_t *agg, uint64_t type) argument
945 ses_enc_enum_facility(topo_mod_t *mod, tnode_t *tn, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument
[all...]
H A Dses.c315 ses_sof_alloc(topo_mod_t *mod, char *path) argument
320 sof = topo_mod_zalloc(mod, sizeof (*sof));
321 topo_mod_dprintf(mod, "sof_alloc %s", path);
329 ses_sof_freeall(topo_mod_t *mod) argument
336 topo_mod_dprintf(mod, "sof_freeall %s", sof->sof_path);
337 topo_mod_strfree(mod, sof->sof_path);
338 topo_mod_free(mod, sof, sizeof (*sof));
358 ses_ssl_alloc(topo_mod_t *mod, ses_enum_target_t *stp) argument
363 ssl = topo_mod_zalloc(mod, sizeof (*ssl));
364 topo_mod_dprintf(mod, "ssl_allo
372 ses_ssl_free(topo_mod_t *mod, ses_enum_target_t *stp) argument
608 ses_thread_init(topo_mod_t *mod) argument
638 ses_thread_fini(topo_mod_t *mod) argument
667 ses_create_contract(topo_mod_t *mod, ses_enum_target_t *stp) argument
698 ses_target_free(topo_mod_t *mod, ses_enum_target_t *stp) argument
731 topo_mod_t *mod = sdp->sed_mod; local
779 fmri_contains(topo_mod_t *mod, nvlist_t *nv1, nvlist_t *nv2) argument
844 ses_contains(topo_mod_t *mod, tnode_t *tn, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
882 ses_node_lock(topo_mod_t *mod, tnode_t *tn) argument
972 ses_node_unlock(topo_mod_t *mod, tnode_t *tn) argument
986 ses_present(topo_mod_t *mod, tnode_t *tn, topo_version_t version, nvlist_t *in, nvlist_t **out) argument
1027 ses_set_standard_props(topo_mod_t *mod, tnode_t *frutn, tnode_t *tn, nvlist_t *auth, uint64_t nodeid, const char *path) argument
1129 topo_mod_t *mod = sdp->sed_mod; local
1228 ses_add_bay_props(topo_mod_t *mod, tnode_t *tn, ses_enum_node_t *snp) argument
1308 topo_mod_t *mod = sdp->sed_mod; local
1451 topo_mod_t *mod = sdp->sed_mod; local
1714 topo_mod_t *mod = sdp->sed_mod; local
1799 topo_mod_t *mod = sdp->sed_mod; local
2083 topo_mod_t *mod = sdp->sed_mod; local
2163 topo_mod_t *mod = sdp->sed_mod; local
2297 ses_phys_tree_insert(topo_mod_t *mod, ses_phys_tree_t **sproot, ses_phys_tree_t *child) argument
2394 topo_mod_t *mod = sdp->sed_mod; local
2537 ses_phys_tree_free(topo_mod_t *mod, ses_phys_tree_t *sproot) argument
2581 topo_mod_t *mod = sdp->sed_mod; local
2668 topo_mod_t *mod = sdp->sed_mod; local
2709 topo_mod_t *mod = sdp->sed_mod; local
2991 topo_mod_t *mod = sdp->sed_mod; local
3023 ses_init_chassis(topo_mod_t *mod, ses_enum_data_t *sdp, ses_enum_chassis_t *pcp, ses_enum_chassis_t *cp, ses_node_t *np, nvlist_t *props, uint64_t subchassis, ses_chassis_type_e flags) argument
3094 topo_mod_t *mod = sdp->sed_mod; local
3398 topo_mod_t *mod = sdp->sed_mod; local
3483 ses_release(topo_mod_t *mod, tnode_t *tn) argument
3495 ses_enum(topo_mod_t *mod, tnode_t *rnode, const char *name, topo_instance_t min, topo_instance_t max, void *arg, void *notused) argument
3585 _topo_init(topo_mod_t *mod, topo_version_t version) argument
3602 _topo_fini(topo_mod_t *mod) argument
[all...]
/opensolaris-onvv-gate/usr/src/lib/fm/topo/modules/SUNW,Sun-Fire/ioboard/
H A Diob_platform.c45 platform_iob_label(topo_mod_t *mod, tnode_t *node, nvlist_t *ignored, argument
56 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) == 0 &&
69 platform_iob_enum(topo_mod_t *mod, tnode_t *parent, topo_instance_t imin, argument
87 devtree = topo_mod_devinfo(mod);
89 topo_mod_dprintf(mod, "devinfo init failed.");
102 d = split_bus_address(mod,
123 if ((ion = ioboard_declare(mod, parent, i, iobs[i][0][0]))
125 topo_mod_dprintf(mod,
129 if (topo_mod_enumerate(mod,
131 topo_mod_dprintf(mod,
[all...]
/opensolaris-onvv-gate/usr/src/lib/fm/topo/modules/SUNW,Sun-Fire-15000/ioboard/
H A Diob_platform.c45 platform_iob_label(topo_mod_t *mod, tnode_t *node, nvlist_t *ignored, argument
56 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) == 0 &&
69 platform_iob_enum(topo_mod_t *mod, tnode_t *parent, topo_instance_t imin, argument
87 devtree = topo_mod_devinfo(mod);
89 topo_mod_dprintf(mod, "devinfo init failed.");
102 d = split_bus_address(mod,
123 if ((ion = ioboard_declare(mod, parent, i, iobs[i][0][0]))
125 topo_mod_dprintf(mod,
129 if (topo_mod_enumerate(mod, ion, HOSTBRIDGE, HOSTBRIDGE, 0, 0,
131 topo_mod_dprintf(mod,
[all...]
/opensolaris-onvv-gate/usr/src/lib/fm/topo/modules/sun4/ioboard/
H A Dioboard.c162 iob_tnode_create(topo_mod_t *mod, tnode_t *parent, argument
167 nvlist_t *auth = topo_mod_auth(mod, parent);
169 fmri = topo_mod_hcfmri(mod, parent, FM_HC_SCHEME_VERSION, name, i,
173 topo_mod_dprintf(mod,
177 ntn = topo_node_bind(mod, parent, name, i, fmri);
179 topo_mod_dprintf(mod,
183 topo_strerror(topo_mod_errno(mod)));
190 if (topo_method_register(mod, ntn, Iob_methods) < 0) {
191 topo_mod_dprintf(mod, "topo_method_register failed: %s\n",
192 topo_strerror(topo_mod_errno(mod)));
200 ioboard_declare(topo_mod_t *mod, tnode_t *parent, topo_instance_t i, void *priv) argument
221 split_bus_address(topo_mod_t *mod, di_node_t dp, uint_t baseaddr, uint_t bussep, int minbrd, int maxbrd, int *brd, int *br, int *bus) argument
[all...]
/opensolaris-onvv-gate/usr/src/lib/fm/topo/modules/sun4v/platform-cpu/
H A Dcpu_mdesc.c86 cpu_n1_mdesc_init(topo_mod_t *mod, md_t *mdp, md_info_t *chip) argument
94 listp = topo_mod_zalloc(mod, sizeof (mde_cookie_t) * num_nodes);
101 topo_mod_dprintf(mod, "Found %d cpus\n", chip->ncpus);
103 chip->cpus = topo_mod_zalloc(mod, chip->ncpus * sizeof (md_cpumap_t));
105 chip->procs = topo_mod_zalloc(mod, chip->nprocs * sizeof (md_proc_t));
144 topo_mod_dprintf(mod,
152 topo_mod_free(mod, listp, sizeof (mde_cookie_t) * num_nodes);
158 cpu_n2_mdesc_init(topo_mod_t *mod, md_t *mdp, md_info_t *chip) argument
172 list1p = topo_mod_zalloc(mod, sizeof (mde_cookie_t) * nnode);
181 topo_mod_dprintf(mod, "Componen
344 cpu_mdesc_init(topo_mod_t *mod, md_info_t *chip) argument
398 cpu_mdesc_fini(topo_mod_t *mod, md_info_t *chip) argument
[all...]
/opensolaris-onvv-gate/usr/src/cmd/fm/schemes/
H A DMakefile32 mod \

Completed in 190 milliseconds

12345678910