Lines Matching refs:uaa
717 struct usb_attach_arg *uaa = device_get_ivars(dev); in uhid_probe() local
724 if (uaa->usb_mode != USB_MODE_HOST) in uhid_probe()
727 error = usbd_lookup_id_by_uaa(uhid_devs, sizeof(uhid_devs), uaa); in uhid_probe()
731 if (usb_test_quirk(uaa, UQ_HID_IGNORE)) in uhid_probe()
739 if ((uaa->info.bInterfaceClass == UICLASS_HID) && in uhid_probe()
740 (uaa->info.bInterfaceSubClass == UISUBCLASS_BOOT) && in uhid_probe()
741 (((uaa->info.bInterfaceProtocol == UIPROTO_BOOT_KEYBOARD) && in uhid_probe()
742 !usb_test_quirk(uaa, UQ_KBD_IGNORE)) || in uhid_probe()
743 ((uaa->info.bInterfaceProtocol == UIPROTO_MOUSE) && in uhid_probe()
744 !usb_test_quirk(uaa, UQ_UMS_IGNORE)))) in uhid_probe()
748 if (!usb_test_quirk(uaa, UQ_WMT_IGNORE)) { in uhid_probe()
749 error = usbd_req_get_hid_desc(uaa->device, NULL, in uhid_probe()
750 &buf, &len, M_USBDEV, uaa->info.bIfaceIndex); in uhid_probe()
772 struct usb_attach_arg *uaa = device_get_ivars(dev); in uhid_attach() local
783 sc->sc_udev = uaa->device; in uhid_attach()
785 sc->sc_iface_no = uaa->info.bIfaceNum; in uhid_attach()
786 sc->sc_iface_index = uaa->info.bIfaceIndex; in uhid_attach()
788 error = usbd_transfer_setup(uaa->device, in uhid_attach()
789 &uaa->info.bIfaceIndex, sc->sc_xfer, uhid_config, in uhid_attach()
796 if (uaa->info.idVendor == USB_VENDOR_WACOM) { in uhid_attach()
799 if (uaa->info.idProduct == USB_PRODUCT_WACOM_GRAPHIRE) { in uhid_attach()
804 } else if (uaa->info.idProduct == USB_PRODUCT_WACOM_GRAPHIRE3_4X5) { in uhid_attach()
812 error = usbd_req_set_report(uaa->device, NULL, in uhid_attach()
814 uaa->info.bIfaceIndex, UHID_FEATURE_REPORT, 2); in uhid_attach()
824 } else if ((uaa->info.bInterfaceClass == UICLASS_VENDOR) && in uhid_attach()
825 (uaa->info.bInterfaceSubClass == UISUBCLASS_XBOX360_CONTROLLER) && in uhid_attach()
826 (uaa->info.bInterfaceProtocol == UIPROTO_XBOX360_GAMEPAD)) { in uhid_attach()
832 error = usbd_req_set_report(uaa->device, NULL, in uhid_attach()
834 uaa->info.bIfaceIndex, UHID_OUTPUT_REPORT, 0); in uhid_attach()
845 error = usbd_req_get_hid_desc(uaa->device, NULL, in uhid_attach()
847 M_USBDEV, uaa->info.bIfaceIndex); in uhid_attach()
854 error = usbd_req_set_idle(uaa->device, NULL, in uhid_attach()
855 uaa->info.bIfaceIndex, 0, 0); in uhid_attach()
889 error = usb_fifo_attach(uaa->device, sc, &sc->sc_mtx, in uhid_attach()
891 unit, -1, uaa->info.bIfaceIndex, in uhid_attach()