Home
last modified time | relevance | path

Searched refs:uaa (Results 1 – 25 of 98) sorted by relevance

1234

/freebsd/sys/dev/usb/input/
H A Duhid.c718 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()
[all …]
H A Duep.c338 struct usb_attach_arg *uaa = device_get_ivars(dev); in uep_probe() local
340 if (uaa->usb_mode != USB_MODE_HOST) in uep_probe()
342 if (uaa->info.bConfigIndex != 0) in uep_probe()
344 if (uaa->info.bIfaceIndex != 0) in uep_probe()
347 return (usbd_lookup_id_by_uaa(uep_devs, sizeof(uep_devs), uaa)); in uep_probe()
353 struct usb_attach_arg *uaa = device_get_ivars(dev); in uep_attach() local
361 error = usbd_transfer_setup(uaa->device, &uaa->info.bIfaceIndex, in uep_attach()
373 evdev_set_id(sc->evdev, BUS_USB, uaa->info.idVendor, in uep_attach()
374 uaa->info.idProduct, 0); in uep_attach()
375 evdev_set_serial(sc->evdev, usb_get_serial(uaa->device)); in uep_attach()
[all …]
H A Dusbhid.c717 usbhid_init_device_info(struct usb_attach_arg *uaa, struct hid_device_info *hw) in usbhid_init_device_info() argument
721 hw->idVendor = uaa->info.idVendor; in usbhid_init_device_info()
722 hw->idProduct = uaa->info.idProduct; in usbhid_init_device_info()
723 hw->idVersion = uaa->info.bcdDevice; in usbhid_init_device_info()
726 hid_add_dynamic_quirk(hw, USB_GET_DRIVER_INFO(uaa)); in usbhid_init_device_info()
730 usbhid_fill_device_info(struct usb_attach_arg *uaa, struct hid_device_info *hw) in usbhid_fill_device_info() argument
732 struct usb_device *udev = uaa->device; in usbhid_fill_device_info()
733 struct usb_interface *iface = uaa->iface; in usbhid_fill_device_info()
741 if (uaa->info.bInterfaceClass == UICLASS_HID && in usbhid_fill_device_info()
751 ep = usbd_get_endpoint(udev, uaa in usbhid_fill_device_info()
780 struct usb_attach_arg *uaa = device_get_ivars(dev); usbhid_probe() local
814 struct usb_attach_arg *uaa = device_get_ivars(dev); usbhid_attach() local
[all...]
H A Dwmt.c284 struct usb_attach_arg *uaa = device_get_ivars(dev); in wmt_probe() local
290 if (uaa->usb_mode != USB_MODE_HOST) in wmt_probe()
293 if (uaa->info.bInterfaceClass != UICLASS_HID) in wmt_probe()
296 if (usb_test_quirk(uaa, UQ_WMT_IGNORE)) in wmt_probe()
299 err = usbd_req_get_hid_desc(uaa->device, NULL, in wmt_probe()
300 &d_ptr, &d_len, M_TEMP, uaa->info.bIfaceIndex); in wmt_probe()
326 struct usb_attach_arg *uaa = device_get_ivars(dev); in wmt_attach() local
338 err = usbd_req_get_report(uaa->device, NULL, sc->buf, in wmt_attach()
339 sc->cont_max_rlen, uaa->info.bIfaceIndex, in wmt_attach()
361 err = usbd_req_get_report(uaa->device, NULL, sc->buf, in wmt_attach()
[all …]
H A Dums.c425 struct usb_attach_arg *uaa = device_get_ivars(dev); in ums_probe()
432 if (uaa->usb_mode != USB_MODE_HOST) in ums_probe()
435 if (uaa->info.bInterfaceClass != UICLASS_HID) in ums_probe()
438 if (usb_test_quirk(uaa, UQ_UMS_IGNORE)) in ums_probe()
441 if ((uaa->info.bInterfaceSubClass == UISUBCLASS_BOOT) && in ums_probe()
442 (uaa->info.bInterfaceProtocol == UIPROTO_MOUSE)) in ums_probe()
445 error = usbd_req_get_hid_desc(uaa->device, NULL, in ums_probe()
446 &d_ptr, &d_len, M_TEMP, uaa->info.bIfaceIndex); in ums_probe()
573 struct usb_attach_arg *uaa = device_get_ivars(dev); in ums_attach()
599 err = usbd_req_set_protocol(uaa in ums_attach()
424 struct usb_attach_arg *uaa = device_get_ivars(dev); ums_probe() local
572 struct usb_attach_arg *uaa = device_get_ivars(dev); ums_attach() local
[all...]
H A Duhid_snes.c527 struct usb_attach_arg *uaa = device_get_ivars(dev); in uhid_snes_probe() local
529 if (uaa->usb_mode != USB_MODE_HOST) in uhid_snes_probe()
532 return (usbd_lookup_id_by_uaa(snes_devs, sizeof(snes_devs), uaa)); in uhid_snes_probe()
538 struct usb_attach_arg *uaa = device_get_ivars(dev); in uhid_snes_attach() local
542 uint8_t alt_index, iface_index = uaa->info.bIfaceIndex; in uhid_snes_attach()
546 sc->sc_usb_device = uaa->device; in uhid_snes_attach()
551 idesc = usbd_get_interface_descriptor(uaa->iface); in uhid_snes_attach()
559 if (idesc->bInterfaceNumber != uaa->info.bIfaceNum) { in uhid_snes_attach()
568 cdesc = usbd_get_config_descriptor(uaa->device); in uhid_snes_attach()
576 error = usbd_set_alt_interface_index(uaa->device, iface_index, alt_index); in uhid_snes_attach()
[all …]
/freebsd/stand/usb/storage/
H A Dumass_common.c62 struct usb_attach_arg *uaa = device_get_ivars(dev); in umass_probe() local
64 if (uaa->usb_mode != USB_MODE_HOST || in umass_probe()
65 uaa->info.bInterfaceClass != UICLASS_MASS || in umass_probe()
66 uaa->info.bInterfaceSubClass != UISUBCLASS_SCSI || in umass_probe()
67 uaa->info.bInterfaceProtocol != UIPROTO_MASS_BBB || in umass_probe()
76 struct usb_attach_arg *uaa = device_get_ivars(dev); in umass_attach() local
77 umass_uaa = *uaa; in umass_attach()
/freebsd/sys/dev/usb/misc/
H A Dugold.c175 struct usb_attach_arg *uaa; in ugold_probe() local
177 uaa = device_get_ivars(dev); in ugold_probe()
178 if (uaa->usb_mode != USB_MODE_HOST) in ugold_probe()
180 if (uaa->info.bInterfaceClass != UICLASS_HID) in ugold_probe()
182 if (uaa->info.bIfaceIndex != 0) in ugold_probe()
185 return (usbd_lookup_id_by_uaa(ugold_devs, sizeof(ugold_devs), uaa)); in ugold_probe()
192 struct usb_attach_arg *uaa = device_get_ivars(dev); in ugold_attach() local
199 sc->sc_udev = uaa->device; in ugold_attach()
204 sc->sc_iface_index[0] = uaa->info.bIfaceIndex; in ugold_attach()
205 sc->sc_iface_index[1] = uaa->info.bIfaceIndex + 1; in ugold_attach()
[all …]
H A Duled.c127 struct usb_attach_arg *uaa; in uled_probe() local
129 uaa = device_get_ivars(dev); in uled_probe()
130 if (uaa->usb_mode != USB_MODE_HOST) in uled_probe()
132 if (uaa->info.bInterfaceClass != UICLASS_HID) in uled_probe()
135 return (usbd_lookup_id_by_uaa(uled_devs, sizeof(uled_devs), uaa)); in uled_probe()
141 struct usb_attach_arg *uaa; in uled_attach() local
146 uaa = device_get_ivars(dev); in uled_attach()
149 sc->sc_flags = USB_GET_DRIVER_INFO(uaa); in uled_attach()
154 sc->sc_udev = uaa->device; in uled_attach()
156 error = usb_fifo_attach(uaa->device, sc, &sc->sc_mtx, in uled_attach()
[all …]
/freebsd/sys/dev/usb/serial/
H A Dumodem.c229 static void umodem_find_data_iface(struct usb_attach_arg *uaa,
322 struct usb_attach_arg *uaa = device_get_ivars(dev); in umodem_probe() local
328 sizeof(umodem_host_devs), uaa); in umodem_probe()
331 sizeof(umodem_dual_devs), uaa); in umodem_probe()
341 struct usb_attach_arg *uaa = device_get_ivars(dev); in umodem_attach() local
352 sc->sc_ctrl_iface_no = uaa->info.bIfaceNum; in umodem_attach()
353 sc->sc_iface_index[1] = uaa->info.bIfaceIndex; in umodem_attach()
354 sc->sc_udev = uaa->device; in umodem_attach()
356 umodem_get_caps(uaa, &sc->sc_cm_cap, &sc->sc_acm_cap); in umodem_attach()
361 if (!usb_test_quirk(uaa, UQ_IGNORE_CDC_CM)) in umodem_attach()
[all …]
H A Dugensa.c174 struct usb_attach_arg *uaa = device_get_ivars(dev); in ugensa_probe() local
176 if (uaa->usb_mode != USB_MODE_HOST) { in ugensa_probe()
179 if (uaa->info.bConfigIndex != UGENSA_CONFIG_INDEX) { in ugensa_probe()
182 if (uaa->info.bIfaceIndex != 0) { in ugensa_probe()
185 return (usbd_lookup_id_by_uaa(ugensa_devs, sizeof(ugensa_devs), uaa)); in ugensa_probe()
191 struct usb_attach_arg *uaa = device_get_ivars(dev); in ugensa_attach() local
200 maxports = USB_GET_DRIVER_INFO(uaa); in ugensa_attach()
206 iface = usbd_get_iface(uaa->device, iface_index); in ugensa_attach()
220 error = usbd_transfer_setup(uaa->device, in ugensa_attach()
241 if (iface_index != uaa->info.bIfaceIndex) { in ugensa_attach()
[all …]
H A Du3g.c808 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()
[all …]
H A Dubser.c214 struct usb_attach_arg *uaa = device_get_ivars(dev); in ubser_probe() local
216 if (uaa->usb_mode != USB_MODE_HOST) { in ubser_probe()
220 if ((strcmp(usb_get_manufacturer(uaa->device), "BWCT") == 0) && in ubser_probe()
221 (uaa->info.bInterfaceClass == 0xff) && in ubser_probe()
222 (uaa->info.bInterfaceSubClass == 0x00)) in ubser_probe()
231 struct usb_attach_arg *uaa = device_get_ivars(dev); in ubser_attach() local
241 sc->sc_iface_no = uaa->info.bIfaceNum; in ubser_attach()
242 sc->sc_iface_index = uaa->info.bIfaceIndex; in ubser_attach()
243 sc->sc_udev = uaa->device; in ubser_attach()
252 error = usbd_do_request_flags(uaa->device, NULL, in ubser_attach()
[all …]
H A Dulpt.c512 struct usb_attach_arg *uaa = device_get_ivars(dev); in ulpt_probe() local
517 if (uaa->usb_mode != USB_MODE_HOST) in ulpt_probe()
520 error = usbd_lookup_id_by_uaa(ulpt_devs, sizeof(ulpt_devs), uaa); in ulpt_probe()
530 struct usb_attach_arg *uaa = device_get_ivars(dev); in ulpt_attach() local
535 uint8_t iface_index = uaa->info.bIfaceIndex; in ulpt_attach()
541 sc->sc_udev = uaa->device; in ulpt_attach()
551 id = usbd_get_interface_descriptor(uaa->iface); in ulpt_attach()
559 if (id->bInterfaceNumber != uaa->info.bIfaceNum) { in ulpt_attach()
573 usbd_get_config_descriptor(uaa->device), (void *)id); in ulpt_attach()
584 (uaa->device, iface_index, alt_index); in ulpt_attach()
[all …]
H A Ducycom.c196 struct usb_attach_arg *uaa = device_get_ivars(dev); in ucycom_probe() local
198 if (uaa->usb_mode != USB_MODE_HOST) { in ucycom_probe()
201 if (uaa->info.bConfigIndex != 0) { in ucycom_probe()
204 if (uaa->info.bIfaceIndex != UCYCOM_IFACE_INDEX) { in ucycom_probe()
207 return (usbd_lookup_id_by_uaa(ucycom_devs, sizeof(ucycom_devs), uaa)); in ucycom_probe()
213 struct usb_attach_arg *uaa = device_get_ivars(dev); in ucycom_attach() local
220 sc->sc_udev = uaa->device; in ucycom_attach()
229 sc->sc_model = USB_GET_DRIVER_INFO(uaa); in ucycom_attach()
238 error = usbd_req_get_hid_desc(uaa->device, NULL, in ucycom_attach()
262 sc->sc_iface_no = uaa->info.bIfaceNum; in ucycom_attach()
[all …]
H A Duark.c178 struct usb_attach_arg *uaa = device_get_ivars(dev); in uark_probe() local
180 if (uaa->usb_mode != USB_MODE_HOST) { in uark_probe()
183 if (uaa->info.bConfigIndex != 0) { in uark_probe()
186 if (uaa->info.bIfaceIndex != UARK_IFACE_INDEX) { in uark_probe()
189 return (usbd_lookup_id_by_uaa(uark_devs, sizeof(uark_devs), uaa)); in uark_probe()
195 struct usb_attach_arg *uaa = device_get_ivars(dev); in uark_attach() local
204 sc->sc_udev = uaa->device; in uark_attach()
208 (uaa->device, &iface_index, sc->sc_xfer, in uark_attach()
/freebsd/sys/dev/usb/
H A Dusb_device.c1329 struct usb_attach_arg *uaa) in usb_probe_and_attach_sub() argument
1335 iface = uaa->iface; in usb_probe_and_attach_sub()
1361 if (uaa->temp_dev == NULL) { in usb_probe_and_attach_sub()
1363 uaa->temp_dev = device_add_child(udev->parent_dev, NULL, DEVICE_UNIT_ANY); in usb_probe_and_attach_sub()
1364 if (uaa->temp_dev == NULL) { in usb_probe_and_attach_sub()
1369 device_set_ivars(uaa->temp_dev, uaa); in usb_probe_and_attach_sub()
1370 device_quiet(uaa->temp_dev); in usb_probe_and_attach_sub()
1376 iface->subdev = uaa->temp_dev; in usb_probe_and_attach_sub()
1383 uaa->temp_dev = NULL; in usb_probe_and_attach_sub()
1426 struct usb_attach_arg *uaa) in usb_init_attach_arg() argument
[all …]
/freebsd/sys/netgraph/bluetooth/drivers/ubt/
H A Dng_ubt_intel.c193 struct usb_attach_arg *uaa = device_get_ivars(dev); in ubt_intel_probe() local
199 if (uaa->usb_mode != USB_MODE_HOST) in ubt_intel_probe()
202 if (uaa->info.bIfaceIndex != 0) in ubt_intel_probe()
206 uaa); in ubt_intel_probe()
210 switch (USB_GET_DRIVER_INFO(uaa)) { in ubt_intel_probe()
218 if (ubt_intel_do_hci_request(uaa->device, in ubt_intel_probe()
229 if (ubt_intel_do_hci_request(uaa->device, in ubt_intel_probe()
244 if (ubt_intel_do_hci_request(uaa->device, in ubt_intel_probe()
259 img_type = ubt_intel_get_img_type(uaa->device); in ubt_intel_probe()
H A Dng_ubt_rtl.c216 struct usb_attach_arg *uaa = device_get_ivars(dev); in ubt_rtl_probe() local
221 if (uaa->usb_mode != USB_MODE_HOST) in ubt_rtl_probe()
224 if (uaa->info.bIfaceIndex != 0) in ubt_rtl_probe()
227 error = usbd_lookup_id_by_uaa(ubt_rtl_devs, sizeof(ubt_rtl_devs), uaa); in ubt_rtl_probe()
231 if (ubt_rtl_do_hci_request(uaa->device, in ubt_rtl_probe()
/freebsd/sys/netgraph/bluetooth/drivers/ubtbcmfw/
H A Dubtbcmfw.c188 struct usb_attach_arg *uaa = device_get_ivars(dev); in ubtbcmfw_probe() local
190 if (uaa->usb_mode != USB_MODE_HOST) in ubtbcmfw_probe()
193 if (uaa->info.bIfaceIndex != 0) in ubtbcmfw_probe()
196 return (usbd_lookup_id_by_uaa(ubtbcmfw_devs, sizeof(ubtbcmfw_devs), uaa)); in ubtbcmfw_probe()
206 struct usb_attach_arg *uaa = device_get_ivars(dev); in ubtbcmfw_attach() local
211 sc->sc_udev = uaa->device; in ubtbcmfw_attach()
218 error = usbd_transfer_setup(uaa->device, &iface_index, sc->sc_xfer, in ubtbcmfw_attach()
227 error = usb_fifo_attach(uaa->device, sc, &sc->sc_mtx, in ubtbcmfw_attach()
229 device_get_unit(dev), 0 - 1, uaa->info.bIfaceIndex, in ubtbcmfw_attach()
/freebsd/sys/dev/usb/storage/
H A Durio.c210 struct usb_attach_arg *uaa = device_get_ivars(dev); in urio_probe() local
212 if (uaa->usb_mode != USB_MODE_HOST) in urio_probe()
214 if (uaa->info.bConfigIndex != 0) in urio_probe()
216 if (uaa->info.bIfaceIndex != 0) in urio_probe()
219 return (usbd_lookup_id_by_uaa(urio_devs, sizeof(urio_devs), uaa)); in urio_probe()
225 struct usb_attach_arg *uaa = device_get_ivars(dev); in urio_attach() local
231 sc->sc_udev = uaa->device; in urio_attach()
238 error = usbd_transfer_setup(uaa->device, in urio_attach()
239 &uaa->info.bIfaceIndex, sc->sc_xfer, in urio_attach()
247 error = usb_fifo_attach(uaa->device, sc, &sc->sc_mtx, in urio_attach()
[all …]
/freebsd/sys/dev/usb/gadget/
H A Dg_audio.c270 struct usb_attach_arg *uaa = device_get_ivars(dev); in g_audio_probe() local
274 if (uaa->usb_mode != USB_MODE_DEVICE) in g_audio_probe()
277 if ((uaa->info.bInterfaceClass == UICLASS_AUDIO) && in g_audio_probe()
278 (uaa->info.bInterfaceSubClass == UISUBCLASS_AUDIOCONTROL)) in g_audio_probe()
288 struct usb_attach_arg *uaa = device_get_ivars(dev); in g_audio_attach() local
311 iface_index[0] = uaa->info.bIfaceIndex; in g_audio_attach()
312 iface_index[1] = uaa->info.bIfaceIndex + 1; in g_audio_attach()
313 iface_index[2] = uaa->info.bIfaceIndex + 2; in g_audio_attach()
315 error = usbd_set_alt_interface_index(uaa->device, iface_index[1], 1); in g_audio_attach()
320 error = usbd_set_alt_interface_index(uaa->device, iface_index[2], 1); in g_audio_attach()
[all …]
H A Dg_modem.c256 struct usb_attach_arg *uaa = device_get_ivars(dev); in g_modem_probe() local
260 if (uaa->usb_mode != USB_MODE_DEVICE) in g_modem_probe()
263 if ((uaa->info.bInterfaceClass == UICLASS_CDC) && in g_modem_probe()
264 (uaa->info.bInterfaceSubClass == UISUBCLASS_ABSTRACT_CONTROL_MODEL) && in g_modem_probe()
265 (uaa->info.bInterfaceProtocol == UIPROTO_CDC_AT)) in g_modem_probe()
275 struct usb_attach_arg *uaa = device_get_ivars(dev); in g_modem_attach() local
290 iface_index[0] = uaa->info.bIfaceIndex; in g_modem_attach()
291 iface_index[1] = uaa->info.bIfaceIndex + 1; in g_modem_attach()
293 error = usbd_transfer_setup(uaa->device, in g_modem_attach()
301 usbd_set_parent_iface(uaa->device, iface_index[1], iface_index[0]); in g_modem_attach()
H A Dg_keyboard.c208 struct usb_attach_arg *uaa = device_get_ivars(dev); in g_keyboard_probe() local
212 if (uaa->usb_mode != USB_MODE_DEVICE) in g_keyboard_probe()
215 if ((uaa->info.bInterfaceClass == UICLASS_HID) && in g_keyboard_probe()
216 (uaa->info.bInterfaceSubClass == UISUBCLASS_BOOT) && in g_keyboard_probe()
217 (uaa->info.bInterfaceProtocol == UPROTO_BOOT_KEYBOARD)) in g_keyboard_probe()
227 struct usb_attach_arg *uaa = device_get_ivars(dev); in g_keyboard_attach() local
240 error = usbd_transfer_setup(uaa->device, in g_keyboard_attach()
241 &uaa->info.bIfaceIndex, sc->sc_xfer, g_keyboard_config, in g_keyboard_attach()
H A Dg_mouse.c256 struct usb_attach_arg *uaa = device_get_ivars(dev); in g_mouse_probe() local
260 if (uaa->usb_mode != USB_MODE_DEVICE) in g_mouse_probe()
263 if ((uaa->info.bInterfaceClass == UICLASS_HID) && in g_mouse_probe()
264 (uaa->info.bInterfaceSubClass == UISUBCLASS_BOOT) && in g_mouse_probe()
265 (uaa->info.bInterfaceProtocol == UIPROTO_MOUSE)) in g_mouse_probe()
275 struct usb_attach_arg *uaa = device_get_ivars(dev); in g_mouse_attach() local
289 error = usbd_transfer_setup(uaa->device, in g_mouse_attach()
290 &uaa->info.bIfaceIndex, sc->sc_xfer, g_mouse_config, in g_mouse_attach()

1234