/titanic_41/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | new_host.c | 109 rc = CKR_MECHANISM_INVALID; \ 118 CK_RV rc = CKR_OK; in ST_Initialize() local 150 if ((rc = attach_shm()) != CKR_OK) in ST_Initialize() 163 rc = token_specific.t_init((char *)Correlator, SlotNumber, in ST_Initialize() 165 if (rc != 0) { in ST_Initialize() 170 rc = CKR_OK; in ST_Initialize() 178 rc = load_token_data(hContext, nv_token_data); in ST_Initialize() 180 if (rc != CKR_OK) { in ST_Initialize() 184 rc = load_public_token_objects(); in ST_Initialize() 185 if (rc != CKR_OK) in ST_Initialize() [all …]
|
H A D | asn1.c | 764 CK_RV rc; in ber_encode_PrivateKeyInfo() local 768 rc = ber_encode_INTEGER(TRUE, NULL, &total, version, sizeof (version)); in ber_encode_PrivateKeyInfo() 769 if (rc != CKR_OK) { in ber_encode_PrivateKeyInfo() 770 return (rc); in ber_encode_PrivateKeyInfo() 777 rc = ber_encode_OCTET_STRING(TRUE, NULL, &total, in ber_encode_PrivateKeyInfo() 780 if (rc != CKR_OK) in ber_encode_PrivateKeyInfo() 781 return (rc); in ber_encode_PrivateKeyInfo() 789 rc = ber_encode_SEQUENCE(TRUE, NULL, &total, NULL, len); in ber_encode_PrivateKeyInfo() 791 if (rc == CKR_OK) in ber_encode_PrivateKeyInfo() 793 return (rc); in ber_encode_PrivateKeyInfo() [all …]
|
H A D | key_mgr.c | 40 CK_RV rc; in key_mgr_get_private_key_type() local 42 rc = ber_decode_PrivateKeyInfo(keydata, keylen, &alg, in key_mgr_get_private_key_type() 44 if (rc != CKR_OK) { in key_mgr_get_private_key_type() 45 return (rc); in key_mgr_get_private_key_type() 74 CK_RV rc; in key_mgr_generate_key_pair() local 130 rc = object_mgr_create_skel(sess, in key_mgr_generate_key_pair() 134 if (rc != CKR_OK) { in key_mgr_generate_key_pair() 137 rc = object_mgr_create_skel(sess, in key_mgr_generate_key_pair() 141 if (rc != CKR_OK) { in key_mgr_generate_key_pair() 147 rc = ckm_rsa_key_pair_gen( in key_mgr_generate_key_pair() [all …]
|
H A D | mech_rsa.c | 43 CK_RV rc; in ckm_rsa_key_pair_gen() local 45 rc = token_specific.t_rsa_generate_keypair( in ckm_rsa_key_pair_gen() 48 return (rc); in ckm_rsa_key_pair_gen() 62 CK_RV rc; in ckm_rsa_encrypt() local 64 rc = template_attribute_find(key_obj->template, CKA_CLASS, &attr); in ckm_rsa_encrypt() 65 if (rc == FALSE) { in ckm_rsa_encrypt() 74 rc = token_specific.t_rsa_encrypt(hContext, in ckm_rsa_encrypt() 78 return (rc); in ckm_rsa_encrypt() 91 CK_RV rc; in ckm_rsa_decrypt() local 94 rc = template_attribute_find(key_obj->template, CKA_CLASS, &attr); in ckm_rsa_decrypt() [all …]
|
H A D | mech_md5.c | 338 CK_RV rc; in md5_hmac_sign() local 363 rc = object_mgr_find_in_map1(sess->hContext, ctx->key, &key_obj); in md5_hmac_sign() 364 if (rc != CKR_OK) in md5_hmac_sign() 365 return (rc); in md5_hmac_sign() 366 rc = template_attribute_find(key_obj->template, CKA_VALUE, &attr); in md5_hmac_sign() 367 if (rc == FALSE) { in md5_hmac_sign() 380 rc = digest_mgr_init(sess, &digest_ctx, &digest_mech); in md5_hmac_sign() 381 if (rc != CKR_OK) { in md5_hmac_sign() 383 return (rc); in md5_hmac_sign() 387 rc = digest_mgr_digest(sess, FALSE, &digest_ctx, in md5_hmac_sign() [all …]
|
H A D | mech_sha.c | 72 CK_RV rc; in sha1_hmac_sign() local 96 rc = object_mgr_find_in_map1(sess->hContext, ctx->key, &key_obj); in sha1_hmac_sign() 97 if (rc != CKR_OK) { in sha1_hmac_sign() 98 return (rc); in sha1_hmac_sign() 100 rc = template_attribute_find(key_obj->template, CKA_VALUE, &attr); in sha1_hmac_sign() 101 if (rc == FALSE) { in sha1_hmac_sign() 112 rc = digest_mgr_init(sess, &digest_ctx, &digest_mech); in sha1_hmac_sign() 113 if (rc != CKR_OK) { in sha1_hmac_sign() 115 return (rc); in sha1_hmac_sign() 119 rc = digest_mgr_digest(sess, FALSE, &digest_ctx, in sha1_hmac_sign() [all …]
|
H A D | object.c | 317 CK_RV rc; in object_create() local 355 rc = object_create_skel(pTemplate, ulCount, in object_create() 357 if (rc != CKR_OK) { in object_create() 358 return (rc); in object_create() 369 rc = template_attribute_find(o->template, CKA_SENSITIVE, &attr); in object_create() 370 if (rc == FALSE) { in object_create() 371 rc = CKR_FUNCTION_FAILED; in object_create() 377 rc = build_attribute(CKA_ALWAYS_SENSITIVE, &flag, in object_create() 379 if (rc != CKR_OK) { in object_create() 383 rc = template_attribute_find(o->template, CKA_EXTRACTABLE, in object_create() [all …]
|
H A D | obj_mgr.c | 308 CK_RV rc = CKR_OK; in check_object_access() local 326 rc = CKR_USER_NOT_LOGGED_IN; in check_object_access() 331 rc = CKR_SESSION_READ_ONLY; in check_object_access() 338 rc = CKR_SESSION_READ_ONLY; in check_object_access() 345 rc = CKR_USER_NOT_LOGGED_IN; in check_object_access() 352 rc = CKR_USER_NOT_LOGGED_IN; in check_object_access() 357 return (rc); in check_object_access() 368 CK_RV rc; in object_mgr_add() local 374 rc = pthread_mutex_lock(&obj_list_mutex); in object_mgr_add() 375 if (rc != CKR_OK) in object_mgr_add() [all …]
|
/titanic_41/usr/src/uts/common/fs/zfs/ |
H A D | refcount.c | 59 refcount_create(refcount_t *rc) in refcount_create() argument 61 mutex_init(&rc->rc_mtx, NULL, MUTEX_DEFAULT, NULL); in refcount_create() 62 list_create(&rc->rc_list, sizeof (reference_t), in refcount_create() 64 list_create(&rc->rc_removed, sizeof (reference_t), in refcount_create() 66 rc->rc_count = 0; in refcount_create() 67 rc->rc_removed_count = 0; in refcount_create() 68 rc->rc_tracked = reference_tracking_enable; in refcount_create() 72 refcount_create_untracked(refcount_t *rc) in refcount_create_untracked() argument 74 refcount_create(rc); in refcount_create_untracked() 75 rc->rc_tracked = B_FALSE; in refcount_create_untracked() [all …]
|
/titanic_41/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_reparse.c | 90 int rc; in smb_reparse_svcadd() local 92 if ((rc = smb_reparse_init(path, &nvl)) != 0) in smb_reparse_svcadd() 93 return (rc); in smb_reparse_svcadd() 95 if ((rc = reparse_add(nvl, svctype, svcdata)) != 0) { in smb_reparse_svcadd() 97 return (rc); in smb_reparse_svcadd() 100 rc = smb_reparse_set(path, nvl); in smb_reparse_svcadd() 103 return (rc); in smb_reparse_svcadd() 115 int rc; in smb_reparse_svcdel() local 117 if ((rc = smb_reparse_init(path, &nvl)) != 0) in smb_reparse_svcdel() 118 return (rc); in smb_reparse_svcdel() [all …]
|
/titanic_41/usr/src/cmd/nscd/ |
H A D | nscd_init.c | 60 nscd_rc_t rc; in _nscd_init() local 71 if ((rc = _nscd_alloc_nsw_config()) != NSCD_SUCCESS || in _nscd_init() 72 (rc = _nscd_alloc_service_state_table()) != NSCD_SUCCESS || in _nscd_init() 73 (rc = _nscd_alloc_nsw_state_base()) != NSCD_SUCCESS || in _nscd_init() 74 (rc = _nscd_alloc_nsw_be_info_db()) != NSCD_SUCCESS || in _nscd_init() 75 (rc = _nscd_alloc_getent_ctx_base()) != NSCD_SUCCESS) in _nscd_init() 76 return (rc); in _nscd_init() 82 if ((rc = _nscd_alloc_switch_cfg()) != NSCD_SUCCESS || in _nscd_init() 83 (rc = _nscd_alloc_frontend_cfg()) != NSCD_SUCCESS || in _nscd_init() 84 (rc = _nscd_alloc_switch_stats()) != NSCD_SUCCESS) in _nscd_init() [all …]
|
/titanic_41/usr/src/uts/common/fs/zfs/sys/ |
H A D | refcount.h | 63 void refcount_create(refcount_t *rc); 64 void refcount_create_untracked(refcount_t *rc); 65 void refcount_destroy(refcount_t *rc); 66 void refcount_destroy_many(refcount_t *rc, uint64_t number); 67 int refcount_is_zero(refcount_t *rc); 68 int64_t refcount_count(refcount_t *rc); 69 int64_t refcount_add(refcount_t *rc, void *holder_tag); 70 int64_t refcount_remove(refcount_t *rc, void *holder_tag); 71 int64_t refcount_add_many(refcount_t *rc, uint64_t number, void *holder_tag); 72 int64_t refcount_remove_many(refcount_t *rc, uint64_t number, void *holder_tag); [all …]
|
/titanic_41/usr/src/lib/librdc/common/ |
H A D | rdcconfig.c | 81 rdcconfig_t *rc; in rdc_dup_config() local 83 rc = (rdcconfig_t *)calloc(1, sizeof (*rc)); in rdc_dup_config() 84 if (!rc) { in rdc_dup_config() 89 *rc = *orig; in rdc_dup_config() 90 rc->next = NULL; /* don't want to hook into wrong chaing */ in rdc_dup_config() 91 return (rc); in rdc_dup_config() 112 if (rcp->rc == 0) { in chain_successful() 148 rdc_rc_t *rc; in new_rc() local 150 rc = (rdc_rc_t *)calloc(1, sizeof (*rc)); in new_rc() 151 if (rc == NULL) { in new_rc() [all …]
|
/titanic_41/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fksmb_init.c | 118 int rc; in fksmbsrv_drv_open() local 121 if ((rc = fksmbsrv_vfs_init()) != 0) { in fksmbsrv_drv_open() 122 cmn_err(CE_WARN, "fksmbsrv_vfs_init, rc=%d", rc); in fksmbsrv_drv_open() 123 return (rc); in fksmbsrv_drv_open() 125 if ((rc = smb_server_g_init()) != 0) { in fksmbsrv_drv_open() 126 cmn_err(CE_WARN, "smb_server_g_init, rc=%d", rc); in fksmbsrv_drv_open() 127 return (rc); in fksmbsrv_drv_open() 132 rc = smb_server_create(); in fksmbsrv_drv_open() 133 return (rc); in fksmbsrv_drv_open() 139 int rc; in fksmbsrv_drv_close() local [all …]
|
/titanic_41/usr/src/lib/libilb/common/ |
H A D | ilb_hc.c | 43 ilb_status_t rc; in ilb_create_hc() local 57 rc = i_ilb_do_comm(h, ic, ic_sz, ic, &ic_sz); in ilb_create_hc() 58 if (rc != ILB_STATUS_OK) in ilb_create_hc() 62 rc = *(ilb_status_t *)&ic->ic_data; in ilb_create_hc() 66 return (rc); in ilb_create_hc() 76 ilb_status_t rc; in ilb_destroy_hc() local 88 rc = i_ilb_do_comm(h, ic, ic_sz, ic, &ic_sz); in ilb_destroy_hc() 89 if (rc != ILB_STATUS_OK) in ilb_destroy_hc() 93 rc = *(ilb_status_t *)&ic->ic_data; in ilb_destroy_hc() 97 return (rc); in ilb_destroy_hc() [all …]
|
/titanic_41/usr/src/uts/common/avs/ncall/ |
H A D | ncall.c | 231 int rc = DDI_FAILURE; in ncall_getinfo() local 237 rc = DDI_SUCCESS; in ncall_getinfo() 245 rc = DDI_SUCCESS; in ncall_getinfo() 252 return (rc); in ncall_getinfo() 271 int rc = 0; in ncall_register_module() local 288 rc = ENOMEM; in ncall_register_module() 292 return (rc); in ncall_register_module() 300 int rc = ESRCH; in ncall_unregister_module() local 307 rc = 0; in ncall_unregister_module() 314 return (rc); in ncall_unregister_module() [all …]
|
/titanic_41/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_ioctl.c | 50 int rc = ENOTSUP; in t4_ioctl() local 55 rc = pci_rw(sc, data, mode, cmd == T4_IOCTL_PCIPUT32); in t4_ioctl() 59 rc = reg_rw(sc, data, mode, cmd == T4_IOCTL_PUT32); in t4_ioctl() 62 rc = regdump(sc, data, mode); in t4_ioctl() 65 rc = get_sge_context(sc, data, mode); in t4_ioctl() 68 rc = get_devlog(sc, data, mode); in t4_ioctl() 71 rc = read_card_mem(sc, data, mode); in t4_ioctl() 74 rc = read_tid_tab(sc, data, mode); in t4_ioctl() 77 rc = read_mbox(sc, data, mode); in t4_ioctl() 80 rc = read_cim_la(sc, data, mode); in t4_ioctl() [all …]
|
/titanic_41/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_directory.c | 57 int rc; in smb_pre_create_directory() local 59 rc = smbsr_decode_data(sr, "%S", sr, in smb_pre_create_directory() 65 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR); in smb_pre_create_directory() 77 int rc = 0; in smb_com_create_directory() local 92 if ((rc = smb_common_create_directory(sr)) != 0) { in smb_com_create_directory() 93 smbsr_errno(sr, rc); in smb_com_create_directory() 97 rc = smbsr_encode_empty_result(sr); in smb_com_create_directory() 98 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR); in smb_com_create_directory() 113 int rc; in smb_common_create_directory() local 121 rc = smb_pathname_reduce(sr, sr->user_cr, fqi->fq_path.pn_path, in smb_common_create_directory() [all …]
|
/titanic_41/usr/src/lib/libsqlite/src/ |
H A D | test3.c | 31 static char *errorName(int rc){ in errorName() argument 33 switch( rc ){ in errorName() 66 int rc; in btree_open() local 73 rc = sqliteBtreeFactory(0, argv[1], 0, 1000, &pBt); in btree_open() 74 if( rc!=SQLITE_OK ){ in btree_open() 75 Tcl_AppendResult(interp, errorName(rc), 0); in btree_open() 98 int rc; in btree_close() local 105 rc = sqliteBtreeClose(pBt); in btree_close() 106 if( rc!=SQLITE_OK ){ in btree_close() 107 Tcl_AppendResult(interp, errorName(rc), 0); in btree_close() [all …]
|
H A D | pager.c | 324 int rc; in read32bits() local 325 rc = sqliteOsRead(fd, &res, sizeof(res)); in read32bits() 326 if( rc==SQLITE_OK && format>JOURNAL_FORMAT_1 ){ in read32bits() 332 return rc; in read32bits() 382 int rc = SQLITE_OK; in pager_errcode() local 383 if( pPager->errMask & PAGER_ERR_LOCK ) rc = SQLITE_PROTOCOL; in pager_errcode() 384 if( pPager->errMask & PAGER_ERR_DISK ) rc = SQLITE_IOERR; in pager_errcode() 385 if( pPager->errMask & PAGER_ERR_FULL ) rc = SQLITE_FULL; in pager_errcode() 386 if( pPager->errMask & PAGER_ERR_MEM ) rc = SQLITE_NOMEM; in pager_errcode() 387 if( pPager->errMask & PAGER_ERR_CORRUPT ) rc = SQLITE_CORRUPT; in pager_errcode() [all …]
|
/titanic_41/usr/src/lib/libsldap/common/ |
H A D | ns_writes.c | 278 int k, rc, vlen; in __s_api_makeModListCount() local 409 rc = init_bval_mod(mods[i], mod_op, in __s_api_makeModListCount() 411 if (rc != 0) in __s_api_makeModListCount() 445 rc = init_bval_mod(mods[i], mod_op, in __s_api_makeModListCount() 447 if (rc != 0) in __s_api_makeModListCount() 470 rc = init_bval_mod(mods[i], mod_op, in __s_api_makeModListCount() 472 if (rc != 0) in __s_api_makeModListCount() 498 rc = init_bval_mod(mods[i], mod_op, in __s_api_makeModListCount() 500 if (rc != 0) in __s_api_makeModListCount() 532 rc = init_bval_mod(mods[i], mod_op, in __s_api_makeModListCount() [all …]
|
/titanic_41/usr/src/uts/common/ipp/meters/ |
H A D | tswtclddi.c | 110 int rc, rc2; in tswtcl_create_action() local 122 if ((rc = nvlist_lookup_string(nvlp, TSWTCL_RED_ACTION_NAME, in tswtcl_create_action() 128 return (rc); in tswtcl_create_action() 139 if ((rc = nvlist_lookup_string(nvlp, TSWTCL_YELLOW_ACTION_NAME, in tswtcl_create_action() 145 return (rc); in tswtcl_create_action() 156 if ((rc = nvlist_lookup_string(nvlp, TSWTCL_GREEN_ACTION_NAME, in tswtcl_create_action() 162 return (rc); in tswtcl_create_action() 173 if ((rc = nvlist_lookup_uint32(nvlp, TSWTCL_COMMITTED_RATE, in tswtcl_create_action() 179 return (rc); in tswtcl_create_action() 183 if ((rc = nvlist_lookup_uint32(nvlp, TSWTCL_PEAK_RATE, in tswtcl_create_action() [all …]
|
/titanic_41/usr/src/cmd/sgs/libelf/common/ |
H A D | flag.c | 40 unsigned rc = 0; in elf_flagdata() local 54 rc = d->db_uflags |= flags; in elf_flagdata() 56 rc = d->db_uflags &= ~flags; in elf_flagdata() 60 return (rc); in elf_flagdata() 67 int rc; in elf_flagehdr() local 72 rc = elf->ed_ehflags |= flags; in elf_flagehdr() 74 return (rc); in elf_flagehdr() 78 rc = elf->ed_ehflags &= ~flags; in elf_flagehdr() 80 return (rc); in elf_flagehdr() 90 int rc; in elf_flagelf() local [all …]
|
/titanic_41/usr/src/uts/common/ipp/ |
H A D | ippctl.c | 249 int rc; in _init() local 251 if ((rc = mod_install(&modlinkage)) != 0) { in _init() 253 return (rc); in _init() 256 return (rc); in _init() 265 int rc; in _fini() local 267 if ((rc = mod_remove(&modlinkage)) == 0) { in _fini() 268 return (rc); in _fini() 272 return (rc); in _fini() 299 int rc = DDI_FAILURE; in ippctl_info() local 304 rc = DDI_SUCCESS; in ippctl_info() [all …]
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/ |
H A D | piclfrutree.c | 478 picl_errno_t rc; in frutree_get_nodehdl() local 486 if ((rc = ptree_get_propval_by_name(nodeh, PICL_PROP_NAME, name, in frutree_get_nodehdl() 488 return (rc); in frutree_get_nodehdl() 557 picl_errno_t rc; in frutree_wd_evhandler() local 586 if ((rc = ptree_get_propval_by_name(wd_nodehdl, in frutree_wd_evhandler() 605 if ((rc = ptree_get_propval_by_name(wd_nodehdl, in frutree_wd_evhandler() 622 if ((rc = ptree_walk_tree_by_class(chassish, PICL_CLASS_FRU, in frutree_wd_evhandler() 633 if ((rc = post_piclevent(PICLEVENT_CONDITION_CHANGE, in frutree_wd_evhandler() 637 SANIBEL_PICLNODE_CPU, PICLEVENT_CONDITION_CHANGE, rc); in frutree_wd_evhandler() 1083 picl_errno_t rc = PICL_SUCCESS; in get_reference_handle() local [all …]
|