Lines Matching refs:uaa

718 	struct usb_attach_arg *uaa = device_get_ivars(dev);  in uhid_probe()  local
725 if (uaa->usb_mode != USB_MODE_HOST) in uhid_probe()
728 error = usbd_lookup_id_by_uaa(uhid_devs, sizeof(uhid_devs), uaa); in uhid_probe()
732 if (usb_test_quirk(uaa, UQ_HID_IGNORE)) in uhid_probe()
740 if ((uaa->info.bInterfaceClass == UICLASS_HID) && in uhid_probe()
741 (uaa->info.bInterfaceSubClass == UISUBCLASS_BOOT) && in uhid_probe()
742 (((uaa->info.bInterfaceProtocol == UIPROTO_BOOT_KEYBOARD) && in uhid_probe()
743 !usb_test_quirk(uaa, UQ_KBD_IGNORE)) || in uhid_probe()
744 ((uaa->info.bInterfaceProtocol == UIPROTO_MOUSE) && in uhid_probe()
745 !usb_test_quirk(uaa, UQ_UMS_IGNORE)))) in uhid_probe()
749 if (!usb_test_quirk(uaa, UQ_WMT_IGNORE)) { in uhid_probe()
750 error = usbd_req_get_hid_desc(uaa->device, NULL, in uhid_probe()
751 &buf, &len, M_USBDEV, uaa->info.bIfaceIndex); in uhid_probe()
773 struct usb_attach_arg *uaa = device_get_ivars(dev); in uhid_attach() local
784 sc->sc_udev = uaa->device; in uhid_attach()
786 sc->sc_iface_no = uaa->info.bIfaceNum; in uhid_attach()
787 sc->sc_iface_index = uaa->info.bIfaceIndex; in uhid_attach()
789 error = usbd_transfer_setup(uaa->device, in uhid_attach()
790 &uaa->info.bIfaceIndex, sc->sc_xfer, uhid_config, in uhid_attach()
797 if (uaa->info.idVendor == USB_VENDOR_WACOM) { in uhid_attach()
800 if (uaa->info.idProduct == USB_PRODUCT_WACOM_GRAPHIRE) { in uhid_attach()
805 } else if (uaa->info.idProduct == USB_PRODUCT_WACOM_GRAPHIRE3_4X5) { in uhid_attach()
813 error = usbd_req_set_report(uaa->device, NULL, in uhid_attach()
815 uaa->info.bIfaceIndex, UHID_FEATURE_REPORT, 2); in uhid_attach()
825 } else if ((uaa->info.bInterfaceClass == UICLASS_VENDOR) && in uhid_attach()
826 (uaa->info.bInterfaceSubClass == UISUBCLASS_XBOX360_CONTROLLER) && in uhid_attach()
827 (uaa->info.bInterfaceProtocol == UIPROTO_XBOX360_GAMEPAD)) { in uhid_attach()
833 error = usbd_req_set_report(uaa->device, NULL, in uhid_attach()
835 uaa->info.bIfaceIndex, UHID_OUTPUT_REPORT, 0); in uhid_attach()
846 error = usbd_req_get_hid_desc(uaa->device, NULL, in uhid_attach()
848 M_USBDEV, uaa->info.bIfaceIndex); in uhid_attach()
855 error = usbd_req_set_idle(uaa->device, NULL, in uhid_attach()
856 uaa->info.bIfaceIndex, 0, 0); in uhid_attach()
890 error = usb_fifo_attach(uaa->device, sc, &sc->sc_mtx, in uhid_attach()
892 unit, -1, uaa->info.bIfaceIndex, in uhid_attach()