Home
last modified time | relevance | path

Searched refs:rv (Results 226 – 250 of 1040) sorted by relevance

12345678910>>...42

/illumos-gate/usr/src/cmd/devctl/
H A Ddevctl.c184 int rv; in main() local
339 int rv; in dev_pm_testbusy() local
344 if (rv != -1) in dev_pm_testbusy()
353 int rv; in bus_pm_teststrict() local
368 int rv; in dev_getstate() local
381 int rv; in bus_getstate() local
444 int rv; in bus_devcreate() local
463 rv = -1; in bus_devcreate()
468 rv = -1; in bus_devcreate()
471 rv = 0; in bus_devcreate()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftEncryptUtil.c63 CK_RV rv; in soft_encrypt_init_internal() local
79 if (rv != CKR_OK) { in soft_encrypt_init_internal()
85 return (rv); in soft_encrypt_init_internal()
113 CK_RV rv; in soft_encrypt_init() local
164 if (rv != CKR_OK) in soft_encrypt_init()
165 return (rv); in soft_encrypt_init()
190 return (rv); in soft_encrypt_init()
236 if (rv != CKR_OK) in soft_encrypt_init()
237 return (rv); in soft_encrypt_init()
264 return (rv); in soft_encrypt_init()
[all …]
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Dcommon.c154 return (rv); in init_pkcs11()
335 return (rv); in get_token_slots()
346 return (rv); in get_token_slots()
382 return (rv); in get_token_slots()
747 rv = KMF_OK; in select_token()
748 return (rv); in select_token()
787 return (rv); in configure_nss()
809 return (rv); in get_pk12_password()
1104 return (rv); in verify_altname()
1270 return (rv); in parse_ekus()
[all …]
H A Dinittoken.c47 int rv; in pk_inittoken() local
82 if ((rv = kmf_initialize(&handle, NULL, NULL)) != KMF_OK) in pk_inittoken()
83 return (rv); in pk_inittoken()
85 if ((rv = get_pin(gettext("Enter SO PIN:"), NULL, &sopin, &sopinlen)) in pk_inittoken()
97 rv = kmf_pk11_init_token(handle, currlabel, newlabel, in pk_inittoken()
104 if (rv == KMF_ERR_AUTH_FAILED) { in pk_inittoken()
108 } else if (rv != CKR_OK) { in pk_inittoken()
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaSlotManager.c71 CK_RV rv; in meta_slotManager_initialize() local
94 rv = CKR_FUNCTION_FAILED; in meta_slotManager_initialize()
100 rv = CKR_HOST_MEMORY; in meta_slotManager_initialize()
125 return (rv); in meta_slotManager_initialize()
214 CK_RV rv; in meta_slotManager_find_object_token() local
242 if (rv != CKR_OK) in meta_slotManager_find_object_token()
258 if (rv != CKR_OK) in meta_slotManager_find_object_token()
288 if (rv != CKR_OK) { in meta_slotManager_find_object_token()
319 if (rv != CKR_OK) { in meta_slotManager_find_object_token()
442 CK_RV rv; in meta_get_slot_session() local
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dselect.c113 int n, rv; in pselect() local
209 if (rv == 0) { in pselect()
230 rv = 0; in pselect()
249 rv = -1; in pselect()
281 rv = 0; in pselect()
306 rv++; in pselect()
310 rv++; in pselect()
314 rv++; in pselect()
323 rv++; /* wasn't already set */ in pselect()
333 rv++; /* wasn't already set */ in pselect()
[all …]
H A Dregexpr.c276 int rv; in re_exec() local
296 if (rv != 0) in re_exec()
297 return (rv); in re_exec()
305 rv = advance(p1, p2); in re_exec()
306 if (rv != 0) in re_exec()
307 return (rv); in re_exec()
321 int rv; in advance() local
385 if (rv != 0) in advance()
386 return (rv); in advance()
416 if (rv != 0) in advance()
[all …]
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/
H A Dprom_mmu.c67 int rv; in prom_map_phys() local
85 rv = p1275_cif_handler(&ci); in prom_map_phys()
88 if (rv != 0) in prom_map_phys()
108 int rv; in prom_allocate_virt() local
126 rv = p1275_cif_handler(&ci); in prom_allocate_virt()
129 if (rv != 0) in prom_allocate_virt()
143 int rv; in prom_claim_virt() local
159 rv = p1275_cif_handler(&ci); in prom_claim_virt()
162 if (rv != 0) in prom_claim_virt()
257 int rv; in prom_translate_virt() local
[all …]
/illumos-gate/usr/src/uts/common/io/ib/ibnex/
H A Dibnex_ioctl.c244 rv = EIO; in ibnex_devctl()
257 rv = EIO; in ibnex_devctl()
263 rv = 0; in ibnex_devctl()
353 rv = EIO; in ibnex_devctl()
369 rv = EIO; in ibnex_devctl()
474 rv = 0; in ibnex_devctl()
824 rv = 0; in ibnex_devctl()
871 rv = EIO; in ibnex_devctl()
884 rv = EIO; in ibnex_devctl()
999 rv = 0; in ibnex_devctl()
[all …]
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dcsrcrlop.c132 return (rv); in kmf_set_csr_subject()
153 if (rv != KMF_OK) in kmf_create_csr_file()
181 return (rv); in kmf_create_csr_file()
545 KMF_RETURN rv; in kmf_decode_csr() local
552 if (rv != KMF_OK) in kmf_decode_csr()
553 return (rv); in kmf_decode_csr()
558 return (rv); in kmf_decode_csr()
586 if (rv != KMF_OK) in kmf_verify_csr()
587 return (rv); in kmf_verify_csr()
595 return (rv); in kmf_verify_csr()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvnet_common.c189 int rv; in vnet_dring_entry_copy() local
192 if ((rv = VIO_DRING_ACQUIRE(&otd, mtype, handle, start, stop)) != 0) in vnet_dring_entry_copy()
193 return (rv); in vnet_dring_entry_copy()
197 rv = VIO_DRING_RELEASE_NOCOPYOUT(mtype); in vnet_dring_entry_copy()
199 return (rv); in vnet_dring_entry_copy()
206 int rv; in vnet_dring_entry_set_dstate() local
209 rv = VIO_DRING_ACQUIRE_NOCOPYIN(&otd, mtype); in vnet_dring_entry_set_dstate()
210 if (rv) in vnet_dring_entry_set_dstate()
211 return (rv); in vnet_dring_entry_set_dstate()
215 rv = VIO_DRING_RELEASE(mtype, handle, start, stop); in vnet_dring_entry_set_dstate()
[all …]
H A Ddr_util.c83 int rv; in dr_generate_event() local
100 rv = sysevent_add_attr(&evnt_attr_list, DR_AP_ID, &evnt_val, KM_SLEEP); in dr_generate_event()
101 if (rv != 0) { in dr_generate_event()
113 rv = sysevent_add_attr(&evnt_attr_list, DR_HINT, &evnt_val, KM_SLEEP); in dr_generate_event()
114 if (rv != 0) { in dr_generate_event()
124 rv = sysevent_attach_attributes(ev, evnt_attr_list); in dr_generate_event()
125 if (rv != 0) { in dr_generate_event()
135 rv = log_sysevent(ev, KM_NOSLEEP, &eid); in dr_generate_event()
136 if (rv != 0) { in dr_generate_event()
137 DR_DBG_ALL("generate_event: failed to log event (%d)\n", rv); in dr_generate_event()
/illumos-gate/usr/src/common/crypto/ecc/
H A Dec.c235 rv = SECFailure; in ec_points_mul()
238 return rv; in ec_points_mul()
340 if (rv) in ec_NewKey()
348 return rv; in ec_NewKey()
363 return rv; in EC_NewKeyFromSeed()
458 return rv; in EC_NewKey()
541 return rv; in EC_ValidatePublicKey()
623 return rv; in ECDH_Derive()
822 return rv; in ECDSA_SignDigestWithSeed()
861 return rv; in ECDSA_SignDigest()
[all …]
/illumos-gate/usr/src/cmd/audio/audioctl/
H A Daudioctl.c308 int rv = -1; in load_devices() local
320 rv = errno; in load_devices()
360 rv = 0; in load_devices()
682 rv = 0; in set_device_control()
881 int rv; in do_show_control() local
950 int rv; in do_set_control() local
1008 int rv; in do_save_controls() local
1088 int rv; in do_load_controls() local
1266 rv = 0; in main()
1274 if (rv) { in main()
[all …]
/illumos-gate/usr/src/uts/common/io/sdcard/impl/
H A Dsda_mod.c52 int rv; in _init() local
56 if ((rv = mod_install(&modlinkage)) != 0) { in _init()
60 return (rv); in _init()
66 int rv; in _fini() local
68 if ((rv = mod_remove(&modlinkage)) == 0) { in _fini()
71 return (rv); in _fini()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Dpkcs11slot.c122 CK_RV rv; in slot_supports_krb5() local
129 if ((rv = get_algo(tempenctype, &algos)) != CKR_OK) { in slot_supports_krb5()
143 rv = C_GetMechanismInfo(*slotid, algos.enc_algo, &info); in slot_supports_krb5()
144 if (rv != CKR_OK) { in slot_supports_krb5()
148 rv); in slot_supports_krb5()
171 rv = C_GetMechanismInfo(*slotid, algos.hash_algo, in slot_supports_krb5()
173 if (rv != CKR_OK) { in slot_supports_krb5()
177 rv); in slot_supports_krb5()
184 rv = C_GetMechanismInfo(*slotid, algos.str2key_algo, in slot_supports_krb5()
186 if (rv != CKR_OK) { in slot_supports_krb5()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/dr/
H A Ddr_cpu.c82 int rv; in dr_errno2ecode() local
104 return (rv); in dr_errno2ecode()
267 int rv; in dr_attach_cpu() local
398 rv = -1; in dr_pre_release_cpu()
409 rv = -1; in dr_pre_release_cpu()
429 rv = -1; in dr_pre_release_cpu()
435 if (!rv) { in dr_pre_release_cpu()
441 rv = -1; in dr_pre_release_cpu()
449 if (rv) { in dr_pre_release_cpu()
561 int rv; in dr_detach_cpu() local
[all …]
/illumos-gate/usr/src/boot/efi/libefi/
H A Defienv.c45 EFI_STATUS rv; in efi_getenv() local
51 rv = RS->GetVariable(uv, g, &attr, &dl, data); in efi_getenv()
52 if (rv == EFI_SUCCESS || rv == EFI_BUFFER_TOO_SMALL) in efi_getenv()
55 return (rv); in efi_getenv()
63 EFI_STATUS rv; in efi_setenv() local
68 rv = RS->SetVariable(uv, g, attr, len, data); in efi_setenv()
70 return (rv); in efi_setenv()
/illumos-gate/usr/src/cmd/eeprom/i386/
H A Dbenv.c682 int rv; in add_pair() local
686 if (rv != 0) in add_pair()
687 return (rv); in add_pair()
690 rv = EINVAL; in add_pair()
814 if (rv == 0) in add_pair()
819 return (rv); in add_pair()
826 int rv; in delete_pair() local
829 if (rv == 0) in delete_pair()
832 if (rv == 0) in delete_pair()
836 return (rv); in delete_pair()
[all …]
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd_door.c167 int rv; in door_server() local
182 rv = EINVAL; in door_server()
189 rv = EINVAL; in door_server()
206 rv = EINVAL; in door_server()
227 rv = EFAULT; in door_server()
235 rv = EFAULT; in door_server()
299 int rv; in cmd_getinfo() local
325 if (rv != 0) in cmd_getinfo()
326 return (rv); in cmd_getinfo()
425 if (rv != 0) { in cmd_changestate()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb31_preauth.c88 int rv; in smb_sha512_init() local
90 rv = crypto_digest_init(mech, ctxp, NULL); in smb_sha512_init()
92 return (rv == CRYPTO_SUCCESS ? 0 : -1); in smb_sha512_init()
102 int rv; in smb_sha512_update() local
110 rv = crypto_digest_update(ctx, &data, 0); in smb_sha512_update()
112 if (rv != CRYPTO_SUCCESS) { in smb_sha512_update()
127 int rv; in smb_sha512_final() local
135 rv = crypto_digest_final(ctx, &out, 0); in smb_sha512_final()
137 return (rv == CRYPTO_SUCCESS ? 0 : -1); in smb_sha512_final()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/keyhash_provider/
H A Dhmac_md5.c57 CK_RV rv; in k5_hmac_md5_hash() local
95 if ((rv = C_DigestInit(krb_ctx_hSession(context), &mechanism)) != CKR_OK) { in k5_hmac_md5_hash()
97 "rv = 0x%x.", rv); in k5_hmac_md5_hash()
101 if ((rv = C_DigestUpdate(krb_ctx_hSession(context), in k5_hmac_md5_hash()
104 "rv = 0x%x", rv); in k5_hmac_md5_hash()
108 if ((rv = C_DigestUpdate(krb_ctx_hSession(context), in k5_hmac_md5_hash()
111 "rv = 0x%x", rv); in k5_hmac_md5_hash()
116 if ((rv = C_DigestFinal(krb_ctx_hSession(context), in k5_hmac_md5_hash()
119 "rv = 0x%x", rv); in k5_hmac_md5_hash()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/stdio/
H A Dvsnprintf.c30 ssize_t rv; in vsnprintf() local
37 if((rv = sfvprintf(f,form,args)) >= 0 ) in vsnprintf()
39 { if((rv+1) >= n) in vsnprintf()
42 n = rv; in vsnprintf()
46 _Sfi = rv; in vsnprintf()
51 return rv; in vsnprintf()
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi_chassis.c42 int rv; in x86pi_gen_chassis() local
60 rv = smbios_info_common(shp, smb_id, &ip); in x86pi_gen_chassis()
61 if (rv != 0) { in x86pi_gen_chassis()
66 rv = smbios_info_chassis(shp, smb_id, &ch); in x86pi_gen_chassis()
67 if (rv != 0) { in x86pi_gen_chassis()
93 rv = x86pi_enum_generic(mod, &ch_hcfmri, t_parent, NULL, in x86pi_gen_chassis()
96 rv = x86pi_enum_generic(mod, &ch_hcfmri, t_parent, t_parent, in x86pi_gen_chassis()
99 if (rv != 0) { in x86pi_gen_chassis()
/illumos-gate/usr/src/uts/sun4u/opl/io/
H A Ddr_mem.c327 int rv; in dr_attach_mem() local
547 rv = 0; in dr_move_memory()
665 if (rv) in dr_del_mlist_query()
708 int rv; in dr_mem_status() local
1045 rv = 0; in dr_post_detach_mem()
1126 int rv; in dr_process_excess_mlist() local
1251 int rv; in dr_post_detach_mem_unit() local
1288 rv = 0; in dr_post_detach_mem_unit()
1308 rv = 0; in dr_post_detach_mem_unit()
1325 if (rv) in dr_post_detach_mem_unit()
[all …]

12345678910>>...42