• Home
  • Raw
  • Download

Lines Matching refs:uaa

1123     struct usb_attach_arg *uaa)  in usb_probe_and_attach_sub()  argument
1129 iface = uaa->iface; in usb_probe_and_attach_sub()
1155 if (uaa->temp_dev == NULL) { in usb_probe_and_attach_sub()
1157 uaa->temp_dev = device_add_child(udev->parent_dev, NULL, -1); in usb_probe_and_attach_sub()
1158 if (uaa->temp_dev == NULL) { in usb_probe_and_attach_sub()
1163 device_set_ivars(uaa->temp_dev, uaa); in usb_probe_and_attach_sub()
1164 device_quiet(uaa->temp_dev); in usb_probe_and_attach_sub()
1170 iface->subdev = uaa->temp_dev; in usb_probe_and_attach_sub()
1177 uaa->temp_dev = NULL; in usb_probe_and_attach_sub()
1220 struct usb_attach_arg *uaa) in usb_init_attach_arg() argument
1222 (void)memset_s(uaa, sizeof(*uaa), 0, sizeof(*uaa)); in usb_init_attach_arg()
1224 uaa->device = udev; in usb_init_attach_arg()
1225 uaa->usb_mode = udev->flags.usb_mode; in usb_init_attach_arg()
1226 uaa->port = udev->port_no; in usb_init_attach_arg()
1227 uaa->dev_state = UAA_DEV_READY; in usb_init_attach_arg()
1229 uaa->info.idVendor = UGETW(udev->ddesc.idVendor); in usb_init_attach_arg()
1230 uaa->info.idProduct = UGETW(udev->ddesc.idProduct); in usb_init_attach_arg()
1231 uaa->info.bcdDevice = UGETW(udev->ddesc.bcdDevice); in usb_init_attach_arg()
1232 uaa->info.bDeviceClass = udev->ddesc.bDeviceClass; in usb_init_attach_arg()
1233 uaa->info.bDeviceSubClass = udev->ddesc.bDeviceSubClass; in usb_init_attach_arg()
1234 uaa->info.bDeviceProtocol = udev->ddesc.bDeviceProtocol; in usb_init_attach_arg()
1235 uaa->info.bConfigIndex = udev->curr_config_index; in usb_init_attach_arg()
1236 uaa->info.bConfigNum = udev->curr_config_no; in usb_init_attach_arg()
1238 DPRINTFN(1, "idVendor %d; idProduct %d; bConfigNum %d\n", uaa->info.idVendor, in usb_init_attach_arg()
1239 uaa->info.idProduct, uaa->info.bConfigNum); in usb_init_attach_arg()
1256 struct usb_attach_arg uaa; in usb_probe_and_attach() local
1275 usb_init_attach_arg(udev, &uaa); in usb_probe_and_attach()
1282 EVENTHANDLER_INVOKE(usb_dev_configured, udev, &uaa); in usb_probe_and_attach()
1284 if (uaa.dev_state != UAA_DEV_READY) { in usb_probe_and_attach()
1316 uaa.iface = iface; in usb_probe_and_attach()
1318 uaa.info.bInterfaceClass = in usb_probe_and_attach()
1320 uaa.info.bInterfaceSubClass = in usb_probe_and_attach()
1322 uaa.info.bInterfaceProtocol = in usb_probe_and_attach()
1324 uaa.info.bIfaceIndex = i; in usb_probe_and_attach()
1325 uaa.info.bIfaceNum = in usb_probe_and_attach()
1327 uaa.driver_info = 0; /* reset driver_info */ in usb_probe_and_attach()
1330 uaa.info.bInterfaceClass, in usb_probe_and_attach()
1331 uaa.info.bInterfaceSubClass, in usb_probe_and_attach()
1332 uaa.info.bInterfaceProtocol, in usb_probe_and_attach()
1333 uaa.info.bIfaceIndex, in usb_probe_and_attach()
1334 uaa.info.bIfaceNum); in usb_probe_and_attach()
1336 (void)usb_probe_and_attach_sub(udev, &uaa); in usb_probe_and_attach()
1343 if (uaa.temp_dev == NULL) in usb_probe_and_attach()
1345 if (device_delete_child(udev->parent_dev, uaa.temp_dev)) in usb_probe_and_attach()
1347 uaa.temp_dev = NULL; in usb_probe_and_attach()
1469 struct usb_attach_arg uaa; in usb_alloc_device() local
1677 usb_init_attach_arg(udev, &uaa); in usb_alloc_device()
1679 if (usb_test_quirk(&uaa, UQ_BUS_POWERED)) { in usb_alloc_device()
1682 if (usb_test_quirk(&uaa, UQ_NO_STRINGS)) { in usb_alloc_device()
1767 if (usb_test_quirk(&uaa, UQ_CFG_INDEX_0)) { in usb_alloc_device()
1770 } else if (usb_test_quirk(&uaa, UQ_CFG_INDEX_1)) { in usb_alloc_device()
1773 } else if (usb_test_quirk(&uaa, UQ_CFG_INDEX_2)) { in usb_alloc_device()
1776 } else if (usb_test_quirk(&uaa, UQ_CFG_INDEX_3)) { in usb_alloc_device()
1779 } else if (usb_test_quirk(&uaa, UQ_CFG_INDEX_4)) { in usb_alloc_device()
2367 usb_test_quirk(const struct usb_attach_arg *uaa, uint16_t quirk) in usb_test_quirk() argument
2378 if (uaa->device->autoQuirk[x] == quirk) in usb_test_quirk()
2384 found = (usb_test_quirk_p) (&uaa->info, quirk); in usb_test_quirk()