Home
last modified time | relevance | path

Searched refs:error (Results 1 – 25 of 2779) sorted by relevance

12345678910>>...112

/titanic_41/usr/src/lib/libsip/common/
H A Dsip_hdrs_ui.c43 int *error) in sip_get_val_from_hdr() argument
45 if (error != NULL) in sip_get_val_from_hdr()
46 *error = 0; in sip_get_val_from_hdr()
49 if (error != NULL) in sip_get_val_from_hdr()
50 *error = EINVAL; in sip_get_val_from_hdr()
55 *error = EPROTO; in sip_get_val_from_hdr()
82 if (error != NULL && *error == 0) in sip_get_val_from_hdr()
83 *error = EINVAL; in sip_get_val_from_hdr()
93 boolean_t stype, boolean_t empty_val, int *error) in sip_get_val_from_msg() argument
98 if (error != NULL) in sip_get_val_from_msg()
[all …]
H A Dsip_uri_ui.c62 sip_parse_uri(sip_str_t *uri_str, int *error) in sip_parse_uri() argument
66 if (error != NULL) in sip_parse_uri()
67 *error = 0; in sip_parse_uri()
70 if (error != NULL) in sip_parse_uri()
71 *error = EINVAL; in sip_parse_uri()
76 if (error != NULL) in sip_parse_uri()
77 *error = ENOMEM; in sip_parse_uri()
84 if (error != NULL) in sip_parse_uri()
85 *error = ENOMEM; in sip_parse_uri()
88 if (parsed_uri->sip_uri_errflags != 0 && error != NULL) in sip_parse_uri()
[all …]
H A Dsip_xaction_ui.c75 sip_get_trans(sip_msg_t sip_msg, int which, int *error) in sip_get_trans() argument
77 if (error != NULL) in sip_get_trans()
78 *error = 0; in sip_get_trans()
80 if (error != NULL) in sip_get_trans()
81 *error = EINVAL; in sip_get_trans()
92 sip_get_trans_resp_msg(sip_transaction_t sip_trans, int *error) in sip_get_trans_resp_msg() argument
96 if (error != NULL) in sip_get_trans_resp_msg()
97 *error = 0; in sip_get_trans_resp_msg()
99 if (error != NULL) in sip_get_trans_resp_msg()
100 *error = EINVAL; in sip_get_trans_resp_msg()
[all …]
H A Dsip_dialog_ui.c148 sip_get_dialog_method(sip_dialog_t dialog, int *error) in sip_get_dialog_method() argument
152 if (error != NULL) in sip_get_dialog_method()
153 *error = 0; in sip_get_dialog_method()
155 if (error != NULL) in sip_get_dialog_method()
156 *error = EINVAL; in sip_get_dialog_method()
160 if (error != NULL) in sip_get_dialog_method()
161 *error = EINVAL; in sip_get_dialog_method()
172 sip_get_dialog_state(sip_dialog_t dialog, int *error) in sip_get_dialog_state() argument
176 if (error != NULL) in sip_get_dialog_state()
177 *error = 0; in sip_get_dialog_state()
[all …]
/titanic_41/usr/src/cmd/hal/utils/
H A Dacpi.c33 my_dbus_error_free(DBusError *error) in my_dbus_error_free() argument
35 if (dbus_error_is_set(error)) { in my_dbus_error_free()
36 dbus_error_free(error); in my_dbus_error_free()
44 DBusError error; in laptop_panel_update() local
49 dbus_error_init(&error); in laptop_panel_update()
50 if (!libhal_device_query_capability(ctx, udi, "laptop_panel", &error)) { in laptop_panel_update()
57 my_dbus_error_free(&error); in laptop_panel_update()
58 libhal_device_add_capability(ctx, udi, "laptop_panel", &error); in laptop_panel_update()
60 my_dbus_error_free(&error); in laptop_panel_update()
69 my_dbus_error_free(&error); in laptop_panel_update()
[all …]
/titanic_41/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_validate.c233 int error = 0; in validate_basic_svm_config() local
236 if ((error = get_n_metadb_replicas(&nreplicas)) == 0) { in validate_basic_svm_config()
243 error = -1; in validate_basic_svm_config()
251 return (error); in validate_basic_svm_config()
280 int error = 0; in validate_request_sizes() local
294 if ((error = get_space_available_for_request(request, in validate_request_sizes()
296 return (error); in validate_request_sizes()
307 for (; (iter != NULL) && (raw_space != 0) && (error == 0); in validate_request_sizes()
311 if ((error = slice_get_size(slice, &nbytes)) == 0) { in validate_request_sizes()
326 for (; (iter != NULL) && (error == 0); iter = iter->next) { in validate_request_sizes()
[all …]
H A Dlayout_request.c380 int error = 0; in set_request_defaults() local
385 if ((error = defaults_get_diskset_by_name( in set_request_defaults()
388 error = validate_request_avail_unavail(diskset); in set_request_defaults()
390 } else if (error == ENOENT) { in set_request_defaults()
392 error = 0; in set_request_defaults()
395 return (error); in set_request_defaults()
430 int error = 0; in get_stripe_min_comp() local
434 if ((error = devconfig_get_stripe_mincomp(req, val)) != 0) { in get_stripe_min_comp()
435 if (error != ERR_ATTR_UNSET) { in get_stripe_min_comp()
436 return (error); in get_stripe_min_comp()
[all …]
H A Dlayout_device_util.c531 int error = 0; in set_display_name() local
533 ((error = add_cached_descriptor(name, desc)) != 0) || in set_display_name()
534 (error = get_cached_attributes(desc, &attrs)) || in set_display_name()
535 (error = set_string(attrs, ATTR_DEV_CTD_NAME, name)); in set_display_name()
537 return (error); in set_display_name()
546 int error = 0; in get_display_name() local
548 ((error = get_cached_attributes(desc, &attrs)) != 0) || in get_display_name()
549 (error = get_string(attrs, ATTR_DEV_CTD_NAME, name)); in get_display_name()
551 return (error); in get_display_name()
578 int error = 0; in disk_get_slices() local
[all …]
H A Dlayout_concat.c138 int error = 0; in layout_concat() local
140 (error = get_usable_hbas(&usable_hbas)); in layout_concat()
141 if (error != 0) { in layout_concat()
143 return (error); in layout_concat()
153 error = group_similar_hbas(usable_hbas, &similar_hba_groups); in layout_concat()
154 if (error != 0) { in layout_concat()
155 return (error); in layout_concat()
159 (error == 0) && (concat == NULL) && (iter != NULL); in layout_concat()
168 (concat == NULL) && (error == 0); in layout_concat()
178 error = select_hbas_with_n_disks( in layout_concat()
[all …]
H A Dlayout.c126 int error = 0; in get_layout() local
131 if ((error = layout_init(diskset_req, defaults)) != 0) { in get_layout()
132 return (error); in get_layout()
139 for (; (iter != NULL) && (error == 0); iter = iter->next) { in get_layout()
145 ((error = process_request(subreq, &subres)) != 0) || in get_layout()
146 (error = collect_modified_disks(subreq, subres)) || in get_layout()
147 (error = convert_device_names(subreq, subres)); in get_layout()
148 if (error == 0) { in get_layout()
153 if (error == 0) { in get_layout()
156 error = process_hsp_request(diskset_req, &subres); in get_layout()
[all …]
H A Dlayout_discovery.c248 int error = 0; in discover_known_devices() local
255 ((error = create_device_caches()) != 0) || in discover_known_devices()
257 (error = generate_known_disks(&_known_disks, &_bad_disks)) || in discover_known_devices()
258 (error = generate_known_slices(_known_disks, &_known_slices, in discover_known_devices()
260 (error = generate_known_hbas(_known_disks, &_known_hbas)); in discover_known_devices()
262 if (error == 0) { in discover_known_devices()
266 return (error); in discover_known_devices()
323 int error = 0; in discover_usable_devices() local
340 error = generate_usable_disks_and_slices_in_local_set( in discover_usable_devices()
342 if (error == 0) { in discover_usable_devices()
[all …]
H A Dlayout_stripe.c181 int error = 0; in layout_stripe() local
183 (error = get_usable_hbas(&usable_hbas)); in layout_stripe()
184 if (error != 0) { in layout_stripe()
185 return (error); in layout_stripe()
196 ((error = group_similar_hbas(usable_hbas, &similar_hba_groups)) != 0) || in layout_stripe()
205 (error = get_stripe_min_comp(request, &mincomp)) || in layout_stripe()
206 (error = get_stripe_max_comp(request, &maxcomp)); in layout_stripe()
207 if (error != 0) { in layout_stripe()
208 return (error); in layout_stripe()
212 (error == 0) && (stripe == NULL) && (iter != NULL); in layout_stripe()
[all …]
H A Dlayout_mirror.c171 int error = 0; in layout_mirror() local
173 if ((error = get_volume_faultrecov(request, &usehsp)) != 0) { in layout_mirror()
174 if (error != ERR_ATTR_UNSET) { in layout_mirror()
175 return (error); in layout_mirror()
177 error = 0; in layout_mirror()
183 if ((error = layout_stripe_submirrors( in layout_mirror()
185 return (error); in layout_mirror()
190 if ((error = layout_concat_submirrors( in layout_mirror()
192 return (error); in layout_mirror()
211 error = assemble_mirror(request, subs, &mirror); in layout_mirror()
[all …]
H A Dlayout_slice.c221 int error = 0; in choose_slice() local
303 (iter != NULL) && (error == 0); iter = iter->next) { in choose_slice()
314 ((error = slice_get_size(slice, &snbytes)) != 0) || in choose_slice()
315 (error = slice_has_n_paths(slice, npaths, &paths)) || in choose_slice()
316 (error = slice_on_unique_hba(slice, used, used_hbas, &uniqhba)) || in choose_slice()
317 (error = slice_on_unique_disk(slice, used, used_disks, in choose_slice()
319 (error = slice_on_similar_bus(slice, used, &samebus)) || in choose_slice()
320 (error = slice_has_same_disk_geom(slice, used, &samegeom)); in choose_slice()
321 if (error != 0) { in choose_slice()
410 error = ENOMEM; in choose_slice()
[all …]
H A Dlayout_hsp.c126 int error = 0; in layout_hsp() local
134 error = layout_default_hsp(request, devices, &hsp); in layout_hsp()
136 error = layout_explicit_hsp(hsprequest, devices, &hsp); in layout_hsp()
139 if (error != 0) { in layout_hsp()
141 get_error_string(error)); in layout_hsp()
151 error = ENOMEM; in layout_hsp()
159 return (error); in layout_hsp()
190 int error = 0; in layout_default_hsp() local
195 if ((error = get_default_hsp_name(request, &hspname)) != 0) { in layout_default_hsp()
198 return (error); in layout_default_hsp()
[all …]
/titanic_41/usr/src/cmd/lvm/metassist/common/
H A Dvolume_defaults.c61 int error = 0; in new_defaults() local
73 if ((error = new_devconfig(&diskset, TYPE_DISKSET)) != 0) { in new_defaults()
75 return (error); in new_defaults()
84 if ((error = defaults_set_mirror_nsubs( in new_defaults()
87 (error = defaults_set_mirror_read( in new_defaults()
90 (error = defaults_set_mirror_write( in new_defaults()
93 (error = defaults_set_mirror_pass( in new_defaults()
96 (error = defaults_set_mirror_usehsp( in new_defaults()
99 (error = defaults_set_concat_usehsp( in new_defaults()
102 (error = defaults_set_stripe_interlace( in new_defaults()
[all …]
H A Dvolume_nvpair.c77 int error; in get_uint16() local
82 error = ENOENT; in get_uint16()
84 error = nvpair_value_uint16(match, val); in get_uint16()
87 return (error); in get_uint16()
117 int error = 0; in set_uint16() local
119 if ((error = nvlist_add_uint16(attrs, which, val)) != 0) { in set_uint16()
121 gettext("nvlist_add_int16(%s) failed: %d\n"), which, error); in set_uint16()
124 return (error); in set_uint16()
151 int error; in get_uint32() local
156 error = ENOENT; in get_uint32()
[all …]
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv_attr.c214 int error = 0; in rfs4_fattr4_supported_attrs() local
219 error = EINVAL; in rfs4_fattr4_supported_attrs()
228 error = EINVAL; in rfs4_fattr4_supported_attrs()
235 error = -1; /* no match */ in rfs4_fattr4_supported_attrs()
241 return (error); in rfs4_fattr4_supported_attrs()
256 int error = 0; in rfs4_fattr4_type() local
261 error = EINVAL; in rfs4_fattr4_type()
265 error = -1; /* may be okay if rdattr_error */ in rfs4_fattr4_type()
292 error = EINVAL; in rfs4_fattr4_type()
300 error = -1; /* no match */ in rfs4_fattr4_type()
[all …]
/titanic_41/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_diskmgt.c39 static char *get_device_name(dm_descriptor_t device, int *error);
40 static dmgt_disk_t *get_disk(dm_descriptor_t disk, int *error);
41 static char **get_disk_aliases(dm_descriptor_t disk, char *name, int *error);
42 static int get_disk_online(dm_descriptor_t disk, int *error);
45 const char *name, uint32_t blocksize, int *error);
47 const char *name, uint32_t blocksize, int *in_use, int *error);
49 uint64_t *size, uint32_t *blocksize, int *error);
51 char **used_name, char **used_by, int *error);
53 dm_descriptor_t slice, uint32_t blocksize, int *error);
55 static int slice_in_use(dmgt_slice_t *slice, int *error);
[all …]
/titanic_41/usr/src/cmd/sgs/libelf/common/
H A Dlibelf.msg36 @ EINF_NULLERROR "Elf error 0"
39 # BUG bug Internal error
41 @ EBUG_COOKSTAT "Internal error: cook status"
42 @ EBUG_COOKTYPE "Internal error: cook data type"
43 @ EBUG_SCNLIST "Internal error: broken section list"
44 @ EBUG_THRDKEY "Internal error: thr_keycreate() failed. \
45 Unable to allocate error buffer"
46 @ EBUG_THRDSET "Internal error: thr_setspecific failed. \
47 Unable to create TSD for error message."
50 # FMT fmt Format error
[all …]
/titanic_41/usr/src/uts/i86xpv/io/
H A Dprivcmd_hcall.c113 export_buffer(import_export_t *iep, int *error) in export_buffer() argument
125 if ((iep->ie_flags & IE_EXPORT) && (*error >= 0) && in export_buffer()
134 if (copy_err != 0 && *error >= 0) in export_buffer()
135 *error = copy_err; in export_buffer()
169 int error, kscount, bytes; in privcmd_HYPERVISOR_mmu_update() local
174 error = import_buffer(&cnt_ie, scount, &kscount, sizeof (kscount), in privcmd_HYPERVISOR_mmu_update()
176 if (error != 0) in privcmd_HYPERVISOR_mmu_update()
179 error = import_buffer(&req_ie, ureq, kreq, bytes, IE_IMPEXP); in privcmd_HYPERVISOR_mmu_update()
182 ((error == -X_EFAULT) ? ureq : kreq)); in privcmd_HYPERVISOR_mmu_update()
184 if (error == 0) in privcmd_HYPERVISOR_mmu_update()
[all …]
/titanic_41/usr/src/cmd/fs.d/smbclnt/smbutil/
H A Dview.c70 int error, err2, opt; in cmd_view() local
75 error = smb_ctx_alloc(&ctx); in cmd_view()
76 if (error) in cmd_view()
77 return (error); in cmd_view()
79 error = smb_ctx_scan_argv(ctx, argc, argv, in cmd_view()
81 if (error) in cmd_view()
82 return (error); in cmd_view()
84 error = smb_ctx_readrc(ctx); in cmd_view()
85 if (error) in cmd_view()
86 return (error); in cmd_view()
[all …]
/titanic_41/usr/src/lib/libsec/common/
H A Dacl.y152 int error; variable
156 error = get_id($1, $2, &id);
157 if (error) {
165 error = ace_perm_mask(&$3, &$$.a_access_mask);
166 if (error) {
168 return (error);
175 int error; variable
185 error = get_id($1, $2, &id);
186 if (error) {
192 error = ace_perm_mask(&$3, &$$.a_access_mask);
[all …]
H A Dacltext.c126 int error = IDMAP_ERR_NORESULT; in getsidname() local
138 error = idmap_getwinnamebyuid(who, in getsidname()
141 error = idmap_getwinnamebygid(who, in getsidname()
144 if (error != IDMAP_SUCCESS) { in getsidname()
147 error = idmap_get_sidbyuid(get_hdl, who, in getsidname()
151 error = idmap_get_sidbygid(get_hdl, who, in getsidname()
154 if (error == IDMAP_SUCCESS && in getsidname()
305 int error; in aclent_type_txt() local
311 error = str_append(dstr, "user::"); in aclent_type_txt()
313 error = str_append(dstr, "defaultuser::"); in aclent_type_txt()
[all …]
/titanic_41/usr/src/uts/sun4u/starcat/io/
H A Dmboxsc.c258 int error = 0; in _init() local
281 error = iosram_hdr_ctrl(IOSRAM_HDRCMD_SET_OS_MBOX_VER, in _init()
283 if (error != 0) { in _init()
291 error = iosram_hdr_ctrl(IOSRAM_HDRCMD_GET_SMS_MBOX_VER, in _init()
293 if (error != 0) { in _init()
306 error = iosram_hdr_ctrl(IOSRAM_HDRCMD_REG_CALLBACK, in _init()
308 if (error != 0) { in _init()
312 DPRINTF1(DBG_RETS, DBGACT_DEFAULT, "_init ret: 0x%08x\n", error); in _init()
322 DPRINTF1(DBG_RETS, DBGACT_DEFAULT, "_init ret: 0x%08x\n", error); in _init()
323 return (error); in _init()
[all …]

12345678910>>...112