/titanic_44/usr/src/cmd/picl/plugins/sun4u/daktari/frutree/ |
H A D | piclfrutree.c | 296 int err; in picl_frutree_init() local 298 err = add_all_nodes(); in picl_frutree_init() 299 if (err != PICL_SUCCESS) { in picl_frutree_init() 355 int err; in do_ioboard_init() local 360 err = ptree_create_node("io-board", "fru", &iobrdh); in do_ioboard_init() 361 if (err != PICL_SUCCESS) in do_ioboard_init() 362 return (err); in do_ioboard_init() 364 err = add_ref_prop(iobrdh, tmph, SEEPROM_SOURCE); in do_ioboard_init() 365 if (err != PICL_SUCCESS) in do_ioboard_init() 366 return (err); in do_ioboard_init() [all …]
|
/titanic_44/usr/src/cmd/picl/plugins/sun4u/littleneck/frutree/ |
H A D | piclfrutree.c | 199 int err; in picl_frutree_init() local 201 err = add_all_nodes(); in picl_frutree_init() 202 if (err != PICL_SUCCESS) { in picl_frutree_init() 257 int err; in do_sysboard_init() local 262 err = ptree_create_node("system-board", "fru", childh); in do_sysboard_init() 263 if (err != PICL_SUCCESS) in do_sysboard_init() 264 return (err); in do_sysboard_init() 266 err = add_ref_prop(*childh, tmph, SEEPROM_SOURCE); in do_sysboard_init() 267 if (err != PICL_SUCCESS) in do_sysboard_init() 268 return (err); in do_sysboard_init() [all …]
|
/titanic_44/usr/src/cmd/picl/plugins/sun4u/cherrystone/frutree/ |
H A D | piclfrutree.c | 235 int err; in picl_frutree_init() local 237 err = add_all_nodes(); in picl_frutree_init() 238 if (err != PICL_SUCCESS) { in picl_frutree_init() 294 int err; in do_ioboard_init() local 299 err = ptree_create_node("io-board", "fru", &iobrdh); in do_ioboard_init() 300 if (err != PICL_SUCCESS) in do_ioboard_init() 301 return (err); in do_ioboard_init() 303 err = add_ref_prop(iobrdh, tmph, SEEPROM_SOURCE); in do_ioboard_init() 304 if (err != PICL_SUCCESS) in do_ioboard_init() 305 return (err); in do_ioboard_init() [all …]
|
/titanic_44/usr/src/lib/libprtdiag_psr/sparc/desktop/common/ |
H A D | picldiag.c | 239 int err; in picldiag_get_node_by_name() local 246 err = picl_get_propval_by_name(rooth, PICL_PROP_CHILD, &childh, in picldiag_get_node_by_name() 249 while (err == PICL_SUCCESS) { in picldiag_get_node_by_name() 250 err = picl_get_propval_by_name(childh, PICL_PROP_NAME, in picldiag_get_node_by_name() 252 if (err != PICL_SUCCESS) { in picldiag_get_node_by_name() 253 err = picl_get_propval_by_name(childh, PICL_PROP_PEER, in picldiag_get_node_by_name() 263 err = picl_get_propval_by_name(childh, PICL_PROP_PEER, in picldiag_get_node_by_name() 267 return (err); in picldiag_get_node_by_name() 277 int err; in picldiag_get_string_propval() local 282 err = picl_get_propinfo_by_name(modh, prop_name, &pinfo, &proph); in picldiag_get_string_propval() [all …]
|
/titanic_44/usr/src/lib/libprtdiag_psr/sparc/lw8/common/ |
H A D | lw8.c | 234 int err; in picldiag_get_node_by_name() local 241 err = picl_get_propval_by_name(rooth, PICL_PROP_CHILD, &childh, in picldiag_get_node_by_name() 244 while (err == PICL_SUCCESS) { in picldiag_get_node_by_name() 245 err = picl_get_propval_by_name(childh, PICL_PROP_NAME, in picldiag_get_node_by_name() 247 if (err != PICL_SUCCESS) { in picldiag_get_node_by_name() 248 err = picl_get_propval_by_name(childh, PICL_PROP_PEER, in picldiag_get_node_by_name() 258 err = picl_get_propval_by_name(childh, PICL_PROP_PEER, in picldiag_get_node_by_name() 262 return (err); in picldiag_get_node_by_name() 272 int err; in picldiag_get_string_propval() local 277 err = picl_get_propinfo_by_name(modh, prop_name, &pinfo, &proph); in picldiag_get_string_propval() [all …]
|
/titanic_44/usr/src/lib/libprtdiag_psr/sparc/schumacher/common/ |
H A D | schumacher.c | 199 int err; in picldiag_get_node_by_name() local 206 err = picl_get_propval_by_name(rooth, PICL_PROP_CHILD, &childh, in picldiag_get_node_by_name() 209 while (err == PICL_SUCCESS) { in picldiag_get_node_by_name() 210 err = picl_get_propval_by_name(childh, PICL_PROP_NAME, in picldiag_get_node_by_name() 212 if (err != PICL_SUCCESS) { in picldiag_get_node_by_name() 213 err = picl_get_propval_by_name(childh, PICL_PROP_PEER, in picldiag_get_node_by_name() 223 err = picl_get_propval_by_name(childh, PICL_PROP_PEER, in picldiag_get_node_by_name() 227 return (err); in picldiag_get_node_by_name() 238 int err; in picldiag_get_string_propval() local 243 err = picl_get_propinfo_by_name(modh, prop_name, &pinfo, &proph); in picldiag_get_string_propval() [all …]
|
/titanic_44/usr/src/cmd/picl/plugins/sun4u/lw8/frutree/ |
H A D | piclfrutree.c | 389 int err; in piclfrutree_init() local 399 err = add_all_nodes(); in piclfrutree_init() 402 if (err != PICL_SUCCESS) { in piclfrutree_init() 403 syslog(LOG_ERR, ADD_NODES_FAIL, err); in piclfrutree_init() 430 int err; in add_all_nodes() local 434 err = ptree_get_root(&rooth); in add_all_nodes() 435 if (err != PICL_SUCCESS) { in add_all_nodes() 437 return (err); in add_all_nodes() 442 err = ptree_get_node_by_path(SC_DEV, &sch); in add_all_nodes() 443 if (err != PICL_SUCCESS) { in add_all_nodes() [all …]
|
/titanic_44/usr/src/cmd/locator/ |
H A D | locator.c | 43 int err; /* Last error from picl */ member 62 int err; in change_locator_state() local 65 err = picl_get_prop_by_name(locator_node, "State", &state_prop); in change_locator_state() 66 if (err != PICL_SUCCESS) { in change_locator_state() 69 picl_strerror(err)); in change_locator_state() 70 return (err); in change_locator_state() 73 err = picl_get_propval(state_prop, state, sizeof (state)); in change_locator_state() 74 if (err != PICL_SUCCESS) { in change_locator_state() 77 picl_strerror(err)); in change_locator_state() 78 return (err); in change_locator_state() [all …]
|
/titanic_44/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_protocol.c | 50 int err = 0; in fmd_protocol_authority() local 55 err |= nvlist_add_uint8(nvl, FM_VERSION, FM_FMRI_AUTH_VERSION); in fmd_protocol_authority() 61 err |= nvlist_add_string(nvl, FM_FMRI_AUTH_PRODUCT, str); in fmd_protocol_authority() 64 err |= nvlist_add_string(nvl, FM_FMRI_AUTH_PRODUCT_SN, str); in fmd_protocol_authority() 67 err |= nvlist_add_string(nvl, FM_FMRI_AUTH_CHASSIS, str); in fmd_protocol_authority() 70 err |= nvlist_add_string(nvl, FM_FMRI_AUTH_DOMAIN, str); in fmd_protocol_authority() 73 err |= nvlist_add_string(nvl, FM_FMRI_AUTH_SERVER, str); in fmd_protocol_authority() 75 if (err != 0) in fmd_protocol_authority() 76 fmd_panic("failed to populate nvlist: %s\n", fmd_strerror(err)); in fmd_protocol_authority() 89 int err = 0; in fmd_protocol_fmri_module() local [all …]
|
/titanic_44/usr/src/lib/libprtdiag_psr/sparc/ontario/common/ |
H A D | erie.c | 69 int err = PICL_SUCCESS; in erie_pci_callback() local 81 err = picl_get_propval_by_name(pcih, PICL_PROP_DEVFS_PATH, parent_path, in erie_pci_callback() 83 if (err != PICL_SUCCESS) { in erie_pci_callback() 84 return (err); in erie_pci_callback() 88 err = picl_get_propval_by_name(pcih, PICL_PROP_CHILD, &nodeh, in erie_pci_callback() 90 while (err == PICL_SUCCESS) { in erie_pci_callback() 93 if ((err = erie_get_class(nodeh, piclclass, in erie_pci_callback() 95 return (err); in erie_pci_callback() 100 err = picl_get_propval_by_name(nodeh, PICL_PROP_PEER, in erie_pci_callback() 110 if ((err = erie_get_path(nodeh, path, sizeof (path))) in erie_pci_callback() [all …]
|
H A D | huron.c | 135 int err = PICL_SUCCESS; in huron_pci_callback() local 147 err = picl_get_propval_by_name(pcih, PICL_PROP_DEVFS_PATH, parent_path, in huron_pci_callback() 149 if (err != PICL_SUCCESS) { in huron_pci_callback() 150 return (err); in huron_pci_callback() 154 err = picl_get_propval_by_name(pcih, PICL_PROP_CHILD, &nodeh, in huron_pci_callback() 157 while (err == PICL_SUCCESS) { in huron_pci_callback() 158 err = picl_get_propval_by_name(nodeh, PICL_PROP_CLASSNAME, in huron_pci_callback() 160 if (err != PICL_SUCCESS) in huron_pci_callback() 161 return (err); in huron_pci_callback() 164 err = picl_get_propval_by_name(nodeh, PICL_PROP_PEER, in huron_pci_callback() [all …]
|
H A D | pelton.c | 139 int err = PICL_SUCCESS; in pelton_pci_callback() local 151 err = picl_get_propval_by_name(pcih, PICL_PROP_DEVFS_PATH, parent_path, in pelton_pci_callback() 153 if (err != PICL_SUCCESS) { in pelton_pci_callback() 154 return (err); in pelton_pci_callback() 159 err = picl_get_propval_by_name(pcih, PICL_PROP_CHILD, &nodeh, in pelton_pci_callback() 162 while (err == PICL_SUCCESS) { in pelton_pci_callback() 163 err = picl_get_propval_by_name(nodeh, PICL_PROP_CLASSNAME, in pelton_pci_callback() 165 if (err != PICL_SUCCESS) in pelton_pci_callback() 166 return (err); in pelton_pci_callback() 170 err = picl_get_propval_by_name(nodeh, PICL_PROP_PEER, in pelton_pci_callback() [all …]
|
/titanic_44/usr/src/cmd/fs.d/nfs/nfsref/ |
H A D | nfsref.c | 97 int err, fd, i, len, oldlen, notfound = 0; in addref() local 109 err = readlink(sl_path, buf, SYMLINK_MAX); in addref() 110 if (err == -1) { in addref() 113 err = 0; in addref() 119 buf[err] = '\0'; in addref() 124 err = reparse_parse(buf, nvl); in addref() 125 if (err != 0) { in addref() 127 return (err); in addref() 147 err = reparse_add(nvl, svc_type, location); in addref() 148 if (err) { in addref() [all …]
|
/titanic_44/usr/src/cmd/picl/prtpicl/ |
H A D | prtpicl.c | 184 int err; in print_propval() local 202 err = picl_get_propval(proph, vbuf, propinfo->size); in print_propval() 207 if ((err == PICL_INVALIDHANDLE) || (err == PICL_STALEHANDLE) || in print_propval() 208 (err == PICL_NORESPONSE)) in print_propval() 209 return (err); in print_propval() 210 else if (err != PICL_SUCCESS) { in print_propval() 211 (void) printf("<%s: %s>", gettext("ERROR"), picl_strerror(err)); in print_propval() 331 int err; in print_table_prop() local 334 for (err = picl_get_next_by_col(tblh, &rowproph); err != PICL_ENDOFLIST; in print_table_prop() 335 err = picl_get_next_by_col(rowproph, &rowproph)) { in print_table_prop() [all …]
|
/titanic_44/usr/src/lib/libnwam/common/ |
H A D | libnwam_known_wlan.c | 96 nwam_error_t err; in nwam_known_wlan_create() local 101 if ((err = nwam_create(NWAM_OBJECT_TYPE_KNOWN_WLAN, in nwam_known_wlan_create() 103 return (err); in nwam_known_wlan_create() 109 if ((err = nwam_alloc_object_list(&((*kwhp)->nwh_data))) in nwam_known_wlan_create() 112 if ((err = nwam_value_create_uint64(0, &priorityval)) != NWAM_SUCCESS) in nwam_known_wlan_create() 114 err = nwam_set_prop_value((*kwhp)->nwh_data, in nwam_known_wlan_create() 119 if (err != NWAM_SUCCESS) { in nwam_known_wlan_create() 123 return (err); in nwam_known_wlan_create() 167 nwam_error_t err; in get_wlans_cb() local 185 if ((err = nwam_known_wlan_get_name(kwh, in get_wlans_cb() [all …]
|
H A D | libnwam_ncp.c | 185 nwam_error_t err; in nwam_ncp_create() local 188 if ((err = nwam_handle_create(NWAM_OBJECT_TYPE_NCP, name, ncphp)) in nwam_ncp_create() 190 return (err); in nwam_ncp_create() 193 if ((err = nwam_ncp_name_to_file(name, &ncpfile)) in nwam_ncp_create() 197 return (err); in nwam_ncp_create() 200 if ((err = nwam_commit(ncpfile, *ncphp, flags)) != NWAM_SUCCESS) { in nwam_ncp_create() 207 return (err); in nwam_ncp_create() 250 nwam_error_t err; in nwam_ncp_read() local 255 if ((err = nwam_ncp_name_to_file(name, &filename)) != NWAM_SUCCESS) { in nwam_ncp_read() 257 return (err); in nwam_ncp_read() [all …]
|
/titanic_44/usr/src/lib/libpicl/ |
H A D | picl.c | 119 int err; in post_req() local 140 err = ret->ret_error.errnum; in post_req() 142 err = PICL_UNKNOWNSERVICE; in post_req() 145 return (err); in post_req() 155 int err; in handshake() local 163 if ((err = post_req(&darg, &req, sizeof (picl_reqinit_t), NULL, in handshake() 165 return (err); in handshake() 181 int err; in trysend_req() local 191 while ((err = post_req(dargp, data_ptr, data_size, desc_ptr, desc_num, in trysend_req() 199 err = PICL_NORESPONSE; in trysend_req() [all …]
|
/titanic_44/usr/src/lib/libprtdiag_psr/sparc/opl/common/ |
H A D | opl_picl.c | 89 picl_errno_t err = PICL_SUCCESS; in opl_pci_callback() local 116 err = picl_get_propval_by_name(pcih, PICL_PROP_CLASSNAME, in opl_pci_callback() 119 if (err != PICL_SUCCESS) in opl_pci_callback() 121 return (err); in opl_pci_callback() 127 err = picl_get_propval_by_name(pcih, PICL_PROP_DEVFS_PATH, parent_path, in opl_pci_callback() 129 if (err != PICL_SUCCESS) in opl_pci_callback() 131 return (err); in opl_pci_callback() 132 err = picl_get_propval_by_name(pcih, OBP_PROP_BOARD_NUM, &board, in opl_pci_callback() 135 if (err == PICL_NORESPONSE) in opl_pci_callback() 137 return (err); in opl_pci_callback() [all …]
|
/titanic_44/usr/src/lib/libprtdiag_psr/sparc/daktari/common/ |
H A D | daktari.c | 632 int err; in disp_envc_status() local 636 err = picl_initialize(); in disp_envc_status() 637 if (err != PICL_SUCCESS) { in disp_envc_status() 641 picl_strerror(err)); in disp_envc_status() 642 return (err); in disp_envc_status() 644 err = picl_get_root(&root); in disp_envc_status() 645 err = find_child_device(root, system, &system_node); in disp_envc_status() 646 if (err != PICL_SUCCESS) { in disp_envc_status() 651 picl_strerror(err)); in disp_envc_status() 652 return (err); in disp_envc_status() [all …]
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | plugins.c | 86 long err = 0; in krb5int_open_plugin() local 91 if (!err) { in krb5int_open_plugin() 94 err = errno; in krb5int_open_plugin() 98 if (!err) { in krb5int_open_plugin() 100 if (htmp == NULL) { err = errno; } in krb5int_open_plugin() 104 if (!err && (statbuf.st_mode & S_IFMT) == S_IFREG) { in krb5int_open_plugin() 112 if (!err) { in krb5int_open_plugin() 117 err = ENOENT; /* XXX */ in krb5int_open_plugin() 118 krb5int_set_error (ep, err, "%s", e); in krb5int_open_plugin() 122 if (!err) { in krb5int_open_plugin() [all …]
|
/titanic_44/usr/src/lib/libsmbfs/smb/ |
H A D | connect.c | 122 int err; in smb_setopts() local 133 err = smb_setopt_int(fd, SOL_SOCKET, SO_SNDBUF, smb_tcpsndbuf); in smb_setopts() 134 if (err) { in smb_setopts() 135 DPRINT("set SO_SNDBUF, err %d", err); in smb_setopts() 138 err = smb_setopt_int(fd, SOL_SOCKET, SO_RCVBUF, smb_tcprcvbuf); in smb_setopts() 139 if (err) { in smb_setopts() 140 DPRINT("set SO_RCVBUF, err %d", err); in smb_setopts() 143 err = smb_setopt_int(fd, SOL_SOCKET, SO_KEEPALIVE, 1); in smb_setopts() 144 if (err) { in smb_setopts() 145 DPRINT("set SO_KEEPALIVE, err %d", err); in smb_setopts() [all …]
|
/titanic_44/usr/src/uts/common/ipp/dlcosmk/ |
H A D | dlcosmkddi.c | 105 int err; in dlcosmk_create_action() local 119 if ((err = nvlist_lookup_string(nvlp, DLCOSMK_NEXT_ACTION_NAME, in dlcosmk_create_action() 125 return (err); in dlcosmk_create_action() 136 if ((err = nvlist_lookup_byte(nvlp, DLCOSMK_COS, in dlcosmk_create_action() 142 return (err); in dlcosmk_create_action() 146 if ((err = nvlist_lookup_uint32(nvlp, DLCOSMK_BAND, ¶m)) != 0) { in dlcosmk_create_action() 151 return (err); in dlcosmk_create_action() 156 if ((err = nvlist_lookup_uint32(nvlp, DLCOSMK_PRI, ¶m)) != 0) { in dlcosmk_create_action() 161 return (err); in dlcosmk_create_action() 166 if ((err = nvlist_lookup_uint32(nvlp, IPP_ACTION_STATS_ENABLE, &bstats)) in dlcosmk_create_action() [all …]
|
/titanic_44/usr/src/lib/libpkg/common/ |
H A D | pkgerr.c | 69 pkgerr_add(PKG_ERR *err, PKG_ERR_CODE code, char *fmt, ...) in pkgerr_add() argument 78 err->nerrs++; in pkgerr_add() 80 err->msgs = (char **)realloc(err->msgs, in pkgerr_add() 81 err->nerrs * sizeof (char *)); in pkgerr_add() 82 err->errs = (PKG_ERR_CODE *)realloc(err->errs, in pkgerr_add() 83 err->nerrs * sizeof (PKG_ERR_CODE)); in pkgerr_add() 84 err->msgs[err->nerrs - 1] = strdup(errmsgbuf); in pkgerr_add() 85 err->errs[err->nerrs - 1] = code; in pkgerr_add() 89 pkgerr_clear(PKG_ERR *err) in pkgerr_clear() argument 93 for (i = 0; i < err->nerrs; i++) { in pkgerr_clear() [all …]
|
/titanic_44/usr/src/cmd/picl/plugins/sun4u/grover/memcfg/ |
H A D | piclmemcfg.c | 93 int err = PICL_SUCCESS; in create_logical_tree() local 111 err = ptree_create_and_add_node(memh, PICL_NAME_MEMORY_SEGMENT, in create_logical_tree() 113 if (err != PICL_SUCCESS) in create_logical_tree() 124 err = ptree_init_propinfo(&propinfo, PTREE_PROPINFO_VERSION, in create_logical_tree() 127 if (err != PICL_SUCCESS) in create_logical_tree() 130 err = ptree_create_and_add_prop(msegh, &propinfo, in create_logical_tree() 132 if (err != PICL_SUCCESS) in create_logical_tree() 138 err = ptree_init_propinfo(&propinfo, PTREE_PROPINFO_VERSION, in create_logical_tree() 142 if (err != PICL_SUCCESS) in create_logical_tree() 145 err = ptree_create_and_add_prop(msegh, &propinfo, in create_logical_tree() [all …]
|
/titanic_44/usr/src/uts/sun4v/io/px/ |
H A D | px_err_gen.c | 43 int err = 0; in px_cb_epkt_severity() local 57 err = PX_PANIC; in px_cb_epkt_severity() 68 err = PX_PANIC; in px_cb_epkt_severity() 71 err = PX_PANIC; in px_cb_epkt_severity() 74 err = PX_PANIC; in px_cb_epkt_severity() 77 err = PX_PANIC; in px_cb_epkt_severity() 84 err = PX_PANIC; in px_cb_epkt_severity() 87 err = PX_PANIC; in px_cb_epkt_severity() 94 err = PX_PANIC; in px_cb_epkt_severity() 105 err = PX_PANIC; in px_cb_epkt_severity() [all …]
|