Lines Matching refs:hidquirks
83 static struct hidquirk_entry hidquirks[HID_DEV_QUIRKS_MAX] = {
222 if ((hidquirks[x].bus != info->idBus) ||
223 (hidquirks[x].vid != info->idVendor) ||
224 (hidquirks[x].lo_rev > info->idVersion) ||
225 (hidquirks[x].hi_rev < info->idVersion)) {
229 if (hidquirks[x].pid != info->idProduct) {
230 if (hidquirks[x].pid != 0)
234 if (hidquirks[x].quirks[y] == HQ_MATCH_VENDOR_ONLY)
242 if (hidquirks[x].quirks[y] == quirk) {
264 return (hidquirks + HID_DEV_QUIRKS_MAX - 1);
269 if ((hidquirks[x].bus != bus) ||
270 (hidquirks[x].vid != vid) ||
271 (hidquirks[x].pid != pid) ||
272 (hidquirks[x].lo_rev != lo_rev) ||
273 (hidquirks[x].hi_rev != hi_rev)) {
276 return (hidquirks + x);
286 if ((hidquirks[x].bus |
287 hidquirks[x].vid |
288 hidquirks[x].pid |
289 hidquirks[x].lo_rev |
290 hidquirks[x].hi_rev) != 0) {
293 hidquirks[x].bus = bus;
294 hidquirks[x].vid = vid;
295 hidquirks[x].pid = pid;
296 hidquirks[x].lo_rev = lo_rev;
297 hidquirks[x].hi_rev = hi_rev;
299 return (hidquirks + x);