Home
last modified time | relevance | path

Searched refs:ddesc (Results 1 – 22 of 22) sorted by relevance

/freebsd/lib/libusb/
H A Dlibusb01.c881 struct LIBUSB20_DEVICE_DESC_DECODED *ddesc; in usb_find_devices() local
925 ddesc = libusb20_dev_get_device_desc(pdev); in usb_find_devices()
928 udev->descriptor.bDescriptorType = ddesc->bDescriptorType; in usb_find_devices()
929 udev->descriptor.bcdUSB = ddesc->bcdUSB; in usb_find_devices()
930 udev->descriptor.bDeviceClass = ddesc->bDeviceClass; in usb_find_devices()
931 udev->descriptor.bDeviceSubClass = ddesc->bDeviceSubClass; in usb_find_devices()
932 udev->descriptor.bDeviceProtocol = ddesc->bDeviceProtocol; in usb_find_devices()
933 udev->descriptor.bMaxPacketSize0 = ddesc->bMaxPacketSize0; in usb_find_devices()
934 udev->descriptor.idVendor = ddesc->idVendor; in usb_find_devices()
935 udev->descriptor.idProduct = ddesc->idProduct; in usb_find_devices()
[all …]
H A Dlibusb10_hotplug.c62 if (memcmp(&adev->ddesc, &bdev->ddesc, sizeof(adev->ddesc))) in libusb_hotplug_equal()
H A Dlibusb20_ugen20.c136 struct usb_device_descriptor ddesc; in ugen20_enumerate() local
161 if (ioctl(f, IOUSB(USB_GET_DEVICE_DESC), &ddesc)) { in ugen20_enumerate()
165 LIBUSB20_INIT(LIBUSB20_DEVICE_DESC, &(pdev->ddesc)); in ugen20_enumerate()
167 libusb20_me_decode(&ddesc, sizeof(ddesc), &(pdev->ddesc)); in ugen20_enumerate()
169 if (pdev->ddesc.bNumConfigurations == 0) { in ugen20_enumerate()
172 } else if (pdev->ddesc.bNumConfigurations >= 8) { in ugen20_enumerate()
H A Dlibusb20_int.h182 struct LIBUSB20_DEVICE_DESC_DECODED ddesc; member
H A Dlibusb20.c642 return (&(pdev->ddesc)); in libusb20_dev_get_device_desc()
968 if (configIndex >= pdev->ddesc.bNumConfigurations) in libusb20_dev_alloc_config()
/freebsd/usr.sbin/usbconfig/
H A Dusbconfig.c387 struct LIBUSB20_DEVICE_DESC_DECODED *ddesc; in flush_command() local
389 ddesc = libusb20_dev_get_device_desc(pdev); in flush_command()
392 ddesc->idVendor, ddesc->idProduct, in flush_command()
393 ddesc->bcdDevice, ddesc->bcdDevice, in flush_command()
398 struct LIBUSB20_DEVICE_DESC_DECODED *ddesc; in flush_command() local
400 ddesc = libusb20_dev_get_device_desc(pdev); in flush_command()
403 ddesc->idVendor, ddesc in flush_command()
[all...]
H A Ddump.c536 struct LIBUSB20_DEVICE_DESC_DECODED *ddesc; in dump_device_desc() local
538 ddesc = libusb20_dev_get_device_desc(pdev); in dump_device_desc()
539 LIBUSB20_DEVICE_DESC(DUMP0, ddesc); in dump_device_desc()
546 struct LIBUSB20_DEVICE_DESC_DECODED *ddesc; in dump_config() local
553 ddesc = libusb20_dev_get_device_desc(pdev); in dump_config()
557 cfg_index_end = ddesc->bNumConfigurations; in dump_config()
/freebsd/sys/dev/usb/
H A Dusb_device.c1435 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()
1691 } else if (udev->ddesc.iManufacturer || in usb_get_langid()
1692 udev->ddesc.iProduct || in usb_get_langid()
1693 udev->ddesc.iSerialNumber) { in usb_get_langid()
1849 udev->ddesc.bMaxPacketSize = USB_MAX_IPACKET; in usb_alloc_device()
[all …]
H A Dusb_request.c1988 err = usbd_req_get_device_desc(udev, mtx, &udev->ddesc); in usbd_setup_device_desc()
1994 err = usbd_req_get_desc(udev, mtx, NULL, &udev->ddesc, in usbd_setup_device_desc()
1999 udev->ddesc.bMaxPacketSize = 8; in usbd_setup_device_desc()
2001 err = usbd_req_get_device_desc(udev, mtx, &udev->ddesc); in usbd_setup_device_desc()
2005 udev->ddesc.bMaxPacketSize = 16; in usbd_setup_device_desc()
2007 err = usbd_req_get_device_desc(udev, mtx, &udev->ddesc); in usbd_setup_device_desc()
2011 udev->ddesc.bMaxPacketSize = 32; in usbd_setup_device_desc()
2014 err = usbd_req_get_device_desc(udev, mtx, &udev->ddesc); in usbd_setup_device_desc()
2023 err = usbd_req_get_device_desc(udev, mtx, &udev->ddesc); in usbd_setup_device_desc()
2027 err = usbd_req_get_device_desc(udev, mtx, &udev->ddesc); in usbd_setup_device_desc()
[all …]
H A Dusb_fdt_support.c69 UGETW(udev->ddesc.idVendor), UGETW(udev->ddesc.idProduct)); in find_udev_in_children()
H A Dusb_debug.c233 UGETW(udev->ddesc.idVendor), in usb_dump_xfer()
234 UGETW(udev->ddesc.idProduct), in usb_dump_xfer()
H A Dusb_hub.c108 #define UHUB_PROTO(sc) ((sc)->sc_udev->ddesc.bDeviceProtocol)
292 if (udev->ddesc.bDeviceClass == UDCLASS_HUB && in uhub_tt_buffer_reset_async_locked()
293 udev->ddesc.bDeviceProtocol == UDPROTO_HSHUBSTT) in uhub_tt_buffer_reset_async_locked()
1150 if (udev->ddesc.bDeviceClass != UDCLASS_HUB) in uhub_query_info()
1754 UGETW(res.udev->ddesc.idVendor), in uhub_child_pnpinfo()
1755 UGETW(res.udev->ddesc.idProduct), in uhub_child_pnpinfo()
1756 res.udev->ddesc.bDeviceClass, in uhub_child_pnpinfo()
1757 res.udev->ddesc.bDeviceSubClass, in uhub_child_pnpinfo()
1758 res.udev->ddesc.bDeviceProtocol, in uhub_child_pnpinfo()
1760 UGETW(res.udev->ddesc.bcdDevice), in uhub_child_pnpinfo()
[all …]
H A Dusb_generic.c848 UGETW(udev->ddesc.bcdDevice)); in ugen_fill_deviceinfo()
849 di->udi_vendorNo = UGETW(udev->ddesc.idVendor); in ugen_fill_deviceinfo()
850 di->udi_productNo = UGETW(udev->ddesc.idProduct); in ugen_fill_deviceinfo()
851 di->udi_releaseNo = UGETW(udev->ddesc.bcdDevice); in ugen_fill_deviceinfo()
852 di->udi_class = udev->ddesc.bDeviceClass; in ugen_fill_deviceinfo()
853 di->udi_subclass = udev->ddesc.bDeviceSubClass; in ugen_fill_deviceinfo()
854 di->udi_protocol = udev->ddesc.bDeviceProtocol; in ugen_fill_deviceinfo()
2223 struct usb_device_descriptor *ddesc; in ugen_ioctl_post() member
2300 *u.ddesc = *dtemp; in ugen_ioctl_post()
H A Dusb_msctest.c771 UGETW(udev->ddesc.idVendor), \
772 UGETW(udev->ddesc.idProduct)); \
775 UGETW(udev->ddesc.idVendor), \
776 UGETW(udev->ddesc.idProduct)); \
H A Dusb_device.h269 struct usb_device_descriptor ddesc; /* device descriptor */ member
H A Dusb_transfer.c3232 udev->ddesc.bMaxPacketSize)); in usbd_ctrl_transfer_setup()
3259 udev->ddesc.bMaxPacketSize; in usbd_ctrl_transfer_setup()
/freebsd/sys/dev/qat_c2xxx/
H A Dqat.c1922 struct qat_crypto_desc *ddesc, *edesc; in qat_newsession() local
1938 qs->qs_dec_desc = ddesc = qdm->qdm_dma_vaddr; in qat_newsession()
1939 qs->qs_enc_desc = edesc = ddesc + 1; in qat_newsession()
1941 ddesc->qcd_desc_paddr = qdm->qdm_dma_seg.ds_addr; in qat_newsession()
1942 ddesc->qcd_hash_state_paddr = ddesc->qcd_desc_paddr + in qat_newsession()
2038 ddesc->qcd_slices[0] = FW_SLICE_AUTH; in qat_newsession()
2039 ddesc->qcd_slices[1] = FW_SLICE_CIPHER; in qat_newsession()
2040 ddesc->qcd_cipher_dir = HW_CIPHER_DECRYPT; in qat_newsession()
2041 ddesc->qcd_cmd_id = FW_LA_CMD_HASH_CIPHER; in qat_newsession()
2051 ddesc->qcd_slices[0] = FW_SLICE_CIPHER; in qat_newsession()
[all …]
/freebsd/tools/tools/usbtest/
H A Dusb_msc_test.c863 struct LIBUSB20_DEVICE_DESC_DECODED *ddesc; in show_host_device_selection() local
885 ddesc = libusb20_dev_get_device_desc(pdev); in show_host_device_selection()
888 uaddr[index].vid = ddesc->idVendor; in show_host_device_selection()
889 uaddr[index].pid = ddesc->idProduct; in show_host_device_selection()
921 struct LIBUSB20_DEVICE_DESC_DECODED *ddesc; in find_usb_device() local
928 ddesc = libusb20_dev_get_device_desc(pdev); in find_usb_device()
930 if ((uaddr.vid == ddesc->idVendor) && in find_usb_device()
931 (uaddr.pid == ddesc->idProduct) && in find_usb_device()
H A Dusb_control_ep_test.c311 struct LIBUSB20_DEVICE_DESC_DECODED *ddesc; in usb_set_config_test() local
349 ddesc = libusb20_dev_get_device_desc(pdev); in usb_set_config_test()
350 if (ddesc != NULL) in usb_set_config_test()
351 exp = ddesc->bNumConfigurations + 1; in usb_set_config_test()
/freebsd/stand/i386/zfsboot/
H A Dzfsboot.c513 struct i386_devdesc *ddesc; in mount_root() local
519 if (i386_getdev((void **)&ddesc, root, NULL)) { in mount_root()
526 bdev = ddesc; in mount_root()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_usb.c962 bcopy(&udev->ddesc, &udev->descriptor, in usb_linux_create_usb_device()
/freebsd/sys/dev/usb/controller/
H A Ddwc_otg.c4845 if (parm->udev->parent_hs_hub->ddesc.bDeviceProtocol == UDPROTO_HSHUBMTT) in dwc_otg_xfer_setup()