Lines Matching refs:candidate
100 ipsa_t *retval, *candidate; in ipsec_getassocbyconn() local
190 candidate = NULL; in ipsec_getassocbyconn()
194 ASSERT((candidate == NULL) || in ipsec_getassocbyconn()
195 MUTEX_HELD(&candidate->ipsa_lock)); in ipsec_getassocbyconn()
366 if (candidate == NULL) { in ipsec_getassocbyconn()
370 candidate = retval; in ipsec_getassocbyconn()
379 if (IPSA_IS_ADDR_UNSPEC(candidate->ipsa_srcaddr, af) && in ipsec_getassocbyconn()
381 mutex_exit(&candidate->ipsa_lock); in ipsec_getassocbyconn()
382 candidate = retval; in ipsec_getassocbyconn()
391 ASSERT((candidate == NULL) || MUTEX_HELD(&candidate->ipsa_lock)); in ipsec_getassocbyconn()
393 ASSERT((candidate == NULL) || (candact != NULL)); in ipsec_getassocbyconn()
396 if (retval == NULL && candidate == NULL) in ipsec_getassocbyconn()
400 ASSERT(MUTEX_HELD(&candidate->ipsa_lock)); in ipsec_getassocbyconn()
401 retval = candidate; in ipsec_getassocbyconn()
403 } else if (candidate != NULL) { in ipsec_getassocbyconn()
404 mutex_exit(&candidate->ipsa_lock); in ipsec_getassocbyconn()