Lines Matching +full:neo +full:- +full:8
1 // SPDX-License-Identifier: GPL-2.0
3 * compat.c - A series of functions to make it easier to convert drivers that use
6 * Copyright 2002 Adam Belay <ambx1@neo.rr.com>
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()
21 (device >> 12) & 0x0f, (device >> 8) & 0x0f); in pnp_convert_id()
27 char id[8]; in pnp_find_dev()
28 char any[8]; 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()
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()