Lines Matching defs:instance

63  * These values are kept in the per-instance structure, and are initialized
1072 * There is also a per-instance array of objects, which correspond
1087 uint_t do_token_idx; /* index in per-instance table */
1192 * Session management: each instance is associated with an array
1227 * Per-instance info.
1230 kmutex_t ds_lock; /* per-instance lock */
1238 dprov_session_t **ds_sessions; /* sessions for this instance */
1249 * A taskq is associated with each instance of the pseudo driver in order
1616 /* retrieve the softc and instance number from a SPI crypto context */
1617 #define DPROV_SOFTC_FROM_CTX(ctx, softc, instance) { \
1619 (instance) = ddi_get_instance((softc)->ds_dip); \
1622 /* retrieve the softc and instance number from a taskq request */
1623 #define DPROV_SOFTC_FROM_REQ(req, softc, instance) { \
1625 (instance) = ddi_get_instance((softc)->ds_dip); \
1730 int instance = getminor((dev_t)arg);
1734 instance));
1738 softc = ddi_get_soft_state(statep, instance);
1743 *result = (void *)(uintptr_t)instance;
1752 int instance = ddi_get_instance(dip);
1758 instance));
1765 if (ddi_soft_state_zalloc(statep, instance) != DDI_SUCCESS)
1768 softc = ddi_get_soft_state(statep, instance);
1774 (void) sprintf(devname, "dprov%d", instance);
1775 if (ddi_create_minor_node(dip, devname, S_IFCHR, instance,
1779 ddi_soft_state_free(statep, instance);
1839 ddi_soft_state_free(statep, instance);
1856 int instance = ddi_get_instance(dip);
1857 dprov_state_t *softc = ddi_get_soft_state(statep, instance);
1862 instance));
1899 ddi_soft_state_free(statep, instance);
1928 int instance;
1930 /* extract softc and instance number from context */
1931 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
1932 DPROV_DEBUG(D_DIGEST, ("(%d) dprov_digest_init: started\n", instance));
1951 instance, error));
1963 int instance;
1968 /* extract softc and instance number from context */
1969 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
1970 DPROV_DEBUG(D_DIGEST, ("(%d) dprov_digest: started\n", instance));
1977 instance, error));
1989 int instance;
1991 /* extract softc and instance number from context */
1992 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
1994 instance));
2001 instance, error));
2012 int instance;
2014 /* extract softc and instance number from context */
2015 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2016 DPROV_DEBUG(D_DIGEST, ("(%d) dprov_digest_key: started\n", instance));
2023 instance, error));
2035 int instance;
2037 /* extract softc and instance number from context */
2038 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2039 DPROV_DEBUG(D_DIGEST, ("(%d) dprov_digest_final: started\n", instance));
2046 instance, error));
2061 int instance;
2066 instance = ddi_get_instance(softc->ds_dip);
2068 instance));
2087 instance, error));
2124 int instance;
2126 /* extract softc and instance number from context */
2127 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2128 DPROV_DEBUG(D_MAC, ("(%d) dprov_mac_init: started\n", instance));
2145 instance, error));
2157 int instance;
2159 /* extract softc and instance number from context */
2160 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2161 DPROV_DEBUG(D_MAC, ("(%d) dprov_mac: started\n", instance));
2167 DPROV_DEBUG(D_MAC, ("(%d) dprov_mac: done, err = 0x%x\n", instance,
2180 int instance;
2182 /* extract softc and instance number from context */
2183 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2184 DPROV_DEBUG(D_MAC, ("(%d) dprov_mac_update: started\n", instance));
2191 instance, error));
2202 int instance;
2204 /* extract softc and instance number from context */
2205 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2206 DPROV_DEBUG(D_MAC, ("(%d) dprov_mac_final: started\n", instance));
2213 instance, error));
2227 int instance;
2229 instance = ddi_get_instance(softc->ds_dip);
2230 DPROV_DEBUG(D_MAC, ("(%d) dprov_mac_atomic: started\n", instance));
2247 instance, error));
2261 int instance;
2263 instance = ddi_get_instance(softc->ds_dip);
2265 instance));
2282 instance, error));
2344 int instance;
2346 /* extract softc and instance number from context */
2347 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2349 instance));
2363 instance, error));
2376 int instance;
2378 /* extract softc and instance number from context */
2379 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2380 DPROV_DEBUG(D_CIPHER, ("(%d) dprov_encrypt: started\n", instance));
2387 instance, error));
2400 int instance;
2402 /* extract softc and instance number from context */
2403 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2405 instance));
2412 instance, error));
2425 int instance;
2427 /* extract softc and instance number from context */
2428 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2430 instance));
2437 instance, error));
2451 int instance;
2453 instance = ddi_get_instance(softc->ds_dip);
2454 DPROV_DEBUG(D_MAC, ("(%d) dprov_encrypt_atomic: started\n", instance));
2471 instance, error));
2485 int instance;
2487 /* extract softc and instance number from context */
2488 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2490 instance));
2504 instance, error));
2518 int instance;
2520 /* extract softc and instance number from context */
2521 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2522 DPROV_DEBUG(D_CIPHER, ("(%d) dprov_decrypt: started\n", instance));
2529 instance, error));
2542 int instance;
2544 /* extract softc and instance number from context */
2545 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2547 instance));
2554 instance, error));
2567 int instance;
2569 /* extract softc and instance number from context */
2570 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2572 instance));
2579 instance, error));
2593 int instance;
2595 instance = ddi_get_instance(softc->ds_dip);
2596 DPROV_DEBUG(D_MAC, ("(%d) dprov_decrypt_atomic: started\n", instance));
2613 instance, error));
2658 int instance;
2660 /* extract softc and instance number from context */
2661 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2662 DPROV_DEBUG(D_SIGN, ("(%d) dprov_sign_init: started\n", instance));
2679 instance, error));
2691 int instance;
2693 /* extract softc and instance number from context */
2694 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2695 DPROV_DEBUG(D_SIGN, ("(%d) dprov_sign: started\n", instance));
2702 instance, error));
2714 int instance;
2716 /* extract softc and instance number from context */
2717 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2718 DPROV_DEBUG(D_SIGN, ("(%d) dprov_sign_update: started\n", instance));
2725 instance, error));
2737 int instance;
2739 /* extract softc and instance number from context */
2740 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2741 DPROV_DEBUG(D_SIGN, ("(%d) dprov_sign_final: started\n", instance));
2748 instance, error));
2762 int instance;
2764 instance = ddi_get_instance(softc->ds_dip);
2765 DPROV_DEBUG(D_SIGN, ("(%d) dprov_sign_atomic: started\n", instance));
2782 instance, error));
2795 int instance;
2797 /* extract softc and instance number from context */
2798 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2800 instance));
2810 instance, error));
2822 int instance;
2824 /* extract softc and instance number from context */
2825 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2826 DPROV_DEBUG(D_SIGN, ("(%d) dprov_sign_recover: started\n", instance));
2833 instance, error));
2847 int instance;
2849 instance = ddi_get_instance(softc->ds_dip);
2851 instance));
2861 "err = 0x%x\n", instance, error));
2878 int instance;
2880 /* extract softc and instance number from context */
2881 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2882 DPROV_DEBUG(D_VERIFY, ("(%d) dprov_verify_init: started\n", instance));
2898 instance, error));
2910 int instance;
2912 /* extract softc and instance number from context */
2913 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2914 DPROV_DEBUG(D_VERIFY, ("(%d) dprov_verify: started\n", instance));
2921 instance, error));
2933 int instance;
2935 /* extract softc and instance number from context */
2936 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2938 instance));
2945 instance, error));
2957 int instance;
2959 /* extract softc and instance number from context */
2960 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
2961 DPROV_DEBUG(D_VERIFY, ("(%d) dprov_verify_final: started\n", instance));
2968 instance, error));
2982 int instance;
2984 instance = ddi_get_instance(softc->ds_dip);
2986 instance));
3003 instance, error));
3016 int instance;
3018 /* extract softc and instance number from context */
3019 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
3021 instance));
3031 "err = 0x%x\n", instance, error));
3043 int instance;
3045 /* extract softc and instance number from context */
3046 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
3048 instance));
3055 instance, error));
3069 int instance;
3071 instance = ddi_get_instance(softc->ds_dip);
3073 instance));
3083 "err = 0x%x\n", instance, error));
3100 int instance;
3102 /* extract softc and instance number from context */
3103 DPROV_SOFTC_FROM_CTX(digest_ctx, softc, instance);
3105 instance));
3115 "err = 0x%x\n", instance, error));
3128 int instance;
3130 /* extract softc and instance number from context */
3131 DPROV_SOFTC_FROM_CTX(decrypt_ctx, softc, instance);
3133 instance));
3143 "err = 0x%x\n", instance, error));
3156 int instance;
3158 /* extract softc and instance number from context */
3159 DPROV_SOFTC_FROM_CTX(sign_ctx, softc, instance);
3161 instance));
3171 "err = 0x%x\n", instance, error));
3184 int instance;
3186 /* extract softc and instance number from context */
3187 DPROV_SOFTC_FROM_CTX(decrypt_ctx, softc, instance);
3189 instance));
3199 "err = 0x%x\n", instance, error));
3218 int instance;
3220 /* extract softc and instance number from context */
3221 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
3223 instance));
3248 "err = 0x%x\n", instance, error));
3260 int instance;
3262 /* extract softc and instance number from context */
3263 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
3265 instance));
3276 "err = 0x%x\n", instance, error));
3288 int instance;
3290 /* extract softc and instance number from context */
3291 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
3293 instance));
3301 "err = 0x%x\n", instance, error));
3314 int instance;
3316 /* extract softc and instance number from context */
3317 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
3319 instance));
3327 "err = 0x%x\n", instance, error));
3345 int instance;
3347 instance = ddi_get_instance(softc->ds_dip);
3349 instance));
3374 "err = 0x%x\n", instance, error));
3389 int instance;
3391 /* extract softc and instance number from context */
3392 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
3394 instance));
3419 "err = 0x%x\n", instance, error));
3431 int instance;
3433 /* extract softc and instance number from context */
3434 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
3436 instance));
3444 "err = 0x%x\n", instance, error));
3456 int instance;
3458 /* extract softc and instance number from context */
3459 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
3461 instance));
3469 "err = 0x%x\n", instance, error));
3481 int instance;
3483 /* extract softc and instance number from context */
3484 DPROV_SOFTC_FROM_CTX(ctx, softc, instance);
3486 instance));
3494 "err = 0x%x\n", instance, error));
3512 int instance;
3514 instance = ddi_get_instance(softc->ds_dip);
3516 instance));
3541 "err = 0x%x\n", instance, error));
3559 int instance;
3561 instance = ddi_get_instance(softc->ds_dip);
3563 "started\n", instance));
3588 "err = 0x%x\n", instance, error));
3605 int instance;
3607 instance = ddi_get_instance(softc->ds_dip);
3609 instance));
3615 instance, error));
3627 int instance;
3629 instance = ddi_get_instance(softc->ds_dip);
3631 instance));
3637 "err = 0x0%x\n", instance, error));
3653 int instance;
3655 instance = ddi_get_instance(softc->ds_dip);
3657 instance));
3663 instance, error));
3675 int instance;
3677 instance = ddi_get_instance(softc->ds_dip);
3679 instance));
3685 instance, error));
3698 int instance;
3700 instance = ddi_get_instance(softc->ds_dip);
3702 instance));
3708 instance, error));
3720 int instance;
3722 instance = ddi_get_instance(softc->ds_dip);
3724 instance));
3730 instance, error));
3748 int instance;
3750 instance = ddi_get_instance(softc->ds_dip);
3752 instance));
3760 instance, error));
3774 int instance;
3776 instance = ddi_get_instance(softc->ds_dip);
3778 instance));
3786 instance, error));
3799 int instance;
3801 instance = ddi_get_instance(softc->ds_dip);
3803 instance));
3811 instance, error));
3824 int instance;
3826 instance = ddi_get_instance(softc->ds_dip);
3828 instance));
3836 instance, error));
3850 int instance;
3852 instance = ddi_get_instance(softc->ds_dip);
3854 "started\n", instance));
3862 "done err = 0x0%x\n", instance, error));
3876 int instance;
3878 instance = ddi_get_instance(softc->ds_dip);
3880 "started\n", instance));
3888 "done err = 0x0%x\n", instance, error));
3902 int instance;
3904 instance = ddi_get_instance(softc->ds_dip);
3906 instance));
3914 "err = 0x0%x\n", instance, error));
3927 int instance;
3929 instance = ddi_get_instance(softc->ds_dip);
3931 instance));
3940 instance, error));
3952 int instance;
3954 instance = ddi_get_instance(softc->ds_dip);
3956 instance));
3964 "err = 0x0%x\n", instance, error));
3982 int instance;
3984 instance = ddi_get_instance(softc->ds_dip);
3986 instance));
3994 instance, error));
4012 int instance;
4014 instance = ddi_get_instance(softc->ds_dip);
4016 instance));
4026 instance, error));
4040 int instance;
4042 instance = ddi_get_instance(softc->ds_dip);
4044 instance));
4053 instance, error));
4068 int instance;
4070 instance = ddi_get_instance(softc->ds_dip);
4072 instance));
4081 instance, error));
4095 int instance;
4097 instance = ddi_get_instance(softc->ds_dip);
4099 instance));
4107 instance, error));
4123 int instance;
4125 instance = ddi_get_instance(softc->ds_dip);
4127 instance));
4133 instance, error));
4145 int instance;
4147 instance = ddi_get_instance(softc->ds_dip);
4149 instance));
4155 instance, error));
4168 int instance;
4170 instance = ddi_get_instance(softc->ds_dip);
4172 instance));
4178 instance, error));
4191 int instance;
4193 instance = ddi_get_instance(softc->ds_dip);
4195 instance));
4201 instance, error));
4917 int instance;
4919 instance = ddi_get_instance(softc->ds_dip);
4921 instance));
4930 "done err = 0x0%x\n", instance, error));
4951 int instance;
4953 instance = ddi_get_instance(softc->ds_dip);
4955 instance));
4966 "done err = 0x0%x\n", instance, error));
4981 int instance;
4983 instance = ddi_get_instance(softc->ds_dip);
4985 instance));
4994 "done err = 0x0%x\n", instance, error));
5408 int instance;
5413 DPROV_SOFTC_FROM_REQ(taskq_req, softc, instance);
5414 DPROV_DEBUG(D_DIGEST, ("(%d) dprov_digest_task: started\n", instance));
5512 DPROV_DEBUG(D_DIGEST, ("(%d) dprov_digest_task: end\n", instance));
5524 int instance;
5530 DPROV_SOFTC_FROM_REQ(taskq_req, softc, instance);
5531 DPROV_DEBUG(D_MAC, ("(%d) dprov_mac_task: started\n", instance));
5628 DPROV_DEBUG(D_MAC, ("(%d) dprov_mac_task: end\n", instance));
5640 int instance;
5646 DPROV_SOFTC_FROM_REQ(taskq_req, softc, instance);
5647 DPROV_DEBUG(D_SIGN, ("(%d) dprov_sign_task: started\n", instance));
5823 DPROV_DEBUG(D_SIGN, ("(%d) dprov_sign_task: end\n", instance));
5860 int instance;
5866 DPROV_SOFTC_FROM_REQ(taskq_req, softc, instance);
5867 DPROV_DEBUG(D_VERIFY, ("(%d) dprov_verify_task: started\n", instance));
6051 DPROV_DEBUG(D_VERIFY, ("(%d) dprov_verify_task: end\n", instance));
6062 int instance;
6067 DPROV_SOFTC_FROM_REQ(taskq_req, softc, instance);
6068 DPROV_DEBUG(D_DUAL, ("(%d) dprov_dual_task: started\n", instance));
6106 DPROV_DEBUG(D_DUAL, ("(%d) dprov_dual_task: end\n", instance));
6118 int instance;
6124 DPROV_SOFTC_FROM_REQ(taskq_req, softc, instance);
6125 DPROV_DEBUG(D_CIPHER, ("(%d) dprov_cipher_task: started\n", instance));
6299 DPROV_DEBUG(D_MAC, ("(%d) dprov_mac_task: end\n", instance));
6352 int instance;
6366 DPROV_SOFTC_FROM_REQ(taskq_req, softc, instance);
6368 instance));
6732 instance));
6743 int instance;
6746 DPROV_SOFTC_FROM_REQ(taskq_req, softc, instance);
6747 DPROV_DEBUG(D_RANDOM, ("(%d) dprov_random_task: started\n", instance));
6778 DPROV_DEBUG(D_RANDOM, ("(%d) dprov_random_task: end\n", instance));
6790 int instance;
6798 DPROV_SOFTC_FROM_REQ(taskq_req, softc, instance);
6800 instance));
6972 DPROV_DEBUG(D_SESSION, ("(%d) dprov_session_task: end\n", instance));
7008 int instance;
7018 DPROV_SOFTC_FROM_REQ(taskq_req, softc, instance);
7019 DPROV_DEBUG(D_OBJECT, ("(%d) dprov_object_task: started\n", instance));
7328 DPROV_DEBUG(D_OBJECT, ("(%d) dprov_object_task: end\n", instance));
7405 int instance;
7411 DPROV_SOFTC_FROM_REQ(taskq_req, softc, instance);
7412 DPROV_DEBUG(D_KEY, ("(%d) dprov_key_task: started\n", instance));
8487 DPROV_DEBUG(D_KEY, ("(%d) dprov_key_task: end\n", instance));
8498 int instance;
8501 DPROV_SOFTC_FROM_REQ(taskq_req, softc, instance);
8502 DPROV_DEBUG(D_DIGEST, ("(%d) dprov_mgmt_task: started\n", instance));
8525 instance, DPROV_ALLSPACES);
8694 DPROV_DEBUG(D_DIGEST, ("(%d) dprov_mgmt_task: end\n", instance));
9106 * object is a token object, it is added to the per-instance object
9149 /* token object, add it to the per-instance object table */
9308 /* remove from per-instance token table */