Lines Matching full:uaa

1329     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
1428 memset(uaa, 0, sizeof(*uaa)); in usb_init_attach_arg()
1430 uaa->device = udev; in usb_init_attach_arg()
1431 uaa->usb_mode = udev->flags.usb_mode; in usb_init_attach_arg()
1432 uaa->port = udev->port_no; in usb_init_attach_arg()
1433 uaa->dev_state = UAA_DEV_READY; in usb_init_attach_arg()
1435 uaa->info.idVendor = UGETW(udev->ddesc.idVendor); in usb_init_attach_arg()
1436 uaa->info.idProduct = UGETW(udev->ddesc.idProduct); in usb_init_attach_arg()
1437 uaa->info.bcdDevice = UGETW(udev->ddesc.bcdDevice); in usb_init_attach_arg()
1438 uaa->info.bDeviceClass = udev->ddesc.bDeviceClass; in usb_init_attach_arg()
1439 uaa->info.bDeviceSubClass = udev->ddesc.bDeviceSubClass; in usb_init_attach_arg()
1440 uaa->info.bDeviceProtocol = udev->ddesc.bDeviceProtocol; in usb_init_attach_arg()
1441 uaa->info.bConfigIndex = udev->curr_config_index; in usb_init_attach_arg()
1442 uaa->info.bConfigNum = udev->curr_config_no; in usb_init_attach_arg()
1458 struct usb_attach_arg uaa; in usb_probe_and_attach() local
1477 usb_init_attach_arg(udev, &uaa); in usb_probe_and_attach()
1484 if (usb_test_quirk(&uaa, UQ_MSC_DYMO_EJECT) != 0 && in usb_probe_and_attach()
1487 uaa.dev_state = UAA_DEV_EJECTING; in usb_probe_and_attach()
1490 EVENTHANDLER_INVOKE(usb_dev_configured, udev, &uaa); in usb_probe_and_attach()
1492 if (uaa.dev_state != UAA_DEV_READY) { in usb_probe_and_attach()
1524 uaa.iface = iface; in usb_probe_and_attach()
1526 uaa.info.bInterfaceClass = in usb_probe_and_attach()
1528 uaa.info.bInterfaceSubClass = in usb_probe_and_attach()
1530 uaa.info.bInterfaceProtocol = in usb_probe_and_attach()
1532 uaa.info.bIfaceIndex = i; in usb_probe_and_attach()
1533 uaa.info.bIfaceNum = in usb_probe_and_attach()
1535 uaa.driver_info = 0; /* reset driver_info */ in usb_probe_and_attach()
1538 uaa.info.bInterfaceClass, in usb_probe_and_attach()
1539 uaa.info.bInterfaceSubClass, in usb_probe_and_attach()
1540 uaa.info.bInterfaceProtocol, in usb_probe_and_attach()
1541 uaa.info.bIfaceIndex, in usb_probe_and_attach()
1542 uaa.info.bIfaceNum); in usb_probe_and_attach()
1544 usb_probe_and_attach_sub(udev, &uaa); in usb_probe_and_attach()
1551 if (uaa.temp_dev == NULL) in usb_probe_and_attach()
1553 if (device_delete_child(udev->parent_dev, uaa.temp_dev)) in usb_probe_and_attach()
1555 uaa.temp_dev = NULL; in usb_probe_and_attach()
1756 struct usb_attach_arg uaa; in usb_alloc_device() local
1967 usb_init_attach_arg(udev, &uaa); in usb_alloc_device()
1969 if (usb_test_quirk(&uaa, UQ_BUS_POWERED)) { in usb_alloc_device()
1972 if (usb_test_quirk(&uaa, UQ_NO_STRINGS)) { in usb_alloc_device()
1993 if (usb_test_quirk(&uaa, UQ_CFG_INDEX_0)) { in usb_alloc_device()
1996 } else if (usb_test_quirk(&uaa, UQ_CFG_INDEX_1)) { in usb_alloc_device()
1999 } else if (usb_test_quirk(&uaa, UQ_CFG_INDEX_2)) { in usb_alloc_device()
2002 } else if (usb_test_quirk(&uaa, UQ_CFG_INDEX_3)) { in usb_alloc_device()
2005 } else if (usb_test_quirk(&uaa, UQ_CFG_INDEX_4)) { in usb_alloc_device()
2050 usb_test_quirk(&uaa, UQ_MSC_NO_INQUIRY) == 0) { in usb_alloc_device()
2066 usb_test_quirk(&uaa, UQ_MSC_NO_START_STOP) == 0 && in usb_alloc_device()
2067 usb_test_quirk(&uaa, UQ_MSC_NO_PREVENT_ALLOW) == 0 && in usb_alloc_device()
2068 usb_test_quirk(&uaa, UQ_MSC_NO_SYNC_CACHE) == 0 && in usb_alloc_device()
2069 usb_test_quirk(&uaa, UQ_MSC_NO_TEST_UNIT_READY) == 0 && in usb_alloc_device()
2070 usb_test_quirk(&uaa, UQ_MSC_NO_GETMAXLUN) == 0 && in usb_alloc_device()
2071 usb_test_quirk(&uaa, UQ_MSC_NO_INQUIRY) == 0) { in usb_alloc_device()
2076 err = usb_msc_auto_quirk(udev, 0, &uaa); in usb_alloc_device()
2648 usb_test_quirk(const struct usb_attach_arg *uaa, uint16_t quirk) in usb_test_quirk() argument
2659 if (uaa->device->autoQuirk[x] == quirk) in usb_test_quirk()
2665 found = (usb_test_quirk_p) (&uaa->info, quirk); in usb_test_quirk()