Lines Matching refs:pDevId
149 ms_usb_match_id(struct usb_interface *pUintf, const struct usb_device_id *pDevId) in ms_usb_match_id() argument
154 if (pDevId == NULL) in ms_usb_match_id()
160 for (; pDevId->idVendor || pDevId->bDeviceClass || pDevId->bInterfaceClass || in ms_usb_match_id()
161 pDevId->match_id_info; pDevId++) in ms_usb_match_id()
163 if ((pDevId->match_id_flags & USBDEV_MATCH_ID_VENDOR) && in ms_usb_match_id()
164 pDevId->idVendor != pUdev->descriptor.idVendor) in ms_usb_match_id()
167 if ((pDevId->match_id_flags & USBDEV_MATCH_ID_PRODUCT) && in ms_usb_match_id()
168 pDevId->idProduct != pUdev->descriptor.idProduct) in ms_usb_match_id()
171 if ((pDevId->match_id_flags & USBDEV_MATCH_ID_DEV_LO) && in ms_usb_match_id()
172 (pDevId->bcdDevice_lo >= pUdev->descriptor.bcdDevice)) in ms_usb_match_id()
175 if ((pDevId->match_id_flags & USBDEV_MATCH_ID_DEV_HI) && in ms_usb_match_id()
176 (pDevId->bcdDevice_hi <= pUdev->descriptor.bcdDevice)) in ms_usb_match_id()
179 if ((pDevId->match_id_flags & USBDEV_MATCH_ID_DEV_CLASS) && in ms_usb_match_id()
180 (pDevId->bDeviceClass != pUdev->descriptor.bDeviceClass)) in ms_usb_match_id()
183 if ((pDevId->match_id_flags & USBDEV_MATCH_ID_DEV_SUBCLASS) && in ms_usb_match_id()
184 (pDevId->bDeviceSubClass!= pUdev->descriptor.bDeviceSubClass)) in ms_usb_match_id()
187 if ((pDevId->match_id_flags & USBDEV_MATCH_ID_DEV_PROTOCOL) && in ms_usb_match_id()
188 (pDevId->bDeviceProtocol != pUdev->descriptor.bDeviceProtocol)) in ms_usb_match_id()
191 if ((pDevId->match_id_flags & USBDEV_MATCH_ID_INT_CLASS) && in ms_usb_match_id()
192 (pDevId->bInterfaceClass != ms_intf->desc.bInterfaceClass)) in ms_usb_match_id()
195 if ((pDevId->match_id_flags & USBDEV_MATCH_ID_INT_SUBCLASS) && in ms_usb_match_id()
196 (pDevId->bInterfaceSubClass != ms_intf->desc.bInterfaceSubClass)) in ms_usb_match_id()
199 if ((pDevId->match_id_flags & USBDEV_MATCH_ID_INT_PROTOCOL) && in ms_usb_match_id()
200 (pDevId->bInterfaceProtocol != ms_intf->desc.bInterfaceProtocol)) in ms_usb_match_id()
203 return pDevId; in ms_usb_match_id()