Lines Matching defs:quirk
57 #include <dev/usb/quirk/usb_quirk.h>
573 * This function converts an USB quirk code into a string.
576 usb_quirkstr(uint16_t quirk)
578 return ((quirk < USB_QUIRK_MAX) ?
579 usb_quirk_str[quirk] : "USB_QUIRK_UNKNOWN");
590 usb_test_quirk_by_info(const struct usbd_lookup_info *info, uint16_t quirk)
595 if (quirk == UQ_NONE)
601 /* see if quirk information does not match */
607 /* see if quirk only should match vendor ID */
619 /* lookup quirk */
621 if (usb_quirks[x].quirks[y] == quirk) {
623 DPRINTF("Found quirk '%s'.\n", usb_quirkstr(quirk));
627 /* no quirk found */
632 return (0); /* no quirk match */
649 /* see if quirk information does not match */
665 /* see if quirk information does not match */
685 * usb_quirk_ioctl - handle quirk IOCTLs
739 /* convert quirk string into numerical */
777 /* convert quirk string into numerical */
812 /* all quirk entries are unused - release */
828 mtx_init(&usb_quirk_mtx, "USB quirk", NULL, MTX_DEF);