/illumos-gate/usr/src/lib/fm/topo/modules/sun4/pcibus/ |
H A D | pci_sun4.c | 38 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));
|
/illumos-gate/usr/src/cmd/fm/fmadm/common/ |
H A D | gc.c | 36 const char *mod; local 41 if ((mod = strrchr(argv[1], '/')) == NULL) 42 mod = argv[1]; 44 mod++; 46 if (fmd_adm_module_gc(adm, mod) != 0) 47 die("failed to garbage-collect module %s", mod); 48 note("%s module has been garbage-collected\n", mod);
|
H A D | reset.c | 36 const char *mod; local 52 if ((mod = strrchr(argv[optind], '/')) == NULL) 53 mod = argv[optind]; 55 mod++; 58 if (fmd_adm_serd_reset(adm, mod, opt_s) != 0) 60 note("%s serd engine '%s' has been reset\n", mod, opt_s); 62 if (fmd_adm_module_reset(adm, mod) != 0) 63 die("failed to reset module %s", mod); 64 note("%s module has been reset\n", mod);
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
H A D | pi_hostbridge.c | 44 pi_enum_hostbridge(topo_mod_t *mod, md_t *mdp, mde_cookie_t mde_node, argument 50 topo_mod_dprintf(mod, "%s called for node_0x%llx type %s\n", 59 result = pi_enum_generic_impl(mod, mdp, mde_node, inst, t_parent, 62 topo_mod_dprintf(mod, 65 topo_strerror(topo_mod_errno(mod))); 70 result = pi_enum_update(mod, mdp, mde_node, t_parent, *t_node, 73 topo_mod_dprintf(mod, 76 topo_strerror(topo_mod_errno(mod))); 80 topo_mod_dprintf(mod, "%s added node_0x%llx type %s\n",
|
H A D | pi_ldom.c | 52 pi_ldompri_open(topo_mod_t *mod, pi_enum_t *pip) argument 54 if (mod == NULL || pip == NULL) { 62 Pi_mod = mod; 67 topo_mod_dprintf(mod, 76 topo_mod_dprintf(mod, "ldom_get_core_md error: bufsize = %d\n", 87 topo_mod_dprintf(mod, "md_init_intern error\n"); 100 pi_ldompri_close(topo_mod_t *mod, pi_enum_t *pip) argument
|
H A D | pi_niu.c | 44 pi_enum_niu(topo_mod_t *mod, md_t *mdp, mde_cookie_t mde_node, argument 52 topo_mod_dprintf(mod, 57 if (topo_mod_load(mod, NIU, TOPO_VERSION) == NULL) { 58 topo_mod_dprintf(mod, "%s could not load %s module: %s\n", 59 _ENUM_NAME, NIU, topo_strerror(topo_mod_errno(mod))); 66 result = topo_mod_enumerate(mod, t_parent, NIU, hc_name, inst, inst, 69 topo_mod_dprintf(mod, 71 (uint64_t)mde_node, topo_strerror(topo_mod_errno(mod))); 75 topo_mod_dprintf(mod, "%s added node_0x%llx type %s\n",
|
H A D | pi_top.c | 46 pi_enum_top(topo_mod_t *mod, md_t *mdp, mde_cookie_t mde_node, argument 58 result = pi_enum_generic_impl(mod, mdp, mde_node, inst, t_parent,
|
H A D | pi_mem.c | 40 pi_enum_mem(topo_mod_t *mod, md_t *mdp, mde_cookie_t mde_node, argument 56 result = pi_enum_generic_impl(mod, mdp, mde_node, inst, t_parent, 68 topo_mod_dprintf(mod, 78 topo_mod_dprintf(mod,
|
H A D | pi_generic.c | 43 pi_enum_generic(topo_mod_t *mod, md_t *mdp, mde_cookie_t mde_node, argument 54 result = pi_enum_generic_impl(mod, mdp, mde_node, inst, t_parent, 66 pi_enum_generic_impl(topo_mod_t *mod, md_t *mdp, mde_cookie_t mde_node, argument 75 topo_mod_dprintf(mod, "%s adding entry for node_0x%llx type %s\n", 79 topo_mod_dprintf(mod, 86 auth = topo_mod_auth(mod, t_bindparent); 88 serial = pi_get_serial(mod, mdp, mde_node); 90 fmri = topo_mod_hcfmri(mod, t_fmriparent, FM_HC_SCHEME_VERSION, hc_name, 94 topo_mod_strfree(mod, serial); 98 topo_mod_dprintf(mod, [all...] |
/illumos-gate/usr/src/lib/pam_modules/allow/ |
H A D | allow.c | 47 debug(pam_handle_t *pamh, int flags, int argc, const char **argv, char *mod) argument 59 service ? service : "No Service Specified", mod, flags,
|
/illumos-gate/usr/src/lib/pam_modules/deny/ |
H A D | deny.c | 47 debug(pam_handle_t *pamh, int flags, int argc, const char **argv, char *mod) argument 59 service ? service : "No Service Specified", mod, flags,
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_alloc.c | 82 topo_mod_alloc(topo_mod_t *mod, size_t size) argument 84 return (topo_hdl_alloc(mod->tm_hdl, size)); 88 topo_mod_zalloc(topo_mod_t *mod, size_t size) argument 90 return (topo_hdl_zalloc(mod->tm_hdl, size)); 94 topo_mod_free(topo_mod_t *mod, void *data, size_t size) argument 96 topo_hdl_free(mod->tm_hdl, data, size);
|
H A D | topo_builtin.c | 38 #include <mod.h> 53 { "mod", MOD_VERSION, mod_init, mod_fini }, 105 topo_mod_t *mod; local 117 if ((mod = topo_modhash_load(thp, bp->bltin_name, NULL, 125 if ((tp = topo_tree_create(thp, mod, bp->bltin_name)) 141 if (topo_mod_enumerate(mod, rnode, mod->tm_name, rnode->tn_name,
|
H A D | topo_file.c | 65 topo_file_load(topo_mod_t *mod, tnode_t *node, const char *name, argument 71 if ((tfp = topo_mod_zalloc(mod, sizeof (topo_file_t))) == NULL) 72 return (topo_mod_seterrno(mod, ETOPO_NOMEM)); 74 tfp->tf_mod = mod; 82 if ((tfp->tf_filenm = topo_search_path(mod, mod->tm_rootdir, fp)) 85 return (topo_mod_seterrno(mod, ETOPO_MOD_NOENT)); 88 if ((tfp->tf_tmap = topo_xml_read(mod, tfp->tf_filenm, scheme)) 90 topo_dprintf(mod->tm_hdl, TOPO_DBG_ERR, 94 return (topo_mod_seterrno(mod, ETOPO_MOD_XR [all...] |
H A D | topo_nvl.c | 47 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)
|
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_tree.c | 82 topo_tree_create(topo_hdl_t *thp, topo_mod_t *mod, const char *scheme) argument 87 if ((tp = topo_mod_zalloc(mod, sizeof (ttree_t))) == NULL) 90 tp->tt_mod = mod; 92 if ((tp->tt_scheme = topo_mod_strdup(mod, scheme)) == NULL) 98 if ((tp->tt_walk = topo_mod_zalloc(mod, sizeof (topo_walk_t))) == NULL) 104 if ((rp = topo_mod_zalloc(mod, sizeof (tnode_t))) == NULL) 110 rp->tn_enum = mod; 118 topo_mod_hold(mod); /* released when root node destroyed */ 128 topo_mod_t *mod; local 133 mod [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/ |
H A D | disk_mptsas.c | 36 get_sas_address(topo_mod_t *mod, char *devctl, uint32_t enclosure, argument 47 topo_mod_dprintf(mod, "could not open '%s' for ioctl: %s\n", 53 topo_mod_dprintf(mod, "ioctl 1 on '%s' failed: %s\n", devctl, 61 gdi.PtrDiskInfoArray = di = topo_mod_alloc(mod, disz); 63 topo_mod_dprintf(mod, "memory allocation failed\n"); 69 topo_mod_dprintf(mod, "ioctl 2 on '%s' failed: %s\n", devctl, 71 topo_mod_free(mod, di, disz); 81 topo_mod_dprintf(mod, "found mpt_sas disk (%d/%d) " 83 *sas_address = topo_mod_strdup(mod, sas); 89 topo_mod_free(mod, d 95 disk_mptsas_find_disk(topo_mod_t *mod, tnode_t *baynode, char **sas_address) argument [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/pcibus/ |
H A D | pci_i86pc.c | 42 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...] |
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/ |
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_generic.c | 44 x86pi_enum_generic(topo_mod_t *mod, x86pi_hcfmri_t *hcfmri, argument 53 topo_mod_dprintf(mod, "%s adding entry for type (%s)\n", 57 topo_mod_dprintf(mod, 64 auth = topo_mod_auth(mod, t_bindparent); 65 fmri = topo_mod_hcfmri(mod, t_fmriparent, FM_HC_SCHEME_VERSION, 72 topo_mod_dprintf(mod, 74 hcfmri->hc_name, topo_strerror(topo_mod_errno(mod))); 78 rv = topo_node_range_create(mod, t_bindparent, hcfmri->hc_name, 0, 4); 79 if (rv != 0 && topo_mod_errno(mod) != EMOD_NODE_DUP) { 80 topo_mod_dprintf(mod, " 131 x86pi_node_bind(topo_mod_t *mod, tnode_t *t_parent, x86pi_hcfmri_t *hcfmri, nvlist_t *fmri, int flag) argument [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/sun4u/pcibus/ |
H A D | pci_sun4u.c | 42 platform_pci_label(topo_mod_t *mod, tnode_t *node, nvlist_t *in, argument 45 return (pci_label_cmn(mod, node, in, out)); 48 platform_pci_fru(topo_mod_t *mod, tnode_t *node, nvlist_t *in, argument 51 return (pci_fru_compute(mod, node, in, out)); 66 sunfire_test_func(topo_mod_t *mod, did_t *dp) argument 76 topo_mod_dprintf(mod, "%s: dp=0x%p, tp=0x%p\n", 84 topo_mod_dprintf(mod, "%s: binding_name=%s\n", 98 topo_mod_dprintf(mod, "%s: compatible_name[%d]=%s\n", 113 (dp = did_find(mod, topo_node_getspecific(tp))) == NULL) {
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_callb.c | 69 mdb_module_t *mod = cb->cb_mod; local 71 if (mod->mod_cb == cb) { 72 if (next == NULL || next->cb_mod != mod) 73 mod->mod_cb = NULL; 75 mod->mod_cb = next;
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/ipmi/ |
H A D | ipmi_methods.c | 39 get_fmtstr(topo_mod_t *mod, nvlist_t *in) argument 45 topo_mod_dprintf(mod, "get_fmtstr() called\n"); 48 topo_mod_dprintf(mod, "Failed to lookup 'args' list (%s)\n", 50 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL); 54 topo_mod_dprintf(mod, "Failed to lookup 'format' arg (%s)\n", 56 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL); 63 store_prop_val(topo_mod_t *mod, void *buf, char *propname, topo_type_t type, argument 66 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) { 67 topo_mod_dprintf(mod, "Failed to allocate 'out' nvlist\n"); 68 return (topo_mod_seterrno(mod, EMOD_NOME 127 ipmi_fru_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument 175 ipmi_fru_fmri(topo_mod_t *mod, tnode_t *node, topo_version_t vers, nvlist_t *in, nvlist_t **out) argument [all...] |
/illumos-gate/usr/src/cmd/tip/aculib/ |
H A D | biz22.c | 29 * tone dialing (mod = "V") 30 * pulse dialing (mod = "W") 33 biz_dialer(char *num, char *mod) argument 49 cbuf[1] = *mod;
|