Lines Matching defs:id
48 struct usb_device_id *id = whitelist_table;
62 for (id = whitelist_table; id->match_flags; id++) {
63 if ((id->match_flags & USB_DEVICE_ID_MATCH_VENDOR) &&
64 id->idVendor != le16_to_cpu(dev->descriptor.idVendor))
67 if ((id->match_flags & USB_DEVICE_ID_MATCH_PRODUCT) &&
68 id->idProduct != le16_to_cpu(dev->descriptor.idProduct))
71 /* No need to test id->bcdDevice_lo != 0, since 0 is never
73 if ((id->match_flags & USB_DEVICE_ID_MATCH_DEV_LO) &&
74 (id->bcdDevice_lo > le16_to_cpu(dev->descriptor.bcdDevice)))
77 if ((id->match_flags & USB_DEVICE_ID_MATCH_DEV_HI) &&
78 (id->bcdDevice_hi < le16_to_cpu(dev->descriptor.bcdDevice)))
81 if ((id->match_flags & USB_DEVICE_ID_MATCH_DEV_CLASS) &&
82 (id->bDeviceClass != dev->descriptor.bDeviceClass))
85 if ((id->match_flags & USB_DEVICE_ID_MATCH_DEV_SUBCLASS) &&
86 (id->bDeviceSubClass!= dev->descriptor.bDeviceSubClass))
89 if ((id->match_flags & USB_DEVICE_ID_MATCH_DEV_PROTOCOL) &&
90 (id->bDeviceProtocol != dev->descriptor.bDeviceProtocol))