Lines Matching defs:cfe
233 pf->cfe = NULL;
266 * cfe up front). This is the biggest depature from the
279 * model, the probe routine can select a cfe and try to
285 * enough to override the cfe we pick, then chances are very
313 * Probe may fail AND also try to select a cfe, if so, free
314 * it. This is how we do cfe override. Or the attach fails.
317 if (pf->cfe != NULL)
319 pf->cfe = NULL;
329 struct pccard_config_entry *cfe;
343 if (pf->cfe != NULL)
354 while (NULL != (cfe = STAILQ_FIRST(&pf->cfe_head))) {
356 free(cfe, M_DEVBUF);
442 * Select a cfe entry to use. Should be called from the pccard's probe
455 return (pf->cfe ? 0 : ENOMEM);
471 struct pccard_config_entry *cfe;
491 if (pf->cfe != NULL)
499 STAILQ_FOREACH(cfe, &pf->cfe_head, cfe_list) {
500 if (cfe->iftype != PCCARD_IFTYPE_IO)
502 if (entry != -1 && cfe->number != entry)
505 for (i = 0; i < cfe->num_iospace; i++) {
506 ios = cfe->iospace + i;
529 for (i = 0; i < cfe->num_memspace; i++) {
530 mems = cfe->memspace + i;
559 if (cfe->irqmask) {
574 pf->cfe = cfe;
577 DEVPRVERBOSE((bus, "Allocation failed for cfe %d\n",
578 cfe->number));
662 if (pf->cfe == NULL) {
714 reg = (pf->cfe->number & PCCARD_CCR_OPTION_CFINDEX);
724 if ((pf->cfe->flags & PCCARD_CFE_IO16) == 0)
726 if (pf->cfe->flags & PCCARD_CFE_AUDIO)
776 if (pf->cfe == NULL)
918 devi->pf->cfe->number);