Home | History | Annotate | Download | only in isapnp

Lines Matching refs:best

393  *	Return the best configuration for each logical device, remove and
399 struct isapnp_attach_args *c, *best, *f = *ipa;
408 /* Find the best config */
409 for (best = c = f; c != NULL; c = c->ipa_sibling) {
412 if (c->ipa_pref < best->ipa_pref)
413 best = c;
418 * it to test the best config!
420 best->ipa_ic = sc->sc_ic;
422 /* Test the best config */
423 error = isapnp_testconfig(sc->sc_iot, sc->sc_memt, best, 0);
426 if (best == f)
429 for (c = f; c->ipa_sibling != best; c = c->ipa_sibling)
431 c->ipa_sibling = best->ipa_sibling;
435 best->ipa_pref = ISAPNP_DEP_CONFLICTING;
438 if (c != best && SAMEDEV(c, best))
443 return best;
446 ISAPNP_FREE(best);
454 if (c == best)
457 if (SAMEDEV(c, best))
473 return best;