Searched refs:uaa (Results 1 - 25 of 78) sorted by relevance

1234

/freebsd-11-stable/stand/usb/storage/
H A Dumass_common.c63 struct usb_attach_arg *uaa = device_get_ivars(dev); local
65 if (uaa->usb_mode != USB_MODE_HOST ||
66 uaa->info.bInterfaceClass != UICLASS_MASS ||
67 uaa->info.bInterfaceSubClass != UISUBCLASS_SCSI ||
68 uaa->info.bInterfaceProtocol != UIPROTO_MASS_BBB ||
77 struct usb_attach_arg *uaa = device_get_ivars(dev); local
78 umass_uaa = *uaa;
/freebsd-11-stable/sys/dev/if_ndis/
H A Dif_ndis_usb.c113 struct usb_attach_arg *uaa; local
118 uaa = device_get_ivars(dev);
121 if ((uaa->info.idVendor == t->ndis_vid) &&
122 (uaa->info.idProduct == t->ndis_did)) {
136 struct usb_attach_arg *uaa = device_get_ivars(self); local
138 if (uaa->usb_mode != USB_MODE_HOST)
140 if (uaa->info.bConfigIndex != NDISUSB_CONFIG_NO)
142 if (uaa->info.bIfaceIndex != NDISUSB_IFACE_INDEX)
151 uaa->driver_ivar = db;
161 struct usb_attach_arg *uaa local
[all...]
/freebsd-11-stable/sys/dev/usb/misc/
H A Duled.c122 struct usb_attach_arg *uaa; local
124 uaa = device_get_ivars(dev);
125 if (uaa->usb_mode != USB_MODE_HOST)
127 if (uaa->info.bInterfaceClass != UICLASS_HID)
130 return (usbd_lookup_id_by_uaa(uled_devs, sizeof(uled_devs), uaa));
136 struct usb_attach_arg *uaa; local
141 uaa = device_get_ivars(dev);
148 sc->sc_udev = uaa->device;
150 error = usb_fifo_attach(uaa->device, sc, &sc->sc_mtx,
152 uaa
[all...]
H A Dugold.c177 struct usb_attach_arg *uaa; local
179 uaa = device_get_ivars(dev);
180 if (uaa->usb_mode != USB_MODE_HOST)
182 if (uaa->info.bInterfaceClass != UICLASS_HID)
184 if (uaa->info.bIfaceIndex != 0)
187 return (usbd_lookup_id_by_uaa(ugold_devs, sizeof(ugold_devs), uaa));
194 struct usb_attach_arg *uaa = device_get_ivars(dev); local
201 sc->sc_udev = uaa->device;
206 sc->sc_iface_index[0] = uaa->info.bIfaceIndex;
207 sc->sc_iface_index[1] = uaa
[all...]
H A Dufm.c130 struct usb_attach_arg *uaa = device_get_ivars(dev); local
132 if (uaa->usb_mode != USB_MODE_HOST)
134 if (uaa->info.bConfigIndex != 0)
136 if (uaa->info.bIfaceIndex != 0)
139 return (usbd_lookup_id_by_uaa(ufm_devs, sizeof(ufm_devs), uaa));
145 struct usb_attach_arg *uaa = device_get_ivars(dev); local
149 sc->sc_udev = uaa->device;
159 error = usb_fifo_attach(uaa->device, sc, &sc->sc_mtx,
161 device_get_unit(dev), -1, uaa->info.bIfaceIndex,
/freebsd-11-stable/sys/dev/usb/serial/
H A Dugensa.c174 struct usb_attach_arg *uaa = device_get_ivars(dev); local
176 if (uaa->usb_mode != USB_MODE_HOST) {
179 if (uaa->info.bConfigIndex != UGENSA_CONFIG_INDEX) {
182 if (uaa->info.bIfaceIndex != 0) {
185 return (usbd_lookup_id_by_uaa(ugensa_devs, sizeof(ugensa_devs), uaa));
191 struct usb_attach_arg *uaa = device_get_ivars(dev); local
205 if ((usbd_get_endpoint(uaa->device, cnt, ugensa_xfer_config + 0) == NULL) ||
206 (usbd_get_endpoint(uaa->device, cnt, ugensa_xfer_config + 1) == NULL)) {
217 iface = usbd_get_iface(uaa->device, x);
226 error = usbd_transfer_setup(uaa
[all...]
H A Dumodem.c226 static void umodem_find_data_iface(struct usb_attach_arg *uaa,
321 struct usb_attach_arg *uaa = device_get_ivars(dev); local
327 sizeof(umodem_host_devs), uaa);
330 sizeof(umodem_dual_devs), uaa);
340 struct usb_attach_arg *uaa = device_get_ivars(dev); local
351 sc->sc_ctrl_iface_no = uaa->info.bIfaceNum;
352 sc->sc_iface_index[1] = uaa->info.bIfaceIndex;
353 sc->sc_udev = uaa->device;
355 umodem_get_caps(uaa, &sc->sc_cm_cap, &sc->sc_acm_cap);
359 cmd = umodem_get_desc(uaa, UDESC_CS_INTERFAC
476 umodem_find_data_iface(struct usb_attach_arg *uaa, uint8_t iface_index, uint8_t *p_data_no, uint8_t *p_match_class) argument
548 umodem_get_caps(struct usb_attach_arg *uaa, uint8_t *cm, uint8_t *acm) argument
921 umodem_get_desc(struct usb_attach_arg *uaa, uint8_t type, uint8_t subtype) argument
[all...]
H A Dubser.c216 struct usb_attach_arg *uaa = device_get_ivars(dev); local
218 if (uaa->usb_mode != USB_MODE_HOST) {
222 if ((strcmp(usb_get_manufacturer(uaa->device), "BWCT") == 0) &&
223 (uaa->info.bInterfaceClass == 0xff) &&
224 (uaa->info.bInterfaceSubClass == 0x00))
233 struct usb_attach_arg *uaa = device_get_ivars(dev); local
243 sc->sc_iface_no = uaa->info.bIfaceNum;
244 sc->sc_iface_index = uaa->info.bIfaceIndex;
245 sc->sc_udev = uaa->device;
254 error = usbd_do_request_flags(uaa
[all...]
H A Ducycom.c196 struct usb_attach_arg *uaa = device_get_ivars(dev); local
198 if (uaa->usb_mode != USB_MODE_HOST) {
201 if (uaa->info.bConfigIndex != 0) {
204 if (uaa->info.bIfaceIndex != UCYCOM_IFACE_INDEX) {
207 return (usbd_lookup_id_by_uaa(ucycom_devs, sizeof(ucycom_devs), uaa));
213 struct usb_attach_arg *uaa = device_get_ivars(dev); local
220 sc->sc_udev = uaa->device;
229 sc->sc_model = USB_GET_DRIVER_INFO(uaa);
238 error = usbd_req_get_hid_desc(uaa->device, NULL,
262 sc->sc_iface_no = uaa
[all...]
H A Dulpt.c506 struct usb_attach_arg *uaa = device_get_ivars(dev); local
511 if (uaa->usb_mode != USB_MODE_HOST)
514 error = usbd_lookup_id_by_uaa(ulpt_devs, sizeof(ulpt_devs), uaa);
524 struct usb_attach_arg *uaa = device_get_ivars(dev); local
529 uint8_t iface_index = uaa->info.bIfaceIndex;
535 sc->sc_udev = uaa->device;
545 id = usbd_get_interface_descriptor(uaa->iface);
553 if (id->bInterfaceNumber != uaa->info.bIfaceNum) {
565 usbd_get_config_descriptor(uaa->device), (void *)id);
577 (uaa
[all...]
H A Du3g.c765 struct usb_attach_arg *uaa)
772 if (uaa->dev_state != UAA_DEV_READY)
782 if (usb_test_quirk(uaa, UQ_MSC_EJECT_HUAWEI))
784 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_SIERRA))
786 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_SCSIEJECT))
788 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_REZERO))
790 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_ZTESTOR))
792 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_CMOTECH))
794 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_WAIT))
796 else if (usb_test_quirk(uaa, UQ_MSC_EJECT_HUAWEISCS
764 u3g_test_autoinst(void *arg, struct usb_device *udev, struct usb_attach_arg *uaa) argument
879 struct usb_attach_arg *uaa = device_get_ivars(self); local
901 struct usb_attach_arg *uaa = device_get_ivars(dev); local
[all...]
/freebsd-11-stable/sys/dev/usb/input/
H A Duhid.c687 struct usb_attach_arg *uaa = device_get_ivars(dev); local
692 if (uaa->usb_mode != USB_MODE_HOST)
695 error = usbd_lookup_id_by_uaa(uhid_devs, sizeof(uhid_devs), uaa);
699 if (usb_test_quirk(uaa, UQ_HID_IGNORE))
707 if ((uaa->info.bInterfaceClass == UICLASS_HID) &&
708 (uaa->info.bInterfaceSubClass == UISUBCLASS_BOOT) &&
709 (((uaa->info.bInterfaceProtocol == UIPROTO_BOOT_KEYBOARD) &&
710 !usb_test_quirk(uaa, UQ_KBD_IGNORE)) ||
711 ((uaa->info.bInterfaceProtocol == UIPROTO_MOUSE) &&
712 !usb_test_quirk(uaa, UQ_UMS_IGNOR
721 struct usb_attach_arg *uaa = device_get_ivars(dev); local
[all...]
H A Duep.c299 struct usb_attach_arg *uaa = device_get_ivars(dev); local
301 if (uaa->usb_mode != USB_MODE_HOST)
303 if (uaa->info.bConfigIndex != 0)
305 if (uaa->info.bIfaceIndex != 0)
308 return (usbd_lookup_id_by_uaa(uep_devs, sizeof(uep_devs), uaa));
314 struct usb_attach_arg *uaa = device_get_ivars(dev); local
322 error = usbd_transfer_setup(uaa->device, &uaa->info.bIfaceIndex,
330 error = usb_fifo_attach(uaa->device, sc, &sc->mtx, &uep_fifo_methods,
331 &sc->fifo, device_get_unit(dev), -1, uaa
[all...]
/freebsd-11-stable/sys/dev/usb/
H A Dusb_util.c73 struct usb_attach_arg *uaa; local
84 uaa = device_get_ivars(dev);
85 if (uaa == NULL) {
89 udev = uaa->device;
90 iface = uaa->iface;
H A Dusb_lookup.c143 struct usb_attach_arg *uaa)
145 id = usbd_lookup_id_by_info(id, sizeof_id, &uaa->info);
148 uaa->driver_info = id->driver_info;
142 usbd_lookup_id_by_uaa(const struct usb_device_id *id, usb_size_t sizeof_id, struct usb_attach_arg *uaa) argument
H A Dusb_device.c1318 struct usb_attach_arg *uaa)
1324 iface = uaa->iface;
1352 if (uaa->temp_dev == NULL) {
1355 uaa->temp_dev = device_add_child(udev->parent_dev, NULL, -1);
1356 if (uaa->temp_dev == NULL) {
1361 device_set_ivars(uaa->temp_dev, uaa);
1362 device_quiet(uaa->temp_dev);
1368 iface->subdev = uaa->temp_dev;
1375 uaa
1317 usb_probe_and_attach_sub(struct usb_device *udev, struct usb_attach_arg *uaa) argument
1417 usb_init_attach_arg(struct usb_device *udev, struct usb_attach_arg *uaa) argument
1450 struct usb_attach_arg uaa; local
1751 struct usb_attach_arg uaa; local
2641 usb_test_quirk(const struct usb_attach_arg *uaa, uint16_t quirk) argument
[all...]
/freebsd-11-stable/sys/netgraph/bluetooth/drivers/ubtbcmfw/
H A Dubtbcmfw.c190 struct usb_attach_arg *uaa = device_get_ivars(dev); local
192 if (uaa->usb_mode != USB_MODE_HOST)
195 if (uaa->info.bIfaceIndex != 0)
198 return (usbd_lookup_id_by_uaa(ubtbcmfw_devs, sizeof(ubtbcmfw_devs), uaa));
208 struct usb_attach_arg *uaa = device_get_ivars(dev); local
213 sc->sc_udev = uaa->device;
220 error = usbd_transfer_setup(uaa->device, &iface_index, sc->sc_xfer,
229 error = usb_fifo_attach(uaa->device, sc, &sc->sc_mtx,
231 device_get_unit(dev), 0 - 1, uaa->info.bIfaceIndex,
/freebsd-11-stable/sys/dev/usb/quirk/
H A Dusb_quirk.h118 uint8_t usb_test_quirk(const struct usb_attach_arg *uaa, uint16_t quirk);
/freebsd-11-stable/sys/dev/usb/storage/
H A Durio.c212 struct usb_attach_arg *uaa = device_get_ivars(dev); local
214 if (uaa->usb_mode != USB_MODE_HOST)
216 if (uaa->info.bConfigIndex != 0)
218 if (uaa->info.bIfaceIndex != 0)
221 return (usbd_lookup_id_by_uaa(urio_devs, sizeof(urio_devs), uaa));
227 struct usb_attach_arg *uaa = device_get_ivars(dev); local
233 sc->sc_udev = uaa->device;
240 error = usbd_transfer_setup(uaa->device,
241 &uaa->info.bIfaceIndex, sc->sc_xfer,
249 error = usb_fifo_attach(uaa
[all...]
/freebsd-11-stable/sys/dev/usb/gadget/
H A Dg_keyboard.c208 struct usb_attach_arg *uaa = device_get_ivars(dev); local
212 if (uaa->usb_mode != USB_MODE_DEVICE)
215 if ((uaa->info.bInterfaceClass == UICLASS_HID) &&
216 (uaa->info.bInterfaceSubClass == UISUBCLASS_BOOT) &&
217 (uaa->info.bInterfaceProtocol == UPROTO_BOOT_KEYBOARD))
227 struct usb_attach_arg *uaa = device_get_ivars(dev); local
240 error = usbd_transfer_setup(uaa->device,
241 &uaa->info.bIfaceIndex, sc->sc_xfer, g_keyboard_config,
H A Dg_mouse.c258 struct usb_attach_arg *uaa = device_get_ivars(dev); local
262 if (uaa->usb_mode != USB_MODE_DEVICE)
265 if ((uaa->info.bInterfaceClass == UICLASS_HID) &&
266 (uaa->info.bInterfaceSubClass == UISUBCLASS_BOOT) &&
267 (uaa->info.bInterfaceProtocol == UIPROTO_MOUSE))
277 struct usb_attach_arg *uaa = device_get_ivars(dev); local
291 error = usbd_transfer_setup(uaa->device,
292 &uaa->info.bIfaceIndex, sc->sc_xfer, g_mouse_config,
H A Dg_modem.c258 struct usb_attach_arg *uaa = device_get_ivars(dev); local
262 if (uaa->usb_mode != USB_MODE_DEVICE)
265 if ((uaa->info.bInterfaceClass == UICLASS_CDC) &&
266 (uaa->info.bInterfaceSubClass == UISUBCLASS_ABSTRACT_CONTROL_MODEL) &&
267 (uaa->info.bInterfaceProtocol == UIPROTO_CDC_AT))
277 struct usb_attach_arg *uaa = device_get_ivars(dev); local
292 iface_index[0] = uaa->info.bIfaceIndex;
293 iface_index[1] = uaa->info.bIfaceIndex + 1;
295 error = usbd_transfer_setup(uaa->device,
303 usbd_set_parent_iface(uaa
[all...]
H A Dg_audio.c272 struct usb_attach_arg *uaa = device_get_ivars(dev); local
276 if (uaa->usb_mode != USB_MODE_DEVICE)
279 if ((uaa->info.bInterfaceClass == UICLASS_AUDIO) &&
280 (uaa->info.bInterfaceSubClass == UISUBCLASS_AUDIOCONTROL))
290 struct usb_attach_arg *uaa = device_get_ivars(dev); local
313 iface_index[0] = uaa->info.bIfaceIndex;
314 iface_index[1] = uaa->info.bIfaceIndex + 1;
315 iface_index[2] = uaa->info.bIfaceIndex + 2;
317 error = usbd_set_alt_interface_index(uaa->device, iface_index[1], 1);
322 error = usbd_set_alt_interface_index(uaa
[all...]
/freebsd-11-stable/sys/dev/usb/net/
H A Dif_ipheth.c213 struct usb_attach_arg *uaa = device_get_ivars(dev); local
215 if (uaa->usb_mode != USB_MODE_HOST)
218 return (usbd_lookup_id_by_uaa(ipheth_devs, sizeof(ipheth_devs), uaa));
226 struct usb_attach_arg *uaa = device_get_ivars(dev); local
229 sc->sc_iface_no = uaa->info.bIfaceIndex;
235 error = usbd_set_alt_interface_index(uaa->device,
236 uaa->info.bIfaceIndex, IPHETH_ALT_INTFNUM);
241 error = usbd_transfer_setup(uaa->device, &sc->sc_iface_no,
249 ue->ue_udev = uaa->device;
H A Dif_cdce.c503 struct usb_attach_arg *uaa)
508 if (uaa->dev_state != UAA_DEV_READY)
517 if (usbd_lookup_id_by_uaa(cdce_switch_devs, sizeof(cdce_switch_devs), uaa))
520 if (usb_msc_eject(udev, 0, USB_GET_DRIVER_INFO(uaa)) == 0) {
522 uaa->dev_state = UAA_DEV_EJECTING;
546 struct usb_attach_arg *uaa = device_get_ivars(dev); local
549 error = usbd_lookup_id_by_uaa(cdce_host_devs, sizeof(cdce_host_devs), uaa);
551 error = usbd_lookup_id_by_uaa(cdce_dual_devs, sizeof(cdce_dual_devs), uaa);
567 struct usb_attach_arg *uaa = device_get_ivars(dev); local
579 sc->sc_flags = USB_GET_DRIVER_INFO(uaa);
502 cdce_test_autoinst(void *arg, struct usb_device *udev, struct usb_attach_arg *uaa) argument
[all...]

Completed in 442 milliseconds

1234