Lines Matching refs:did
45 const struct pcmcia_device_id *did = p_drv->id_table; in pcmcia_check_driver() local
53 while (did && did->match_flags) { in pcmcia_check_driver()
55 if (!did->prod_id[i]) in pcmcia_check_driver()
58 hash = crc32(0, did->prod_id[i], strlen(did->prod_id[i])); in pcmcia_check_driver()
59 if (hash == did->prod_id_hash[i]) in pcmcia_check_driver()
64 "be 0x%x\n", p_drv->name, did->prod_id[i], in pcmcia_check_driver()
65 did->prod_id_hash[i], hash); in pcmcia_check_driver()
70 did++; in pcmcia_check_driver()
797 const struct pcmcia_device_id *did) in pcmcia_devmatch() argument
799 if (did->match_flags & PCMCIA_DEV_ID_MATCH_MANF_ID) { in pcmcia_devmatch()
800 if ((!dev->has_manf_id) || (dev->manf_id != did->manf_id)) in pcmcia_devmatch()
804 if (did->match_flags & PCMCIA_DEV_ID_MATCH_CARD_ID) { in pcmcia_devmatch()
805 if ((!dev->has_card_id) || (dev->card_id != did->card_id)) in pcmcia_devmatch()
809 if (did->match_flags & PCMCIA_DEV_ID_MATCH_FUNCTION) { in pcmcia_devmatch()
810 if (dev->func != did->function) in pcmcia_devmatch()
814 if (did->match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID1) { in pcmcia_devmatch()
817 if (strcmp(did->prod_id[0], dev->prod_id[0])) in pcmcia_devmatch()
821 if (did->match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID2) { in pcmcia_devmatch()
824 if (strcmp(did->prod_id[1], dev->prod_id[1])) in pcmcia_devmatch()
828 if (did->match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID3) { in pcmcia_devmatch()
831 if (strcmp(did->prod_id[2], dev->prod_id[2])) in pcmcia_devmatch()
835 if (did->match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID4) { in pcmcia_devmatch()
838 if (strcmp(did->prod_id[3], dev->prod_id[3])) in pcmcia_devmatch()
842 if (did->match_flags & PCMCIA_DEV_ID_MATCH_DEVICE_NO) { in pcmcia_devmatch()
847 if (dev->device_no != did->device_no) in pcmcia_devmatch()
851 if (did->match_flags & PCMCIA_DEV_ID_MATCH_FUNC_ID) { in pcmcia_devmatch()
854 if ((!dev->has_func_id) || (dev->func_id != did->func_id)) in pcmcia_devmatch()
879 if (did->match_flags & PCMCIA_DEV_ID_MATCH_FAKE_CIS) { in pcmcia_devmatch()
882 if (pcmcia_load_firmware(dev, did->cisfile)) in pcmcia_devmatch()
886 if (did->match_flags & PCMCIA_DEV_ID_MATCH_ANONYMOUS) { in pcmcia_devmatch()
903 const struct pcmcia_device_id *did = p_drv->id_table; in pcmcia_bus_match() local
918 while (did && did->match_flags) { in pcmcia_bus_match()
920 if (pcmcia_devmatch(p_dev, did)) { in pcmcia_bus_match()
924 did++; in pcmcia_bus_match()