Lines Matching defs:ictx
121 * ictx - Framework private context pointer
126 kcf_areqnode_alloc(kcf_provider_desc_t *pd, kcf_context_t *ictx,
139 arptr->an_context = ictx;
153 if (ictx == NULL)
156 KCF_CONTEXT_REFHOLD(ictx);
160 mutex_enter(&ictx->kc_in_use_lock);
162 if ((areq = ictx->kc_req_chain_last) == NULL) {
164 ictx->kc_req_chain_last =
165 ictx->kc_req_chain_first = arptr;
167 ASSERT(ictx->kc_req_chain_first != NULL);
171 ictx->kc_req_chain_last = arptr;
173 mutex_exit(&ictx->kc_in_use_lock);
295 kcf_context_t *ictx;
303 ctx = (ictx = areq->an_context) ? &ictx->kc_glbl_ctx : NULL;
314 if (ictx != NULL) {
315 ASSERT(ictx->kc_prov_desc == areq->an_provider);
494 kcf_context_t *ictx;
533 if ((ictx = areq->an_context) != NULL) {
536 ASSERT(old_pd == ictx->kc_prov_desc);
537 KCF_PROV_REFRELE(ictx->kc_prov_desc);
539 ictx->kc_prov_desc = new_pd;
541 ctx = &ictx->kc_glbl_ctx;
876 kcf_removereq_in_ctxchain(kcf_context_t *ictx, kcf_areq_node_t *areq)
883 ASSERT(ictx != NULL);
884 mutex_enter(&ictx->kc_in_use_lock);
885 prev = cur = ictx->kc_req_chain_first;
890 if ((ictx->kc_req_chain_first =
892 ictx->kc_req_chain_last = NULL;
894 if (cur == ictx->kc_req_chain_last)
895 ictx->kc_req_chain_last = prev;
904 mutex_exit(&ictx->kc_in_use_lock);
1180 kcf_context_t *ictx;
1203 if ((ictx = areq->an_context) != NULL) {
1210 mutex_enter(&ictx->kc_in_use_lock);
1219 ictx->kc_req_chain_first = nextreq;
1221 ictx->kc_req_chain_last = NULL;
1222 mutex_exit(&ictx->kc_in_use_lock);
1226 KCF_CONTEXT_REFRELE(ictx);
1235 KCF_CONTEXT_REFRELE(ictx);
1377 * - ictx->kc_in_use_lock (from kcf_removereq_in_ctxchain())
1387 kcf_context_t *ictx;
1412 if ((ictx = areq->an_context) != NULL)
1413 kcf_removereq_in_ctxchain(ictx, areq);
1470 kcf_context_t *ictx;
1476 ictx = (kcf_context_t *)((crypto_ctx_t *)ctx)->cc_framework_private;
1478 mutex_enter(&ictx->kc_in_use_lock);
1481 while ((areq = ictx->kc_req_chain_first) != NULL) {
1489 mutex_exit(&ictx->kc_in_use_lock);
1494 mutex_enter(&ictx->kc_in_use_lock);
1497 mutex_exit(&ictx->kc_in_use_lock);
1498 KCF_CONTEXT_REFRELE(ictx);