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