Home
last modified time | relevance | path

Searched refs:mod (Results 1 – 25 of 229) sorted by relevance

12345678910

/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_module.c52 topo_mod_release(topo_mod_t *mod, tnode_t *node) in topo_mod_release() argument
54 topo_mod_enter(mod); in topo_mod_release()
56 if (mod->tm_info->tmi_ops->tmo_release != NULL) in topo_mod_release()
57 mod->tm_info->tmi_ops->tmo_release(mod, node); in topo_mod_release()
59 topo_mod_exit(mod); in topo_mod_release()
63 topo_mod_hold(topo_mod_t *mod) in topo_mod_hold() argument
65 (void) pthread_mutex_lock(&mod->tm_lock); in topo_mod_hold()
66 mod->tm_refs++; in topo_mod_hold()
67 assert(mod->tm_refs != 0); in topo_mod_hold()
68 (void) pthread_mutex_unlock(&mod->tm_lock); in topo_mod_hold()
[all …]
H A Dtopo_mod.c123 topo_mod_t *mod = NULL; in topo_mod_load() local
131 if ((mod = topo_mod_lookup(thp, name, 1)) != NULL) { in topo_mod_load()
132 if (mod->tm_info->tmi_version != version) { in topo_mod_load()
133 topo_mod_rele(mod); in topo_mod_load()
137 return (mod); in topo_mod_load()
144 (mod = topo_modhash_load(thp, name, path, &topo_rtld_ops, version)) in topo_mod_load()
154 return (mod); in topo_mod_load()
158 topo_mod_unload(topo_mod_t *mod) in topo_mod_unload() argument
160 topo_mod_rele(mod); in topo_mod_unload()
164 set_register_error(topo_mod_t *mod, int err) in set_register_error() argument
[all …]
H A Dsvc.c105 svc_error(topo_mod_t *mod) in svc_error() argument
109 return (topo_mod_seterrno(mod, EMOD_NOMEM)); in svc_error()
112 return (topo_mod_seterrno(mod, EMOD_UNKNOWN)); in svc_error()
117 svc_get_handle(topo_mod_t *mod) in svc_get_handle() argument
119 scf_handle_t *hdl = topo_mod_getspecific(mod); in svc_get_handle()
125 (void) svc_error(mod); in svc_get_handle()
131 (void) svc_error(mod); in svc_get_handle()
135 topo_mod_setspecific(mod, hdl); in svc_get_handle()
141 svc_init(topo_mod_t *mod, topo_version_t version) in svc_init() argument
144 topo_mod_setdebug(mod); in svc_init()
[all …]
H A Dhc.c222 hc_init(topo_mod_t *mod, topo_version_t version) in hc_init() argument
228 topo_mod_setdebug(mod); in hc_init()
230 topo_mod_dprintf(mod, "initializing hc builtin\n"); in hc_init()
233 return (topo_mod_seterrno(mod, EMOD_VER_NEW)); in hc_init()
235 if (topo_mod_register(mod, &hc_info, TOPO_VERSION) != 0) { in hc_init()
236 topo_mod_dprintf(mod, "failed to register hc: " in hc_init()
237 "%s\n", topo_mod_errmsg(mod)); in hc_init()
245 hc_fini(topo_mod_t *mod) in hc_fini() argument
247 topo_mod_unregister(mod); in hc_fini()
252 hc_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t min, in hc_enum() argument
[all …]
H A Dcpu.c78 cpu_init(topo_mod_t *mod, topo_version_t version) in cpu_init() argument
83 topo_mod_setdebug(mod); in cpu_init()
84 topo_mod_dprintf(mod, "initializing cpu builtin\n"); in cpu_init()
87 return (topo_mod_seterrno(mod, EMOD_VER_NEW)); in cpu_init()
89 if ((cpuip = topo_mod_zalloc(mod, sizeof (cpu_node_t))) == NULL) in cpu_init()
90 return (topo_mod_seterrno(mod, EMOD_NOMEM)); in cpu_init()
93 topo_mod_dprintf(mod, "kstat_open failed: %s\n", in cpu_init()
95 topo_mod_free(mod, cpuip, sizeof (cpu_node_t)); in cpu_init()
100 if ((cpuip->cn_cpustats = topo_mod_zalloc(mod, ( in cpu_init()
103 topo_mod_free(mod, cpuip, sizeof (cpu_node_t)); in cpu_init()
[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) in get_fmtstr() argument
51 topo_mod_dprintf(mod, "get_fmtstr() called\n"); in get_fmtstr()
54 topo_mod_dprintf(mod, "Failed to lookup 'args' list (%s)\n", in get_fmtstr()
56 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL); in get_fmtstr()
60 topo_mod_dprintf(mod, "Failed to lookup 'format' arg (%s)\n", in get_fmtstr()
62 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL); in get_fmtstr()
69 store_prop_val(topo_mod_t *mod, char *buf, char *propname, nvlist_t **out) in store_prop_val() argument
71 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) { in store_prop_val()
72 topo_mod_dprintf(mod, "Failed to allocate 'out' nvlist\n"); in store_prop_val()
73 return (topo_mod_seterrno(mod, EMOD_NOMEM)); in store_prop_val()
[all …]
H A Dchip.c114 _topo_init(topo_mod_t *mod) in _topo_init() argument
117 topo_mod_setdebug(mod); in _topo_init()
118 topo_mod_dprintf(mod, "initializing chip enumerator\n"); in _topo_init()
120 if (topo_mod_register(mod, &chip_info, TOPO_VERSION) != 0) { in _topo_init()
121 whinge(mod, NULL, "failed to register hc: " in _topo_init()
122 "%s\n", topo_mod_errmsg(mod)); in _topo_init()
130 _topo_fini(topo_mod_t *mod) in _topo_fini() argument
132 topo_mod_unregister(mod); in _topo_fini()
150 create_node(topo_mod_t *mod, tnode_t *pnode, nvlist_t *auth, char *name, in create_node() argument
156 if (mkrsrc(mod, pnode, name, inst, auth, &fmri) != 0) { in create_node()
[all …]
H A Dchip_intel.c121 mc_add_ranks(topo_mod_t *mod, tnode_t *dnode, nvlist_t *auth, int dimm, in mc_add_ranks() argument
137 if (topo_node_range_create(mod, dnode, RANK, rank, in mc_add_ranks()
139 whinge(mod, NULL, "mc_add_ranks: node range create failed" in mc_add_ranks()
144 fmri = topo_mod_hcfmri(mod, dnode, FM_HC_SCHEME_VERSION, in mc_add_ranks()
147 whinge(mod, NULL, in mc_add_ranks()
151 if ((rnode = topo_node_bind(mod, dnode, RANK, rank, in mc_add_ranks()
154 whinge(mod, NULL, "mc_add_ranks: node bind failed" in mc_add_ranks()
160 if (topo_method_register(mod, rnode, rank_methods) < 0) in mc_add_ranks()
161 whinge(mod, &err, "mc_add_ranks: " in mc_add_ranks()
164 if (! is_xpv() && topo_method_register(mod, rnode, in mc_add_ranks()
[all …]
H A Dchip_amd.c139 amd_generic_mc_create(topo_mod_t *mod, uint16_t smbid, tnode_t *cnode, in amd_generic_mc_create() argument
154 if (topo_node_range_create(mod, mcnode, CHAN_NODE_NAME, 0, in amd_generic_mc_create()
156 whinge(mod, NULL, "amd_generic_mc_create: range create for " in amd_generic_mc_create()
166 if (mkrsrc(mod, mcnode, CHAN_NODE_NAME, chan, auth, in amd_generic_mc_create()
168 whinge(mod, NULL, "amd_generic_mc_create: mkrsrc " in amd_generic_mc_create()
173 if ((chnode = topo_node_bind(mod, mcnode, CHAN_NODE_NAME, in amd_generic_mc_create()
176 whinge(mod, NULL, "amd_generic_mc_create: node " in amd_generic_mc_create()
188 if (FM_AWARE_SMBIOS(mod)) { in amd_generic_mc_create()
190 whinge(mod, NULL, "amd_generic_mc_create: " in amd_generic_mc_create()
193 whinge(mod, NULL, "amd_generic_mc_create: " in amd_generic_mc_create()
[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) in _topo_init() argument
186 topo_mod_setdebug(mod); in _topo_init()
188 return (topo_mod_register(mod, &ipmi_info, TOPO_VERSION)); in _topo_init()
192 _topo_fini(topo_mod_t *mod) in _topo_fini() argument
194 topo_mod_unregister(mod); in _topo_fini()
205 ipmi_platform_message(topo_mod_t *mod, tnode_t *node, topo_version_t vers, in ipmi_platform_message() argument
218 return (topo_mod_seterrno(mod, ETOPO_METHOD_VERNEW)); in ipmi_platform_message()
224 if ((hdl = topo_mod_ipmi_hold(mod)) == NULL) { in ipmi_platform_message()
225 topo_mod_dprintf(mod, "Failed to get IPMI handle\n"); in ipmi_platform_message()
231 topo_mod_dprintf(mod, "Failed to lookup entity_ref property " in ipmi_platform_message()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_module.c114 mdb_module_t *mod; in mdb_module_create() local
116 mod = mdb_zalloc(sizeof (mdb_module_t), UM_SLEEP); in mdb_module_create()
117 mod->mod_info = mdb_alloc(sizeof (mdb_modinfo_t), UM_SLEEP); in mdb_module_create()
119 (void) mdb_nv_create(&mod->mod_dcmds, UM_SLEEP); in mdb_module_create()
120 (void) mdb_nv_create(&mod->mod_walkers, UM_SLEEP); in mdb_module_create()
122 mod->mod_name = strdup(name); in mdb_module_create()
123 mdb.m_lmod = mod; /* Mark module as currently loading */ in mdb_module_create()
127 mod->mod_hdl = dlmopen(LM_ID_BASE, fname, RTLD_NOW | dlmode); in mdb_module_create()
129 if (mod->mod_hdl == NULL) { in mdb_module_create()
134 mod->mod_init = (const mdb_modinfo_t *(*)(void)) in mdb_module_create()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi.c85 _topo_init(topo_mod_t *mod, topo_version_t version) in _topo_init() argument
92 topo_mod_setdebug(mod); in _topo_init()
94 topo_mod_dprintf(mod, "module initializing.\n"); in _topo_init()
97 (void) topo_mod_seterrno(mod, EMOD_VER_NEW); in _topo_init()
98 topo_mod_dprintf(mod, "incompatible topo version %d\n", in _topo_init()
106 topo_mod_dprintf(mod, "not i86pc architecture: %s\n", isa); in _topo_init()
110 result = topo_mod_register(mod, &x86pi_modinfo, TOPO_VERSION); in _topo_init()
112 topo_mod_dprintf(mod, "registration failed: %s\n", in _topo_init()
113 topo_mod_errmsg(mod)); in _topo_init()
117 topo_mod_dprintf(mod, "module ready.\n"); in _topo_init()
[all …]
H A Dx86pi_bay.c72 bay_bdf(topo_mod_t *mod, smbios_port_ext_t *epp, uint16_t *bdf) in bay_bdf() argument
81 shp = topo_mod_smbios(mod); in bay_bdf()
83 topo_mod_dprintf(mod, "%s: failed to load SMBIOS\n", f); in bay_bdf()
104 topo_mod_dprintf(mod, "%s: unknown device type: %d\n", in bay_bdf()
108 topo_mod_dprintf(mod, "%s: %s: bus(0x%02x) dev/func(0x%02x)\n", f, in bay_bdf()
120 bay_pgroups(topo_mod_t *mod, tnode_t *tnp, di_node_t *dnp, di_node_t *sibp, in bay_pgroups() argument
133 topo_mod_dprintf(mod, in bay_pgroups()
136 (void) topo_mod_seterrno(mod, err); in bay_pgroups()
140 ap_path = topo_mod_alloc(mod, MAXPATHLEN); in bay_pgroups()
142 topo_mod_dprintf(mod, "%s: ap_path alloc failed\n", f); in bay_pgroups()
[all …]
H A Dx86pi_hostbridge.c68 x86pi_hbr_enum_init(topo_mod_t *mod) in x86pi_hbr_enum_init() argument
72 if (did_hash_init(mod) < 0) { in x86pi_hbr_enum_init()
73 topo_mod_dprintf(mod, "%s: did_hash_init() failed.\n", f); in x86pi_hbr_enum_init()
77 if ((pcimp = topo_mod_load(mod, PCI_ENUM, PCI_ENUMR_VERS)) == NULL) { in x86pi_hbr_enum_init()
78 topo_mod_dprintf(mod, in x86pi_hbr_enum_init()
81 did_hash_fini(mod); in x86pi_hbr_enum_init()
89 x86pi_hbr_enum_fini(topo_mod_t *mod) in x86pi_hbr_enum_fini() argument
91 did_hash_fini(mod); in x86pi_hbr_enum_fini()
97 pciex_process(topo_mod_t *mod, tnode_t *tn_hbr, di_node_t rcn, in pciex_process() argument
107 if ((did = did_create(mod, rcn, topo_node_instance(tn_bb), in pciex_process()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/
H A Ddisk_common.c107 disk_set_props(topo_mod_t *mod, tnode_t *parent, in disk_set_props() argument
120 topo_mod_dprintf(mod, "disk_set_props: " in disk_set_props()
126 topo_mod_dprintf(mod, "disk_set_props: " in disk_set_props()
133 topo_mod_dprintf(mod, "disk_set_props: " in disk_set_props()
138 topo_mod_dprintf(mod, "disk_set_props: " in disk_set_props()
146 topo_mod_dprintf(mod, "disk_set_props: " in disk_set_props()
153 topo_mod_dprintf(mod, "disk_set_props: " in disk_set_props()
165 if ((asru = topo_mod_devfmri(mod, FM_DEV_SCHEME_VERSION, in disk_set_props()
168 topo_mod_dprintf(mod, "disk_set_props: " in disk_set_props()
173 topo_mod_dprintf(mod, "disk_set_props: " in disk_set_props()
[all …]
H A Ddisk.c52 disk_declare_driver(topo_mod_t *mod, tnode_t *baynode, topo_list_t *dlistp, in disk_declare_driver() argument
61 if ((err = disk_mptsas_find_disk(mod, baynode, in disk_declare_driver()
65 err = disk_declare_addr(mod, baynode, dlistp, in disk_declare_driver()
67 topo_mod_strfree(mod, sas_address); in disk_declare_driver()
71 if (disk_nvme_enum_disk(mod, baynode) != 0) in disk_declare_driver()
77 topo_mod_dprintf(mod, "unknown disk driver '%s'\n", driver); in disk_declare_driver()
83 disk_enum(topo_mod_t *mod, tnode_t *baynode, in disk_enum() argument
89 topo_disk_t *disk = topo_mod_getspecific(mod); in disk_enum()
93 topo_mod_dprintf(mod, "disk_enum: can't enumerate %s nodes - " in disk_enum()
108 topo_mod_dprintf(mod, "disk_enum: " in disk_enum()
[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) in distill_dimm_form() argument
59 return (topo_mod_strdup(mod, TOPO_DIMM_SLOT_FORM_DIMM)); in distill_dimm_form()
61 return (topo_mod_strdup(mod, TOPO_DIMM_SLOT_FORM_SODIMM)); in distill_dimm_form()
63 return (topo_mod_strdup(mod, TOPO_DIMM_SLOT_FORM_FBDIMM)); in distill_dimm_form()
65 topo_mod_dprintf(mod, "skipping device with form factor 0x%x", in distill_dimm_form()
72 smbios2topotype(topo_mod_t *mod, uint8_t type) in smbios2topotype() argument
76 return (topo_mod_strdup(mod, TOPO_DIMM_TYPE_DDR)); in smbios2topotype()
79 return (topo_mod_strdup(mod, TOPO_DIMM_TYPE_DDR2)); in smbios2topotype()
81 return (topo_mod_strdup(mod, TOPO_DIMM_TYPE_DDR3)); in smbios2topotype()
83 return (topo_mod_strdup(mod, TOPO_DIMM_TYPE_DDR4)); in smbios2topotype()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/ipmi/
H A Dipmi_methods.c39 get_fmtstr(topo_mod_t *mod, nvlist_t *in) in get_fmtstr() argument
45 topo_mod_dprintf(mod, "get_fmtstr() called\n"); in get_fmtstr()
48 topo_mod_dprintf(mod, "Failed to lookup 'args' list (%s)\n", in get_fmtstr()
50 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL); in get_fmtstr()
54 topo_mod_dprintf(mod, "Failed to lookup 'format' arg (%s)\n", in get_fmtstr()
56 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL); in get_fmtstr()
63 store_prop_val(topo_mod_t *mod, void *buf, char *propname, topo_type_t type, in store_prop_val() argument
66 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) { in store_prop_val()
67 topo_mod_dprintf(mod, "Failed to allocate 'out' nvlist\n"); in store_prop_val()
68 return (topo_mod_seterrno(mod, EMOD_NOMEM)); in store_prop_val()
[all …]
H A Dipmi_enum.c57 extern int ipmi_fru_label(topo_mod_t *mod, tnode_t *node,
60 extern int ipmi_fru_fmri(topo_mod_t *mod, tnode_t *node,
86 ipmi_find_entity(topo_mod_t *mod, tnode_t *tn, ipmi_handle_t **ihpp, in ipmi_find_entity() argument
101 if ((ihp = topo_mod_ipmi_hold(mod)) == NULL) in ipmi_find_entity()
102 return (topo_mod_seterrno(mod, ETOPO_METHOD_UNKNOWN)); in ipmi_find_entity()
130 topo_mod_ipmi_rele(mod); in ipmi_find_entity()
131 return (topo_mod_seterrno(mod, ETOPO_METHOD_NOTSUP)); in ipmi_find_entity()
144 topo_mod_strfree(mod, names[i]); in ipmi_find_entity()
145 topo_mod_free(mod, names, (nelems * sizeof (char *))); in ipmi_find_entity()
148 topo_mod_dprintf(mod, in ipmi_find_entity()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/zen/
H A Dtopo_zen.c75 topo_zen_enum_cleanup_sock(topo_mod_t *mod, zen_topo_enum_sock_t *sock) in topo_zen_enum_cleanup_sock() argument
99 topo_mod_free(mod, sock->ztes_tn_ccd, sock->ztes_nccd * in topo_zen_enum_cleanup_sock()
105 topo_mod_free(mod, sock->ztes_ccd, sock->ztes_nccd * in topo_zen_enum_cleanup_sock()
112 topo_zen_enum_chip_gather_ccd(topo_mod_t *mod, const zen_topo_t *zen, in topo_zen_enum_chip_gather_ccd() argument
123 topo_mod_dprintf(mod, "failed to get CCD information " in topo_zen_enum_chip_gather_ccd()
126 return (topo_mod_seterrno(mod, EMOD_UKNOWN_ENUM)); in topo_zen_enum_chip_gather_ccd()
142 topo_mod_dprintf(mod, "DF CCM fabric 0x%x, CCD 0x%x " in topo_zen_enum_chip_gather_ccd()
145 return (topo_mod_seterrno(mod, EMOD_UKNOWN_ENUM)); in topo_zen_enum_chip_gather_ccd()
170 topo_zen_enum_chip_gather(topo_mod_t *mod, const zen_topo_t *zen, in topo_zen_enum_chip_gather() argument
184 topo_mod_dprintf(mod, "no CCDs found! Not much more we can " in topo_zen_enum_chip_gather()
[all …]
H A Dtopo_zen_tn.c83 topo_zen_create_tn(topo_mod_t *mod, zen_topo_enum_sock_t *sock, tnode_t *pnode, in topo_zen_create_tn() argument
90 auth = topo_mod_auth(mod, pnode); in topo_zen_create_tn()
92 topo_mod_dprintf(mod, "failed to get auth for %s[%" PRIu64 "]: " in topo_zen_create_tn()
93 "%s", name, inst, topo_mod_errmsg(mod)); in topo_zen_create_tn()
97 fmri = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION, name, inst, in topo_zen_create_tn()
100 topo_mod_dprintf(mod, "failed to create FMRI for %s[%" PRIu64 in topo_zen_create_tn()
101 "]: %s", name, inst, topo_mod_errmsg(mod)); in topo_zen_create_tn()
106 tn = topo_node_bind(mod, pnode, name, inst, fmri); in topo_zen_create_tn()
109 topo_mod_dprintf(mod, "failed to bind node %s[%" PRIu64 "]: %s", in topo_zen_create_tn()
110 name, inst, topo_mod_errmsg(mod)); in topo_zen_create_tn()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_libhp/
H A Dfac_prov_libhp.c84 fac_prov_libhp_find_node(topo_mod_t *mod, const char *conn) in fac_prov_libhp_find_node() argument
93 topo_mod_dprintf(mod, "failed to construct /dev/cfg path"); in fac_prov_libhp_find_node()
99 topo_mod_dprintf(mod, "failed to readlink %s: %s", cfg, in fac_prov_libhp_find_node()
105 topo_mod_dprintf(mod, "cannot process readlink of %s: link " in fac_prov_libhp_find_node()
113 topo_mod_dprintf(mod, "failed to find %s in %s", prefix, link); in fac_prov_libhp_find_node()
120 topo_mod_dprintf(mod, "failed to find ':' to indicate start of " in fac_prov_libhp_find_node()
126 topo_mod_dprintf(mod, "attempting to hp_init %s %s", start, conn); in fac_prov_libhp_find_node()
129 topo_mod_dprintf(mod, "failed to init hp node: %s\n", in fac_prov_libhp_find_node()
138 fac_prov_libhp_set_val(topo_mod_t *mod, hp_node_t hp, const char *opt_name, in fac_prov_libhp_set_val() argument
147 topo_mod_dprintf(mod, "failed to construct option buf"); in fac_prov_libhp_set_val()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/ufm/
H A Dtopo_ufm.c43 topo_ufm_devinfo_image(topo_mod_t *mod, tnode_t *pn, topo_instance_t inst, in topo_ufm_devinfo_image() argument
54 topo_mod_dprintf(mod, "failed to look up %s: %s", in topo_ufm_devinfo_image()
56 return (topo_mod_seterrno(mod, EMOD_UNKNOWN)); in topo_ufm_devinfo_image()
62 topo_mod_dprintf(mod, "failed to look up %s: %s", in topo_ufm_devinfo_image()
64 return (topo_mod_seterrno(mod, EMOD_UNKNOWN)); in topo_ufm_devinfo_image()
68 topo_mod_dprintf(mod, "refusing to create UFM image with zero " in topo_ufm_devinfo_image()
70 return (topo_mod_seterrno(mod, EMOD_UNKNOWN)); in topo_ufm_devinfo_image()
73 img_tn = topo_mod_create_ufm(mod, pn, inst, desc, NULL); in topo_ufm_devinfo_image()
75 topo_mod_dprintf(mod, "failed to create ufm image %" PRIu64 in topo_ufm_devinfo_image()
77 topo_node_instance(pn), topo_mod_errmsg(mod)); in topo_ufm_devinfo_image()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/
H A Dses_facility.c141 ses_indicator_mode(topo_mod_t *mod, tnode_t *tn, topo_version_t vers, in ses_indicator_mode() argument
153 return (topo_mod_seterrno(mod, ETOPO_METHOD_VERNEW)); in ses_indicator_mode()
158 topo_mod_dprintf(mod, "invalid arguments to 'mode' method\n"); in ses_indicator_mode()
159 return (topo_mod_seterrno(mod, EMOD_NVL_INVAL)); in ses_indicator_mode()
166 if ((np = ses_node_lock(mod, tn)) == NULL) { in ses_indicator_mode()
167 topo_mod_dprintf(mod, "failed to lookup ses node in 'mode' " in ses_indicator_mode()
178 topo_mod_dprintf(mod, "invalid type for indicator " in ses_indicator_mode()
180 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL); in ses_indicator_mode()
185 topo_mod_dprintf(mod, "invalid indicator mode %d\n", in ses_indicator_mode()
187 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL); in ses_indicator_mode()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dpcibus.c62 extern int platform_pci_label(topo_mod_t *mod, tnode_t *, nvlist_t *,
64 extern int platform_pci_fru(topo_mod_t *mod, tnode_t *, nvlist_t *,
132 pci_tnode_create(topo_mod_t *mod, tnode_t *parent, in pci_tnode_create() argument
137 if ((ntn = tnode_create(mod, parent, name, i, priv)) == NULL) in pci_tnode_create()
139 if (topo_method_register(mod, ntn, Pci_methods) < 0) { in pci_tnode_create()
140 topo_mod_dprintf(mod, "topo_method_register failed: %s\n", in pci_tnode_create()
141 topo_strerror(topo_mod_errno(mod))); in pci_tnode_create()
150 hostbridge_asdevice(topo_mod_t *mod, tnode_t *bus) in hostbridge_asdevice() argument
158 if ((dev32 = pcidev_declare(mod, bus, di, 32)) == NULL) in hostbridge_asdevice()
160 if (pcifn_declare(mod, dev32, di, 0) == NULL) { in hostbridge_asdevice()
[all …]

12345678910