Home
last modified time | relevance | path

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

1234567891011

/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_module.c57 mod->tm_info->tmi_ops->tmo_release(mod, node); in topo_mod_release()
66 mod->tm_refs++; in topo_mod_hold()
93 (void) pthread_cond_wait(&mod->tm_cv, &mod->tm_lock); in topo_mod_enter()
95 ++mod->tm_busy; in topo_mod_enter()
128 (void) mod->tm_mops->mop_fini(mod); in topo_mod_stop()
145 if (mod->tm_mops->mop_init(mod, version) != 0) { in topo_mod_start()
179 return (mod); in topo_mod_lookup()
243 if (mod->tm_name == NULL || mod->tm_rootdir == NULL) in topo_mod_create()
257 return (mod); in topo_mod_create()
305 for (mod = mhp->mh_hash[h]; mod != NULL; mod = mod->tm_next) { in topo_modhash_lookup()
[all …]
H A Dtopo_mod.c136 return (mod); in topo_mod_load()
153 return (mod); in topo_mod_load()
186 if ((mod->tm_info = topo_mod_zalloc(mod, sizeof (topo_imodinfo_t))) in topo_mod_register()
189 if ((mod->tm_info->tmi_ops = topo_mod_alloc(mod, in topo_mod_register()
193 mod->tm_info->tmi_desc = topo_mod_strdup(mod, mip->tmi_desc); in topo_mod_register()
197 mod->tm_info->tmi_scheme = topo_mod_strdup(mod, mip->tmi_scheme); in topo_mod_register()
228 topo_mod_free(mod, mod->tm_info->tmi_ops, in topo_mod_unregister()
231 topo_mod_strfree(mod, mod->tm_info->tmi_desc); in topo_mod_unregister()
233 topo_mod_strfree(mod, mod->tm_info->tmi_scheme); in topo_mod_unregister()
235 topo_mod_free(mod, mod->tm_info, sizeof (topo_imodinfo_t)); in topo_mod_unregister()
[all …]
H A Dsvc.c105 svc_error(topo_mod_t *mod) in svc_error() argument
125 (void) svc_error(mod); in svc_get_handle()
131 (void) svc_error(mod); in svc_get_handle()
144 topo_mod_setdebug(mod); in svc_init()
159 svc_fini(topo_mod_t *mod) in svc_fini() argument
166 topo_mod_unregister(mod); in svc_fini()
194 topo_mod_errmsg(mod)); in svc_create_node()
206 topo_mod_errmsg(mod)); in svc_create_node()
214 topo_mod_errmsg(mod)); in svc_create_node()
220 topo_mod_errmsg(mod)); in svc_create_node()
[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
73 return (topo_mod_seterrno(mod, EMOD_NOMEM)); in store_prop_val()
209 topo_mod_free(mod, order, BUFSZ); in simple_dimm_label_mp()
227 topo_mod_free(mod, order, BUFSZ); in simple_dimm_label_mp()
233 topo_mod_free(mod, order, BUFSZ); in simple_dimm_label_mp()
289 topo_mod_free(mod, order, BUFSZ); in seq_dimm_label()
307 topo_mod_free(mod, order, BUFSZ); in seq_dimm_label()
313 topo_mod_free(mod, order, BUFSZ); in seq_dimm_label()
493 return (topo_mod_seterrno(mod, err)); in g4_chip_label()
540 get_num_chips(topo_mod_t *mod) in get_num_chips() argument
[all …]
H A Dchip.c181 whinge(mod, NULL, in create_node()
194 whinge(mod, NULL, in create_node()
254 whinge(mod, NULL, in create_strand()
257 whinge(mod, NULL, in create_strand()
315 whinge(mod, NULL, in create_strand()
374 whinge(mod, NULL, in create_core()
452 whinge(mod, NULL, in create_core()
517 whinge(mod, NULL, in create_chip()
610 whinge(mod, NULL, in create_chip()
627 whinge(mod, NULL, in create_chip()
[all …]
H A Dchip_intel.c147 whinge(mod, NULL, in mc_add_ranks()
171 if (FM_AWARE_SMBIOS(mod)) in mc_add_ranks()
207 whinge(mod, NULL, in mc_add_dimms()
255 whinge(mod, NULL, in mc_add_dimms()
297 if (FM_AWARE_SMBIOS(mod)) in mc_add_dimms()
338 if (FM_AWARE_SMBIOS(mod)) in mc_add_channel()
377 whinge(mod, NULL, in mc_nb_create()
402 whinge(mod, NULL, in mc_nb_create()
424 if (FM_AWARE_SMBIOS(mod)) in mc_nb_create()
429 whinge(mod, NULL, in mc_nb_create()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_ipmi/
H A Dfac_prov_ipmi.c186 topo_mod_setdebug(mod); in _topo_init()
192 _topo_fini(topo_mod_t *mod) in _topo_fini() argument
194 topo_mod_unregister(mod); in _topo_fini()
233 topo_mod_ipmi_rele(mod); in ipmi_platform_message()
241 topo_mod_ipmi_rele(mod); in ipmi_platform_message()
323 topo_mod_ipmi_rele(mod); in ipmi_platform_message()
431 topo_mod_ipmi_rele(mod); in ipmi_sensor_state()
547 topo_mod_ipmi_rele(mod); in ipmi_sensor_reading()
671 topo_mod_ipmi_rele(mod); in ipmi_indicator_mode()
793 topo_mod_ipmi_rele(mod); in bay_locate_mode()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_module.c114 mdb_module_t *mod; in mdb_module_create() local
310 mdb.m_mtail = mod; in mdb_module_create()
318 *mpp = mod; in mdb_module_create()
355 mdb_module_t *mod; in mdb_module_unload_common() local
363 if (mod == &mdb.m_rmod || mod->mod_hdl == NULL) in mdb_module_unload_common()
370 mod->mod_fini(); in mdb_module_unload_common()
385 mod->mod_prev->mod_next = mod->mod_next; in mdb_module_unload_common()
391 mod->mod_next->mod_prev = mod->mod_prev; in mdb_module_unload_common()
454 idcp->idc_modp = mod; in mdb_module_add_dcmd()
542 iwp->iwlk_modp = mod; in mdb_module_add_walker()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dpi_bay.c88 lun = pi_get_lun(mod, dnode); in pi_bay_ocpath()
92 topo_mod_strfree(mod, tgt_port); in pi_bay_ocpath()
106 topo_mod_strfree(mod, tgt_port); in pi_bay_ocpath()
193 topo_mod_strfree(mod, oc_path); in pi_bay_pgroups()
319 topo_mod_dprintf(mod, in pi_bay_update_node()
438 topo_mod_dprintf(mod, in pi_enum_bay()
467 topo_mod_dprintf(mod, in pi_enum_bay()
471 return (topo_mod_errno(mod)); in pi_enum_bay()
476 topo_mod_dprintf(mod, in pi_enum_bay()
479 return (topo_mod_errno(mod)); in pi_enum_bay()
[all …]
H A Dsun4vpi.c67 topo_mod_setdebug(mod); in _topo_init()
88 topo_mod_errmsg(mod)); in _topo_init()
101 _topo_fini(topo_mod_t *mod) in _topo_fini() argument
106 topo_mod_unregister(mod); in _topo_fini()
145 pi_walker_fini(mod); in pi_enum()
150 pi.mod = mod; in pi_enum()
160 pi_walker_fini(mod); in pi_enum()
202 pi_ldompri_close(mod, &pi); in pi_enum()
205 pi_walker_fini(mod); in pi_enum()
232 topo_mod_t *mod = pip->mod; in pi_enum_components() local
[all …]
H A Dpi_pciexrc.c84 topo_mod_dprintf(mod, in pi_enum_pciexrc()
95 topo_mod_dprintf(mod, in pi_enum_pciexrc()
142 topo_mod_dprintf(mod, in pi_enum_pciexrc_defer()
158 topo_mod_dprintf(mod, in pi_enum_pciexrc_defer()
170 topo_mod_dprintf(mod, in pi_enum_pciexrc_defer()
215 topo_mod_dprintf(mod, in pi_enum_update()
287 topo_mod_dprintf(mod, in pi_enum_update()
298 topo_mod_dprintf(mod, in pi_enum_update()
344 topo_mod_dprintf(mod, in pi_enum_update()
353 topo_mod_dprintf(mod, in pi_enum_update()
[all …]
H A Dpi_subr.c121 if (mod == NULL || mdp == NULL) { in pi_skip_node()
747 topo_mod_dprintf(mod, in pi_get_priphy()
961 topo_mod_dprintf(mod, in pi_get_topo_hc_name()
1101 topo_mod_strfree(mod, psn); in pi_set_auth()
1148 topo_mod_strfree(mod, csn); in pi_set_auth()
1250 topo_mod_strfree(mod, part); in pi_set_frufmri()
1251 topo_mod_strfree(mod, rev); in pi_set_frufmri()
1283 topo_mod_strfree(mod, label); in pi_set_label()
1382 topo_mod_dprintf(mod, in pi_node_bind()
1391 topo_mod_dprintf(mod, in pi_node_bind()
[all …]
H A Dpi_walker.c202 topo_mod_t *mod; in pi_walker() local
207 mod = pip->mod; in pi_walker()
249 topo_mod_dprintf(mod, in pi_walker()
255 topo_mod_dprintf(mod, in pi_walker()
284 topo_mod_dprintf(mod, in pi_walker()
325 topo_mod_t *mod; in pi_walker_node() local
331 mod = pip->mod; in pi_walker_node()
438 topo_mod_dprintf(mod, in pi_walker_node_create()
462 topo_mod_dprintf(mod, in pi_walker_node_create()
498 topo_mod_dprintf(mod, in pi_walker_node_range()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi.c92 topo_mod_setdebug(mod); in _topo_init()
131 topo_mod_unregister(mod); in _topo_fini()
194 topo_mod_dprintf(mod, in x86pi_enum_start()
220 x86pi->mod = mod; in x86pi_enum_start()
318 topo_mod_dprintf(mod, in x86pi_enum_gentopo()
337 topo_mod_dprintf(mod, in x86pi_enum_gentopo()
343 topo_mod_dprintf(mod, in x86pi_enum_gentopo()
350 topo_mod_dprintf(mod, in x86pi_enum_gentopo()
418 topo_mod_dprintf(mod, in x86pi_enum_gentopo()
442 topo_mod_dprintf(mod, in x86pi_enum_gentopo()
[all …]
H A Dx86pi_bay.c81 shp = topo_mod_smbios(mod); in bay_bdf()
133 topo_mod_dprintf(mod, in bay_pgroups()
166 topo_mod_dprintf(mod, in bay_pgroups()
245 topo_mod_dprintf(mod, in bay_update_tnode()
283 shp = topo_mod_smbios(mod); in x86pi_gen_bay()
296 topo_mod_dprintf(mod, in x86pi_gen_bay()
314 topo_mod_dprintf(mod, in x86pi_gen_bay()
347 topo_mod_errmsg(mod)); in x86pi_gen_bay()
358 return (topo_mod_errno(mod)); in x86pi_gen_bay()
365 return (topo_mod_errno(mod)); in x86pi_gen_bay()
[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()
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()
120 topo_mod_dprintf(mod, in pciex_process()
152 topo_mod_dprintf(mod, in pciex_process()
197 devtree = topo_mod_devinfo(mod); in x86pi_gen_pci_pciexrc()
246 shp = topo_mod_smbios(mod); in x86pi_gen_hbr()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/niu/
H A Dniu.c71 topo_mod_setdebug(mod); in _topo_init()
85 topo_mod_unregister(mod); in _topo_fini()
158 topo_mod_dprintf(mod, in niu_tnode_create()
166 topo_mod_dprintf(mod, in niu_tnode_create()
180 mod); in niu_tnode_create()
182 mod); in niu_tnode_create()
196 topo_mod_dprintf(mod, in niu_asru_set()
299 topo_mod_t *mod) in niufn_instantiate() argument
306 topo_mod_dprintf(mod, in niufn_instantiate()
357 topo_mod_dprintf(mod, in niu_enum()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/
H A Ddisk_common.c501 topo_mod_strfree(mod, part); in disk_tnode_create()
502 topo_mod_strfree(mod, mfg); in disk_tnode_create()
503 topo_mod_strfree(mod, model); in disk_tnode_create()
504 topo_mod_strfree(mod, firm); in disk_tnode_create()
858 topo_mod_strdup(mod, in dev_di_node_add()
868 topo_mod_strdup(mod, in dev_di_node_add()
878 topo_mod_strdup(mod, in dev_di_node_add()
922 topo_mod_strdup(mod, in dev_di_node_add()
931 topo_mod_strdup(mod, in dev_di_node_add()
940 topo_mod_strdup(mod, in dev_di_node_add()
[all …]
H A Ddisk.c66 topo_mod_strfree(mod, sas_address); in disk_declare_driver()
134 topo_mod_strfree(mod, driver); in disk_enum()
137 topo_mod_dprintf(mod, "disk_enum: " in disk_enum()
148 topo_mod_dprintf(mod, "disk_enum: " in disk_enum()
158 topo_mod_strfree(mod, device); in disk_enum()
172 topo_mod_setdebug(mod); in _topo_init()
189 topo_mod_unregister(mod); in _topo_init()
199 topo_mod_setspecific(mod, dlistp); in _topo_init()
205 _topo_fini(topo_mod_t *mod) in _topo_fini() argument
208 dev_list_free(mod, dlistp); in _topo_fini()
[all …]
H A Ddisk_nvme.c93 topo_mod_t *mod = dlarg->dla_mod; in devlink_cb() local
135 dlarg.dla_mod = mod; in get_logical_disk()
339 topo_mod_strfree(mod, rev); in make_disk_node()
340 topo_mod_strfree(mod, model); in make_disk_node()
341 topo_mod_strfree(mod, serial); in make_disk_node()
531 topo_mod_strfree(mod, rev); in make_nvme_node()
532 topo_mod_strfree(mod, model); in make_nvme_node()
533 topo_mod_strfree(mod, serial); in make_nvme_node()
534 topo_mod_strfree(mod, label); in make_nvme_node()
605 nvme_info.nei_mod = mod; in discover_nvme_ctl()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/smbios/
H A Dsmbios_enum.c118 topo_mod_errmsg(mod)); in smbios_make_slot()
128 topo_mod_errmsg(mod)); in smbios_make_slot()
137 topo_mod_errmsg(mod)); in smbios_make_slot()
168 topo_mod_errmsg(mod)); in smbios_make_slot()
218 topo_mod_errmsg(mod)); in smbios_make_dimm()
245 topo_mod_errmsg(mod)); in smbios_make_dimm()
256 topo_mod_errmsg(mod)); in smbios_make_dimm()
621 smed.sme_mod = mod; in smbios_enum()
664 topo_mod_setdebug(mod); in _topo_init()
678 _topo_fini(topo_mod_t *mod) in _topo_fini() argument
[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()
50 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL); in get_fmtstr()
56 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL); in get_fmtstr()
68 return (topo_mod_seterrno(mod, EMOD_NOMEM)); in store_prop_val()
71 topo_mod_dprintf(mod, "Failed to set '%s'\n", in store_prop_val()
78 topo_mod_dprintf(mod, "Failed to set '%s'\n", in store_prop_val()
86 topo_mod_dprintf(mod, "Failed to set '%s'\n", in store_prop_val()
94 topo_mod_dprintf(mod, "Failed to set '%s'\n", in store_prop_val()
102 topo_mod_dprintf(mod, "Failed to set '%s'\n", in store_prop_val()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/chip/
H A Dchip_sun4v.c75 _topo_init(topo_mod_t *mod) in _topo_init() argument
80 topo_mod_setdebug(mod); in _topo_init()
97 cpu_mdesc_fini(mod, chip); in _topo_init()
108 _topo_fini(topo_mod_t *mod) in _topo_fini() argument
114 cpu_mdesc_fini(mod, chip); in _topo_fini()
118 topo_mod_unregister(mod); in _topo_fini()
164 topo_mod_dprintf(mod, in chip_tnode_create()
172 topo_mod_dprintf(mod, in chip_tnode_create()
287 topo_mod_dprintf(mod, in cpu_create()
312 topo_mod_dprintf(mod, in dimm_instantiate()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/cpuboard/
H A Dcpuboard.c222 topo_mod_setdebug(mod); in _topo_init()
237 topo_mod_unregister(mod); in _topo_fini()
254 topo_mod_dprintf(mod, in cpuboard_tnode_create()
262 topo_mod_dprintf(mod, in cpuboard_tnode_create()
270 topo_mod_dprintf(mod, in cpuboard_tnode_create()
374 topo_mod_dprintf(mod, in chip_instantiate()
379 topo_mod_dprintf(mod, in chip_instantiate()
465 topo_mod_dprintf(mod, in cpuboard_enum()
478 cpuboard_mod_hdl = mod; in cpuboard_enum()
512 topo_mod_dprintf(mod, in cpuboard_enum()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/hostbridge/
H A Dhb_sun4v.c51 get_rcs(topo_mod_t *mod) in get_rcs() argument
58 devtree = topo_mod_devinfo(mod); in get_rcs()
67 busorrc_free(mod, rcs); in get_rcs()
200 (void) topo_mod_seterrno(mod, err); in platform_pciexrc_declare()
213 (void) topo_mod_seterrno(mod, err); in platform_pciexrc_declare()
218 (void) topo_mod_seterrno(mod, err); in platform_pciexrc_declare()
226 (void) topo_mod_seterrno(mod, err); in platform_pciexrc_declare()
316 hb_mdesc_fini(mod, &hbmd); in platform_hb_enum()
321 rcs = get_rcs(mod); in platform_hb_enum()
409 hb_mdesc_fini(mod, &hbmd); in platform_hb_enum()
[all …]

1234567891011