Lines Matching +full:vendor +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0
3 * compat.c - A series of functions to make it easier to convert drivers that use
13 static void pnp_convert_id(char *buf, unsigned short vendor, in pnp_convert_id() argument
17 'A' + ((vendor >> 2) & 0x3f) - 1, in pnp_convert_id()
18 'A' + (((vendor & 3) << 3) | ((vendor >> 13) & 7)) - 1, in pnp_convert_id()
19 'A' + ((vendor >> 8) & 0x1f) - 1, in pnp_convert_id()
24 struct pnp_dev *pnp_find_dev(struct pnp_card *card, unsigned short vendor, in pnp_find_dev() argument
27 char id[8]; in pnp_find_dev() local
30 pnp_convert_id(id, vendor, function); in pnp_find_dev()
37 list = from->global_list.next; in pnp_find_dev()
42 if (compare_pnp_id(dev->id, id) || in pnp_find_dev()
43 (memcmp(id, any, 7) == 0)) in pnp_find_dev()
45 list = list->next; in pnp_find_dev()
50 list = card->devices.next; in pnp_find_dev()
52 list = from->card_list.next; in pnp_find_dev()
53 if (from->card != card) /* something is wrong */ in pnp_find_dev()
56 while (list != &card->devices) { in pnp_find_dev()
59 if (compare_pnp_id(dev->id, id)) in pnp_find_dev()
61 list = list->next; in pnp_find_dev()