Home
last modified time | relevance | path

Searched refs:wTotalLength (Results 1 – 25 of 40) sorted by relevance

12

/openbmc/qemu/hw/usb/
H A Ddesc.c83 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 Dvideo.h229 __le16 wTotalLength; member
246 __le16 wTotalLength; \
391 __le16 wTotalLength; member
413 __le16 wTotalLength; \
430 __le16 wTotalLength; member
448 __le16 wTotalLength; \
H A Dmidi.h43 __le16 wTotalLength; member
H A Dch9.h350 __le16 wTotalLength; member
806 __le16 wTotalLength; member
848 __le16 wTotalLength; member
H A Daudio.h161 __le16 wTotalLength; /* includes Unit and Terminal desc. */ member
175 __le16 wTotalLength; \
/openbmc/u-boot/drivers/usb/emul/
H A Dusb-emul-uclass.c276 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 Dusb.c400 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 Dconfig.c104 put_unaligned_le16(len, &cp->wTotalLength); in usb_gadget_config_buf()
H A Dep0.c237 …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 Dch9.h315 __le16 wTotalLength; member
758 __le16 wTotalLength; member
800 __le16 wTotalLength; member
/openbmc/linux/include/linux/usb/
H A Dmidi-v2.h76 __le16 wTotalLength; /* Total number of bytes */ member
H A Daudio-v2.h51 __le16 wTotalLength; /* includes Unit and Terminal desc. */ member
H A Daudio-v3.h66 __le16 wTotalLength; member
/openbmc/linux/drivers/usb/gadget/
H A Dcomposite.c610 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 Dconfig.c103 cp->wTotalLength = cpu_to_le16(len); in usb_gadget_config_buf()
/openbmc/linux/sound/usb/
H A Dquirks.c561 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 Dconfig.c752 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 Dwebcam.c93 .wTotalLength = 0, /* dynamic */
148 .wTotalLength = 0, /* dynamic */
H A Dinode.c1319 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 Dxhci-hub.c55 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 Dehci.h98 unsigned short wTotalLength; member
/openbmc/linux/drivers/usb/gadget/function/
H A Df_uac1.c1061 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 Df_midi2.c182 .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 Df_uac2.c951 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 Dusbtty.c162 .wTotalLength =
293 .wTotalLength =

12