Lines Matching refs:quirk
675 usb_quirkstr(uint16_t quirk) in usb_quirkstr() argument
677 return ((quirk < USB_QUIRK_MAX && usb_quirk_str[quirk] != NULL) ? in usb_quirkstr()
678 usb_quirk_str[quirk] : "UQ_UNKNOWN"); in usb_quirkstr()
693 const char *quirk; in usb_strquirk() local
697 quirk = usb_quirkstr(x); in usb_strquirk()
698 if (strncmp(str, quirk, len) == 0 && in usb_strquirk()
699 quirk[len] == 0) in usb_strquirk()
713 usb_test_quirk_by_info(const struct usbd_lookup_info *info, uint16_t quirk) in usb_test_quirk_by_info() argument
718 if (quirk == UQ_NONE) in usb_test_quirk_by_info()
744 if (usb_quirks[x].quirks[y] == quirk) { in usb_test_quirk_by_info()
746 DPRINTF("Found quirk '%s'.\n", usb_quirkstr(quirk)); in usb_test_quirk_by_info()
978 uint16_t quirk; in usb_quirk_add_entry_from_str() local
1007 quirk = usb_strquirk(env, end - env); in usb_quirk_add_entry_from_str()
1008 if (quirk < USB_QUIRK_MAX) { in usb_quirk_add_entry_from_str()
1009 entry.quirks[quirk_idx++] = quirk; in usb_quirk_add_entry_from_str()