/openbsd/sys/dev/usb/ |
H A D | ucrcom.c | 54 struct usb_attach_arg *uaa = aux; in ucrcom_match() local 58 if (uaa->iface == NULL) in ucrcom_match() 61 id = usbd_get_interface_descriptor(uaa->iface); in ucrcom_match() 62 dd = usbd_get_device_descriptor(uaa->device); in ucrcom_match() 79 struct usb_attach_arg *uaa = aux; in ucrcom_attach() local 85 id = usbd_get_interface_descriptor(uaa->iface); in ucrcom_attach() 90 ed = usbd_interface2endpoint_descriptor(uaa->iface, i); in ucrcom_attach() 94 usbd_deactivate(uaa->device); in ucrcom_attach() 108 usbd_deactivate(uaa->device); in ucrcom_attach() 116 uca.device = uaa->device; in ucrcom_attach() [all …]
|
H A D | uberry.c | 67 struct usb_attach_arg *uaa = aux; in uberry_match() local 69 if (uaa->iface == NULL || uaa->configno != UBERRY_CONFIG_NO) in uberry_match() 72 return (usb_lookup(uberry_devices, uaa->vendor, uaa->product) != NULL) ? in uberry_match() 80 struct usb_attach_arg *uaa = aux; in uberry_attach() local 83 sc->sc_udev = uaa->device; in uberry_attach() 85 dd = usbd_get_device_descriptor(uaa->device); in uberry_attach()
|
H A D | urng.c | 112 struct usb_attach_arg *uaa = aux; in urng_match() local 114 if (uaa->iface == NULL) in urng_match() 117 if (urng_lookup(uaa->vendor, uaa->product) != NULL) in urng_match() 127 struct usb_attach_arg *uaa = aux; in urng_attach() local 134 sc->sc_udev = uaa->device; in urng_attach() 135 sc->sc_chip = urng_lookup(uaa->vendor, uaa->product)->urng_chip; in urng_attach() 136 sc->sc_product = uaa->product; in urng_attach() 150 id = usbd_get_interface_descriptor(uaa->iface); in urng_attach() 152 ed = usbd_interface2endpoint_descriptor(uaa->iface, i); in urng_attach() 178 error = usbd_open_pipe(uaa->iface, ep_ibulk, USBD_EXCLUSIVE_USE, in urng_attach()
|
H A D | uipaq.c | 137 struct usb_attach_arg *uaa = aux; in uipaq_match() local 139 if (uaa->iface == NULL || uaa->configno != UIPAQ_CONFIG_NO) in uipaq_match() 143 uaa->vendor, uaa->product)); in uipaq_match() 145 return (uipaq_lookup(uaa->vendor, uaa->product) != NULL ? in uipaq_match() 153 struct usb_attach_arg *uaa = aux; in uipaq_attach() local 154 struct usbd_device *dev = uaa->device; in uipaq_attach() 172 sc->sc_flags = uipaq_lookup(uaa->vendor, uaa->product)->uv_flags; in uipaq_attach()
|
H A D | ubcmtp.c | 376 struct usb_attach_arg *uaa = aux; in ubcmtp_match() local 380 if (uaa->iface == NULL) in ubcmtp_match() 385 uaa->product == ubcmtp_devices[i].ansi || in ubcmtp_match() 386 uaa->product == ubcmtp_devices[i].iso || in ubcmtp_match() 388 if (uaa->nifaces < 2) in ubcmtp_match() 391 (uaa->nifaces < 3)) in ubcmtp_match() 413 struct usb_attach_arg *uaa = aux; in ubcmtp_attach() local 414 struct usbd_device *dev = uaa->device; in ubcmtp_attach() 419 sc->sc_udev = uaa->device; in ubcmtp_attach() 431 uaa->product == ubcmtp_devices[i].iso || in ubcmtp_attach() [all …]
|
H A D | uscom.c | 72 struct usb_attach_arg *uaa = aux; in uscom_match() local 74 if (uaa->iface == NULL) in uscom_match() 77 return (usb_lookup(uscom_devs, uaa->vendor, uaa->product) != NULL) ? in uscom_match() 85 struct usb_attach_arg *uaa = aux; in uscom_attach() local 93 sc->sc_udev = uaa->device; in uscom_attach()
|
H A D | udsbr.c | 113 struct usb_attach_arg *uaa = aux; in udsbr_match() local 117 if (uaa->iface == NULL || uaa->configno != UDSBR_CONFIG_NO) in udsbr_match() 120 if (uaa->vendor != USB_VENDOR_CYPRESS || in udsbr_match() 121 uaa->product != USB_PRODUCT_CYPRESS_FMRADIO) in udsbr_match() 130 struct usb_attach_arg *uaa = aux; in udsbr_attach() local 131 struct usbd_device *dev = uaa->device; in udsbr_attach()
|
H A D | usb_subr.c | 855 uaa.device = dev; in usbd_probe_and_attach() 856 uaa.iface = NULL; in usbd_probe_and_attach() 857 uaa.ifaces = NULL; in usbd_probe_and_attach() 858 uaa.nifaces = 0; in usbd_probe_and_attach() 859 uaa.usegeneric = 0; in usbd_probe_and_attach() 860 uaa.port = port; in usbd_probe_and_attach() 866 uaa.cookie = ++cookie; in usbd_probe_and_attach() 914 uaa.ifaces = ifaces; in usbd_probe_and_attach() 964 uaa.iface = NULL; in usbd_probe_and_attach() 965 uaa.usegeneric = 1; in usbd_probe_and_attach() [all …]
|
H A D | umsm.c | 307 struct usb_attach_arg *uaa = aux; in umsm_match() local 312 if (uaa->iface == NULL) in umsm_match() 315 umsmt = umsm_lookup(uaa->vendor, uaa->product); in umsm_match() 324 id = usbd_get_interface_descriptor(uaa->iface); in umsm_match() 332 if (uaa->ifaceno != 2) in umsm_match() 363 if (uaa->ifaceno >= 4) in umsm_match() 374 struct usb_attach_arg *uaa = aux; in umsm_attach() local 381 sc->sc_udev = uaa->device; in umsm_attach() 382 sc->sc_iface = uaa->iface; in umsm_attach() 383 sc->sc_flag = umsm_lookup(uaa->vendor, uaa->product)->umsm_flag; in umsm_attach() [all …]
|
H A D | ukbd.c | 225 sc->sc_hdev.sc_udev = uha->uaa->device; in ukbd_attach() 239 if (usb_lookup(ukbd_never_console, uha->uaa->vendor, uha->uaa->product)) in ukbd_attach() 249 if (uha->uaa->vendor == USB_VENDOR_APPLE) { in ukbd_attach() 253 switch (uha->uaa->product) { in ukbd_attach() 282 if (uha->uaa->vendor == USB_VENDOR_TOPRE && in ukbd_attach() 283 uha->uaa->product == USB_PRODUCT_TOPRE_HHKB) { in ukbd_attach() 288 id = usbd_get_interface_descriptor(uha->uaa->iface); in ukbd_attach() 289 hid = usbd_get_hid_descriptor(uha->uaa->device, id); in ukbd_attach() 309 if (uha->uaa->vendor == USB_VENDOR_CYPRESS && in ukbd_attach() 310 uha->uaa->product == USB_PRODUCT_CYPRESS_LPRDK) in ukbd_attach()
|
H A D | uvisor.c | 206 struct usb_attach_arg *uaa = aux; in uvisor_match() local 208 if (uaa->iface == NULL) in uvisor_match() 212 uaa->vendor, uaa->product)); in uvisor_match() 214 return (uvisor_lookup(uaa->vendor, uaa->product) != NULL ? in uvisor_match() 222 struct usb_attach_arg *uaa = aux; in uvisor_attach() local 223 struct usbd_device *dev = uaa->device; in uvisor_attach() 242 sc->sc_flags = uvisor_lookup(uaa->vendor, uaa->product)->uv_flags; in uvisor_attach() 243 sc->sc_vendor = uaa->vendor; in uvisor_attach()
|
H A D | umodem.c | 161 usbd_desc_iter_init(uaa->device, &iter); in umodem_get_caps() 200 for (i = 0; i < uaa->nifaces; i++) { in umodem_get_caps() 207 if (!usbd_iface_claimed(uaa->device, i)) in umodem_get_caps() 218 struct usb_attach_arg *uaa = aux; in umodem_match() local 223 if (uaa->iface == NULL) in umodem_match() 226 id = usbd_get_interface_descriptor(uaa->iface); in umodem_match() 227 dd = usbd_get_device_descriptor(uaa->device); in umodem_match() 261 struct usb_attach_arg *uaa = aux; in umodem_attach() local 262 struct usbd_device *dev = uaa->device; in umodem_attach() 271 sc->sc_ctl_iface = uaa->iface; in umodem_attach() [all …]
|
H A D | uts.c | 119 struct usb_attach_arg *uaa = aux; in uts_match() local 122 if (uaa->iface == NULL) in uts_match() 126 id = usbd_get_interface_descriptor(uaa->iface); in uts_match() 130 return (usb_lookup(uts_devs, uaa->vendor, uaa->product) != NULL) ? in uts_match() 138 struct usb_attach_arg *uaa = aux; in uts_attach() local 145 sc->sc_udev = uaa->device; in uts_attach() 146 sc->sc_product = uaa->product; in uts_attach() 147 sc->sc_vendor = uaa->vendor; in uts_attach() 165 if (usbd_device2interface_handle(uaa->device, 0, &sc->sc_iface) != 0) { in uts_attach()
|
H A D | ums.c | 124 struct usb_attach_arg *uaa = uha->uaa; in ums_attach() local 131 sc->sc_hdev.sc_udev = uaa->device; in ums_attach() 139 if (uaa->vendor == USB_VENDOR_ELECOM) in ums_attach() 140 ums_fix_elecom_descriptor(sc, desc, size, uaa->product); in ums_attach() 168 if (uaa->vendor == USB_VENDOR_MICROSOFT && in ums_attach() 169 uaa->product == USB_PRODUCT_MICROSOFT_WLNOTEBOOK3) { in ums_attach()
|
H A D | umstc.c | 84 if (!usb_lookup(umstc_devs, uha->uaa->vendor, uha->uaa->product)) in umstc_match() 101 struct usb_attach_arg *uaa = uha->uaa; in umstc_attach() local 107 sc->sc_hdev.sc_udev = uaa->device; in umstc_attach()
|
H A D | umbg.c | 149 struct usb_attach_arg *uaa = aux; in umbg_match() local 151 if (uaa->iface == NULL) in umbg_match() 154 return uaa->vendor == USB_VENDOR_MEINBERG && ( in umbg_match() 155 uaa->product == USB_PRODUCT_MEINBERG_USB5131 || in umbg_match() 156 uaa->product == USB_PRODUCT_MEINBERG_DCF600USB) ? in umbg_match() 164 struct usb_attach_arg *uaa = aux; in umbg_attach() local 165 struct usbd_device *dev = uaa->device; in umbg_attach() 166 struct usbd_interface *iface = uaa->iface; in umbg_attach() 183 switch (uaa->product) { in umbg_attach()
|
H A D | umcs.c | 176 struct usb_attach_arg *uaa = aux; in umcs_match() local 178 if (uaa->iface == NULL || uaa->ifaceno != UMCS_IFACE_NO) in umcs_match() 181 return (usb_lookup(umcs_devs, uaa->vendor, uaa->product) != NULL) ? in umcs_match() 189 struct usb_attach_arg *uaa = aux; in umcs_attach() local 196 sc->sc_udev = uaa->device; in umcs_attach() 217 else if (uaa->product == USB_PRODUCT_MOSCHIP_MCS7810) in umcs_attach() 238 id = usbd_get_interface_descriptor(uaa->iface); in umcs_attach() 241 ed = usbd_interface2endpoint_descriptor(uaa->iface, i); in umcs_attach() 263 error = usbd_open_pipe_intr(uaa->iface, intr_addr, in umcs_attach() 279 uca.iface = uaa->iface; in umcs_attach() [all …]
|
H A D | uxrcom.c | 111 struct usb_attach_arg *uaa = aux; in uxrcom_match() local 113 if (uaa->iface == NULL) in uxrcom_match() 115 if (uaa->ifaceno != UXRCOM_INTR_IFACE_NO) in uxrcom_match() 118 return (usb_lookup(uxrcom_devs, uaa->vendor, uaa->product) != NULL) ? in uxrcom_match() 126 struct usb_attach_arg *uaa = aux; in uxrcom_attach() local 134 sc->sc_udev = uaa->device; in uxrcom_attach() 135 sc->sc_intr_iface = uaa->iface; in uxrcom_attach()
|
H A D | uark.c | 103 struct usb_attach_arg *uaa = aux; in uark_match() local 105 if (uaa->iface == NULL) in uark_match() 108 return (usb_lookup(uark_devs, uaa->vendor, uaa->product) != NULL) ? in uark_match() 116 struct usb_attach_arg *uaa = aux; in uark_attach() local 124 sc->sc_udev = uaa->device; in uark_attach()
|
H A D | if_cdce.c | 122 struct usb_attach_arg *uaa = aux; in cdce_match() local 125 if (uaa->iface == NULL) in cdce_match() 128 id = usbd_get_interface_descriptor(uaa->iface); in cdce_match() 132 if (cdce_lookup(uaa->vendor, uaa->product) != NULL) in cdce_match() 148 struct usb_attach_arg *uaa = aux; in cdce_attach() local 151 struct usbd_device *dev = uaa->device; in cdce_attach() 165 sc->cdce_udev = uaa->device; in cdce_attach() 166 sc->cdce_ctl_iface = uaa->iface; in cdce_attach() 170 t = cdce_lookup(uaa->vendor, uaa->product); in cdce_attach() 211 for (i = 0; i < uaa->nifaces; i++) { in cdce_attach() [all …]
|
H A D | uonerng.c | 145 struct usb_attach_arg *uaa = aux; in uonerng_match() local 147 if (uaa->iface == NULL) in uonerng_match() 150 if (uaa->vendor != USB_VENDOR_OPENMOKO2 || in uonerng_match() 151 uaa->product != USB_PRODUCT_OPENMOKO2_ONERNG) in uonerng_match() 161 struct usb_attach_arg *uaa = aux; in uonerng_attach() local 162 struct usbd_interface *iface = uaa->iface; in uonerng_attach() 169 sc->sc_udev = uaa->device; in uonerng_attach()
|
H A D | moscom.c | 176 struct usb_attach_arg *uaa = aux; in moscom_match() local 178 if (uaa->iface == NULL) in moscom_match() 181 return (usb_lookup(moscom_devs, uaa->vendor, uaa->product) != NULL) ? in moscom_match() 189 struct usb_attach_arg *uaa = aux; in moscom_attach() local 197 sc->sc_udev = uaa->device; in moscom_attach()
|
H A D | uwacom.c | 90 if (usb_lookup(uwacom_devs, uha->uaa->vendor, in uwacom_match() 91 uha->uaa->product) == NULL) in uwacom_match() 112 struct usb_attach_arg *uaa = uha->uaa; in uwacom_attach() local 119 sc->sc_hdev.sc_udev = uaa->device; in uwacom_attach() 151 switch (uha->uaa->product) { in uwacom_attach()
|
H A D | uftdi.c | 757 struct usb_attach_arg *uaa = aux; in uftdi_match() local 759 if (uaa->iface == NULL || uaa->configno != 1) in uftdi_match() 762 if (usb_lookup(uftdi_devs, uaa->vendor, uaa->product) == NULL) in uftdi_match() 768 uaa->ifaceno == 0) in uftdi_match() 778 struct usb_attach_arg *uaa = aux; in uftdi_attach() local 785 sc->sc_udev = uaa->device; in uftdi_attach() 786 sc->sc_iface = uaa->iface; in uftdi_attach() 788 if (uaa->release < 0x0200) { in uftdi_attach() 791 } else if (uaa->release == 0x0600) { in uftdi_attach() 794 } else if (uaa->release == 0x0700 || uaa->release == 0x0800) { in uftdi_attach() [all …]
|
/openbsd/sys/arch/octeon/dev/ |
H A D | octuctl.c | 201 struct octuctl_attach_args uaa; in octuctl_attach() local 254 uaa.aa_octuctl_bust = sc->sc_iot; in octuctl_attach() 255 uaa.aa_bust = &octuctl_tag; in octuctl_attach() 256 uaa.aa_dmat = faa->fa_dmat; in octuctl_attach() 257 uaa.aa_ioh = sc->sc_ioh; in octuctl_attach() 264 uaa.aa_reg.addr = (((uint64_t)reg[0]) << 32) | reg[1]; in octuctl_attach() 265 uaa.aa_reg.size = (((uint64_t)reg[2]) << 32) | reg[3]; in octuctl_attach() 266 uaa.aa_node = node; in octuctl_attach() 267 config_found(self, &uaa, octuctlprint); in octuctl_attach()
|