Lines Matching refs:id

24 	while (*drv_id->id) {  in match_card()
25 if (compare_pnp_id(card->id, drv_id->id)) { in match_card()
33 !*drv_id->devs[i].id) in match_card()
37 if (compare_pnp_id(dev->id, in match_card()
38 drv_id->devs[i].id)) { in match_card()
73 const struct pnp_card_device_id *id; in card_probe() local
79 id = match_card(drv, card); in card_probe()
80 if (!id) in card_probe()
90 if (drv->probe(clink, id) >= 0) in card_probe()
107 static struct pnp_id *pnp_add_card_id(struct pnp_card *card, char *id) in pnp_add_card_id() argument
115 dev_id->id[0] = id[0]; in pnp_add_card_id()
116 dev_id->id[1] = id[1]; in pnp_add_card_id()
117 dev_id->id[2] = id[2]; in pnp_add_card_id()
118 dev_id->id[3] = tolower(id[3]); in pnp_add_card_id()
119 dev_id->id[4] = tolower(id[4]); in pnp_add_card_id()
120 dev_id->id[5] = tolower(id[5]); in pnp_add_card_id()
121 dev_id->id[6] = tolower(id[6]); in pnp_add_card_id()
122 dev_id->id[7] = '\0'; in pnp_add_card_id()
125 ptr = card->id; in pnp_add_card_id()
131 card->id = dev_id; in pnp_add_card_id()
138 struct pnp_id *id; in pnp_free_card_ids() local
141 id = card->id; in pnp_free_card_ids()
142 while (id) { in pnp_free_card_ids()
143 next = id->next; in pnp_free_card_ids()
144 kfree(id); in pnp_free_card_ids()
145 id = next; in pnp_free_card_ids()
157 struct pnp_card *pnp_alloc_card(struct pnp_protocol *protocol, int id, char *pnpid) in pnp_alloc_card() argument
167 card->number = id; in pnp_alloc_card()
201 struct pnp_id *pos = card->id; in card_id_show()
204 str += sprintf(str, "%s\n", pos->id); in card_id_show()
329 const char *id, struct pnp_dev *from) in pnp_request_card_device() argument
336 if (!clink || !id) in pnp_request_card_device()
350 if ((!dev->card_link) && compare_pnp_id(dev->id, id)) in pnp_request_card_device()