Lines Matching refs:candidate
100 ipsa_t *retval, *candidate;
190 candidate = NULL;
194 ASSERT((candidate == NULL) ||
195 MUTEX_HELD(&candidate->ipsa_lock));
338 * is held in reserve (stored in candidate).
340 * For those stored in candidate, take best-match (i.e. given
341 * a choice, candidate should have non-zero ipsa_src).
364 * I found a candidate..
366 if (candidate == NULL) {
370 candidate = retval;
375 * If candidate's source address is zero and
377 * not zero, we have a better candidate..
379 if (IPSA_IS_ADDR_UNSPEC(candidate->ipsa_srcaddr, af) &&
381 mutex_exit(&candidate->ipsa_lock);
382 candidate = retval;
391 ASSERT((candidate == NULL) || MUTEX_HELD(&candidate->ipsa_lock));
393 ASSERT((candidate == NULL) || (candact != NULL));
396 if (retval == NULL && candidate == NULL)
400 ASSERT(MUTEX_HELD(&candidate->ipsa_lock));
401 retval = candidate;
403 } else if (candidate != NULL) {
404 mutex_exit(&candidate->ipsa_lock);