Lines Matching defs:dev
41 static int is_targeted(struct usb_device *dev)
46 if ((le16_to_cpu(dev->descriptor.idVendor) == 0x1a0a &&
47 le16_to_cpu(dev->descriptor.idProduct) == 0xbadd))
51 if ((le16_to_cpu(dev->descriptor.idVendor) == 0x1a0a &&
52 le16_to_cpu(dev->descriptor.idProduct) == 0x0200))
60 id->idVendor != le16_to_cpu(dev->descriptor.idVendor))
64 id->idProduct != le16_to_cpu(dev->descriptor.idProduct))
70 (id->bcdDevice_lo > le16_to_cpu(dev->descriptor.bcdDevice)))
74 (id->bcdDevice_hi < le16_to_cpu(dev->descriptor.bcdDevice)))
78 (id->bDeviceClass != dev->descriptor.bDeviceClass))
82 (id->bDeviceSubClass != dev->descriptor.bDeviceSubClass))
86 (id->bDeviceProtocol != dev->descriptor.bDeviceProtocol))
96 dev_err(&dev->dev, "device v%04x p%04x is not supported\n",
97 le16_to_cpu(dev->descriptor.idVendor),
98 le16_to_cpu(dev->descriptor.idProduct));