Lines Matching refs:uaa
716 struct usb_attach_arg *uaa = device_get_ivars(dev); in uhid_probe() local
721 if (uaa->usb_mode != USB_MODE_HOST) in uhid_probe()
724 error = usbd_lookup_id_by_uaa(uhid_devs, sizeof(uhid_devs), uaa); in uhid_probe()
728 if (usb_test_quirk(uaa, UQ_HID_IGNORE)) in uhid_probe()
737 struct usb_attach_arg *uaa = device_get_ivars(dev); in uhid_attach() local
749 sc->sc_udev = uaa->device; in uhid_attach()
751 sc->sc_iface_no = uaa->info.bIfaceNum; in uhid_attach()
752 sc->sc_iface_index = uaa->info.bIfaceIndex; in uhid_attach()
754 error = usbd_transfer_setup(uaa->device, in uhid_attach()
755 &uaa->info.bIfaceIndex, sc->sc_xfer, uhid_config, in uhid_attach()
762 if (uaa->info.idVendor == USB_VENDOR_WACOM) { in uhid_attach()
765 if (uaa->info.idProduct == USB_PRODUCT_WACOM_GRAPHIRE) { in uhid_attach()
770 } else if (uaa->info.idProduct == USB_PRODUCT_WACOM_GRAPHIRE3_4X5) { in uhid_attach()
778 error = usbd_req_set_report(uaa->device, NULL, in uhid_attach()
780 uaa->info.bIfaceIndex, UHID_FEATURE_REPORT, 2); in uhid_attach()
790 } else if ((uaa->info.bInterfaceClass == UICLASS_VENDOR) && in uhid_attach()
791 (uaa->info.bInterfaceSubClass == UISUBCLASS_XBOX360_CONTROLLER) && in uhid_attach()
792 (uaa->info.bInterfaceProtocol == UIPROTO_XBOX360_GAMEPAD)) { in uhid_attach()
798 error = usbd_req_set_report(uaa->device, NULL, in uhid_attach()
800 uaa->info.bIfaceIndex, UHID_OUTPUT_REPORT, 0); in uhid_attach()
812 error = usbd_req_get_hid_desc(uaa->device, NULL, in uhid_attach()
814 M_USBDEV, uaa->info.bIfaceIndex); in uhid_attach()
822 error = usbd_req_set_idle(uaa->device, NULL, in uhid_attach()
823 uaa->info.bIfaceIndex, 0, 0); in uhid_attach()
858 error = usb_fifo_attach(uaa->device, sc, &sc->sc_mtx, in uhid_attach()
860 unit, -1, uaa->info.bIfaceIndex, in uhid_attach()
868 if (uaa->info.bInterfaceProtocol == UIPROTO_MOUSE) { in uhid_attach()