/osnet-11/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_module.c | 46 topo_mod_release(topo_mod_t *mod, tnode_t *node) argument 48 topo_mod_enter(mod); 50 if (mod->tm_info->tmi_ops->tmo_release != NULL) 51 mod->tm_info->tmi_ops->tmo_release(mod, node); 53 topo_mod_exit(mod); 57 topo_mod_hold(topo_mod_t *mod) argument 59 (void) pthread_mutex_lock(&mod->tm_lock); 60 mod->tm_refs++; 61 assert(mod 66 topo_mod_rele(topo_mod_t *mod) argument 82 topo_mod_enter(topo_mod_t *mod) argument 95 topo_mod_exit(topo_mod_t *mod) argument 119 topo_mod_stop(topo_mod_t *mod) argument 134 topo_mod_start(topo_mod_t *mod, topo_version_t version) argument 164 topo_mod_t *mod; local 177 topo_mod_destroy(topo_mod_t *mod) argument 198 set_create_error(topo_hdl_t *thp, topo_mod_t *mod, const char *path, int err) argument 219 topo_mod_t *mod; local 292 topo_mod_t *mod = NULL; local 310 topo_mod_t *mod; local 332 topo_modhash_unload(topo_mod_t *mod) argument [all...] |
H A D | topo_rtld.c | 46 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 D | topo_mod.c | 121 topo_mod_t *mod = NULL; local 132 if ((mod = topo_mod_lookup(thp, name, 1)) != NULL) { 133 if (mod->tm_info->tmi_version != version) { 134 topo_mod_rele(mod); 138 return (mod); 149 (mod = topo_modhash_load(thp, name, path, &topo_rtld_ops, version)) 150 == NULL) { /* returned with mod held */ 159 return (mod); 163 topo_mod_unload(topo_mod_t *mod) argument 165 topo_mod_rele(mod); 169 set_register_error(topo_mod_t *mod, int err) argument 182 topo_mod_register(topo_mod_t *mod, const topo_modinfo_t *mip, topo_version_t version) argument 221 topo_mod_unregister(topo_mod_t *mod) argument 247 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 288 topo_mod_enummap(topo_mod_t *mod, tnode_t *node, const char *name, const char *scheme) argument 296 set_fmri_err(topo_mod_t *mod, int err) argument 303 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 397 topo_mod_devfmri(topo_mod_t *mod, int version, const char *dev_path, const char *devid) argument 432 topo_mod_cpufmri(topo_mod_t *mod, int version, uint32_t cpu_id, uint8_t cpumask, const char *serial) argument 471 topo_mod_modfmri(topo_mod_t *mod, int version, const char *driver) argument 506 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 567 topo_mod_str2nvl(topo_mod_t *mod, const char *fmristr, nvlist_t **fmri) argument 586 topo_mod_nvl2str(topo_mod_t *mod, nvlist_t *fmri, char **fmristr) argument 605 topo_mod_getspecific(topo_mod_t *mod) argument 611 topo_mod_setspecific(topo_mod_t *mod, void *data) argument 617 topo_mod_setdebug(topo_mod_t *mod) argument 623 topo_mod_ipmi_hold(topo_mod_t *mod) argument 645 topo_mod_ipmi_rele(topo_mod_t *mod) argument 653 topo_mod_devinfo(topo_mod_t *mod) argument 659 topo_mod_devlink(topo_mod_t *mod) argument 665 topo_mod_smbios(topo_mod_t *mod) argument 676 topo_mod_prominfo(topo_mod_t *mod) argument 682 topo_mod_cromk_hdl(topo_mod_t *mod) argument 688 topo_mod_clrdebug(topo_mod_t *mod) argument 695 topo_mod_dprintf(topo_mod_t *mod, const char *format, ...) argument 712 topo_mod_auth_get_ch_mfg(topo_mod_t *mod) argument 724 topo_mod_auth_get_ch_name(topo_mod_t *mod) argument 736 topo_mod_auth_get_ch_pn(topo_mod_t *mod) argument 748 topo_mod_auth_get_ch_sn(topo_mod_t *mod) argument 760 topo_mod_auth_get_ch_alias(topo_mod_t *mod) argument 778 topo_mod_client_ocpath(topo_mod_t *mod, di_node_t dnode, char *target_port, int lun) argument 902 topo_mod_get_cro_chassis_alias(topo_mod_t *mod, char *devpath, char **alias_id) argument 978 topo_mod_set_ch_alias(topo_mod_t *mod, tnode_t *tnodep, char *path) argument 1043 topo_mod_auth_set_th(topo_mod_t *mod, nvlist_t *nvl) argument 1049 topo_mod_auth_set_nvl(topo_mod_t *mod, nvlist_t **th_nvl, int auth_type, char *mfg, char *name, char *part, char *serial) argument 1061 topo_mod_auth(topo_mod_t *mod, tnode_t *pnode) argument 1142 topo_mod_walk_init(topo_mod_t *mod, tnode_t *node, topo_mod_walk_cb_t cb_f, void *pdata, int *errp) argument [all...] |
H A D | fmd.c | 63 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...] |
H A D | topo_file.c | 62 topo_file_load(topo_mod_t *mod, tnode_t *node, const char *name, argument 69 if (mod->tm_hdl->th_snap_dir == NULL) 74 topo_dprintf(mod->tm_hdl, TOPO_DBG_SNAP, "%s: mod=0x%p, node=0x%p, " 76 __func__, (void *)mod, (void *)node, 80 if ((tfp = topo_mod_zalloc(mod, sizeof (topo_file_t))) == NULL) 81 return (topo_mod_seterrno(mod, ETOPO_NOMEM)); 83 tfp->tf_mod = mod; 93 topo_dprintf(mod->tm_hdl, TOPO_DBG_ERR, 96 return (topo_mod_seterrno(mod, ETOPO_MOD_INVA [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/common/disk/common/ |
H A D | disk.c | 43 disk_enum(topo_mod_t *mod, tnode_t *baynode, argument 53 topo_list_t *dlistp = topo_mod_getspecific(mod); 56 topo_mod_dprintf(mod, "disk_enum: " 64 topo_mod_dprintf(mod, "disk_enum: " 70 topo_mod_dprintf(mod, "disk_enum: " 88 topo_mod_dprintf(mod, "disk_enum: " 90 err = disk_declare_empty(mod, baynode); 91 topo_mod_strfree(mod, presence); 94 topo_mod_strfree(mod, presence); 96 topo_mod_dprintf(mod, "disk_enu 205 _topo_init(topo_mod_t *mod, topo_version_t version) argument 246 _topo_fini(topo_mod_t *mod) argument [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/common/ipmi/common/ |
H A D | ipmi_methods.c | 38 get_fmtstr(topo_mod_t *mod, nvlist_t *in) argument 44 topo_mod_dprintf(mod, "get_fmtstr() called\n"); 47 topo_mod_dprintf(mod, "Failed to lookup 'args' list (%s)\n", 49 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL); 53 topo_mod_dprintf(mod, "Failed to lookup 'format' arg (%s)\n", 55 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL); 62 store_prop_val(topo_mod_t *mod, void *buf, char *propname, topo_type_t type, argument 65 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) { 66 topo_mod_dprintf(mod, "Failed to allocate 'out' nvlist\n"); 67 return (topo_mod_seterrno(mod, EMOD_NOME 126 ipmi_fru_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 174 ipmi_fru_fmri(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument [all...] |
H A D | ipmi_enum.c | 62 extern int ipmi_fru_label(topo_mod_t *mod, tnode_t *node, 65 extern int ipmi_fru_fmri(topo_mod_t *mod, tnode_t *node, 88 strarr_free(topo_mod_t *mod, char **arr, uint_t nelems) argument 91 topo_mod_strfree(mod, arr[i]); 92 topo_mod_free(mod, arr, (nelems * sizeof (char *))); 100 ipmi_presence_state(topo_mod_t *mod, tnode_t *tn, topo_version_t version, argument 112 if ((ihp = topo_mod_ipmi_hold(mod)) == NULL) 113 return (topo_mod_seterrno(mod, ETOPO_METHOD_UNKNOWN)); 128 topo_mod_dprintf(mod, 131 topo_mod_strfree(mod, nam 249 topo_mod_t *mod = edp->ed_mod; local 500 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 566 ipmi_post_process(topo_mod_t *mod, tnode_t *tn) argument 578 _topo_init(topo_mod_t *mod, topo_version_t version) argument 594 _topo_fini(topo_mod_t *mod) argument [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/common/ |
H A D | pi_bay.c | 71 pi_bay_ocpath(topo_mod_t *mod, di_node_t dnode) argument 81 tgt_port = pi_get_target_port(mod, dnode); 83 topo_mod_dprintf(mod, "pi_bay_ocpath: failed to get " 89 lun = pi_get_lun(mod, dnode); 91 topo_mod_dprintf(mod, "pi_bay_ocpath: failed to get 'lun' " 93 topo_mod_strfree(mod, tgt_port); 106 topo_mod_dprintf(mod, 108 topo_mod_strfree(mod, tgt_port); 116 topo_mod_strfree(mod, tgt_port); 117 return (topo_mod_strdup(mod, bu 127 pi_bay_pgroups(topo_mod_t *mod, tnode_t *t_node, di_node_t cnode, di_minor_t cminor) argument 269 pi_bay_find_nodes(topo_mod_t *mod, di_node_t *nodep, di_node_t *sibp, di_minor_t *minorp, int phy) argument 338 pi_bay_hba_node(topo_mod_t *mod, char *pri_path) argument 383 pi_bay_update_node(topo_mod_t *mod, tnode_t *t_node, di_node_t dnode, uint8_t phy) argument 435 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 D | pi_niu.c | 41 pi_enum_niu(topo_mod_t *mod, md_t *mdp, mde_cookie_t mde_node, argument 49 topo_mod_dprintf(mod, 54 if (topo_mod_load(mod, NIU, TOPO_VERSION) == NULL) { 55 topo_mod_dprintf(mod, "%s could not load %s module: %s\n", 56 _ENUM_NAME, NIU, topo_strerror(topo_mod_errno(mod))); 63 result = topo_mod_enumerate(mod, t_parent, NIU, hc_name, inst, inst, 66 topo_mod_dprintf(mod, 68 (uint64_t)mde_node, topo_strerror(topo_mod_errno(mod))); 72 topo_mod_dprintf(mod, "%s added node_0x%llx type %s\n",
|
H A D | sun4vpi.c | 67 _topo_init(topo_mod_t *mod, topo_version_t version) argument 74 topo_mod_setdebug(mod); 76 topo_mod_dprintf(mod, "sun4vpi module initializing.\n"); 79 topo_mod_dprintf(mod, "version (%d)\n", version); 84 (void) topo_mod_seterrno(mod, EMOD_VER_NEW); 85 topo_mod_dprintf(mod, "incompatible topo version %d\n", 93 topo_mod_dprintf(mod, "not sun4v architecture: %s\n", isa); 97 result = topo_mod_register(mod, &pi_modinfo, TOPO_VERSION); 99 topo_mod_dprintf(mod, "registration failed: %s\n", 100 topo_mod_errmsg(mod)); 119 _topo_fini(topo_mod_t *mod) argument 132 pi_release(topo_mod_t *mod, tnode_t *tnp) argument 149 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 267 topo_mod_t *mod = pip->mod; local [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/x86pi/common/ |
H A D | x86pi_chassis.c | 40 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 D | x86pi.c | 82 _topo_init(topo_mod_t *mod, topo_version_t version) argument 89 topo_mod_setdebug(mod); 91 topo_mod_dprintf(mod, "module initializing.\n"); 94 topo_mod_dprintf(mod, "version (%d)\n", version); 99 (void) topo_mod_seterrno(mod, EMOD_VER_NEW); 100 topo_mod_dprintf(mod, "incompatible topo version %d\n", 108 topo_mod_dprintf(mod, "not i86pc architecture: %s\n", isa); 112 result = topo_mod_register(mod, &x86pi_modinfo, TOPO_VERSION); 114 topo_mod_dprintf(mod, "registration failed: %s\n", 115 topo_mod_errmsg(mod)); 136 _topo_fini(topo_mod_t *mod) argument 150 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 188 x86pi_enum_start(topo_mod_t *mod, x86pi_enum_t *x86pi) argument 271 x86pi_enum_gentopo(topo_mod_t *mod, tnode_t *t_parent) argument [all...] |
H A D | x86pi_hostbridge.c | 66 x86pi_hbr_enum_init(topo_mod_t *mod, topo_mod_t **pcimp) argument 70 if (did_hash_init(mod) < 0) { 71 topo_mod_dprintf(mod, "%s: did_hash_init() failed.\n", f); 75 if ((*pcimp = topo_mod_load(mod, PCI_ENUM, PCI_ENUMR_VERS)) == NULL) { 76 topo_mod_dprintf(mod, 79 did_hash_fini(mod); 87 x86pi_hbr_enum_fini(topo_mod_t *mod, topo_mod_t **pcimp) argument 89 did_hash_fini(mod); 94 pciex_process(topo_mod_t *mod, tnode_t *tn_hbr, di_node_t rcn, argument 104 if ((did = did_create(mod, rc 160 pci_process(topo_mod_t *mod, tnode_t *tn_hbr, di_node_t bn) argument 186 x86pi_gen_pci_pciexrc(topo_mod_t *mod, tnode_t *tn_hbr, uint16_t bdf, topo_instance_t *rcip) argument 232 x86pi_gen_hbr(topo_mod_t *mod, tnode_t *tn_bb, int hbr_smbid, topo_instance_t hbri, topo_instance_t *rcip) argument [all...] |
H A D | x86pi_generic.c | 43 x86pi_enum_generic(topo_mod_t *mod, x86pi_hcfmri_t *hcfmri, argument 52 topo_mod_dprintf(mod, "%s adding entry for type (%s)\n", 56 topo_mod_dprintf(mod, 63 auth = topo_mod_auth(mod, t_bindparent); 64 fmri = topo_mod_hcfmri(mod, t_fmriparent, FM_HC_SCHEME_VERSION, 71 topo_mod_dprintf(mod, 73 hcfmri->hc_name, topo_strerror(topo_mod_errno(mod))); 77 rv = topo_node_range_create(mod, t_bindparent, hcfmri->hc_name, 0, 4); 78 if (rv != 0 && topo_mod_errno(mod) != EMOD_NODE_DUP) { 79 topo_mod_dprintf(mod, " 130 x86pi_node_bind(topo_mod_t *mod, tnode_t *t_parent, x86pi_hcfmri_t *hcfmri, nvlist_t *fmri, int flag) argument [all...] |
H A D | x86pi_bay.c | 64 bay_bdf(topo_mod_t *mod, smbios_port_ext_t *epp, uint16_t *bdf) argument 73 shp = topo_mod_smbios(mod); 75 topo_mod_dprintf(mod, "%s: failed to load SMBIOS\n", f); 96 topo_mod_dprintf(mod, "%s: unknown device type: %d\n", 100 topo_mod_dprintf(mod, "%s: %s: bus(0x%02x) dev/func(0x%02x)\n", f, 112 bay_pgroups(topo_mod_t *mod, tnode_t *tnp, di_node_t *dnp, di_node_t *sibp, argument 126 topo_mod_dprintf(mod, 129 (void) topo_mod_seterrno(mod, err); 133 ap_path = topo_mod_alloc(mod, MAXPATHLEN); 135 topo_mod_dprintf(mod, " 199 bay_update_tnode(topo_mod_t *mod, tnode_t *tnodep, uint16_t bdf, int phy) argument 273 x86pi_gen_bay(topo_mod_t *mod, tnode_t *chassis_node, int ch_smbid, int nch) argument 381 x86pi_gen_expander_bay(topo_mod_t *mod, tnode_t *t_parent, int *max_inst) argument 433 x86pi_gen_sas_bay(topo_mod_t *mod, tnode_t *t_parent, int *inst) argument 461 x86pi_gen_sata_bay(topo_mod_t *mod, tnode_t *t_parent, smbios_port_ext_t *eport, int instance) argument [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/common/fac_prov_ipmi/common/ |
H A D | fac_prov_ipmi.c | 173 _topo_init(topo_mod_t *mod, topo_version_t version) argument 176 topo_mod_setdebug(mod); 178 return (topo_mod_register(mod, &ipmi_info, TOPO_VERSION)); 182 _topo_fini(topo_mod_t *mod) argument 184 topo_mod_unregister(mod); 188 strarr_free(topo_mod_t *mod, char **arr, uint_t nelems) argument 191 topo_mod_strfree(mod, arr[i]); 192 topo_mod_free(mod, arr, (nelems * sizeof (char *))); 196 ipmi_find_sdr(topo_mod_t *mod, ipmi_handle_t *hdl, char **entities, argument 206 topo_mod_dprintf(mod, "Foun 239 ipmi_platform_message(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 368 ipmi_sensor_state(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 459 ipmi_sensor_reading(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 527 ipmi_indicator_mode(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 626 bay_walker(topo_mod_t *mod, tnode_t *node, void *pdata) argument 636 check_bay_empty(topo_mod_t *mod, tnode_t *baynode, boolean_t *is_empty) argument 672 bay_locate_mode(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 869 bay_indicator_mode(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 1095 x4500_present_mode(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 1209 chassis_service_mode(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 1406 chassis_locate_mode(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 1491 make_sensor_node(topo_mod_t *mod, tnode_t *pnode, struct sensor_data *sd) argument 1686 ipmi_sensor_enum(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 1782 ipmi_entity(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 1867 dimm_ipmi_entity(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 1930 cs_ipmi_entity(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 2002 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...] |
/osnet-11/usr/src/lib/fm/topo/modules/sun4v/niu/common/ |
H A D | niu.c | 64 _topo_init(topo_mod_t *mod, topo_version_t version) argument 70 topo_mod_setdebug(mod); 71 topo_mod_dprintf(mod, "initializing niu enumerator\n"); 73 if (topo_mod_register(mod, &niu_info, TOPO_VERSION) < 0) { 74 topo_mod_dprintf(mod, "niu registration failed: %s\n", 75 topo_mod_errmsg(mod)); 76 return; /* mod errno already set */ 78 topo_mod_dprintf(mod, "NIU enumr initd\n"); 82 _topo_fini(topo_mod_t *mod) argument 84 topo_mod_unregister(mod); 87 devprop_set(tnode_t *tn, di_node_t dn, const char *tpgrp, const char *tpnm, topo_mod_t *mod) argument 106 driverprop_set(tnode_t *tn, di_node_t dn, const char *tpgrp, const char *tpnm, topo_mod_t *mod) argument 121 moduleprop_set(tnode_t *tn, di_node_t dn, const char *tpgrp, const char *tpnm, topo_mod_t *mod) argument 144 niu_tnode_create(topo_mod_t *mod, tnode_t *parent, const char *name, topo_instance_t i, void *priv) argument 186 niu_asru_set(tnode_t *tn, di_node_t dn, topo_mod_t *mod) argument 217 niu_declare(tnode_t *parent, const char *name, topo_instance_t i, void *priv, topo_mod_t *mod) argument 243 niufn_declare(tnode_t *parent, const char *name, topo_instance_t i, void *priv, topo_mod_t *mod) argument 274 niufn_instance_get(topo_mod_t *mod, di_node_t node, topo_instance_t *inst) argument 297 niufn_instantiate(tnode_t *parent, const char *name, di_node_t pnode, topo_mod_t *mod) argument 348 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...] |
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/chip/common/ |
H A D | chip_label.c | 42 get_fmtstr(topo_mod_t *mod, nvlist_t *in) argument 48 topo_mod_dprintf(mod, "get_fmtstr() called\n"); 51 topo_mod_dprintf(mod, "Failed to lookup 'args' list (%s)\n", 53 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL); 57 topo_mod_dprintf(mod, "Failed to lookup 'format' arg (%s)\n", 59 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL); 66 store_prop_val(topo_mod_t *mod, char *buf, char *propname, nvlist_t **out) argument 68 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) { 69 topo_mod_dprintf(mod, "Failed to allocate 'out' nvlist\n"); 70 return (topo_mod_seterrno(mod, EMOD_NOME 111 simple_dimm_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 172 simple_dimm_label_mp(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 258 seq_dimm_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 336 simple_chip_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 393 fsb2_chip_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 444 g4_chip_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 537 get_num_chips(topo_mod_t *mod) argument 587 a4fplus_chip_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 666 simple_cs_label_mp(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 713 g4_dimm_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 787 g12f_dimm_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument [all...] |
H A D | chip_serial.c | 57 ipmi_serial_lookup(topo_mod_t *mod, char *ipmi_tag, char *buf) argument 65 topo_mod_dprintf(mod, "ipmi_serial_lookup() called\n"); 66 if ((hdl = topo_mod_ipmi_hold(mod)) == NULL) { 67 topo_mod_dprintf(mod, "Failed to get IPMI handle\n"); 68 return (topo_mod_seterrno(mod, EMOD_UNKNOWN)); 71 topo_mod_dprintf(mod, "Looking up FRU data for %s ...\n", ipmi_tag); 74 topo_mod_dprintf(mod, "Failed to lookup %s (%s)\n", ipmi_tag, 76 topo_mod_ipmi_rele(mod); 77 return (topo_mod_seterrno(mod, EMOD_NVL_INVAL)); 81 topo_mod_dprintf(mod, "Readin 204 get_dimm_serial(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/sun4u/hostbridge/common/ |
H A D | hb_sun4u.c | 34 count_busorrc(topo_mod_t *mod, busorrc_t *list, int *hbc, int *bph) argument 56 topo_mod_dprintf(mod, 59 return (topo_mod_seterrno(mod, EMOD_PARTIAL_ENUM)); 62 topo_mod_dprintf(mod, 64 topo_mod_dprintf(mod, "%d buses total.\n", bt); 69 busorrc_process(topo_mod_t *mod, busorrc_t *list, int isrc, tnode_t *ptn) argument 75 topo_mod_dprintf(mod, "No root complexes found.\n"); 77 topo_mod_dprintf(mod, "No pci buses found.\n"); 104 if (count_busorrc(mod, list, &hbc, &busper) < 0) 107 return (declare_exbuses(mod, lis 113 pci_hostbridges_find(topo_mod_t *mod, tnode_t *ptn) argument 169 platform_hb_enum(topo_mod_t *mod, tnode_t *parent, const char *name, topo_instance_t imin, topo_instance_t imax) argument 177 platform_hb_label(topo_mod_t *mod, tnode_t *node, nvlist_t *in, nvlist_t **out) argument [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/hostbridge/common/ |
H A D | hb_i86pc.c | 36 hb_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn) argument 41 if ((hbdid = did_create(mod, bn, 0, hbi, NO_RC, TRUST_BDF)) == NULL) 43 if ((hb = pcihostbridge_declare(mod, ptn, bn, hbi)) == NULL) 45 if (topo_mod_enumerate(mod, 55 rc_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn) argument 61 if ((hbdid = did_create(mod, bn, 0, hbi, hbi, TRUST_BDF)) == NULL) 63 if ((hb = pciexhostbridge_declare(mod, ptn, bn, hbi)) == NULL) 65 if ((rc = pciexrc_declare(mod, hb, bn, hbi)) == NULL) 67 if (topo_mod_enumerate(mod, 79 pci_hostbridges_find(topo_mod_t *mod, tnode_ argument 138 platform_hb_enum(topo_mod_t *mod, tnode_t *parent, const char *name, topo_instance_t imin, topo_instance_t imax) argument 146 platform_hb_label(topo_mod_t *mod, tnode_t *node, nvlist_t *in, nvlist_t **out) argument [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/common/xfp/common/ |
H A D | xfp.c | 59 _topo_init(topo_mod_t *mod, topo_version_t version) argument 65 topo_mod_setdebug(mod); 66 topo_mod_dprintf(mod, "initializing xfp enumerator\n"); 68 if (topo_mod_register(mod, &xfp_info, TOPO_VERSION) < 0) { 69 topo_mod_dprintf(mod, "xfp registration failed: %s\n", 70 topo_mod_errmsg(mod)); 71 return (-1); /* mod errno already set */ 73 topo_mod_dprintf(mod, "xfp enum initd\n"); 78 _topo_fini(topo_mod_t *mod) argument 80 topo_mod_unregister(mod); 84 xfp_tnode_create(topo_mod_t *mod, tnode_t *parent, const char *name, topo_instance_t i, void *priv) argument 149 xfp_label_set(topo_mod_t *mod, tnode_t *parent, tnode_t *node, topo_instance_t n) argument 180 xfp_declare(tnode_t *parent, const char *name, topo_instance_t i, void *priv, topo_mod_t *mod) argument 206 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...] |
/osnet-11/usr/src/lib/fm/topo/modules/common/usb/common/ |
H A D | usb.c | 79 usb_populate_prop(topo_mod_t *mod, tnode_t *tn, di_node_t dn); 82 usb_children_instantiate(topo_mod_t *mod, tnode_t *pnode, 86 usb_set_asru(topo_mod_t *mod, tnode_t *tn, di_node_t dn); 89 usb_enum_from_pci(topo_mod_t *mod, tnode_t *pnode, 94 usb_promprop2int(topo_mod_t *mod, di_node_t n, 98 usb_list_cleanup(topo_mod_t *mod, usb_enum_data_t *prvdata); 101 usb_enum_from_hostbridge(topo_mod_t *mod, tnode_t *pnode, 108 static void usb_release(topo_mod_t *mod, tnode_t *tn); 142 usb_di_uintprop_get(topo_mod_t *mod, di_node_t n, const char *pnm, uint_t **pv) argument 145 if (usb_promprop2int(mod, 159 topo_mod_t *mod = cbp->dcb_mod; local 221 usb_host_di_node_search(topo_mod_t *mod, di_node_t node, usb_enum_data_t *data, usb_enum_dev_t **host) argument 280 topo_mod_t *mod = cbp->dcb_mod; local 311 usb_host_list_gather(topo_mod_t *mod, usb_enum_data_t *data) argument 339 usb_set_host_fru(topo_mod_t *mod, tnode_t *pnode, tnode_t *tn) argument 366 usb_process_host_controllers(topo_mod_t *mod, tnode_t *pnode, usb_enum_data_t *data) argument 465 usb_process_single_host(topo_mod_t *mod, tnode_t *pnode, usb_enum_data_t *data) argument 564 usb_enum(topo_mod_t *mod, tnode_t *rnode, const char *name, topo_instance_t min, topo_instance_t max, void *arg, void *notused) argument 625 usb_list_cleanup(topo_mod_t *mod, usb_enum_data_t *prvdata) argument 643 usb_release(topo_mod_t *mod, tnode_t *tn) argument 653 usb_enum_from_pci(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t min, topo_instance_t max, void *arg, void *data) argument 673 usb_enum_from_hostbridge(topo_mod_t *mod, tnode_t *pnode, usb_enum_data_t *data) argument 681 _topo_init(topo_mod_t *mod, topo_version_t version) argument 731 _topo_fini(topo_mod_t *mod) argument 895 usb_set_asru(topo_mod_t *mod, tnode_t *tn, di_node_t dn) argument 930 usb_set_fru(topo_mod_t *mod, tnode_t *tn, di_node_t dn) argument 988 usb_promprop2int(topo_mod_t *mod, di_node_t n, const char *propnm, int **val) argument 1021 usb_populate_prop(topo_mod_t *mod, tnode_t *tn, di_node_t dn) argument 1283 usb_declare_dev_and_if(topo_mod_t *mod, tnode_t *pnode, di_node_t pdn, int seq) argument 1425 usb_children_instantiate(topo_mod_t *mod, tnode_t *pnode, di_node_t pn, int depth) argument [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/common/bay/common/ |
H A D | bay.c | 88 bay_add_pgroups(topo_mod_t *mod, tnode_t *tn, bay_t *bp, char *ap_path, argument 100 topo_mod_dprintf(mod, "%s: failed to create io pgroup: %s\n", 102 (void) topo_mod_seterrno(mod, err); 111 topo_mod_dprintf(mod, 114 (void) topo_mod_seterrno(mod, err); 122 topo_mod_dprintf(mod, 125 (void) topo_mod_seterrno(mod, err); 135 topo_mod_dprintf(mod, 138 (void) topo_mod_seterrno(mod, err); 143 devid = get_devid(mod, oc_pat 162 bay_gen_ap_path(topo_mod_t *mod, bay_t *bp, char **ap_path) argument 219 bay_gen_oc_path(topo_mod_t *mod, bay_t *bp, char **oc_path) argument 276 bay_decorate(topo_mod_t *mod, tnode_t *tn, bay_t *bp) argument 353 bay_gen_bay(topo_mod_t *mod, tnode_t *pnode, bay_t *bp) argument 432 bay_xch_auth(topo_mod_t *mod, nvlist_t *auth, char *mfg, char *name, char *part, char *serial, char *alias) argument 462 bay_xch_props(topo_mod_t *mod, tnode_t *tnode, char *mfg, char *name, char *part, char *serial, char *alias) argument 498 bay_create_xch(topo_mod_t *mod, topo_instance_t instance, tnode_t *pnode, tnode_t **tnode, bay_t *bayp) argument 603 bay_direct(topo_mod_t *mod, tnode_t *t_parent, di_node_t hba_dnode, int hba_idx, char *conf_file, int max_phys) argument 714 bay_enum(topo_mod_t *mod, tnode_t *t_parent, const char *name, topo_instance_t min, topo_instance_t max, void *arg, void *priv) argument 931 _topo_init(topo_mod_t *mod, topo_version_t version) argument 965 _topo_fini(topo_mod_t *mod) argument [all...] |