Lines Matching defs:ent
370 const struct pccard_product *ent;
380 if (sizeof *ent > ent_size)
396 for (ent = tab; ent->pp_vendor != 0; ent =
397 (const struct pccard_product *) ((const char *) ent + ent_size)) {
399 if (ent->pp_vendor == PCCARD_VENDOR_ANY &&
400 ent->pp_product == PCCARD_PRODUCT_ANY &&
401 ent->pp_cis[0] == NULL &&
402 ent->pp_cis[1] == NULL) {
403 if (ent->pp_name)
406 ent->pp_name);
409 if (matches && ent->pp_vendor != PCCARD_VENDOR_ANY &&
410 vendor != ent->pp_vendor)
412 if (matches && ent->pp_product != PCCARD_PRODUCT_ANY &&
413 prod != ent->pp_product)
415 if (matches && ent->pp_cis[0] &&
417 strcmp(ent->pp_cis[0], vendorstr) != 0))
419 if (matches && ent->pp_cis[1] &&
421 strcmp(ent->pp_cis[1], prodstr) != 0))
423 if (matches && ent->pp_cis[2] &&
425 strcmp(ent->pp_cis[2], cis3str) != 0))
427 if (matches && ent->pp_cis[3] &&
429 strcmp(ent->pp_cis[3], cis4str) != 0))
432 matches = (*matchfn)(dev, ent, matches);
434 return (ent);