/openbmc/qemu/hw/usb/ |
H A D | desc.c | 83 uint16_t wTotalLength = 0; in usb_desc_config() local 99 wTotalLength += bLength; in usb_desc_config() 104 dest + wTotalLength, in usb_desc_config() 105 len - wTotalLength); in usb_desc_config() 109 wTotalLength += rc; in usb_desc_config() 115 dest + wTotalLength, len - wTotalLength); in usb_desc_config() 119 wTotalLength += rc; in usb_desc_config() 122 d->u.config.wTotalLength_lo = usb_lo(wTotalLength); in usb_desc_config() 123 d->u.config.wTotalLength_hi = usb_hi(wTotalLength); in usb_desc_config() 124 return wTotalLength; in usb_desc_config() [all …]
|
/openbmc/linux/include/uapi/linux/usb/ |
H A D | video.h | 229 __le16 wTotalLength; member 246 __le16 wTotalLength; \ 391 __le16 wTotalLength; member 413 __le16 wTotalLength; \ 430 __le16 wTotalLength; member 448 __le16 wTotalLength; \
|
H A D | midi.h | 43 __le16 wTotalLength; member
|
H A D | ch9.h | 350 __le16 wTotalLength; member 806 __le16 wTotalLength; member 848 __le16 wTotalLength; member
|
H A D | audio.h | 161 __le16 wTotalLength; /* includes Unit and Terminal desc. */ member 175 __le16 wTotalLength; \
|
/openbmc/u-boot/drivers/usb/emul/ |
H A D | usb-emul-uclass.c | 276 cdesc->wTotalLength = upto; in usb_emul_setup_device() 286 cdesc->wTotalLength = upto; in usb_emul_setup_device() 288 cdesc->bConfigurationValue, cdesc->wTotalLength); in usb_emul_setup_device()
|
/openbmc/u-boot/common/ |
H A D | usb.c | 400 while (index + 1 < dev->config.desc.wTotalLength && head->bLength) { in usb_parse_config() 409 dev->config.desc.wTotalLength) { in usb_parse_config() 446 dev->config.desc.wTotalLength) { in usb_parse_config() 483 dev->config.desc.wTotalLength) { in usb_parse_config() 583 return le16_to_cpu(config->wTotalLength); in usb_get_configuration_len() 598 le16_to_cpu(config->wTotalLength)); in usb_get_configuration_no() 599 config->wTotalLength = result; /* validated, with CPU byte order */ in usb_get_configuration_no()
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | config.c | 104 put_unaligned_le16(len, &cp->wTotalLength); in usb_gadget_config_buf()
|
H A D | ep0.c | 237 …bg_ep0(0, "attempt to copy %d bytes to urb\n",cpu_to_le16(configuration_descriptor->wTotalLength)); in ep0_get_descriptor() 240 cpu_to_le16(configuration_descriptor->wTotalLength), in ep0_get_descriptor()
|
/openbmc/u-boot/include/linux/usb/ |
H A D | ch9.h | 315 __le16 wTotalLength; member 758 __le16 wTotalLength; member 800 __le16 wTotalLength; member
|
/openbmc/linux/include/linux/usb/ |
H A D | midi-v2.h | 76 __le16 wTotalLength; /* Total number of bytes */ member
|
H A D | audio-v2.h | 51 __le16 wTotalLength; /* includes Unit and Terminal desc. */ member
|
H A D | audio-v3.h | 66 __le16 wTotalLength; member
|
/openbmc/linux/drivers/usb/gadget/ |
H A D | composite.c | 610 c->wTotalLength = cpu_to_le16(len); in config_buf() 735 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE); in bos_desc() 766 usb_ext = cdev->req->buf + le16_to_cpu(bos->wTotalLength); in bos_desc() 768 le16_add_cpu(&bos->wTotalLength, USB_DT_USB_EXT_CAP_SIZE); in bos_desc() 783 ss_cap = cdev->req->buf + le16_to_cpu(bos->wTotalLength); in bos_desc() 785 le16_add_cpu(&bos->wTotalLength, USB_DT_USB_SS_CAP_SIZE); in bos_desc() 815 ssp_cap = cdev->req->buf + le16_to_cpu(bos->wTotalLength); in bos_desc() 818 le16_add_cpu(&bos->wTotalLength, USB_DT_USB_SSP_CAP_SIZE(ssac)); in bos_desc() 881 webusb_cap = cdev->req->buf + le16_to_cpu(bos->wTotalLength); in bos_desc() 884 le16_add_cpu(&bos->wTotalLength, in bos_desc() [all …]
|
H A D | config.c | 103 cp->wTotalLength = cpu_to_le16(len); in usb_gadget_config_buf()
|
/openbmc/linux/sound/usb/ |
H A D | quirks.c | 561 if (le16_to_cpu(get_cfg_desc(config)->wTotalLength) == EXTIGY_FIRMWARE_SIZE_OLD || in snd_usb_extigy_boot_quirk() 562 le16_to_cpu(get_cfg_desc(config)->wTotalLength) == EXTIGY_FIRMWARE_SIZE_NEW) { in snd_usb_extigy_boot_quirk() 586 le16_to_cpu(get_cfg_desc(config)->wTotalLength)); in snd_usb_extigy_boot_quirk() 919 fwsize = le16_to_cpu(get_cfg_desc(config)->wTotalLength); in snd_usb_mbox2_boot_quirk() 966 le16_to_cpu(get_cfg_desc(config)->wTotalLength)); in snd_usb_mbox2_boot_quirk() 1278 descriptor_size = le16_to_cpu(get_cfg_desc(config)->wTotalLength); in snd_usb_mbox3_boot_quirk() 1305 le16_to_cpu(get_cfg_desc(config)->wTotalLength)); in snd_usb_mbox3_boot_quirk()
|
/openbmc/linux/drivers/usb/core/ |
H A D | config.c | 752 config->desc.wTotalLength = cpu_to_le16(buffer2 - buffer0); in usb_parse_configuration() 927 length = max((int) le16_to_cpu(desc->wTotalLength), in usb_get_configuration() 1016 total_len = le16_to_cpu(bos->wTotalLength); in usb_get_bos_descriptor() 1097 dev->bos->desc->wTotalLength = cpu_to_le16(buffer - buffer0); in usb_get_bos_descriptor()
|
/openbmc/linux/drivers/usb/gadget/legacy/ |
H A D | webcam.c | 93 .wTotalLength = 0, /* dynamic */ 148 .wTotalLength = 0, /* dynamic */
|
H A D | inode.c | 1319 len = le16_to_cpu(dev->hs_config->wTotalLength); in config_buf() 1322 len = le16_to_cpu(dev->config->wTotalLength); in config_buf() 1839 total = le16_to_cpu(dev->config->wTotalLength); in dev_config() 1849 total = le16_to_cpu(dev->hs_config->wTotalLength); in dev_config()
|
/openbmc/linux/drivers/usb/host/ |
H A D | xhci-hub.c | 55 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE + in xhci_create_usb3x_bos_desc() 92 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE + in xhci_create_usb3x_bos_desc() 121 if (wLength < le16_to_cpu(bos->wTotalLength)) in xhci_create_usb3x_bos_desc() 125 return le16_to_cpu(bos->wTotalLength); in xhci_create_usb3x_bos_desc() 252 return le16_to_cpu(bos->wTotalLength); in xhci_create_usb3x_bos_desc()
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | ehci.h | 98 unsigned short wTotalLength; member
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | f_uac1.c | 1061 ac_header_desc->wTotalLength = cpu_to_le16(ac_header_desc->bLength); in setup_descriptor() 1064 u16 len = le16_to_cpu(ac_header_desc->wTotalLength); in setup_descriptor() 1070 ac_header_desc->wTotalLength = cpu_to_le16(len); in setup_descriptor() 1073 u16 len = le16_to_cpu(ac_header_desc->wTotalLength); in setup_descriptor() 1079 ac_header_desc->wTotalLength = cpu_to_le16(len); in setup_descriptor()
|
H A D | f_midi2.c | 182 .wTotalLength = __cpu_to_le16(0x12), // to be filled 224 .wTotalLength = __cpu_to_le16(0x0009), 247 .wTotalLength = __cpu_to_le16(0x41), // to be calculated 310 .wTotalLength = __cpu_to_le16(0x07), 1366 header.wTotalLength = cpu_to_le16(len); in assign_block_descriptors() 1820 midi2_midi1_class_desc.wTotalLength = cpu_to_le16(total); in f_midi2_create_usb_configs()
|
H A D | f_uac2.c | 951 ac_hdr_desc.wTotalLength = cpu_to_le16(sizeof(ac_hdr_desc)); in setup_descriptor() 954 u16 len = le16_to_cpu(ac_hdr_desc.wTotalLength); in setup_descriptor() 963 ac_hdr_desc.wTotalLength = cpu_to_le16(len); in setup_descriptor() 967 u16 len = le16_to_cpu(ac_hdr_desc.wTotalLength); in setup_descriptor() 976 ac_hdr_desc.wTotalLength = cpu_to_le16(len); in setup_descriptor()
|
/openbmc/u-boot/drivers/serial/ |
H A D | usbtty.c | 162 .wTotalLength = 293 .wTotalLength =
|