Lines Matching refs:uaa

808     struct usb_attach_arg *uaa)  in u3g_test_autoinst()  argument
815 if (uaa->dev_state != UAA_DEV_READY) in u3g_test_autoinst()
825 if (usb_test_quirk(uaa, UQ_MSC_EJECT_HUAWEI)) in u3g_test_autoinst()
827 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_SIERRA)) in u3g_test_autoinst()
829 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_SCSIEJECT)) in u3g_test_autoinst()
831 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_REZERO)) in u3g_test_autoinst()
833 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_ZTESTOR)) in u3g_test_autoinst()
835 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_CMOTECH)) in u3g_test_autoinst()
837 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_WAIT)) in u3g_test_autoinst()
839 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_HUAWEISCSI)) in u3g_test_autoinst()
841 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_HUAWEISCSI2)) in u3g_test_autoinst()
843 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_HUAWEISCSI3)) in u3g_test_autoinst()
845 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_HUAWEISCSI4)) in u3g_test_autoinst()
847 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_TCT)) in u3g_test_autoinst()
849 else if (usbd_lookup_id_by_uaa(u3g_devs, sizeof(u3g_devs), uaa) == 0) in u3g_test_autoinst()
850 method = USB_GET_DRIVER_INFO(uaa); in u3g_test_autoinst()
907 uaa->dev_state = UAA_DEV_EJECTING; in u3g_test_autoinst()
932 struct usb_attach_arg *uaa = device_get_ivars(self); in u3g_probe() local
934 if (uaa->usb_mode != USB_MODE_HOST) { in u3g_probe()
937 if (uaa->info.bConfigIndex != U3G_CONFIG_INDEX) { in u3g_probe()
940 if (uaa->info.bInterfaceClass != UICLASS_VENDOR) { in u3g_probe()
943 if (u3g_huawei_is_cdce(uaa->info.idVendor, uaa->info.bInterfaceSubClass, in u3g_probe()
944 uaa->info.bInterfaceProtocol)) { in u3g_probe()
947 return (usbd_lookup_id_by_uaa(u3g_devs, sizeof(u3g_devs), uaa)); in u3g_probe()
954 struct usb_attach_arg *uaa = device_get_ivars(dev); in u3g_attach() local
965 type = USB_GET_DRIVER_INFO(uaa); in u3g_attach()
967 || usb_test_quirk(uaa, UQ_MSC_EJECT_SAEL_M460)) { in u3g_attach()
968 u3g_sael_m460_init(uaa->device); in u3g_attach()
979 sc->sc_udev = uaa->device; in u3g_attach()
983 for (i = uaa->info.bIfaceIndex; i < USB_IFACE_MAX; i++) { in u3g_attach()
984 iface = usbd_get_iface(uaa->device, i); in u3g_attach()
990 if (u3g_huawei_is_cdce(uaa->info.idVendor, in u3g_attach()
993 usbd_set_parent_iface(uaa->device, i, uaa->info.bIfaceIndex); in u3g_attach()
1011 error = usbd_transfer_setup(uaa->device, &i, in u3g_attach()
1021 iface = usbd_get_iface(uaa->device, i); in u3g_attach()